Skip to content

Code Insights: Create a default personal dashboard for new users who haven't created any dashboards yet

Created by: vovakulikov

Background

For the new users currently, we have just one default dashboard - the "All insights" dashboard. We have to create a user's personal dashboard in case this user doesn't have any other dashboards yet. Designs

Technote

Possible options here

  • Call createDashboard mutation on the frontend if a user doesn't have any other custom dashboards.
  • Change behavior on the backend and make that all users have at least one personal dashboard. Interesting what @sourcegraph/code-insights-backend think about it. Is it even possible (relatively easy) to do with the dashboard arch that we currently have?