Repository navigation
feat(errors): move the Errors console onto the shared console-ui pieces - #5549
shepherdjerred wants to merge 3 commits into
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
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
|
|
@codex review Automated re-review request for |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why Errors carried its own command palette, phone bar and drawer, dialogs, bulk bar, key-value grid, stacktrace boxes, banners, states and tables, all duplicating console-ui. That kept it visually and behaviourally apart from the other consoles and left four conformance allowlist entries open. What - ConsoleShell replaces the local sidebar, topbar and drawer (shell-nav.tsx). - CommandPaletteCommands replaces the local palette; issue search is its async loader and the theme command runs through its context. - Dialog, Banner, State, Checkbox and Fieldset replace er-dialog*, er-banner and the er-state paragraphs; the project and Tracker dialogs submit through a form id. - DataTable (selectable, bulkActions) replaces the .er-table markup and the hand-built bulk bar and select-all; DescriptionList, CodeBlock (new firstLine for source excerpts), Disclosure, CopyButton, RelativeTime and ExactTime replace the metadata grid, stacktrace boxes, copy timers and the local age and timestamp formatters. - styles.css drops from 742 to 107 lines; the allowlist is now empty (4 entries, 52 violations before). Verification - bunx turbo run build typecheck test lint --filter=@shepherdjerred/errors --filter=@shepherdjerred/console-ui: pass - Rendered against the fixture dev server in a real browser, light, dark and 375px. - Not run: Playwright (Errors has none), live deployment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ck the issues table on phones Why Review of the console-ui move found four gaps: Tracker links must still open in a new tab, the filters used native selects, the issues table scrolled sideways at 375px, and the async issue search had no test. What - console-ui Chip gains `external` (target=_blank, rel=noreferrer, external icon) with a test and README line. - Issues Project and Sort filters, and the Releases project filter, use the shared Select. - The issues DataTable uses `stack` so rows become label/value lines on a phone. - The palette's issue search moves to `loadIssueSections` with a test. Verification - bunx turbo run build typecheck test lint --filter=@shepherdjerred/errors --filter=@shepherdjerred/console-ui: pass - bunx lefthook run pre-commit and bun run jscpd: pass - Palette exercised in a real browser: sidebar button, Ctrl+K, async issue results, Enter navigates to the issue, theme command cycles the theme. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Why knip flagged the dependency as unused after the dialogs and palette moved to console-ui. What Remove @base-ui/react from packages/errors and refresh bun.lock. Verification - knip: no unused dependencies reported - check-console-stack: OK Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
e2455f0 to
719989a
Compare
Why
Errors still carried its own command palette, phone bar and drawer, dialogs, bulk bar, key-value grid, stacktrace boxes, banners, states and tables, duplicating console-ui (Plan A, E1). That kept it apart from the other consoles and left four conformance allowlist entries open.
What
ConsoleShellreplaces the local sidebar, top bar and drawer (shell-nav.tsxdeleted).CommandPaletteCommandsreplaces the local palette; issue search is its async loader, the theme command runs through its context.Dialog,Banner,State,Checkbox,Fieldsetreplaceer-dialog*,er-bannerander-state.DataTable(selectable,bulkActions->BulkBar) replaces the.er-tablemarkup, select-all and hand-built bulk bar for issues, projects, releases, overview and breadcrumbs.DescriptionList,CodeBlock,Disclosure,CopyButton,RelativeTime,ExactTime,BackLinkreplace the metadata grid, stacktrace boxes, copy timers and local age/timestamp formatters. Absolute times are now Pacific per the shared convention.CodeBlockgainsfirstLineso a source excerpt shows real file line numbers.styles.css742 -> 107 lines;conformance-allowlist.json4 entries (52 violations) ->[].theme-colormetas now equal the token.Behaviour notes: Tracker chips still open in a new tab (console-ui
Chipgainsexternal, with the external icon); the Project, Sort and release Project filters use the sharedSelect; the issues table stacks as label/value lines at phone width (DataTable stack); "Copy Markdown" moved from the header into the Stacktrace section; matching issues now list after static commands in the palette.Demo
Command palette (Ctrl+K, sidebar button, async issue search):
Verification
bunx turbo run build typecheck test lint --filter=@shepherdjerred/errors --filter=@shepherdjerred/console-ui: pass (errors 31 tests, console-ui 643)bunx lefthook run pre-commit,bun run jscpd(baseline unchanged at 939), directory-file-counts: passclient.test.tsxexpect(count 88 -> 88; static-markup assertions migrated one for one.TypeErrorloads a Matching issues section, Enter navigates to the issue,Cycle themechanges the theme.loadIssueSectionshas a unit test;Chip externalhas a console-ui test.bun ../../scripts/ci/run-ci-test.ts --tier extendedin packages/errors (postgres integration): 1 passed. The workspace-widebun run verify:extended -- --filter='...[origin/main...HEAD]'was started but stopped while it was still on unrelated JVM/Gradle suites; not completed.🤖 Generated with Claude Code