Code Insights [spike]: Keep order and size of insight cards on the dashboard page
Created by: vovakulikov
Related product board item https://sourcegraph.productboard.com/roadmap/3362047-code-insights-beta-to-ga/features/9370719/detail/expanded
The problem
At the moment we don't have any system over saving size and order for cards items on the dashboard page. There are a few things we should resolve before diving deep into the implementation of it:
Product and API questions
- Ordering (GQL API mutation to change the ordering of insight in a dashboard)
- Does the ordering affect pagination in the existing queries for dashboard insights? Probably yes is it a problem? Do we need to have an absolute order of insight by default?
- What is the system over saving order and size on the dashboard page? Is it only a dashboard attribute or different users can have different dashboards (with different card sizes and ordering) and switch on/off their personal setting to kind of "global" dashboard settings for sizing/ordering? Like GH dashboards for example cc @AlicjaSuska @Joelkw
- If users can have their personal settings over the dashboard who can modify "global" dashboard settings in this case? only admins?
Tech questions
- I remember that there are a few problems with
react-grid-layoutif we need to save and persist something. Do we need to consider moving away fromreact-grid-layoutlib now or is it possible to implement persistent order size with that solution for now?