diff --git a/web/src/components/api.tsx b/web/src/components/api.tsx
index 68aae33b3..2de5ba641 100644
--- a/web/src/components/api.tsx
+++ b/web/src/components/api.tsx
@@ -1,9 +1,10 @@
import { useLocation } from 'react-router';
+import { PageError } from '@/components/ui/utils';
import { Toaster } from '@/components/shadcn/sonner';
import { createQueryRuntime } from '@/lib/react-query';
+import { ViewLoading } from '@/components/layouts/loading';
import { ApiErrorContext, useApiError } from '@/lib/errors';
import { Button } from '@/components/longlink/action/button';
-import { PageError, PageLoading } from '@/components/ui/utils';
import { ErrorBoundary, type FallbackProps } from 'react-error-boundary';
import { Suspense, useEffect, useId, useState, type ReactNode } from 'react';
import { createNotifications, NotificationContext } from '@/lib/notifications';
@@ -41,7 +42,7 @@ export function ApiProvider({ children, platformSession }: { children: ReactNode
/** Shares loading and recoverable errors, resetting failed reads on retry or navigation. */
export function ApiBoundary({
children,
- fallback = ,
+ fallback = ,
fallbackRender
}: {
children: ReactNode;
diff --git a/web/src/components/layouts/content.tsx b/web/src/components/layouts/content.tsx
index e3d5867b3..c561da31b 100644
--- a/web/src/components/layouts/content.tsx
+++ b/web/src/components/layouts/content.tsx
@@ -1,7 +1,16 @@
+import { cn } from 'cn';
import type { ReactNode } from 'react';
/** Pins the card surface to the viewport while its content scrolls with the document. */
-export default function Content({ children, toolbar }: { children: ReactNode; toolbar?: ReactNode }) {
+export default function Content({
+ children,
+ toolbar,
+ flushStart = false
+}: {
+ children: ReactNode;
+ toolbar?: ReactNode;
+ flushStart?: boolean;
+}) {
return (
-
);
diff --git a/web/src/components/layouts/loading.tsx b/web/src/components/layouts/loading.tsx
new file mode 100644
index 000000000..1136a9b74
--- /dev/null
+++ b/web/src/components/layouts/loading.tsx
@@ -0,0 +1,60 @@
+import type { ReactNode } from 'react';
+import Platform from '@/components/layouts/platform';
+import { Skeleton } from '@/components/shadcn/skeleton';
+import { SidebarMenuButton } from '@/components/shadcn/sidebar';
+import { PageContainer } from '@/components/layouts/page-container';
+
+export function ViewLoading({ label = 'Loading page' }: { label?: string }) {
+ return (
+
+
+
+
+
+ {['first', 'second', 'third'].map((row) => (
+
+ ))}
+
+
+
+ );
+}
+
+export function AppLoading({
+ label = 'Loading page',
+ children,
+ sidebarHeader,
+ navigationFallback
+}: {
+ label?: string;
+ children?: ReactNode;
+ sidebarHeader?: ReactNode;
+ navigationFallback?: ReactNode;
+}) {
+ return (
+
}>
+
+
+
+
+
+
+ }
+ breadcrumb={
}
+ navigationFallback={
+ navigationFallback ?? (
+
+ {['first', 'second', 'third'].map((item) => (
+
+ ))}
+
+ )
+ }
+ >
+
{children ?? }
+
+ );
+}
diff --git a/web/src/components/layouts/platform.tsx b/web/src/components/layouts/platform.tsx
index 4a91b24c4..7fff74fa6 100644
--- a/web/src/components/layouts/platform.tsx
+++ b/web/src/components/layouts/platform.tsx
@@ -28,6 +28,7 @@ type PlatformProps = {
breadcrumb?: ReactNode;
children: ReactNode;
homeHref?: string;
+ navigationFallback?: ReactNode;
sidebarHeader?: ReactNode;
tabs?: readonly NavigationTab[];
toolbarAction?: ReactNode;
@@ -74,6 +75,7 @@ function PlatformLayout({
breadcrumb,
children,
homeHref = '/',
+ navigationFallback,
sidebarHeader,
tabs = [],
toolbarAction
@@ -131,6 +133,7 @@ function PlatformLayout({