1. Create the page
Start from a similar screen, such as Schedules, so the layout, spacing and header match.
Next.js edition
Create app/(app)/<route>/page.tsx and export its title:
export const metadata = { title: "Screen name" };For a detail screen, create app/(app)/<route>/[id]/page.tsx, read the id from params, and call notFound() from next/navigation when the record doesn't exist.
React + Vite edition
Create src/pages/<route>/index.tsx, and set the title with useDocumentTitle("Screen name") at the top of the component. Then add one line to src/routes.tsx, inside the app shell's children:
{ path: "<route>", lazy: () => import("./pages/<route>/index").then((m) => ({ Component: m.default })) },For a detail screen, create src/pages/<route>/detail.tsx, add a "<route>/:id" route, read the id with useParams(), and return <NotFoundPage /> when the record doesn't exist.
2. Build it from existing pieces
PageHeaderfromcomponents/shell/page-headerfor the title and actions.components/patternsfor filter tables with views and bulk actions, KPI strips, empty states, inboxes and agent patterns.components/uifor everything else. Check/designbefore making a new component.
Colors come from CSS variables (bg-background, text-muted-foreground, bg-brand), never hard-coded hex values, so dark mode and rebranding keep working.
3. Add it to the navigation
In config/site.tsx, add an item to the right siteConfig.nav section with href, label and a lucide-react icon. Add it to searchRecords or quickActions if people should reach it from ⌘K, and to mobileNav only if it's one of the four most important screens.
4. Check it
Look at it at 1440px, 390px and 320px wide, in light and dark mode. There should be no sideways scrolling, and tables should turn into cards on phones like the other screens. Then run the build.