Skip to content

feat(tracker): overlays and controls come from console-ui - #5558

Open
shepherdjerred wants to merge 1 commit into
mainfrom
t2-tracker-overlays
Open

shepherdjerred wants to merge 1 commit into
mainfrom
t2-tracker-overlays

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

CU4 (#5430) promoted Tracker's menus, pickers, toasts, palette and shortcut registry into console-ui. Tracker still drew its own copies, so its dialogs, toasts and menus looked unlike every other console and every fix had to land twice. This is T2 of the console plan (FM-263): Tracker imports the shared pieces back and deletes its copies. It lands alone.

What

Tracker now uses console-ui for

  • Dialogs: every Modal is Dialog.
    • The three delete confirms use its description and actions row.
    • The peek is an xl Dialog.
  • Toasts: ToastProvider and toast.
    • Tracker keeps only its sound and haptic cues.
    • ⌘Z runs toast.undoLatest(); data/undo.ts is gone.
  • Menus:
    • The issue context menu is ContextMenu (one menu for every row) with MenuItem, Submenu and MenuCheckboxItem.
    • The saved-view menu is Menu.
    • Display is Popover.
  • Pickers: every EnumPicker is Select: rows, cards, the properties rail, forms, toolbars and the bulk bar. The Chromium-only customizable <select> (Limited Availability) is gone.
  • Palette: CommandPalette and CommandPaletteSearch. Tracker keeps its ranking (commands the query names lead, then issues and forum threads, then weaker matches), its search and its steps.
  • Shortcuts: one createShortcutRegistry list drives the keys and ShortcutSheet.
    • J/K, sequences, chords and editor-only entries behave as before.
    • The peek and a row's own picker keep the row keys, through ownsKeys and isBlocked.
  • People and input: Avatar, ActorChip and isComposing (the Safari IME window).

Behaviour that must survive is covered by the suite

  • Optimistic updates.
  • The ?peek= panel.
  • j/k navigation.
  • Live updates.
  • Shortcuts.
  • Undo toasts.

console-ui grows what Tracker needed (each with a unit or DOM test)

Piece Addition
Every row icon IconSlot: a lucide icon or an app element (avatar, swatch, workflow glyph)
MenuItem checked: the current value; it still closes the menu
ContextMenu targets (one menu for a whole list), controlled open, onOpenChange(open, { target, touch }), and a long-press release guard
Select variant="icon", action, fill, data-*, and data-value on the control. It is now modal, as a native select is, which keeps Base UI's focus guards out of the a11y tree (axe aria-hidden-focus); Hub's kit sweep gains an open Select
Dialog Optional actions; an xl size (full screen on a phone); a sticky title row; an entry fade via @starting-style (Baseline 2024, degrades to no fade)
Shortcut registry ownsKeys
Palette Item description, repeated section headings, isComposing
Toasts data-toasts-above lifts toasts over a fixed foot bar (Tracker's bulk bar), so Undo stays reachable

The README and the wiki reference document each addition.

Not moved, and why

These are Tracker-only or belong to a later PR:

  • The anchored searchable picker (assignee, labels, project).
  • The due-date popover.
  • The filter popover with its Escape-steps-back list (T3).
  • The relation issue search.

Each opens at an arbitrary anchor from shortcuts, menus and rows, which no shared piece does. They keep their own markup.

Deleted: ui/toast.tsx, ui/ime.ts, data/undo.ts, controls/enum-picker.tsx, shell/palette-results.tsx, shell/shortcut-sheet.tsx and about 700 lines of their CSS.

Conformance allowlist (counts only go down):

Rule · file main this PR
bare-element-selector · controls.css 32 18
bare-element-selector · overlays.css 21 9
bare-element-selector · planning.css 22 21
local-copy · planning.css 3 2

Specs:

  • Class selectors are migrated one for one: .toast, .toast-title, .toast[data-type], .modal → .ui-dialog, and the appearance: base-select check.
  • selectOption becomes choose().
  • A picker's toHaveValue becomes toHaveAttribute("data-value", …).
  • Error toasts are hidden from the a11y tree by Base UI, so toasts are found by their data-type root.
Spec expect( main this PR
tracker accessibility 30 30
tracker controls.desktop 50 50
tracker controls 66 66
tracker data.desktop 10 10
tracker data 56 56
tracker delight.desktop 27 27
tracker delight 25 25
tracker due 26 26
tracker forum 46 46
tracker hierarchy 24 24
tracker keyboard.desktop 25 25
tracker lists 45 45
tracker live 20 20
tracker planning.desktop 16 16
tracker platform 41 41
tracker sizing 36 36
tracker sorting-and-motion 30 30
tracker tracker 32 32
tracker views 11 11
alert-dashboard kit-overlays 75 76 (+1: an open Select in the axe sweep)

Visible changes

  • Menus, pickers, toasts, dialogs and the palette: they take the shared look (glyph and word toasts, 28px pickers, the shared dialog chrome and palette).
  • Actor chips: these are now tag chips.
  • The peek: it keeps its 1000px width and fills a phone.
  • Palette issue rows: these are options that navigate on choose, not links, so they no longer open in a new tab with ⌘-click.
  • The bulk bar on a phone: it shows its labels and scrolls sideways. It sits at the foot now that there is no bottom navigation.

Demo

All 21 surfaces, before and after, in light, dark and a 375px phone: the context menu, a row's status picker, the New issue dialog, the palette, the shortcut sheet, the peek, the Undo toast and the Display popover.

Captured with Playwright's Chromium against the Tracker acceptance server. Before is main at 50988c7; after is this branch.

Before (main) After
Issue context menu, light before after
Palette, dark before after
Undo toast, light before after
Peek on a phone before after

Verification

Focused checks

  • bunx turbo run build typecheck test lint --filter='...[origin/main...HEAD]' --continue: 238 of 240 tasks passed. The two failures are unrelated and pass alone with --force:
    • @discord-plays-pokemon/backend#test (goal-manager history trim): 65 of 65 files.
    • @shepherdjerred/temporal#test (native-recovery.integration.test.ts load): 474 of 474 files.
  • console-ui: 652 tests, including the new jsdom overlay tests and the picker, palette and registry tests.
  • Tracker: 280 unit tests, including the conformance scan with the lowered allowlist.
  • Root ratchets: bunx turbo run jscpd quality-ratchet knip --filter=// passes 18 of 18. bun scripts/checks/check-directory-file-counts.ts passes (only pre-existing warnings).
  • bunx lefthook run pre-commit: passes on the commit (gitleaks, prettier, jscpd and package-quality).

Browser tests: bun run e2e:affected, on the final change set; 44 of 44 tasks passed:

Project Result
Tracker (desktop and mobile; axe on 20 surfaces × light/dark) 219 passed
Hub (alert-dashboard) 161 passed
Delivery 406 passed
Artifacts 206 passed
docs-wiki 4 passed
Scout app 236 passed
Scout design-system 1137 passed

Extended tier: bun run verify:extended -- --filter='...[origin/main...HEAD]': 82 of 82 tasks passed.

Restack: the branch is restacked onto main at 13a59c3. Main touched no file under tracker or console-ui meanwhile. Tracker, console-ui and Hub typecheck and lint were re-run on the new base: 27 of 27 tasks passed.

Not verified here

  • PR CI.
  • Deployment.
  • Live Tracker.

🤖 Generated with Claude Code

@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Why
CU4 promoted Tracker's menus, pickers, toasts, palette and shortcut
registry into console-ui. Tracker still drew its own copies, so its
dialogs, toasts and menus looked unlike every other console and fixes
had to land twice (T2 of the console plan, FM-263).

What
- Dialogs: every Tracker Modal is console-ui's Dialog; delete confirms
  use its description and actions row; the peek is an xl Dialog.
- Toasts: console-ui's ToastProvider and toast; Tracker keeps only its
  sound and haptic cues. Cmd+Z runs toast.undoLatest (data/undo.ts gone).
- Menus: the issue context menu is console-ui's ContextMenu (one menu for
  every row) with MenuItem, Submenu and MenuCheckboxItem; the saved-view
  menu is Menu; the Display popover is Popover.
- Pickers: every EnumPicker (rows, cards, properties, forms, toolbars,
  bulk bar) is console-ui's Select; the Chromium-only customizable select
  is gone.
- Palette: console-ui's CommandPalette and CommandPaletteSearch; Tracker
  keeps its ranking, issue and forum search and steps.
- Shortcuts: one createShortcutRegistry list drives the keys and
  console-ui's ShortcutSheet.
- Avatar and ActorChip are console-ui's; the IME check is console-ui's.
- console-ui grows what Tracker needed, with tests: IconSlot icons,
  MenuItem checked, ContextMenu targets and the long-press release guard,
  Select variant/action/fill/data and data-value (now modal, which keeps
  Base UI's focus guards out of the a11y tree), optional Dialog actions,
  an xl size, a sticky title row and an entry fade, registry ownsKeys,
  palette item descriptions and repeated headings, isComposing, and
  data-toasts-above to lift toasts over a fixed foot bar.
- Tracker's local copies and their CSS are deleted; the conformance
  allowlist only goes down. Specs read toasts by their data-type root and
  a picker's data-value; Tracker expect() counts are unchanged; Hub's kit
  sweep gains an open Select.

Verification
- bunx turbo run build typecheck test lint for tracker and console-ui.
- Tracker Playwright, both projects: 219 passed.
- bun run e2e:affected for the committed diff (results in the PR).
- Not verified here: PR CI, deployment, live Tracker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant