mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
Moves the `/logs/*` and `/observability/*` page bodies into their route files and deletes the pages (FE-3106). Part 9 of the stack. **Depends on:** #53217 **Changed:** - `routes/project/$ref/logs/**` – 20 page bodies inlined. `logs/index` keeps its `withAuth` wrapper; `replication-logs` redirects with `<Navigate search hash>`; the Logs Explorer save navigates with `search: { queryId }` (never a query inside `to`) - `routes/project/$ref/observability/**` – 12 page bodies inlined; chart highlight actions navigate with `search` params - `components/interfaces/Observability/DatabaseReport.hooks.ts` – the database report's URL hooks move out of the page (with their test) - `components/ui/Charts/ComposedChartHandler.tsx` – imports `UpdateDateRange` from `ChartHighlightActions` instead of a page **Removed:** - 32 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Logs Explorer: run a multi-line query, save it – the URL keeps newlines and the saved query reopens - Each log source (Postgres, Auth, Edge, Storage, Realtime, …) – same layout and title - Observability reports – charts render; highlighting a range links to the right logs page Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
22 lines
568 B
TypeScript
22 lines
568 B
TypeScript
import { createFileRoute } from '@tanstack/react-router'
|
|
|
|
import { ReportPadding } from '@/components/interfaces/Reports/ReportPadding'
|
|
import Reports from '@/components/interfaces/Reports/Reports'
|
|
|
|
export const Route = createFileRoute('/project/$ref/observability/$id')({
|
|
component: ObservabilityReportPage,
|
|
staticData: {
|
|
observabilityLayoutTitle: 'Report',
|
|
},
|
|
})
|
|
|
|
function ObservabilityReportPage() {
|
|
return (
|
|
<div className="mx-auto flex flex-col gap-4 w-full grow">
|
|
<ReportPadding>
|
|
<Reports />
|
|
</ReportPadding>
|
|
</div>
|
|
)
|
|
}
|