Skip to content
Studio

0009. The app shell and two editing models

Status: Accepted · 2026-10-19

Superseded in part by 0011 (navigation and the two editing models).

Context

Studio 2.0's worked examples were built from one template, used everywhere:

  • one page head on every page: a display headline, a lead sentence and a facts list above every list and dashboard, so each view opened with an info dump before the work;
  • one editor for every resource: the three-panel canvas (library · canvas · inspector) with zoom, a device toggle, a document dropdown and an object-head card, so a short link (a name, an address and a destination) was edited like a web page;
  • Portico as the app's navigation: the floating, top-centred row of a website, with a menu sheet behind a circle at narrow widths, so the product's destinations were hidden behind a button on a phone and the shell kept treating each view as a page to leave.

The visible results were the defects reported against 2.0: redundant controls, editors that made singular things feel complex, a cluttered phone hero, and header rows that wrapped once a query or a filter was added.

The root cause is the single template, not any one component. The product the examples represent, Cardsite, had already met the same failure and written down the fix:

  • its interaction-patterns rule (studio/docs/for-developers/interaction-patterns.md): list → drawer → editor page. A drawer, with explicit save, for a resource that is a form; an editor page, with autosave and an explicit publish, for a resource with a canvas; one status vocabulary ("Saved", "Saving…", "Unsaved changes"); Create for new and Save for edit; the address field directly under the name; a preview built from the same payload as the save; and never a control the renderer ignores. Cardsite reached that rule after shipping five coexisting editing models in one product;
  • its ADR 0012, "The collection is Resources": one word, *Resources*, for the collection of everything a user makes, with *resource* for one member and each product (Short link, vCard, Page, QR code) as a kind inside it. A navigation that lists products as top-level destinations recreates the confusion that ADR removed.

Decision

The owner decided, and Studio 2.1.0 specifies (packages/system/DESIGN.md, Navigation, Editing, Views and Code):

  1. Two navigation shells. The product uses an app shell: a 248 px sidebar from shell-sidebar-at (1280 px), a 72 px rail of circles from shell-rail-at (768 px), and below that a top bar (title, search, account) with a bottom tab bar (Home · Resources · Create · Analytics). The sidebar holds identity, search (⌘K), Create, Home · Resources (with its four kinds and counts) · Analytics, and Settings and the account at the bottom. Portico's row, menu sheet and circles become the site shell, used only by the public site and the documentation. On Apple platforms the app shell is a NavigationSplitView sidebar on iPad and Mac and a native TabView on iPhone, where Create is a toolbar action rather than a tab because a native tab bar only navigates.
  2. Two editing models, chosen by the resource. Short links, vCards and QR codes are edited in a drawer (480 px for a form; a 920 px stage drawer, drawer-w-stage, with the live preview stage beside a 368 px inspector column; a full-height sheet on phones) with explicit Create or Save. Pages are edited on the editor page, where the canvas is the page: drag from the palette with a drop indicator, a block handle and a floating block toolbar, keyboard moves with announcements, text edited in place, undo and redo, an autosaved draft and Publish.
  3. One status vocabulary for both: Saved · Saving… · Unsaved · Offline · Failed, an icon plus one word, with "Unsaved changes" as the accessible name of Unsaved. The visible word is one word because the navigation rules Studio conforms to require one word in compact chrome.
  4. A collection header on one row that never wraps (title and count · search · Filter · New), with search collapsing to a circle below collection-compact-at, and Home reordered as greeting, Today, the composer, Needs attention and Recent.
  5. Code roles and one Prism-based highlighter, so the documentation, studio-react and StudioKit draw code from one role map.

Consequences

  • The app shell departs from the navigation pattern the pinned Design Standard prescribes for a product's wide and narrow navigation: one row of three groups when wide, and two bottom circles with a menu sheet when narrow (its rules NAV-01, NAV-31, NAV-40, NAV-41 and NAV-42). The Standard has no provision for a persistent sidebar or a tab bar. CONFORMANCE.yaml records these rules as delegated on the data-shell hook: the site shell meets them as before, and the app shell's form is stated in the evidence with a pointer to this decision. The same applies to LAY-24 (the frame sits beside the sidebar) and LAY-30 (search and Filter share the title's row). NAV-26 (a rail of circles for tool-heavy apps) is now met, where 2.0 recorded it as not applicable. This is a recorded reading of the Standard, not a measured pass: a reviewer who reads those rules strictly would call them unmet for the app shell, and the honest fix is a Standard revision that names an app shell, which this repository does not own.
  • drawer-w changes value from region (300 px) to 480 px. Code that read it as an inspector width must read region.
  • Studio's CSS gains the app shell (css/shell.css). The rule in AGENTS.md that navigation belongs to Portico now holds for the site shell only, and that file needs the same amendment.
  • The 2.0 editor keys (context-pill, context-label, object-head*, dock*) are kept. The app shell's navigation does not read them, but the editor page does: its toolbar's context pill (context-pill, context-label), its phone-width dock (dock*) and the type card in its inspector (object-head*); StudioKit's StudioObjectHead, the head of the Apple sheets, reads object-head* too. Retiring any of them is a 3.0 change that must first move those readers.
  • The page head with display headline, lead and facts stays, for site and reading views only.
  • The web example, studio-react, StudioKit and the e2e tests are rebuilt against these rules; the tests check single-row headers at every width and query state, one shell representation at a time, the drawer's save and guard, drag and keyboard reordering, inline editing, and one lime action per view.
Contents