Source ownership

All paths below are relative to the allternit-ai repository.
  • src/shell/rail-layout.ts owns the shared desktop minimum and default widths.
  • src/hooks/usePanelLayout.ts persists user widths; the default is 286 pixels and existing saved values remain intact.
  • src/shell/ShellFrame.tsx uses the same fallback width and bounds its legacy phone drawer to 320 pixels or 86vw.
  • src/shell/RecentsPanel.tsx owns the named expand button, visible New action and secondary-actions popover. Home, Browser, Code and pinned sections share it.
  • src/shell/ShellRail.tsx shows one mode orb (rail-mode-orb) for the mode wheel. It is the same control as the home button above the composer; the old row of mode buttons at the top of the rail is gone. Terminal and Code sessions list in Recents in every mode. Overlays opened from the rail (account menu, Terminals popover, + New menu) are white with neutral fills, not tan. The account menu lists saved accounts first; on Desktop they come from a local list of id, name, email and avatar, never a token.
  • src/shell/rail/RailWordmark.tsx picks the wordmark for the current mode.
  • src/shell/rail/active-tab.ts (activeRailTab()) decides which one rail row is lit. Rows are rendered through one ordered map (renderOrderedRailTabs), so no two rows are lit at once.
  • src/shell/rail/rail-tabs.ts keeps the per-device tab order and hidden set (the phone drawer reads the same visibility storage). rail-tabs.test.ts covers the reorder and hide round trip. The Edit sidebar editor lives in the rail and uses it.
  • src/shell/rail/RailSearch.tsx is the one search field at the top of the Home rail. Typing filters Recents, Enter opens Search, ⌘K focuses it, and it never autofocuses. The Teammates section and the recents search box are removed.
  • src/shell/rail/SessionHoverPreview.tsx shows a last-messages card after about 400 ms of mouse hover on a session row. Mouse only.
  • AProtocolWordmark and GizziCodeWordmark take an optional spellKey prop: when it changes, the wordmark spells in letter by letter. Static under reduced motion.
  • The collapsed rail’s bot strip (FloatingWidgets, QuickBotStrip) is a click-only stack: main bot, next bot, +N.
  • In Code mode the rail shows All sessions (view type code-threads, lit through activeRailTab) and a plain list; the List, Grid and Deck switch moved to the overview.
  • Catalog uses the Phosphor Storefront icon and More uses DotsThree.
  • src/shell/ShellRail.tsx keeps existing navigation and session actions, renders two-line conversation titles, and separates account name from plan.
  • src/fabric-session/phone/phone.css defines the two-line phone-recent-title class used by PhoneDrawer.tsx and src/shell/rail/CodeSessionPhoneList.tsx.

The standard view header

Standard views share ViewHeader with the ViewToolbar capsule, in allternit-ai under src/components/ui/polish/. ViewToolbar draws Search, Filter, Layout and New in that order; the layout props are optional, so a view with no layouts leaves the Layout button out. view-layout.ts cycles List, Grid, Deck and remembers the choice per view id. ViewItem draws one item as a list row, grid card or deck card, with Rename, Pin, Delete and More, and an optional trailing slot. FilterMenu is the one shared filter menu. A view can pass renderNew to draw New itself (the phone layout does). The mode orb and hub glyphs are in src/shell/mode-hub/ (ModeOrb.tsx, ModeGlyph.tsx).

The quiet row

Every list in the sidebar uses one row, RailRow in src/shell/rail/RailRow.tsx, in every mode: Home and Browser recents, Code recents, Bots threads, group chats, project threads and the phone drawer. Do not draw a second row style.
  • At rest the row is one line: the title, and a status glyph on the right (an unread or working dot, an offline computer, a warning, or the type icon).
  • On hover or keyboard focus the row opens to show the last line and the time it was last used, and the more menu takes the glyph’s place.
  • Touch has no hover. On a phone the time sits on the title line and the glyph stays visible next to it; the menu button is always shown at the larger touch size.
  • A caller passes the title, glyph, time, last line and menu. railMenuButtonClass lines the menu button up with the glyph slot.
Remote Control state is one of the glyphs. A session that is remote controlled carries rc (connected, reconnecting, offline or off, with a since-time) and the row shows it in the glyph slot. The state comes from the Remote Control feed on the Remote Control routes; the row never calls the server itself. The section headers are in sentence case with a trailing chevron (Recents, not RECENTS).

Interaction contracts

The section heading exposes aria-expanded and references its visible contents. Secondary actions close their popover before navigation. Filter controls keep their own nested popovers. No session store, route or account action changes. Phone row heights remain measured by the existing reorder gesture; no fixed-height assumption is added. Status icons and unread dots stay outside the title clamp. The web phone layout and PWA share these styles.

Verification and shipping

RecentsPanel.test.tsx covers action reachability, callbacks, popover dismissal and the collapse control. Existing phone drawer tests cover mode navigation. Check the desktop sidebar at narrow and wide saved widths, and phone drawers with long titles in Home, Code and ACI. These source changes require a Desktop package update and web deployment to appear for users. The PWA requires its separate deployment. Deployment remains a separate approved action. See the user guide.