Repository navigation
feat(tracker): overlays and controls come from console-ui - #5558
Open
shepherdjerred wants to merge 1 commit into
Open
shepherdjerred wants to merge 1 commit into
shepherdjerred wants to merge 1 commit into
Conversation
Owner
Author
|
This change is part of the following stack: Change managed by git-spice. |
Contributor
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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
force-pushed
the
t2-tracker-overlays
branch
from
December 3, 2026 08:01
c00c661 to
4e680cb
Compare
shepherdjerred
marked this pull request as ready for review
December 3, 2026 08:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ModalisDialog.xlDialog.ToastProviderandtoast.toast.undoLatest();data/undo.tsis gone.ContextMenu(one menu for every row) withMenuItem,SubmenuandMenuCheckboxItem.Menu.Popover.EnumPickerisSelect: rows, cards, the properties rail, forms, toolbars and the bulk bar. The Chromium-only customizable<select>(Limited Availability) is gone.CommandPaletteandCommandPaletteSearch. Tracker keeps its ranking (commands the query names lead, then issues and forum threads, then weaker matches), its search and its steps.createShortcutRegistrylist drives the keys andShortcutSheet.ownsKeysandisBlocked.Avatar,ActorChipandisComposing(the Safari IME window).Behaviour that must survive is covered by the suite
?peek=panel.console-ui grows what Tracker needed (each with a unit or DOM test)
IconSlot: a lucide icon or an app element (avatar, swatch, workflow glyph)MenuItemchecked: the current value; it still closes the menuContextMenutargets(one menu for a whole list), controlledopen,onOpenChange(open, { target, touch }), and a long-press release guardSelectvariant="icon",action,fill,data-*, anddata-valueon the control. It is now modal, as a native select is, which keeps Base UI's focus guards out of the a11y tree (axearia-hidden-focus); Hub's kit sweep gains an open SelectDialogactions; anxlsize (full screen on a phone); a sticky title row; an entry fade via@starting-style(Baseline 2024, degrades to no fade)ownsKeysdescription, repeated section headings,isComposingdata-toasts-abovelifts toasts over a fixed foot bar (Tracker's bulk bar), so Undo stays reachableThe README and the wiki reference document each addition.
Not moved, and why
These are Tracker-only or belong to a later PR:
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.tsxand about 700 lines of their CSS.Conformance allowlist (counts only go down):
Specs:
.toast,.toast-title,.toast[data-type],.modal→.ui-dialog, and theappearance: base-selectcheck.selectOptionbecomeschoose().toHaveValuebecomestoHaveAttribute("data-value", …).data-typeroot.expect(mainVisible changes
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.
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-managerhistory trim): 65 of 65 files.@shepherdjerred/temporal#test(native-recovery.integration.test.tsload): 474 of 474 files.bunx turbo run jscpd quality-ratchet knip --filter=//passes 18 of 18.bun scripts/checks/check-directory-file-counts.tspasses (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: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
trackerorconsole-uimeanwhile. Tracker, console-ui and Hub typecheck and lint were re-run on the new base: 27 of 27 tasks passed.Not verified here
🤖 Generated with Claude Code