From b3909ae837f13c3734ad03bf1931eafaf4d9cc31 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Fri, 15 Aug 2025 17:32:04 -0600 Subject: [PATCH] move to sub layouts --- .../dashboards/dashboardVersionNumber.ts | 2 +- .../metrics/metricVersionNumber.ts | 2 +- .../reports/reportVersionNumber.ts | 2 +- .../features/sidebars/SidebarPrimary.tsx | 10 +- apps/web-tss/src/routeTree.gen.ts | 950 +++++++++--------- ...boards.$dashboardId.metrics.$metricId.tsx} | 2 +- ...chats.$chatId.dashboards.$dashboardId.tsx} | 2 +- ...x.tsx => app._app.chats.$chatId.index.tsx} | 2 +- ...._app.chats.$chatId.metrics.$metricId.tsx} | 2 +- ...Id.report.$reportId.metrics.$metricId.tsx} | 2 +- ...p._app.chats.$chatId.report.$reportId.tsx} | 2 +- ...ats.index.tsx => app._app.chats.index.tsx} | 2 +- ...boards.$dashboardId.metrics.$metricId.tsx} | 2 +- ...chats.$chatId.dashboards.$dashboardId.tsx} | 2 +- ...ionId.chats.$chatId.metrics.$metricId.tsx} | 2 +- ...llections.$collectionId.chats.$chatId.tsx} | 2 +- ...hboard.$dashboardId.metrics.$metricId.tsx} | 2 +- ....$collectionId.dashboard.$dashboardId.tsx} | 2 +- ...tions.$collectionId.metrics.$metricId.tsx} | 2 +- ...=> app._app.collections.$collectionId.tsx} | 2 +- ...dex.tsx => app._app.collections.index.tsx} | 2 +- ...x => app._app.dashboards.$dashboardId.tsx} | 2 +- ...ndex.tsx => app._app.dashboards.index.tsx} | 2 +- ...d.tsx => app._app.datasets.$datasetId.tsx} | 2 +- ....index.tsx => app._app.datasets.index.tsx} | 2 +- .../{app.home.tsx => app._app.home.tsx} | 2 +- ...logs.index.tsx => app._app.logs.index.tsx} | 2 +- ...cId.tsx => app._app.metrics.$metricId.tsx} | 2 +- ...s.index.tsx => app._app.metrics.index.tsx} | 2 +- ...tId.tsx => app._app.reports.$reportId.tsx} | 2 +- ...s.index.tsx => app._app.reports.index.tsx} | 2 +- apps/web-tss/src/routes/app._app.tsx | 14 + ...=> app._settings.settings.datasources.tsx} | 2 +- ...tsx => app._settings.settings.profile.tsx} | 2 +- ...s.tsx => app._settings.settings.users.tsx} | 2 +- apps/web-tss/src/routes/app.tsx | 8 +- 36 files changed, 543 insertions(+), 503 deletions(-) rename apps/web-tss/src/routes/{app.chats.$chatId.dashboards.$dashboardId.metrics.$metricId.tsx => app._app.chats.$chatId.dashboards.$dashboardId.metrics.$metricId.tsx} (87%) rename apps/web-tss/src/routes/{app.chats.$chatId.dashboards.$dashboardId.tsx => app._app.chats.$chatId.dashboards.$dashboardId.tsx} (79%) rename apps/web-tss/src/routes/{app.chats.$chatId.index.tsx => app._app.chats.$chatId.index.tsx} (72%) rename apps/web-tss/src/routes/{app.chats.$chatId.metrics.$metricId.tsx => app._app.chats.$chatId.metrics.$metricId.tsx} (80%) rename apps/web-tss/src/routes/{app.chats.$chatId.report.$reportId.metrics.$metricId.tsx => app._app.chats.$chatId.report.$reportId.metrics.$metricId.tsx} (80%) rename apps/web-tss/src/routes/{app.chats.$chatId.report.$reportId.tsx => app._app.chats.$chatId.report.$reportId.tsx} (80%) rename apps/web-tss/src/routes/{app.chats.index.tsx => app._app.chats.index.tsx} (73%) rename apps/web-tss/src/routes/{app.collections.$collectionId.chats.$chatId.dashboards.$dashboardId.metrics.$metricId.tsx => app._app.collections.$collectionId.chats.$chatId.dashboards.$dashboardId.metrics.$metricId.tsx} (84%) rename apps/web-tss/src/routes/{app.collections.$collectionId.chats.$chatId.dashboards.$dashboardId.tsx => app._app.collections.$collectionId.chats.$chatId.dashboards.$dashboardId.tsx} (84%) rename apps/web-tss/src/routes/{app.collections.$collectionId.chats.$chatId.metrics.$metricId.tsx => app._app.collections.$collectionId.chats.$chatId.metrics.$metricId.tsx} (85%) rename apps/web-tss/src/routes/{app.collections.$collectionId.chats.$chatId.tsx => app._app.collections.$collectionId.chats.$chatId.tsx} (68%) rename apps/web-tss/src/routes/{app.collections.$collectionId.dashboard.$dashboardId.metrics.$metricId.tsx => app._app.collections.$collectionId.dashboard.$dashboardId.metrics.$metricId.tsx} (85%) rename apps/web-tss/src/routes/{app.collections.$collectionId.dashboard.$dashboardId.tsx => app._app.collections.$collectionId.dashboard.$dashboardId.tsx} (78%) rename apps/web-tss/src/routes/{app.collections.$collectionId.metrics.$metricId.tsx => app._app.collections.$collectionId.metrics.$metricId.tsx} (79%) rename apps/web-tss/src/routes/{app.collections.$collectionId.tsx => app._app.collections.$collectionId.tsx} (70%) rename apps/web-tss/src/routes/{app.collections.index.tsx => app._app.collections.index.tsx} (72%) rename apps/web-tss/src/routes/{app.dashboards.$dashboardId.tsx => app._app.dashboards.$dashboardId.tsx} (87%) rename apps/web-tss/src/routes/{app.dashboards.index.tsx => app._app.dashboards.index.tsx} (72%) rename apps/web-tss/src/routes/{app.datasets.$datasetId.tsx => app._app.datasets.$datasetId.tsx} (71%) rename apps/web-tss/src/routes/{app.datasets.index.tsx => app._app.datasets.index.tsx} (73%) rename apps/web-tss/src/routes/{app.home.tsx => app._app.home.tsx} (95%) rename apps/web-tss/src/routes/{app.logs.index.tsx => app._app.logs.index.tsx} (73%) rename apps/web-tss/src/routes/{app.metrics.$metricId.tsx => app._app.metrics.$metricId.tsx} (82%) rename apps/web-tss/src/routes/{app.metrics.index.tsx => app._app.metrics.index.tsx} (73%) rename apps/web-tss/src/routes/{app.reports.$reportId.tsx => app._app.reports.$reportId.tsx} (82%) rename apps/web-tss/src/routes/{app.reports.index.tsx => app._app.reports.index.tsx} (73%) create mode 100644 apps/web-tss/src/routes/app._app.tsx rename apps/web-tss/src/routes/{app.settings.datasources.tsx => app._settings.settings.datasources.tsx} (69%) rename apps/web-tss/src/routes/{app.settings.profile.tsx => app._settings.settings.profile.tsx} (70%) rename apps/web-tss/src/routes/{app.settings.users.tsx => app._settings.settings.users.tsx} (70%) diff --git a/apps/web-tss/src/api/buster_rest/dashboards/dashboardVersionNumber.ts b/apps/web-tss/src/api/buster_rest/dashboards/dashboardVersionNumber.ts index 4ac17441f..be60451d1 100644 --- a/apps/web-tss/src/api/buster_rest/dashboards/dashboardVersionNumber.ts +++ b/apps/web-tss/src/api/buster_rest/dashboards/dashboardVersionNumber.ts @@ -20,7 +20,7 @@ export const useGetDashboardVersionNumber = ( // Get the dashboard_version_number query param from the route const paramVersionNumber = useSearch({ - from: '/app/dashboards/$dashboardId', + from: '/app/_app/dashboards/$dashboardId', select: stableVersionSearchSelector, }); diff --git a/apps/web-tss/src/api/buster_rest/metrics/metricVersionNumber.ts b/apps/web-tss/src/api/buster_rest/metrics/metricVersionNumber.ts index 2b7c82ee6..0e5fd3320 100644 --- a/apps/web-tss/src/api/buster_rest/metrics/metricVersionNumber.ts +++ b/apps/web-tss/src/api/buster_rest/metrics/metricVersionNumber.ts @@ -20,7 +20,7 @@ export const useGetMetricVersionNumber = ( // Get the metric_version_number query param from the route const paramVersionNumber = useSearch({ - from: '/app/metrics/$metricId', + from: '/app/_app/metrics/$metricId', select: stableVersionSearchSelector, }); diff --git a/apps/web-tss/src/api/buster_rest/reports/reportVersionNumber.ts b/apps/web-tss/src/api/buster_rest/reports/reportVersionNumber.ts index c537453ff..b1c81904d 100644 --- a/apps/web-tss/src/api/buster_rest/reports/reportVersionNumber.ts +++ b/apps/web-tss/src/api/buster_rest/reports/reportVersionNumber.ts @@ -19,7 +19,7 @@ export const useGetReportVersionNumber = ( }); const paramVersionNumber = useSearch({ - from: '/app/reports/$reportId', + from: '/app/_app/reports/$reportId', select: stableVersionSearchSelector, }); diff --git a/apps/web-tss/src/components/features/sidebars/SidebarPrimary.tsx b/apps/web-tss/src/components/features/sidebars/SidebarPrimary.tsx index 4a28ed196..ab2a1bb4e 100644 --- a/apps/web-tss/src/components/features/sidebars/SidebarPrimary.tsx +++ b/apps/web-tss/src/components/features/sidebars/SidebarPrimary.tsx @@ -39,10 +39,8 @@ import { Sidebar } from '@/components/ui/sidebar/Sidebar'; import { Tooltip } from '@/components/ui/tooltip/Tooltip'; import { useContactSupportModalStore, useInviteModalStore } from '@/context/BusterAppLayout'; import { toggleContactSupportModal } from '@/context/BusterAppLayout/useContactSupportModalStore'; +import { toggleInviteModal } from '@/context/BusterAppLayout/useInviteModalStore'; import { cn } from '@/lib/classMerge'; -import { Route as AppHomeRoute } from '@/routes/app.home'; -import { Route as AppSettingsRoute } from '@/routes/app.settings.profile'; -import { toggleInviteModal } from '../../../context/BusterAppLayout/useInviteModalStore'; import { ASSET_ICONS } from '../icons/assetIcons'; // import { InvitePeopleModal } from '../modal/InvitePeopleModal'; // import { SupportModal } from '../modal/SupportModal'; @@ -215,19 +213,19 @@ const SidebarPrimaryHeader: React.FC<{ hideActions?: boolean }> = ({ hideActions return (
- + {!hideActions && (
- +