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>
16 lines
470 B
TypeScript
16 lines
470 B
TypeScript
import { createFileRoute } from '@tanstack/react-router'
|
|
import { useParams } from 'common'
|
|
|
|
import { LogsPreviewer } from '@/components/interfaces/Settings/Logs/LogsPreviewer'
|
|
|
|
export const Route = createFileRoute('/project/$ref/logs/pipelines-logs')({
|
|
component: LogPage,
|
|
staticData: { logsLayoutTitle: 'Pipelines Logs' },
|
|
})
|
|
|
|
function LogPage() {
|
|
const { ref } = useParams()
|
|
|
|
return <LogsPreviewer condensedLayout queryType="pipelines" projectRef={ref!} />
|
|
}
|