Skip to content
Toolkit

ADR-0016: The catalogue is one registry, and every card opens something

  • Status: Accepted
  • Date: 2026-08-14
  • Deciders: Cardsite platform team (workstream 001-renaissance, audit 04, phase 01 task 4)

Context

Audit 04 counted ~24 creatable products and no catalogue. The finding as written on the ROADMAP was about completeness: "the only complete list is a dropdown inside a modal titled Create Link that lists 8 of them." Counting the tree confirms the shape and corrects the title — the modal has said Create short link since ADR-0008 — and finds one more partial list the audit did not name:

WhereWhat it offered
The create modal's <Select label="Link type"> (LinksPage.tsx)8 — the registry's, and only the registry's
The dashboard's createTiles array4, hardcoded, with their own icons and their own blurbs
The sidebarlist pages, not create actions — you can reach a product only if you already know its name

So a user who had not already found a product had no way to learn it existed, and the two lists that did exist disagreed with each other about how many products there are and what they are called.

That is the finding. What made the slice larger than "render a grid" is what turned up underneath it.

createPath had never been read

packages/link-model has carried a createPath for all eight registered types since it was written, documented as "route that creates one", beside a description documented as "one line, shown in the New launcher beneath the label". The launcher was never built. Neither field had a consumer, and not one of the eight createPath values worked.

  • Seven said ?new=1. No page in the application read a new parameter except /workspaces, which is not one of the eight. Navigating to /vcards?new=1 landed on the vCards list with nothing open.
  • link's said ?new=link. The only page that read anything read ?compose=1, and navigation.ts carried a comment saying so — pointing at the ROADMAP, and naming phase 01 task 4 as the place it would be settled.

A catalogue rendered on top of that would have been twenty-three tiles that navigate somewhere and do nothing: a launcher whose entire function is dead, shipped on the surface built to advertise everything else. Three shipped-but-dead subsystems are already on record (AUDITS-081226.md), and AGENTS.md non-negotiable #7 says there will not be a fourth. Making createPath true is therefore not adjacent work to this task — it is the task. A catalogue is exactly and only the promise that the thing in the card is one click away.

Decision

One catalogue, in apps/web/src/lib/catalogue.ts, rendered by a page that holds no product of its own — and a card is not shipped until arriving at its destination opens a create surface.

Four parts.

1. The registered eight are derived; the other fifteen are declared, with the reason

fromRegistry(type, category) reads @cardsite/link-model for the label, description, icon and create route, exactly as navigation.ts's function of the same name derives list entries (ADR-0015). A ninth registered type joins the catalogue with no edit here. A hand-written entry that reproduces the registry's values correctly fails the build, for the reason ADR-0015 gave and this ADR inherits: a literal that agrees today is the state the work exists to end.

The other fifteen products are not in packages/link-model, and cannot be yet — widening it is phase 01 task 2, blocked on decisions 002 (is a QR code a resource or a representation?) and 003 (do PWAs reference a bio page?). They are declared in this module with a registryNote naming what moves each one, and the gate's success line prints the count of still-declared products with the sentence "this number should only go down." That is the honest position: this is not a second registry competing with link-model, it is the same list in the only place that can hold it today, with the migration written down and counted.

2. It groups by category, not by family — and the plan said family

plans/01-library.md task 4 says "grouped by family". docs/GLOSSARY.md, written after that plan and adopted by ADR-0012, names eight families inside the collection (Short links, Pages, Cards, Commerce, Codes, Apps, Files, Events) and records that a family is never rendered bare where its name means more than one thing, naming Pages as the one such family. Its stated remedy — name the product instead — works for a page kicker, where one product is meant. It cannot work in a catalogue, which is precisely the surface where bio pages, static pages and splash pages sit together under one heading, and that heading can only read "Pages".

So the catalogue groups one level up, at the four creation-bearing categories the glossary already names: Resources · Organize · Track · Tools. Every heading is unambiguous. Account is excluded — plans, payments and settings are not things a user makes.

The rejected alternative is worth recording: keep a family field on each product and not render it. That is a field declared and never read, which is the defect class this whole workstream is named after, and it would have been the third one shipped in a module whose doc block forbids it.

3. ?new=1, honoured in one place

One parameter name, read by one hook — useCreateOnArrival — wired into the fifteen list pages whose products promise a panel. A page that can create something calls the hook with the same function its own Create button calls; the parameter is consumed and stripped, so a reload does not reopen the panel and the URL the user shares is the list page.

The rejected alternative is what LinksPage already had: a useEffect reading searchParams per page. Seventeen copies of a rule is seventeen chances to spell it differently, and the two spellings this repository already had (?compose=1 against a registry that said ?new=link) are what that looks like after one round.

Every product therefore declares opens, with exactly two values:

  • panel — the createPath carries ?new=1 and the destination page opens a drawer, modal or inline form on arrival.
  • page — the destination is the create surface: the QR builder (the one product in the application with a create route of its own), the five AI tools and the two generators.

There is no third value, because "it navigates somewhere and you work out the rest" is the state this surface replaces.

4. The compose action opens the catalogue

The topbar's primary button and the mobile FAB pointed at /links?compose=1 — the short-link modal, whose type dropdown was the widest product list in the app. They point at the catalogue now, and the dropdown is deleted: /links creates short links and only short links, which is ADR-0008 finished rather than extended. The dashboard's paste box still goes straight to a new short link, because it already knows the type and the catalogue would be a step backwards there; its path comes from the navigation registry rather than from a literal in the page.

What is deliberately not here

Entitlement state. Task 4's own line says "with description and entitlement state", and this ships without it. That is not an omission by oversight — it is the same rule as everything above, applied to itself.

There is no user-facing read of a plan's effective quotas. The merge that resolves them (COALESCE(p.settings,'{}') || COALESCE(u.plan_settings,'{}'), ADR-0013) exists in one place, GetEffectivePlanSettings, and is called only by PlanLimitService on the write path. GET /api/v1/account/plan returns users.plan_settings — the per-user override column alone, not the effective value. Rendering a "Pro" badge on a catalogue card today would mean either re-implementing that SQL merge in the browser, which ADR-0013 exists to prevent, or printing a claim nothing checks, which is what the retired admin Plugins page did four times over (ADR-0014).

plans/02-entitlements.md task 5 — "Show entitlement to the user… the catalogue surface (phase 01 task 4) displays what the current plan includes" — already owns this, and its dependency table already says it renders into this surface. It is blocked behind decision 005 with the rest of phase 02. The surface it renders into now exists; the badge arrives with the check behind it, not before.

Consequences

Adopted, and outliving this slice:

  • A create route is a promise, and the build holds it. scripts/check-catalogue-parity.mjs rule C4 fails when a product declares opens: 'panel' and the page the router mounts for its path never calls useCreateOnArrival. This is the rule the slice was written around, and it is the first check in this repository that follows a path through the router to the page rather than stopping at "the route exists".
  • The omissions are written down. EXCLUDED_SURFACES names each create-shaped surface deliberately absent, with its reason, and the gate fails on a key that is no longer a route or that the catalogue also offers — the same shape as UNLISTED_ROUTES and for the same reason. A list that is quietly incomplete is the defect being fixed; a list that is loudly incomplete is a decision.
  • The page holds no product. Rule C5, which is ADR-0015's rule 2 applied to a second kind of list: a second catalogue starts with one hardcoded card. It reads the directory, not the file, and it did not at first: an adversarial pass beat the single-file version in one move by putting the list in pages/catalogue/featured.ts and importing it — the page kept its shape, held no literal, and the gate stayed green while the catalogue had been replaced by a hand-maintained strip. check-navigation-parity.mjs had already lost and learned this same argument about components/layout/, which is why the remedy is the same one, and why the lesson is worth stating twice: a rule that names its subjects is a rule that stops at the file someone remembers to add.

Accepted costs:

  • Fifteen of twenty-three products are declared rather than derived, and will be until phase 01 task 2 unblocks. The gate prints the number on success rather than hiding it.
  • The catalogue cannot prove it is complete. C2 holds it to the eight the registry knows; nothing can check the other fifteen against a list of "everything creatable", because no such list exists and inventing one would be a fourth catalogue. What closes that gap is task 2, not another script.
  • Nothing can catch two products wired to each other's page. Swap pixel's and project's createPath and every rule still passes: both destinations exist, both pages read the parameter, no id or path repeats. For the derived eight the registry supplies the mapping and it cannot drift; for a declared product, "this path belongs to this product" is a fact no file holds. Found by an adversarial pass, and stated here rather than answered, because the honest answer is task 2 — a widened registry makes the mapping derivable and the whole class disappears.
  • The catalogue files two products where the glossary has no category for them. Email signature and Notification handler sit under Tools; docs/GLOSSARY.md defines Tools as "AI tools, Uploads, generators" and names neither product in any category. An extension of the glossary rather than a contradiction of it, recorded here so the next vocabulary pass reads it as a decision rather than an accident.
  • The topbar's primary button is one click further from a short link. It said "New short link" and now says "New" — not "Create", which was the first choice and was wrong twice over: the button opens a launcher rather than creating anything, and the modal it used to open submits with a button labelled "Create", so one screen carried two controls with the same accessible name. link-detail.spec.ts found it by failing on an ambiguous locator, which is a live spec catching a real accessibility defect rather than a test needing a nudge. packages/link-model has called this surface "the New launcher" since it was written. The dashboard paste box and the /links page's own button both still go straight to a short link.
  • /data is not offered. Data records are collected from visitors rather than authored (docs/GLOSSARY.md, Collect), and the page carries no create control. Recorded in EXCLUDED_SURFACES, not silently dropped.
  • /uploads is not offered either, and that one was found the hard way. It was a product in this slice's own first draft — "Store an image or document to use anywhere in the app", opens: 'page' — and the gate passed it, because C1 checks that a route resolves and C4 only follows panel products to their page. The live spec is what caught it: /uploads is a nine-line component rendering one PageHeader that reads "File and image gallery coming soon". No control, no form, nothing to open. A card advertising it would have been non-negotiable #7 broken on the surface built to enforce it, which is the whole argument of this ADR failing at its own first attempt. It is in EXCLUDED_SURFACES with that reason, and the honest limit is stated with it: no static check can tell a create page from a placeholder, which is exactly why the spec drives every card in a browser rather than trusting the gate.

Not fixed here, and on the ROADMAP under LATER:

  • The dashboard's four hardcoded create tiles, which are now a fourth partial product list beside a complete one. They are the surface navEntryOf() in the navigation gate was taught to read, and folding them into the catalogue is a dashboard change, not a catalogue one.
  • NotificationHandlersPage's create surface is an inline card toggled by a button that flips its own label to "Cancel" — it honours ?new=1 correctly and is the interaction shape the other pages were migrated away from (studio/docs/for-developers/interaction-patterns.md).
  • BiolinksPage and WorkspacePage do not reset their create form when it opens, so arriving at ?new=1 after an abandoned attempt shows the previous input. Both matched their own Create button exactly; changing that is a behaviour change in nine other pages' shape.

References

  • AUDITS-081226.md audit 04 — the whole surface: ~24 products, three disagreeing taxonomies
  • ADR-0008 — /links is the short-link collection, which this finishes on the write path
  • ADR-0012 and docs/GLOSSARY.md — the collection noun, the families and the rule that decided the grouping
  • ADR-0013 — why entitlement state is not displayed here
  • ADR-0015 — derivation over declaration, and the rule this ADR applies to a second list
  • .station/jobs/001-renaissance/plans/01-library.md task 4 · plans/02-entitlements.md task 5
  • Evidence: .station/jobs/001-renaissance/evidence/before-after-catalogue.md, .station/jobs/001-renaissance/evidence/verification-runs.md

Source: docs/decisions/0016-the-catalogue-is-one-registry-and-every-card-opens.md

Library