mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Replaces the three generic shimmer bars on the Compute instance detail page with a placeholder that follows the loaded layout. **Why** While the instance loads, the page showed three full-width bars with no header, tabs or sections. When the data arrived, the whole page jumped into a different shape. **Approach** A new `ComputeInstanceDetailSkeleton` reuses the same page primitives as the loaded view (`PageBreadcrumbs`, `PageHeader`, `PageNav`, `PageContainer`, `PageSection`) and the existing `ShimmeringLoader`, so widths, padding and breakpoints match the real page: - Breadcrumbs: the static Compute link, with a placeholder for the instance name - Header: a 56px icon placeholder, a title placeholder and three metadata placeholders (state, runtime, version) - Tabs: four placeholders sized like the tab labels - Overview: the static Instances, Container and Resources section headings, the ready-count line, the 2/4-column instance count grid, and the container and resource rows No instance values are shown until the data loads. On a non-overview tab (`?tab=logs`, etc.), the content area falls back to the same `GenericSkeletonLoader` the logs tab already uses. Data fetching, error handling, the "instance does not exist" state and the loaded view are unchanged. **Validation** - New `ComputeInstanceDetail.platform.test.tsx`: holds the instance request open, checks that the placeholder renders (section headings, breadcrumb link, no instance name, no tabs, no row labels), then releases it and checks that the header, tabs, instance counts and container rows render and the placeholder is gone. The existing Compute tests still pass. - `eslint` on the changed files: clean. `pnpm --filter studio lint`: 0 errors. - `pnpm --filter studio typecheck` (`tsc --noEmit`) ran out of memory in the sandbox (exit 137) twice, so it was not run to completion. Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>