Docs menu

Docs Under the hood1.10.1

Interface guide

The design system says which tokens and building blocks exist. This page says how a screen uses them, so that every view feels like the same app. The rules come from the OpenSpec capabilities app-shell, task-list-presentation, keyboard-shortcuts, settings-navigation and design-system; where a rule is enforced by a test, the test is named.

On this page

Ten rules#

  1. Three columns, three scrollers. Sidebar, content, panel: each fills the viewport height and scrolls alone. Nothing else scrolls vertically; the board's columns and the calendar grid are the only designated regions (data-scroll-y). Enforced by the layout check and budget.test.tsx.
  2. One page template. Every view renders PageHeader above PageBody. One title size, at most two visible actions, an overflow menu, one Help action. Enforced by pageTemplate.test.ts.
  3. Show what is set, offer what is not. An empty property is an entry in an "Add" menu, not a row. A task shows at most seven things by default.
  4. Chrome above content, never between. Filters, layout switches, disclosures and hints live in the page header or its menus. Enforced by budget.test.tsx.
  5. Keyboard hints are discoverable, not printed. Shortcuts appear in tooltips, menus, the palette, the cheat sheet and the sequence spotlight (the card that waits after a hesitated g), never as badges in the chrome, unless the "Show shortcut hints" preference is on. Keys are drawn with Keys from web/src/app/shortcuts/Kbd.tsx: one keycap per chord, "then" and "or" between them, and a keycap never wraps.
  6. One row, one chip system. All task rows come from TaskRow; metadata uses three styles (tone text, label chip, neutral chip).
  7. One settings pattern. A setting is a SettingRow inside a SettingsSection; one Help action per page.
  8. Tokens or nothing. No raw palette, size, radius or shadow class in a screen; no legacy btn-*, .input or .kbd class; no native title attribute. Enforced by lint.test.ts (the not-yet lists in notYetMigrated.ts only shrink).
  9. Every core screen has a story with a visual baseline in light, dark, 375 and 1280 px. A screen is core when the screen inventory (scripts/ux-audit/screens.json) marks it as used daily or weekly; make ui-lint runs the story-coverage script, which fails naming a core screen without its story.
  10. Delight is quiet. Transitions stay within the motion tokens and respect reduced motion; nothing bounces, nothing promotes. The one considered moment is the completion sequence (motion-v2): the op is written at once and the list keeps a departing row for 400 ms while the check pops, the strike draws and the row folds away.

The page template#

<PageBody width="list">
  <PageHeader kind="day" title="Today" meta={date} help="today" briefing={sentence}
    actions={<Button variant="ghost" size="sm" icon="filter">Filter</Button>}
    overflow={<><MenuItem … /><MenuSeparator /><MenuItem … /></>} />
  …
</PageBody>

One inset surface (precision-shell). From 768 px the page sits in one content surface, 8 px from the window with the surface radius and a hairline, on the canvas that also holds the sidebar. Content fills the surface: there are no page widths any more. width="form" keeps a settings or form page's fields at 42 rem from the left edge, while its header spans the surface. Every page's title and first row share one left edge (the surface's padding), and a docked panel (project activity, the planning list, a task beside the triage card) narrows the surface from its right side. Nothing slides. The panel's width is one custom property, --panel-w (26 rem, 30 rem from 1440 px; on a split page about half the content, or the width the user dragged it to). Enforced by pageTemplate.test.ts, pageRhythm.test.tsx and the frame step of make e2e.

Two heads (kind). A day page (Today, Upcoming: kind="day") has a top row with the sidebar toggle and the actions, then the title at the display step with the lead line (meta: the date and the day's totals) beside it at the prose step, then an optional briefing: on Today and Upcoming the sentence of app/Briefing.tsx, worded from the pure facts of lib/briefing.ts (OpenSpec change briefing). Every other page (the default, kind="tool") has one compact 46 px row: the sidebar toggle, the title at 14 px with its dot or icon, the lead line beside it at the metadata size, then the actions, the overflow menu and Help at the right. The lead line (data-page-lead) is inside the one header element, so the interface budget's "rows of chrome" is unchanged. Below 768 px the shell's bar shows it as its subtitle.

The sidebar toggle is the first control of every header from 1024 px: the shell registers the sidebar's state in ui/patterns/sidebarToggle.ts and PageHeader renders it, pressed while the sidebar is expanded, with [ in its tooltip.

A view's toolbar (views-and-display). A saved view and the New view page have one toolbar row under the compact header (ViewToolbar in app/views/): the query's conditions as chips in words with "Filter" on the left, the filter and display buttons on the right. It is the second element of chrome, in place of a quick add. The filter panel opens in place under it when asked for (closed by default on a saved view); the display panel (DisplayPanel) is a popover, and every view option lives there, never as selects in the header. A view's title is the breadcrumb ViewsCrumb ("Views › name"). The row properties a view hides reach TaskRow as hidden.

Panes follow the window (tablet-layouts). The shell measures its frame (useRoomFold): while a task is docked and the list would get less than 25 rem (LIST_ROOM_REM, foldForRoom in app/sidebarLayout.ts), the sidebar folds to its rail until the panel closes, and comes back when there is room. Turning a tablet, a split view or Stage Manager keeps the open task, the list and its scroll position; the layout check's tablet resize step fails otherwise.

A header follows its own width (tablet-header-room). A header narrower than 40 rem on touch, 28 rem with a mouse (useNarrow in ui/useHeaderRoom.ts: a tablet beside the sidebar, a list beside the docked panel) keeps the phone bar's rules in its own row: Help is the menu's last item, a list passes its phone slots and menu items (usePhoneListActions), Statistics' period is its menu button, a task's path is a back arrow with the nearest step's name (TaskPath back), and the title gives way down to 6 rem before the actions wrap. At every width the lead line shows whole or not at all (useCut), never cut; a page that hands the header different parts measures its own root with useNarrow, not the window.

The header is sticky inside the content column. A string title is truncated; pass a node for an inline rename field. back adds a back action for nested pages and phones. children is a second row (a segmented control, tabs) and counts against the budget. Below 768 px the shell's bar shows the title and the first two actions, so a view declares its header once.

The three columns#

  • Sidebar: the header row and primary destinations pinned at the top, one footer row pinned at the bottom, and only the groups between them scroll (data-sidebar-scroll). The header row is SidebarHeader: a left slot holding the workspace control (WorkspaceControl: the workspace's 20 px picture, WorkspaceMark, which is its catalogue icon on its hue's soft fill, else its initial on that fill, else on the sunken surface, then its name on one line) and search; the rail shows the picture alone, named by the workspace. The app's mark is never a workspace's picture. Items come from SidebarItem, groups from SidebarGroup. Tones: a row is quiet (text-faint) at rest, default on hover and focus, and strong on bg-accent-soft with an accent icon when active (data-tone). A group's controls (All, Find, New) use .ui-reveal: hidden by opacity until the header has the pointer or focus, always shown on a coarse pointer, never removed from the Tab order; the header's name carries its count ("Projects, 12 items"). On a fine pointer from 768 px More is a group heading that opens a menu, never a row with an icon. The column is --ot-sidebar (the canvas with 3 % of the accent, 4 % in dark) with a fine pointer from 768 px and the surface in the drawer; sticky group headers read the same --sidebar-bg. The footer row is the account control (avatar and name, opening a menu with Settings, Help, Keyboard shortcuts and Sign out), then the assistant, the bell, the sync dot and the collapse control; while time is tracked a pill (time, title, Stop) takes the name's place in the same row. Under it the sidebar ends with the brand line (SidebarBrandLine, sidebar-brand-and-row-grid): the instance's 14 px mark, its name and the version this device last received (lastServerVersion, recorded by every auth/status read), at the metadata size in the faint tone, muted on hover and focus. It opens Settings › About and carries the What's new dot while there is an unread entry; a branded server shows its logo and name there; the rail shows the mark alone. Counts: only Inbox and Today show theirs at rest; a project row uses countMode="hover" (shown on hover or focus, always on a coarse pointer), filter and label rows countMode="hidden", and every count is in the row's name through countLabel. With the user's Every list counts (user_prefs.sidebar_counts, sidebar-polish) project, label and view rows use countMode="swap": the count at rest in a slot as wide as the menu button, the row ui-swap-row and its menu ui-swap-menu, which takes the slot on hover or focus with a fine pointer. The primary destinations follow user_prefs.sidebar_order (orderDestinations in lib/appearance.ts) outside Open Loops first. State is one accent dot (StatusDot) on the entry it is about (the review-due dot on Review, the unread count on Updates), with its meaning in the tooltip and the name, never a filled badge and never on More; the danger colour is for errors. Under the header row, the space switch (SpaceSwitch, notes-space) is a SegmentedControl of Tasks and Notes (two icons in the rail), device state in lib/sidebarSpace.ts: the route decides it where the screen is a task or a note screen (spaceOfView), neutral screens keep it. The Notes space draws All notes among the destinations and the lazy notes/NotesSidebar.tsx (Pinned, Recent) in the scroller; it is not a destination and does not count against the six.
  • Content: the page template. The shell gives it the scroller; a view never adds one of its own.
  • Panel: owned by the shell (PanelHost). Views open a task with openTaskPanel(id) (or setPanelTaskId) from app/panel.ts; the address carries ?task=<id>. Other occupants (project activity, the planning list) use openPanel(key, render).

On a phone#

Below 768 px (OpenSpec changes phone-v2, precision-phone):

  • Loading moves nothing: a screen draws what depends on local data once it is read, with the Skeleton until then, never an empty state or empty groups first (lists and Statistics through useListReady and their own ready; Today and Upcoming also wait there for their briefing, which useBriefing answers only once the tasks, the cached notifications, the review row and the preferences are read; the Plan, Projects, Updates, the sidebar and the Display screen through useLiveTasks, useProjectsLoaded, useTasksByIdRead and useSidebarRowsLoaded). A settings card that asks the server calls useSettingsPending(waiting); the section's SettingsPendingGate keeps its cards invisible until each has answered once, 600 ms at most, then never hides them again (app/settingsPending.tsx). The interface audit's M12 checks it.
  • Bar: the shell's PhoneBar takes the page title, a subtitle (the board's column, the Inbox's planned count) and two slots. A day page (Today, Upcoming) keeps its head in the page instead (precision-phone D1): PageHeader renders the display title, the date line and the briefing, scrolling with the list, and sets day on the page bar, which then shows only the menu button and the actions, without a hairline. A page with Back shows it in the menu button's place. Help is the last item of the bar's menu (PageActions helpInMenu, phone-header-room: the menu draws what MenuTailContext hands it); a page without a menu keeps the Help button. A list passes its actions with PageHeader barActions: Process the Inbox or Ask, then its display options (usePhoneListActions in task-list/ListChrome.tsx); Select tasks, Display mode, the duration filter, a project's Layout, Share and Add a note are overflow items (PhoneMenuItems, phoneGroups), and an active duration filter is one compact chip in the bar that clears it (phone-bar-overflow). Nothing sits between the bar and the quick add.
  • Bottom: the tab bar (Inbox, Today and Upcoming in user_prefs.sidebar_order, then Search; the current tab in text-strong, never the accent; tabs 56 px tall, TAB_HEIGHT) and the add button. While the list scrolls down the bar drops to 40 px of icons (44 px on touch) and the button slides out; any scroll up, the end of the list or 600 ms of quiet bring both back (usePhoneChrome); reduced motion keeps them still. While the button is offered the content column keeps its footprint at its end (--add-room, data-add-room), so whatever ends a page scrolls clear of it; a screen without the button ends at the tab bar. A page that fills the column and scrolls inside itself (the calendar's Day and Week, the notes graph) is a .page-fill: it runs down to the tab bar and its scroller ends with the room (.add-room-end; phone-fab-scroll-room). The layout check scrolls every screen and its scrollers to their ends and fails on a control left under the button (addButtonRoom). The toast sits above both (--toast-lift). A screen that ends in its own action has no add button, so the button never stands on it: the weekly review's steps, Close the day, Focus and the routine editor (offersQuickAdd in router.ts, phone-fab-clearance), and while tasks are selected the selection bar takes its place.
  • Rows: 44 px with a one-line title, 64 px with two (precision-phone D2, phone-row-titles): the title at 14.5 px on up to two lines, the time before it only where there is one, and one cell on its first line at the end that phoneCell() marks data-row-phone (the date, else the deadline, else the assignee's avatar, else the project's icon or colour dot); the rest of the row's facts and the counts are on the task page (index.css, "The phone row"). A list with a row of its own follows the same rule with .title-phone on the title and, for a 44 px row with parts beside it, .title-phone-row (phone-titles-everywhere: Notes, the Month's day list, the Week and Plan agendas, Close the day, the command bar's results); rows fixed by a grid keep truncate. Swipe right completes (reopens in Completed), swipe left opens the Schedule sheet (rowSwipe.ts, task-list/RowSwipe.tsx): a 12 px direction lock, the action named at 64 px, fired at 96 px or on a flick, a return under 32 px. No swipe on a fine pointer, a press in the 20 px strip at the left edge (it belongs to the edge swipe, edgeSwipe.ts: with the same numbers it goes Back on a page with Back and opens the closed drawer on a top-level page; the installed web app on iOS keeps the system's back swipe instead), a read-only row, a card, the inline editor or while anything is ticked. Complete and Schedule… start the touch row menu. Selection is the row's grip (RowGrip): a tap ticks the row or unticks it, a hold on the grip does the same without moving, and movement drags at once (gripSelect in task-list/RowSwipe.tsx). The body's own long press is the actions menu's gesture (onHoldRelease in lib/dnd.ts); movement on a ticked row after its hold carries the selection. Pulling the page down from its top syncs now (pullToSync.ts, PullToSync.tsx, loaded only on a coarse pointer): touch events only, a 12 px vertical lock at least twice as far down as sideways, a mark that follows at half the finger's travel and syncs from 64 px; it leaves the edge strip, inner scrollers, a focused field, a selection, touch-action: none handles, a lifted drag and open dialogs alone.
  • Sheets: menus and pickers below 640 px are bottom sheets: a handle, 90 dvh at most, the scrim behind. A sheet follows a drag down from its handle or header, and from its body only while that is at its top; released past 80 px or flicked it closes, otherwise it springs back (useSheetDrag in ui/overlay/sheetDrag.ts, shared with a Dialog shown as a sheet; reduced motion keeps the sheet still). A Dialog with dismissable={false} ignores the drag as it ignores a tap outside, and has no handle. A task is never a sheet: it opens as its page.
  • Facts: a tooltip never opens on a tap on a control, so what a control's tooltip says beyond its name and its key is also inside what the control opens (a menu item's description, a menu group's heading, the sheet's title, the dialog's text) or in a line under it drawn only without a fine pointer (pointer-fine:hidden), in the same words (phone-control-facts). No second tap target beside the control, and a list row keeps its height.
  • Drawer: the bar's menu button opens the sidebar as a 20 rem drawer (85 vw at most) of 48 px rows, without the destinations the tab bar holds.
  • Task page: the facts are one card of 44 px rows (TaskFacts stacked): the facts with a value, Do and Deadline, priority above 4, then More properties (stackedFirst()). The completion circle's 44 px target starts at the top of the title's first line and reaches down beside the title, so none of it lies under the bar's Back (TaskHead, phone-task-page-targets); the circle itself stays centred on that line.
  • Calendar: one row under the bar (phone-calendar-chrome): Previous, Today and Next, then the view as one menu button with its name (CalendarRangeSwitch below DESKTOP_HEADER_QUERY); the Calendars toggle is an item of the page's menu. From 768 px the header keeps the five-part switch.
  • Statistics: one row under the bar (phone-stats-period): the period as one menu button with its name (PeriodChooser below DESKTOP_HEADER_QUERY), then the page's menu at the row's end. From 768 px the header keeps the radio group of five. The public list's heading is TruncatedText wrap="phone": two lines, then cut; a view's name in "Views › name" is TruncatedText on one line.
  • Budget: two rows of chrome above the first task (the bar and the quick add; a day page's head is its header, as on a desktop); the bottom chrome never covers a row; every touch control is at least 48 px. The layout check also runs the phone screens at 360 px in German and French.

The task page#

A task opens as its page at /task/<id> (task-full-page); only Process the Inbox and the Inbox keep a split and dock it (setTaskSplit in panel.ts, from 900 px, SPLIT_QUERY; from 600 px the task opens as a sheet over the list instead of its page, tablet-layouts). The Inbox docks the cursor's task as it moves and gives the slot an empty pane, "No task selected" (useInboxSplit, inbox-split), only from 1440 px (SPLIT_EMPTY_QUERY, task-list-width): narrower, the list keeps the whole width until a task is under the cursor. With the synced user_prefs.task_open set to panel (task-side-panel), every list keeps a split of the kind panel instead (useSidePanel in app/sidePanel.tsx, called by TaskListView and useListKeys): it is open or closed per device, follows the cursor only while open (followTask), reopens only on an explicit open (openTaskPanel), and closes only from its Close or Escape inside it (closeTaskPanel). The docked panel's left edge is PanelResizeHandle; the width is --task-panel-w on the root, kept per device and bounded in index.css. openTaskPanel stays the one way to open a task. taskTrail.ts remembers the list it came from (address, name, tasks in order, scroll), so the header shows the breadcrumb, "n / m" with ↓ ↑ (j / k) and Close, and Esc returns to the same row and scroll (selectTask, settleTrail). The page (TaskPageView) has two columns: content (checkbox and title, notes never clamped, custom fields, subtasks as one bordered block with progress, attachments, the Comments, Activity, History and Time tabs with the composer pinned at the bottom) and facts (TaskFacts: Schedule, Details, Labels, Project as labelled rows), which come between the title and the notes in reading order and show above the notes below 1024 px (task-panel-notes-below). An unset fact reads as its action in text-faint ("Set a deadline", "Add a place"); every row opens the facet editors (FacetEditor popovers with Clear and Close, the When parts on one segment of the When popover) through usePartEditor. The words are Do, Start, Deadline, Evening. The docked panel (TaskDetail) keeps the four facet lines built by facetsOf with Add, then the custom fields, subtasks and attachments, then the notes in full (never clamped, no inner scroller: they grow in the panel body, the one scroll region), then the tabs. Composers sit in ComposerFrame (field, tools left, round Send right).

Settings#

The sections (Account, Workspaces, Appearance, General, Language and region, Notifications, Capture, About, Integrations, Data, People, Server) share one layout (precision-settings). A long section is an overview of sub-pages at /settings/<section>/<page> (settings-subpages): flat hairline rows with icon, name and state in a word, from the pages of settingsSections.ts; no page runs past about 1.5 screens (scripts/ux-audit/settings-heights.mjs).

  • From 1024 px: the compact header is a breadcrumb ("Settings › Notifications", the sidebar toggle first, Help at the right). Under it, a 228 px navigation pane sits on a hairline: the search field with its / key, the group labels, and one 30 px row per section, the current one on the selected surface. The page opens with a 22 px title and the section's one line, then its sections at 45 rem (Workspaces 56 rem).
  • Below 1024 px: the list is its own page, with the profile card, the descriptions and the free-software footer, and a section, then a sub-page, opens as a page with Back to the level above.
  • Page head (settings-foundation): every section and sub-page, at every width, starts with its lead line (one sentence on what the page is for, a lead entry in the copy table), then a scope line when the page is not about the viewer's account alone ("Applies to everyone on this server" for People and Server, "This device only" for device pages; scope in settingsSections.ts). The 22 px title shows from 1024 px; below that the header carries it.
  • Sections are flat, never cards (settingsAnatomy.test.tsx fails on a card surface). A section has a heading that outranks its rows (body size, semibold, the strong colour) without an icon (the section table's icon shows in search results), one line, and rows between hairlines. A page's only section, or one titled like the page, shows no heading: its line becomes the page's lead line, so no page repeats its title (the anatomy test fails on a repeated title or a missing lead line). It has no header action. Its line may end with Learn more (SettingsSection learnMore, a Help screen id), which opens the section's guide beside the page; that is the only way a section reaches Help.
  • Rows: a row shows state with a StatusIndicator (a dot and its word) beside its label. The tone follows one rule: ok working, off switched off on purpose, warn when it keeps a feature from working or leaves people without a way back in (no backup has run, outgoing email not configured, two-factor off, push blocked), danger failing now (a webhook). A section's overview shows a warn or danger state with the same dot and every other state as plain text. A category such as a role or a token scope stays a Badge; an owner's switch on a personal page carries the "This server" badge (SettingRow scope="server"). A primary action is the control of the last row. Inside a row's control column (data-setting-control), inputs, selects and buttons take the 32 px step. Below 640 px a row stacks its control under the label, except a switch, which stays at the end of the label's line.
  • Saving: a single control (a switch, a select, a segmented control, a radio group) saves when it changes, with no Save button and no toast: its own state is the confirmation. A refused save puts the control back and says why under its row. A form of several fields that belong together (attachment limits, the focus timer's lengths, a workspace's name and colour, outgoing email, single sign-on, speech to text, the audit retention) keeps a draft (useDraft) and shows SettingsSaveBar (web/src/app/SettingsSaveBar.tsx) only while the draft differs: "Unsaved changes", Discard and Save, Save disabled while a field is invalid or, for server settings, offline. While a draft is unsaved, opening another page or closing the tab asks first (the router's leave guard). A form that opens in a dialog keeps the dialog's own Save.
  • Copy: the English text of every section, row, option and notice is one table, web/src/lib/settingsCopy.ts, keyed by the section's heading id. Panels spread cardCopy() and rowCopy() into the primitives and never pass a description of their own.

Rows and chips#

  • A row: a 24 px leading slot (chevron only with children), the checkbox, the time column when the list has one (data-row-time, width --row-time-w: the due time, else the part of the day as its icon (sunrise, sun, moon, named in its tooltip) unless the heading states it, else the deadline countdown), the head (data-row-head: the title, then one run of marks data-row-marks (.row-marks: the priority, the repeat icon and the counts data-row-counts, 12 px icons at the metadata size, on the title's first baseline), the counts in text-faint turning text-muted on hover or focus within the row), the properties, and a trailing group holding the origin (data-row-trailing).
  • One line with a property column (precision-rows, sidebar-brand-and-row-grid): every list row is its own size container (@container/row). From 40 rem of row width the properties are slots on the right (data-row-cell), in this order: project (when the list shows projects), labels, estimate, date, assignee avatar. Each slot holds one kind of fact; the date ends the column, right-aligned, so a list's dates form its right edge. The slots are list-wide tracks (--slot-*, the same in both densities): an empty slot keeps its width, and a slot no row of the list uses is 0 wide. The list decides that once from its rows (useUnusedSlots or listSlotsOff in lib/rowSlots.ts, passed to the row as slotsOff, data-slots-off on data-row-props), never from the rows in view. The head and the slots align on the title's first baseline (align-items: first baseline). The deadline is never a slot (the time column, else the facts); the subtask progress stays in the counts. The column drops the assignee and estimate under 56 rem and the labels under 48 rem. Facts the column does not hold (data-row-rest) take a second line only when there are any. Under 40 rem the same DOM reads as one metadata line under the title, date first. The rules are in index.css under "The property column".
  • One row language (rows-v2; row_detail is retired): a narrow row's line is one run of muted ToneText separated by CSS middle dots ([data-row-meta]; a card's property row has icons and no dots), the date on the due ladder (ladderTone in rowTone.ts: after tomorrow muted, tomorrow default, today accent timed or not, an earlier day danger; the deadline countdown keeps its own steps), repeat as a repeat icon (beside the title on a row, with its word on a card), the priority ring coloured for P1 through P3. P1 and P2 also fill the circle (bg-p1/55, bg-p2/25) so the levels differ in lightness (priority-ring-fill). P3 uses an empty blue outline and P4 the neutral ring. LabelChips (two chips, then "+n") are the only pills of a row. On a fine pointer from 768 px, RowActionCluster (Edit, or Show details on a viewer's row and in a list without the inline editor; Schedule, Priority, More) appears on hover or focus within as a small cluster on the popover surface, floating over the end of the column on a one-line row. The selected row is --ot-selected-row with a 2 px accent bar; hover is --ot-hover. Board cards (shape="card", precision-boards-timeline) have no column: the title wraps to two lines, then one property row where the date (calendar-days), the estimate (clock) and the subtask progress (circle-check-big) lead, the other facts and the label chips follow and the assignee ends the row; the card is the surface (raised in dark) on the column's sunken band, which runs the board's full height and ends with Add a task; Add a section is a dashed column after the last one. No icon-only glyphs.
  • An expanded row (row-expand): TaskRow takes expanded and onExpand; the list keeps one expanded row in its own state (never stored), → and ← open and close it around the subtask fold, Esc closes it before the selection. The details (RowDetails, a lazy chunk, data-row-details) sit under the title column on the row's own surface, no border: the notes as Markdown clamped to 4lh with Show more, the panel's FacetLines read-only with set parts only, the panel's Subtasks without its add line (unless the tree shows them as rows), the counts and Open task. The touch disclosure is data-row-expand at the row's end, from 768 px (hidden on a fine pointer, where → and the row menu's Show details expand, and below 768 px, where a tap opens the task; an expanded row keeps it at every width as Hide details). Cards, compact rows, the row edited in place and departing rows never expand; no row shows details while a drag runs.
  • A row leaves out only what its view or heading states: ListRow.implied from listGroups() (the day a heading names, This Evening, Someday), omitLabel in a label's view and showProject. A new fact a heading can imply is one more field there; a new count is one more entry in rowCounts().
  • Motion on a row (motion-v2): data-departing marks the last picture of a completed task while it folds away (no data-task-id, aria-hidden, inert; counts, the cursor and drops never see it), data-rolled a repeating task rolling to its next date, data-restored a row Undo brought back. Local list changes go through withListTransition in web/src/app/motion.ts (view transitions, at most 40 rows, never for sync); overlays exit on a copy (playExit in web/src/ui/overlay/exit.ts).
  • Counts use tabular figures in the interface face, never a monospace face.
  • Group headers are group bars (ListGroupHeader, precision-rows): a 32 px strip on the raised surface, the label at the metadata size in medium weight and the default tone, in sentence case for every group, and the count faint; kind stays as a hook. A board column passes bar={false} and keeps a plain heading. A project that hides its completed tasks ends its list with "n completed tasks hidden by display options · Show" (HiddenNote). No header is red; how late a task is shows on its row. actionsAlwaysVisible is for a group whose actions are its purpose (Today's Earlier: Move all to today, Reschedule…), and wraps them under the label on a phone.
  • Words: tasks planned for an earlier day are Earlier (a group), "n from earlier" (a count), "still open from earlier" (a sentence), never "overdue"; Statistics' "completed late" and "slipped" and the countdown's "nd over" are measurements and keep their words. i18n.test.ts checks the catalogs.
  • Calendar blocks, Month and Plan rows and timeline bars are ui-block in the project hue (dashed edge without an estimate, dimmed before today, danger edge when late); events from other calendars are ui-block--event, neutral with a calendar dot. No chrome row was added for them. On the timeline (precision-boards-timeline) rows are 36 px with sections as group bars (phone-timeline-rows: 44 px on touch, and below 768 px a 56 px row with the name on a line above its bar and the whole row as the name's button); a bar of 96 px or more carries its title, a shorter one is followed by its length, a late one (deadline or due day passed) by "n days late" in the danger tone; the deadline is a diamond in the warning tone; today is an accent line with a Today pill on the axis, because red means late.
  • Icon sizes: 16 px in rows, 20 px in headers, 12 px in chips.
  • Empty views: one sentence, at most one primary action, one optional link; the key in the tooltip. A list with its own quick add has no "Add a task" button: the field above is the way to add. Every task view renders them through EmptyState in web/src/ui with data (title, action: { label, onClick, shortcut }, secondary), never nodes, so a view cannot add an icon, a second line or a second button. compact is for an empty day inside a list of days. The icon, body and control slots are kept for the settings panels only, until those move to the same rule.

Copy#

Name the action first and the key second, and the key only on fine-pointer devices. Say what happens ("Moved to Home · Undo"), not what the system did. One idea per sentence. In Settings a title or label has at most 4 words, a card's, row's or notice's line at most 90 characters in English (a translation at most 120), and an option of a choice card at most 60; anything longer goes to the guide section the card's Learn more opens, and a safety warning keeps a one-line pointer on the card. web/src/lib/settingsCopy.test.ts checks all of it; confirmation dialogs keep their full consequence. The product words are listed in docs/views.md and docs/tasks-and-projects.md; four different things are never called the same name.

The interface budget#

Every change that touches a screen states in its design how it stays inside these limits (an OpenSpec rule in openspec/config.yaml). The measurable ones are tests.

Limit Value Test
Vertical scroll regions per screen 3 budget.test.tsx, layout check, audit (M5)
Rows of chrome above a list's first item 2 elements (the header, with its lead line inside, and quick add); nothing under the quick add, first-run guidance only as an overlay budget.test.tsx, audit (M2)
Task properties with a value on an empty task; fact groups × rows on the task page 7; 4 × 6 budget.test.tsx (task-full-page), audit (M3: a row's metadata line)
Primary sidebar destinations 6 budget.test.tsx (with the navigation change), audit (M4)
New shortcuts registered, no conflict the shortcut registry test

The limits live in web/src/app/budget.json, read by the tests and by the interface audit, which measures them on the built app at three widths (Design system).

When a feature needs more than the budget allows, the answer is a menu, a chip, a panel occupant or a preference, not another row. Guidance that has to interrupt (the start guide) is a Dialog, with placement="sheet" so a phone keeps the page visible above it; the demo banner is one line above the shell at every width.

Edit this page on GitHub