Add Code Insights edit dashboard UI
Created by: vovakulikov
Closes https://github.com/sourcegraph/sourcegraph/issues/22231
Background
This PR adds a new edit dashboard page on the /insights/dashboard/:dashboardId/edit
route. Most of the UI is reused from the creation UI of the dashboard page.
This PR is based on changes from https://github.com/sourcegraph/sourcegraph/pull/22564
Screenshot of new the dashboard edit page
How to test
- Create the dashboard by dashboard creation UI (
/insights/add-dashboard
route) - Right after that you must see the edit dashboard UI by
/insights/dashboards/<camelCased name of your newly created dashboards>/edit
What have been done
-
Add new edit dashboard page (UI part) /insights/dashboard/edit
-
Add settings edit logic