Archetypes
Four whole screens with neutral fixtures — the composition proof that isolated demos cannot give.
An isolated demo proves a component renders. It does not prove that a screen does.
Why this section exists
The lesson is OCE-1116: a token layer that failed to wire rendered flat. Every individual component still looked plausible in isolation — right shapes, right text, nothing thrown — and the failure was only obvious once a complete surface was on screen. A green gate that renders flat is a fail, and the only thing that catches it is a whole screen.
These are archetypes, not product screens. The fixtures are deliberately generic
infrastructure nouns — services, environments, deploys, members — and live in
lib/fixtures/neutral.ts. No Oceanic product's domain model appears on any of them. A
product screen inside the design system is how this package acquired a downstream product's
entities in its public API in the first place; that is what the rest of this milestone is
removing.
The four
App shell
Proves that ten modules from two layers assemble into one surface — rail, header, KPI row and cards agreeing about ground, elevation and hairline, in both themes, which is the one failure no isolated demo can show.
Data table
Proves whether a dense grid reads as one surface or as three components stacked — a filter head, seven columns, row selection and a per-row menu, all having to agree about ground, rule and radius at the two seams where a list surface usually gives itself away.
Form and settings
Proves that the two halves of a form compose — Form owns state, Field owns layout — into six control types that read as one control set, and that the line between saved and already-applied is structural rather than a promise in the copy: a Discard that reverts a switch is the failure no single-control demo can show.
Empty, loading, error
Proves the package has a real vocabulary for the states everybody skips — Skeleton for a wait whose shape is known, Spinner for one whose length is not, Empty for zero rows, Alert for a failure — and that one list moves through all four inside the same frame without the surface lurching.
Each opens full-viewport, outside this site's chrome, with a return bar and the theme toggle. Flipping the theme there is the real test: a whole screen either holds together in both, or it does not.
What the app shell composes
Ten modules from two layers, each linked so that the proof and its parts are one click apart. The count is the claim: an isolated demo proves one of them, and every disagreement this screen exists to catch lives between them.
- AppShell — the frame. Its rail is a slot, which is how it composes
with the nav without depending on it — and since @OCE-1878 the two need nothing passed between
them at all: the frame owns the rail's width and the rule down its edge, the nav draws content,
and the
className="w-full border-r-0"this page used to carry is gone. - WorkspaceNav — the rail: a brand slot, the client/project
switcher, two sections,
Audit logleftdisabledwith aSoonbadge, which is how a rail advertises a surface that does not exist yet without lying about it, and a3on the liveDeploysrow — the same prop, on the row where it used to render nothing at all. - BreadcrumbSwitcher — the header's trail. The avatar marks the tenant segment — whichever one names who you are acting on, which is the wrong-tenant guard rather than decoration — and on this screen the tenant is the root, so the first segment carries it along with a dropdown of its siblings. The last carries neither, because that is where you already are.
- NotificationBell — the header's only other affordance.
- KPIStat ×4 — three with a delta, one with a cap and a trend.
- Charts — a
MiniLineChartfor the build trend, and theSparklinethat fourth KPI draws for itself. - SpendBar — in the rail's footer, near its cap.
- TimelineFeed — the narrow column.
- Card ×2, the second
elevated, and Separator — the only twocoremodules on the screen, which is itself worth noticing: a shell is patterns almost all the way down.
Avatar and DropdownMenu are on screen as well, rendered by the breadcrumb rather than composed by this page. The distinction is worth keeping in a constituents list: a part the screen cannot reach is not a part the screen can get wrong.
What the settings form composes
Thirteen modules, every one of them core. The count is the less interesting half: this is the
only screen in the repo where both halves of a form are on stage at once, so it is the only
place their seam can be watched holding.
- Form — the state half, on the General tab. One
FormFieldper control, withFormItem/FormLabel/FormControl/FormDescription/FormMessagearound it, so every control there carries an id, anaria-describedbyand anaria-invalidthat nobody wrote by hand. - Field — the layout half, on the Automation tab, with no
Formanywhere near it.FieldSet+FieldLegendmake each run of controls one announced<fieldset>, andField/FieldContent/FieldLabel/FieldDescriptionstand in for the rowdivs this screen used to reinvent.Field's own note draws that line from its side: a settings group with no Save button wantsFieldalone. - Input ×2 and Textarea — the two text shapes on one card, so their shared border and focus ring are comparable rather than merely claimed.
- Select — inside
FormControl, which goes around the TRIGGER and not the root, because the root is a state machine with no DOM to put an id on. - Checkbox and Switch ×2 — the distinction this screen
exists to make, and now made structurally. The checkbox is inside the
<form>and above the Save button; the switches are outside it, hold their own state, and each fires a toast on the spot — so there is nothing forDiscardto reach. - RadioGroup — three options, each a horizontal
Field, so the label and its sentence are part of the hit target rather than the 16px dot alone. - Card ×3, Tabs, Separator and
Button ×2 — the furniture. The second button is
ghost, which is what a Discard beside a Save should be. - Sonner — one
Toaster, and the only acknowledgement a setting that applies immediately ever gets.
Label is on screen throughout and composed nowhere: FormLabel and
FieldLabel both are it, positioned. That is the same distinction the app shell keeps for
Avatar — a part the screen cannot reach is not a part the screen can get wrong.
Six control types, not "every form control in the package". That was the old claim and it was never true. Slider, NativeSelect, InputOTP, InputGroup, Toggle / ToggleGroup and Questionnaire are all absent, and none of them belongs on a settings screen for the sake of being counted. An archetype is a composition proof, not a component index; a control that has to have a home invented for it proves nothing about the screen it was pushed onto.
What the states screen composes
Ten modules, nine of them core, and the list is short on purpose: the claim is not breadth, it is
that each of the four states is a named component rather than a shape somebody re-drew.
- Card — the one frame all four states render inside. That the frame never moves is the whole proof; four states in four differently-sized boxes would prove nothing.
- Button — the four state switches, plus each state's own action.
- Separator — under the switches, and again inside the skeleton where a header rule is part of the shape being traced.
- Skeleton ×15 — three in a header row and three in each of four rows, because a skeleton that does not match the rows that are coming is the improvisation this screen is about.
- Spinner — inside the retry button, and nowhere else. It is the only wait on the screen whose length nothing can predict; the list above it has a known shape, which is what makes that one a Skeleton and this one a Spinner.
- Empty ×6 parts — the medallion, the title, the sentence and the action, in the order the component fixes rather than the order a page happens to stack them.
- Alert
variant="destructive"— the failure. The label and the button carry no colour at all; the only status hue on the screen is the 12% tint behind the alert, which is why the copy has to say what failed, what is unaffected and how to retry. - Table — the ready state, written as markup, because a table a reader reads down wants real tabular semantics. DataTable is the other choice and the wrong one here: nothing on this screen picks a row.
- Badge and StatusPill — in the ready rows, and deliberately both, since the pair is the distinction a reader most often gets wrong: the badge labels an environment, the pill reports a task's state.
The one thing this screen does not have a component for is the error. Alert carries the
message; there is no ErrorState that owns the retry, the "nothing has changed" reassurance and the
layout the way Empty owns its four parts. That asymmetry is real and it is not a gap being hidden
here — an error's copy is far less uniform than an empty state's, so whether it is a component at
all is a question, not an oversight.
What the data table composes
Nine modules across both layers, plus one deliberately left out. Every seam a list surface can get wrong is on this one screen.
- FilterBar — the head: a query box, a filter affordance with its active count, Group by, and the saved-view chips. It reports intent; this page owns the state and does the filtering, which is why the row count above the grid moves when a chip is picked. Since @OCE-1875 it is itself composed of InputGroup, Button, Badge and Separator rather than raw elements, which is why the head and the grid now agree on radius, height and field ground as well as on the hairline.
- Table and its parts — the grid itself, and the choice worth noticing: this
screen is built on the primitives, not on
DataTable. The archetype's job is to prove that the primitives
assemble into a screen, which a
DataTablepage would hide behind one component.DataTableanswers a different question and its own page states what it takes. - Row selection is
TableRow'sselected, not a tint this page paints. The prop writes thedata-statethe tint's own selector reads, and @OCE-1741 added it because that style had shipped unreachable. The part a screen reader hears is the row'sCheckbox, which is why every row has one with anaria-label— a screen that hand-rolled the colour would prove the tint and not the component, and would still be silent. - StatusPill — the status column, on the
taskaxis, with the in-flight service marked as moving. Three words, resolved from the axis rather than typed per row, so the same status cannot read "Done" here and "Healthy" on a health surface. - Badge — the environment column,
primaryfor production andmutedfor the rest, so one column carries two ranks without a second component. - Checkbox — the select column, and the reason
TableHeadhas a:has([role=checkbox])rule at all. - DropdownMenu — the per-row menu: the destructive item sits below a separator and carries no colour, because a menu item here has no destructive variant to reach for and the words do that work.
- Button — one
ghosticonper row, which is what the menu hangs from. - ScrollArea — the bounding surface.
Tablealready brings its own overflow container, so this is here for the styled scrollbar, and it is what carries the 6px border the grid reads as its edge. - Separator — one rule between the head and the grid.
What it proves
The rule agrees. Measured on this screen: the filter row's border, the header rule, every row rule
and the grid's own edge all resolve to the same hairline role, in both themes — which is the
composition fact no isolated demo can show, and it holds.
And since @OCE-1875, so does everything else about the head. This section used to be called
"what it proves, and what it disproves", because the border role was the only thing the filter row
shared with the grid: FilterBar was built from a raw input and raw buttons, so its box and
buttons were 16px-cornered against a 6px grid, they stood 38px tall against a control scale of
32/36/40, its field sat on the page ground where every other field in the package sits one step
below it, and the query box — the first thing a keyboard reaches — had its outline removed with
nothing put back while every real Button on the same screen showed the brand ring.
FilterBar is composed of InputGroup, Button, Badge and
Separator now, and this screen was where the seam was measured both times. Re-measured after:
6px corners against the grid's 6px, 40px controls against a 40px TableHead, bg-surface-sunken
under the query box, and a 1px border-brand on it under keyboard focus.
The rule the screen is run by has not changed, and it is why the evidence was worth keeping in place until the component moved: nothing here is patched locally. An archetype that had worked around it would have published a filter head no consumer could reproduce, and retired the only evidence that the seam was open.
Where visual regression should attach
Not built by this ticket, and worth saying exactly where it goes rather than leaving it as an aspiration:
- These four routes, at two viewports × both themes = 16 baselines. They are the highest signal per baseline in the repo, because a token-wiring failure changes every pixel of a whole screen and cannot hide.
- Not the per-component demo previews. 333 demos × 2 themes is 666 baselines that will churn on every legitimate restyle, and the failure they catch — one component looking wrong — is the failure a human reviewing a component page already catches.
The route to attach it to is pnpm --filter @oceanic-hub/showcase build followed by a
next start and a screenshot pass; the app already prerenders every one of these statically,
so no fixture server is needed. That replaces the dead absolute-home-path gate the showcase
README used to describe.