Prototype

Patterns

Settled interaction and layout choices. Follow them unless the reference says otherwise.

Lists and rows

  • A row that names a thing opens that thing's page when clicked. Controls inside the row (switch, menu, install) do not.
  • Row actions: the primary action first (for example Try in chat), the ⋯ menu always last. Destructive items live inside ⋯, never next to the primary. Reveal secondary actions on hover; the row keeps its height.
  • Metadata that belongs in a column goes in its own fixed-width, left-aligned column so it lines up down the list. Do not right-align chips against the controls.
  • Collapsible groups: the chevron rotates inside its own small box, never the whole cell. Indent children by a small step and align guide lines to the start of the text.
  • Show a short preview with View all on a home view; the full view paginates at 20. Numbers in a badge sit beside their heading, in a pill.
  • Use Life's Pagination, centred under the list, and only when there is more than one page.

Roles and locked controls

  • Every view a role can see has the same layout. A consumer (read-only) view never shrinks rows, drops controls or shifts content. Replace an editable control with a locked read-out: a lock icon plus the value, same height as the control it replaces. Do not mute or dim controls to show they are not editable.
  • Where a row's action is absent for a role (the remove button, the ⋯ menu), keep its space with an invisible spacer of the same height, so editor and consumer rows match.
  • All single-line rows share one minimum height (48px) in every list on a page, whether or not they carry an action, a tag or a menu. A row with two lines (name plus description) may be taller, but all two-line rows match each other.
  • A row whose only action is Remove or Delete shows a red trash icon button on hover and keyboard focus, with its space always reserved. Rows with several actions keep the ⋯ menu.
  • Shared row helpers (the ⋯ menu, a select, a locked read-out) are changed only where the user asked. A one-off icon or style change gets a local variant, never an edit to the shared helper that every list uses. If a helper did change globally by mistake, put the other places back.

Page structure

  • A page toolbar (search, a filter button menu, the primary action) is its own block: search left (280px), filter then primary action right, all at size="lg". It sits outside the section containers, spaced from the first heading by the same gap as between sections (24px), never tucked into the first section.
  • The filter is a secondary Button with a menu: the label is the current choice, the selected item is marked, and a chosen scope may show its icon. It is not a bare dropdown.
  • A page with two or more groups gives each group a heading ("My keys", "Slots waiting for you") with the same gap below every heading.
  • Where a row shows a name and a second fact (a team, an environment, an owner), put the second fact in its own aligned column, regular weight, tertiary ink, with its icon. Do not run it inline after the name.
  • Heading and description pairs use a 6px gap. Remove the heading's bottom padding rather than adding negative margin.

Headers and navigation

  • One header row for the page: title on the left, the main navigator (tabs) centred, search, refresh and the scope picker on the right.
  • Breadcrumbs show where the thing sits in the app, such as Customize / Skills / ux-copy or Customize / Plugins / design / ux-copy. They never show file paths. Show a path only through an explicit "Open in Finder" or similar menu item.
  • The back button sits before the breadcrumb on a detail page.
  • Detail page order: back and breadcrumb, then the header (title, mark, actions), then a three-cell stat strip, then the body. The toggle comes first among the actions, then Edit, then Try in chat, then ⋯.

Search and filters

  • Search starts as an icon and expands into a field. The field gets a hover background, a slight border, and a lighter focus colour.
  • A scope or level picker is a grouped menu (Local, Cloud) with an "All" option that merges everything.

Install and level flows

  • Install opens a menu of levels (this computer, myself, my team). A level can be added or removed later. The button then reads Installed · <where>, or Installed · N places.
  • A marketplace or featured item has a Details button as well as Install.
  • Names and logos: the featured banner shows the logo bare beside the title, with no tile.

Type

  • Body text is 14px unless the user says otherwise. Text has no 14px step, so override its size token on a wrapper and log it in GAPS.md.
  • Every heading uses one weight. Do not mix regular and medium headings on a page.
  • Labels that sit above a value are small and tertiary; the value is larger and medium.

Naming

  • Do not use two words for the same thing ("level" and "stays in"). Pick one and use it everywhere.
  • Do not show a badge or label whose only job is to restate the page it is on (a "Skill" badge on the skills page).

Create versus edit

  • Creating a thing may open a side pane or dialog. Editing an existing thing opens its own page with the same form, a breadcrumb back to the list (Environments / <name>) and the footer actions (Discard, Publish) at the bottom of the page. Never send an edit to the sidebar or a pane.
  • Before building, ask for the product model in one line: what is a parent of what, what is locked by default, how many of each a person can pick (for example one folder locally, one branch per repository in the cloud). Screens built on the wrong model are the most expensive rework.

Pickers and menus

  • Multi-level choice (a repository with its branches) is a menu with a submenu per group, showing the current choice at the trailing edge, not one long flat list.
  • Chosen items float to the top of a picker when it opens. Locked defaults show checked and cannot be turned off.
  • An add action ("Add new folder…") sits at the top of the menu, followed by one line separator (Separator variant="line"). The default separator is 20px of blank space, so never use it to draw a line.
  • Once a session starts, its pickers stay readable at full ink and cannot open: use the component's readOnly state (CodeComposer.Prompt readOnly), not disabled. Do not dim them and do not add a "fixed for this session" note.
  • A control beside a text field matches the field's height: Button size="lg" (36px) next to a TextField.
  • Choice lists use the real Radio with its own label and description. Do not place a radio as an icon inside another row component, or its circle misaligns with the label line.

Icons beside text

  • An icon next to text takes the text's colour (text-inherit), not its own tone, and its size matches the line (16px beside body text, 14px beside small text).
  • Icon-to-label gap: 6px on tabs and rows, 8px between a leading icon and a title, 4px between a label and a brand logo. Never widen or shrink it on your own; change it only when asked, and record the value.
  • Give each kind of thing its own icon (an environment variable and an HTTP secret differ). Tags that only restate the icon are removed.

Out-of-scope pages

  • When a prototype is about one area, mute the rest: a disabled sidebar item, readable but not clickable. Do not hide it, do not grey the whole page, and send any link into a muted page to the live page.
  • Text on disabled or locked things keeps its normal ink unless the user asks otherwise.