highlight / highlight

highlight.io: The open source, full-stack monitoring platform. Error monitoring, session replay, logging, distributed tracing, and more.
https://app.highlight.io
Other
7.11k stars 320 forks source link

Remove old dashboards / analytics page #8608

Closed linear[bot] closed 1 week ago

linear[bot] commented 2 weeks ago

HIG-4673 Remove old dashboards / analytics page

greptile-apps[bot] commented 2 weeks ago

To remove old dashboards and analytics pages, follow these steps:

  1. Remove DashboardPage Component:

    • Delete the file: /frontend/src/pages/Dashboards/pages/Dashboard/DashboardPage.tsx
  2. Remove DashboardsHomePage Component:

    • Delete the file: /frontend/src/pages/Dashboards/pages/DashboardsHomePage/DashboardsHomePage.tsx
  3. Update DashboardsRouter:

    • Modify /frontend/src/pages/Dashboards/DashboardsRouter.tsx to remove routes related to dashboards and analytics.
      
      import { Navigate, Route, Routes } from 'react-router-dom';
      import HomePageV2 from '@pages/Home/HomePageV2';

    const DashboardsRouter = () => { const { project_id } = useParams<{ project_id: string }>();

    return (

    } /> } />

    ); };

    export default DashboardsRouter;

  4. Remove DashboardOverview Component:

    • Delete the file: /frontend/src/pages/Graphing/DashboardOverview.tsx
  5. Update SQL Script:

    • Modify /scripts/migrations/set_dashboard_is_default.sql to remove references to old dashboards.
      UPDATE dashboards
      SET is_default = false
      WHERE name IN ('Home', 'Web Vitals', 'Frontend Observability');
  6. Remove Unused Components and Hooks:

    • Delete any unused components and hooks related to dashboards and analytics in the /frontend/src/pages/Dashboards and /frontend/src/pages/Graphing directories.

References

/frontend/src/pages/Dashboards/pages/Dashboard/DashboardPage.tsx /frontend/src/pages/Dashboards/pages/DashboardsHomePage/DashboardsHomePage.tsx /frontend/src/pages/Dashboards/DashboardsRouter.tsx /frontend/src/pages/Graphing/DashboardOverview.tsx /scripts/migrations/set_dashboard_is_default.sql /frontend/src/pages/Dashboards /frontend/src/pages/Graphing/Dashboard.tsx /backend/private-graph/graph/schema.resolvers.go /backend/private-graph/graph/generated/generated.go

Ask Greptile