Skip to content

Code Insights: Add limited access mode UI and check for the creation and editing UI

Administrator requested to merge vk/lam-creation-ui into main

Created by: vovakulikov

Context

Based on https://github.com/sourcegraph/sourcegraph/pull/32417, Note that the original PR shouldn't be merged https://github.com/sourcegraph/sourcegraph/pull/32417

Desings

Test plan

  • Make sure that you can see all limited-access mode UI (banner and LAM labels) and check when you don't have a license tag
  • Make sure that all features at the creation and editing UI work properly without any limitation when you have code insights license tag (Actually edit UI works as it worked before, there are no limitations for editing)
  • Make sure that you can't create a dashboard
  • Make sure that you can't see "Copy link" or "Configure dashboard" items in the dashboard menu if you don't have the code insights license tag
  • Make sure that you can't remove or assign insights to the dashboard
  • Make sure that you can't create insight if it's out of insight count limit (current limit is 2 insights)
  • Make sure that you can't create insight with more than 10 insights series
  • Make sure that already created insights with more than 10 insights series have inactive state

Merge request reports

Loading