Repository navigation
feat(ci): run Vitest browser-mode tests with axe alongside the browser suites - #5268
shepherdjerred wants to merge 1 commit 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 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 Automated re-review request for |
|
Codex Review: Didn't find any major issues. 🎉 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". |
baaaa56 to
b777c9f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b777c9fb29
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| the matching browsers. The unit `test` task excludes `*.browser.test.*` | ||
| files because the `ci-base` image has no browsers. New browser tests for |
There was a problem hiding this comment.
Link the browser-test isolation claims to their source
The new paragraph claims that unit tests exclude browser suites and that the CI images provide different browser capabilities, but it does not link the source files establishing those boundaries. The preceding target-list link does not establish either claim. Add direct links to vitest.config.ts and the relevant image definitions so readers can verify this operational contract, as required by packages/docs/wiki/AGENTS.md.
AGENTS.md reference: packages/docs/wiki/AGENTS.md:L76-L76
Useful? React with 👍 / 👎.
b777c9f to
5df4557
Compare
5df4557 to
bc1a434
Compare
…k bar and charts Why Only Hub can sort, filter or export a table today, and every console hand-builds its tables, activity feeds and small charts. The plan (FM-263, CU3) moves the data pieces into console-ui on the stack standard: TanStack Table for tables, TanStack Virtual for long lists. What - DataTable<T>, promoted from Hub and rebuilt on @tanstack/react-table 9.3 (sorting, search as a global filter over a hidden column, row selection, expansion) with @tanstack/react-virtual 3 past 200 rows, against the page or in its own box. Keeps Hub's props (caption, rows, rowKey, rowLabel, columns with sortValue/exportValue, defaultSort, search, Tabs filters, Copy CSV/JSON, renderExpanded, initialCap "Showing N of M · Show all", emptyMessage) and adds groupBy (groupBySeverity, worst first), selection with select-all and bulkActions, aria-sort button headers, sticky head, currentRowKey and j/k navigation, and the phone stack layout. No frame: it sits flush in a Section. Hub's severity-buckets is promoted with it. - FilterBar (search, filters slot, polite "N of M", Clear filters, end slot) with describeCount and filtersActive; BulkBar; Timeline (Pacific times with exact time on hover, day groups, compact density); useRowNavigation; Sparkline and StatusMatrix promoted from Hub on severities and StatusGlyph; Meter gains projected, detail, format, an inferred severity and block, plus StackedMeter on token tones. - One stylesheet per piece under styles/components/data/; the vocabulary and layer checks now scan component subfolders. ICONS gains sortable, sortAscending and sortDescending. - Hub /kit gains a Data section (kit-data.tsx): 300 generated signals, virtualized, grouped, selectable, expandable and exportable, plus a FilterBar, timelines, sparklines, a status matrix and meters. - README "Data pieces" and the wiki's data table contract. - .jscpd-baseline.json pins the nine Hub/console-ui pairs these promoted copies create; Hub deletes its copies in H4, which tightens them. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: green. console-ui: 437 tests, including jsdom tests for sort, search, clear, cap, expand, selection, groups, copy, j/k and the virtualized window. - Tests of all ten consoles and ops-model pass; conformance counts unchanged. - Hub Playwright full run: 97 passed (kit: axe light/dark at 375 and 1280, no overflow, keyboard sort, 300-row windowing with a stuck head and j/k, select-all and the bulk bar). - test:extended for delivery, errors and golink: green. No other affected workspace has extended steps. - bun run jscpd: green with the baseline above. knip: only the unresolved generated Prisma clients of starlight-karma-bot and tasknotes-server, which were not generated locally. - Not run: Vitest browser mode (#5268 has not landed), live deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd shortcuts Why Tracker has the only complete overlays in the consoles; Delivery, Errors and the rest need menus, pickers, toasts and a shortcut registry and each would otherwise grow its own. This promotes generic versions into console-ui (FM-263, CU4) so T2 and the other app PRs can import them, and gives the command palette async results and multi-step commands so Errors and Tracker can drop their own palettes. Additive: no app is migrated. What - Menu, ContextMenu (right-click, long press, Shift+F10, Menu key) with shared items: icon, description, shortcut hint, danger, checkbox and radio items, groups, separators, submenus. - Popover; Sheet (right, left, bottom); Avatar and ActorChip. - Select at 28px on Base UI Select in every browser (the customizable native <select> is Limited Availability and not used). Combobox: single or multiple with chips, groups, check marks, debounced and aborted loadOptions with "Searching…", optional "Create …" row. - toast.notify/error/undo/dismiss/undoLatest under ToastProvider (Base UI manager, limit 4, F6, polite or assertive, glyph + word + text). - createShortcutRegistry (keys, sequences, Mod chords, scopes, anywhere, editable targets and open dialogs ignored), ShortcutSheet, KeyHint. - CommandPaletteSearch gains breadcrumb/onBack/keepOpen, checks and hints; Escape inside a step goes back. New CommandPaletteCommands: filtered static sections, loadSections, steps, run(context), recent. Hub's existing palette API is unchanged. - One stylesheet per piece, `ui-` classes in ui.components, CU1 tokens only; 44px rows and hit areas on coarse pointers; fades only with motion allowed; closing popups are inert. - Hub /kit "Overlays and inputs" section, e2e/kit-overlays.spec.ts, README section and wiki reference entries. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: 23/23 tasks green; console-ui 442 tests, Hub 400. - Tests of all eleven console-ui consumers (Hub, Delivery, Tracker, Errors, Mail, Flags, Feeds, Go link, Charts, CI cache, ops-model): 31/31 turbo tasks green, conformance allowlists unchanged. - bun run jscpd: ratchet passes with no baseline change; knip reports nothing in console-ui or Hub. - Hub Playwright full suite: 116 passed, including the new e2e/kit-overlays.spec.ts (22 tests: menu keyboard and submenus, Shift+F10, popover focus return, select by keyboard and click, combobox filtering, multi-select with create, async "Searching…", Undo, F6, ⌘Z, ?, g d, palette steps and server results; axe on the open menu, popover, listbox, sheet and toast in light and dark; no overflow at 375 and 1280). After the select became Base UI only, kit-overlays and kit specs repeated 2x with 4 workers: 56/56. - Not run: Vitest browser mode (#5268 unmerged), Woodpecker CI, deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bc1a434 to
41754d7
Compare
Why #5331 added artifacts as a console-ui consumer after #5279 required every consumer to run the per-app conformance scan. Main's verify fails on console-ui's consumers test ("every console-ui consumer runs the conformance scan or is exempt"), which also holds back image publication. What - packages/artifacts/src/client/conformance.test.ts, the per-app scan, taken from 41754d7 (FM-356 / #5268). - conformance-allowlist.json baseline of the current findings. The two deprecated-import entries are dropped because #5431 removed those imports; the ESLint suppressions from 41754d7 are not needed for the same reason. Verification - vitest src/client/conformance.test.ts (artifacts): 1 passed. - vitest src/consumers.test.ts (console-ui): 2 passed. - bunx turbo run typecheck test lint --filter=@shepherdjerred/artifacts --filter=@shepherdjerred/console-ui: 15/15. - Not run: Woodpecker CI (admin merge, authorized), deployment. Claude-Session: https://claude.ai/code/session_011u9pQkmfQzZFyzPbpimoiT Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
d1da2e8 to
c6d9a69
Compare
…k bar and charts Why Only Hub can sort, filter or export a table today, and every console hand-builds its tables, activity feeds and small charts. The plan (FM-263, CU3) moves the data pieces into console-ui on the stack standard: TanStack Table for tables, TanStack Virtual for long lists. What - DataTable<T>, promoted from Hub and rebuilt on @tanstack/react-table 9.3 (sorting, search as a global filter over a hidden column, row selection, expansion) with @tanstack/react-virtual 3 past 200 rows, against the page or in its own box. Keeps Hub's props (caption, rows, rowKey, rowLabel, columns with sortValue/exportValue, defaultSort, search, Tabs filters, Copy CSV/JSON, renderExpanded, initialCap "Showing N of M · Show all", emptyMessage) and adds groupBy (groupBySeverity, worst first), selection with select-all and bulkActions, aria-sort button headers, sticky head, currentRowKey and j/k navigation, and the phone stack layout. No frame: it sits flush in a Section. Hub's severity-buckets is promoted with it. - FilterBar (search, filters slot, polite "N of M", Clear filters, end slot) with describeCount and filtersActive; BulkBar; Timeline (Pacific times with exact time on hover, day groups, compact density); useRowNavigation; Sparkline and StatusMatrix promoted from Hub on severities and StatusGlyph; Meter gains projected, detail, format, an inferred severity and block, plus StackedMeter on token tones. - One stylesheet per piece under styles/components/data/; the vocabulary and layer checks now scan component subfolders. ICONS gains sortable, sortAscending and sortDescending. - Hub /kit gains a Data section (kit-data.tsx): 300 generated signals, virtualized, grouped, selectable, expandable and exportable, plus a FilterBar, timelines, sparklines, a status matrix and meters. - README "Data pieces" and the wiki's data table contract. - .jscpd-baseline.json pins the nine Hub/console-ui pairs these promoted copies create; Hub deletes its copies in H4, which tightens them. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: green. console-ui: 437 tests, including jsdom tests for sort, search, clear, cap, expand, selection, groups, copy, j/k and the virtualized window. - Tests of all ten consoles and ops-model pass; conformance counts unchanged. - Hub Playwright full run: 97 passed (kit: axe light/dark at 375 and 1280, no overflow, keyboard sort, 300-row windowing with a stuck head and j/k, select-all and the bulk bar). - test:extended for delivery, errors and golink: green. No other affected workspace has extended steps. - bun run jscpd: green with the baseline above. knip: only the unresolved generated Prisma clients of starlight-karma-bot and tasknotes-server, which were not generated locally. - Not run: Vitest browser mode (#5268 has not landed), live deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd shortcuts Why Tracker has the only complete overlays in the consoles; Delivery, Errors and the rest need menus, pickers, toasts and a shortcut registry and each would otherwise grow its own. This promotes generic versions into console-ui (FM-263, CU4) so T2 and the other app PRs can import them, and gives the command palette async results and multi-step commands so Errors and Tracker can drop their own palettes. Additive: no app is migrated. What - Menu, ContextMenu (right-click, long press, Shift+F10, Menu key) with shared items: icon, description, shortcut hint, danger, checkbox and radio items, groups, separators, submenus. - Popover; Sheet (right, left, bottom); Avatar and ActorChip. - Select at 28px on Base UI Select in every browser (the customizable native <select> is Limited Availability and not used). Combobox: single or multiple with chips, groups, check marks, debounced and aborted loadOptions with "Searching…", optional "Create …" row. - toast.notify/error/undo/dismiss/undoLatest under ToastProvider (Base UI manager, limit 4, F6, polite or assertive, glyph + word + text). - createShortcutRegistry (keys, sequences, Mod chords, scopes, anywhere, editable targets and open dialogs ignored), ShortcutSheet, KeyHint. - CommandPaletteSearch gains breadcrumb/onBack/keepOpen, checks and hints; Escape inside a step goes back. New CommandPaletteCommands: filtered static sections, loadSections, steps, run(context), recent. Hub's existing palette API is unchanged. - One stylesheet per piece, `ui-` classes in ui.components, CU1 tokens only; 44px rows and hit areas on coarse pointers; fades only with motion allowed; closing popups are inert. - Hub /kit "Overlays and inputs" section, e2e/kit-overlays.spec.ts, README section and wiki reference entries. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: 23/23 tasks green; console-ui 442 tests, Hub 400. - Tests of all eleven console-ui consumers (Hub, Delivery, Tracker, Errors, Mail, Flags, Feeds, Go link, Charts, CI cache, ops-model): 31/31 turbo tasks green, conformance allowlists unchanged. - bun run jscpd: ratchet passes with no baseline change; knip reports nothing in console-ui or Hub. - Hub Playwright full suite: 116 passed, including the new e2e/kit-overlays.spec.ts (22 tests: menu keyboard and submenus, Shift+F10, popover focus return, select by keyboard and click, combobox filtering, multi-select with create, async "Searching…", Undo, F6, ⌘Z, ?, g d, palette steps and server results; axe on the open menu, popover, listbox, sheet and toast in light and dark; no overflow at 375 and 1280). After the select became Base UI only, kit-overlays and kit specs repeated 2x with 4 workers: 56/56. - Not run: Vitest browser mode (#5268 unmerged), Woodpecker CI, deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k bar and charts Why Only Hub can sort, filter or export a table today, and every console hand-builds its tables, activity feeds and small charts. The plan (FM-263, CU3) moves the data pieces into console-ui on the stack standard: TanStack Table for tables, TanStack Virtual for long lists. What - DataTable<T>, promoted from Hub and rebuilt on @tanstack/react-table 9.3 (sorting, search as a global filter over a hidden column, row selection, expansion) with @tanstack/react-virtual 3 past 200 rows, against the page or in its own box. Keeps Hub's props (caption, rows, rowKey, rowLabel, columns with sortValue/exportValue, defaultSort, search, Tabs filters, Copy CSV/JSON, renderExpanded, initialCap "Showing N of M · Show all", emptyMessage) and adds groupBy (groupBySeverity, worst first), selection with select-all and bulkActions, aria-sort button headers, sticky head, currentRowKey and j/k navigation, and the phone stack layout. No frame: it sits flush in a Section. Hub's severity-buckets is promoted with it. - FilterBar (search, filters slot, polite "N of M", Clear filters, end slot) with describeCount and filtersActive; BulkBar; Timeline (Pacific times with exact time on hover, day groups, compact density); useRowNavigation; Sparkline and StatusMatrix promoted from Hub on severities and StatusGlyph; Meter gains projected, detail, format, an inferred severity and block, plus StackedMeter on token tones. - One stylesheet per piece under styles/components/data/; the vocabulary and layer checks now scan component subfolders. ICONS gains sortable, sortAscending and sortDescending. - Hub /kit gains a Data section (kit-data.tsx): 300 generated signals, virtualized, grouped, selectable, expandable and exportable, plus a FilterBar, timelines, sparklines, a status matrix and meters. - README "Data pieces" and the wiki's data table contract. - .jscpd-baseline.json pins the nine Hub/console-ui pairs these promoted copies create; Hub deletes its copies in H4, which tightens them. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: green. console-ui: 437 tests, including jsdom tests for sort, search, clear, cap, expand, selection, groups, copy, j/k and the virtualized window. - Tests of all ten consoles and ops-model pass; conformance counts unchanged. - Hub Playwright full run: 97 passed (kit: axe light/dark at 375 and 1280, no overflow, keyboard sort, 300-row windowing with a stuck head and j/k, select-all and the bulk bar). - test:extended for delivery, errors and golink: green. No other affected workspace has extended steps. - bun run jscpd: green with the baseline above. knip: only the unresolved generated Prisma clients of starlight-karma-bot and tasknotes-server, which were not generated locally. - Not run: Vitest browser mode (#5268 has not landed), live deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd shortcuts Why Tracker has the only complete overlays in the consoles; Delivery, Errors and the rest need menus, pickers, toasts and a shortcut registry and each would otherwise grow its own. This promotes generic versions into console-ui (FM-263, CU4) so T2 and the other app PRs can import them, and gives the command palette async results and multi-step commands so Errors and Tracker can drop their own palettes. Additive: no app is migrated. What - Menu, ContextMenu (right-click, long press, Shift+F10, Menu key) with shared items: icon, description, shortcut hint, danger, checkbox and radio items, groups, separators, submenus. - Popover; Sheet (right, left, bottom); Avatar and ActorChip. - Select at 28px on Base UI Select in every browser (the customizable native <select> is Limited Availability and not used). Combobox: single or multiple with chips, groups, check marks, debounced and aborted loadOptions with "Searching…", optional "Create …" row. - toast.notify/error/undo/dismiss/undoLatest under ToastProvider (Base UI manager, limit 4, F6, polite or assertive, glyph + word + text). - createShortcutRegistry (keys, sequences, Mod chords, scopes, anywhere, editable targets and open dialogs ignored), ShortcutSheet, KeyHint. - CommandPaletteSearch gains breadcrumb/onBack/keepOpen, checks and hints; Escape inside a step goes back. New CommandPaletteCommands: filtered static sections, loadSections, steps, run(context), recent. Hub's existing palette API is unchanged. - One stylesheet per piece, `ui-` classes in ui.components, CU1 tokens only; 44px rows and hit areas on coarse pointers; fades only with motion allowed; closing popups are inert. - Hub /kit "Overlays and inputs" section, e2e/kit-overlays.spec.ts, README section and wiki reference entries. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: 23/23 tasks green; console-ui 442 tests, Hub 400. - Tests of all eleven console-ui consumers (Hub, Delivery, Tracker, Errors, Mail, Flags, Feeds, Go link, Charts, CI cache, ops-model): 31/31 turbo tasks green, conformance allowlists unchanged. - bun run jscpd: ratchet passes with no baseline change; knip reports nothing in console-ui or Hub. - Hub Playwright full suite: 116 passed, including the new e2e/kit-overlays.spec.ts (22 tests: menu keyboard and submenus, Shift+F10, popover focus return, select by keyboard and click, combobox filtering, multi-select with create, async "Searching…", Undo, F6, ⌘Z, ?, g d, palette steps and server results; axe on the open menu, popover, listbox, sheet and toast in light and dark; no overflow at 375 and 1280). After the select became Base UI only, kit-overlays and kit specs repeated 2x with 4 workers: 56/56. - Not run: Vitest browser mode (#5268 unmerged), Woodpecker CI, deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k bar and charts Why Only Hub can sort, filter or export a table today, and every console hand-builds its tables, activity feeds and small charts. The plan (FM-263, CU3) moves the data pieces into console-ui on the stack standard: TanStack Table for tables, TanStack Virtual for long lists. What - DataTable<T>, promoted from Hub and rebuilt on @tanstack/react-table 9.3 (sorting, search as a global filter over a hidden column, row selection, expansion) with @tanstack/react-virtual 3 past 200 rows, against the page or in its own box. Keeps Hub's props (caption, rows, rowKey, rowLabel, columns with sortValue/exportValue, defaultSort, search, Tabs filters, Copy CSV/JSON, renderExpanded, initialCap "Showing N of M · Show all", emptyMessage) and adds groupBy (groupBySeverity, worst first), selection with select-all and bulkActions, aria-sort button headers, sticky head, currentRowKey and j/k navigation, and the phone stack layout. No frame: it sits flush in a Section. Hub's severity-buckets is promoted with it. - FilterBar (search, filters slot, polite "N of M", Clear filters, end slot) with describeCount and filtersActive; BulkBar; Timeline (Pacific times with exact time on hover, day groups, compact density); useRowNavigation; Sparkline and StatusMatrix promoted from Hub on severities and StatusGlyph; Meter gains projected, detail, format, an inferred severity and block, plus StackedMeter on token tones. - One stylesheet per piece under styles/components/data/; the vocabulary and layer checks now scan component subfolders. ICONS gains sortable, sortAscending and sortDescending. - Hub /kit gains a Data section (kit-data.tsx): 300 generated signals, virtualized, grouped, selectable, expandable and exportable, plus a FilterBar, timelines, sparklines, a status matrix and meters. - README "Data pieces" and the wiki's data table contract. - .jscpd-baseline.json pins the nine Hub/console-ui pairs these promoted copies create; Hub deletes its copies in H4, which tightens them. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: green. console-ui: 437 tests, including jsdom tests for sort, search, clear, cap, expand, selection, groups, copy, j/k and the virtualized window. - Tests of all ten consoles and ops-model pass; conformance counts unchanged. - Hub Playwright full run: 97 passed (kit: axe light/dark at 375 and 1280, no overflow, keyboard sort, 300-row windowing with a stuck head and j/k, select-all and the bulk bar). - test:extended for delivery, errors and golink: green. No other affected workspace has extended steps. - bun run jscpd: green with the baseline above. knip: only the unresolved generated Prisma clients of starlight-karma-bot and tasknotes-server, which were not generated locally. - Not run: Vitest browser mode (#5268 has not landed), live deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd shortcuts Why Tracker has the only complete overlays in the consoles; Delivery, Errors and the rest need menus, pickers, toasts and a shortcut registry and each would otherwise grow its own. This promotes generic versions into console-ui (FM-263, CU4) so T2 and the other app PRs can import them, and gives the command palette async results and multi-step commands so Errors and Tracker can drop their own palettes. Additive: no app is migrated. What - Menu, ContextMenu (right-click, long press, Shift+F10, Menu key) with shared items: icon, description, shortcut hint, danger, checkbox and radio items, groups, separators, submenus. - Popover; Sheet (right, left, bottom); Avatar and ActorChip. - Select at 28px on Base UI Select in every browser (the customizable native <select> is Limited Availability and not used). Combobox: single or multiple with chips, groups, check marks, debounced and aborted loadOptions with "Searching…", optional "Create …" row. - toast.notify/error/undo/dismiss/undoLatest under ToastProvider (Base UI manager, limit 4, F6, polite or assertive, glyph + word + text). - createShortcutRegistry (keys, sequences, Mod chords, scopes, anywhere, editable targets and open dialogs ignored), ShortcutSheet, KeyHint. - CommandPaletteSearch gains breadcrumb/onBack/keepOpen, checks and hints; Escape inside a step goes back. New CommandPaletteCommands: filtered static sections, loadSections, steps, run(context), recent. Hub's existing palette API is unchanged. - One stylesheet per piece, `ui-` classes in ui.components, CU1 tokens only; 44px rows and hit areas on coarse pointers; fades only with motion allowed; closing popups are inert. - Hub /kit "Overlays and inputs" section, e2e/kit-overlays.spec.ts, README section and wiki reference entries. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: 23/23 tasks green; console-ui 442 tests, Hub 400. - Tests of all eleven console-ui consumers (Hub, Delivery, Tracker, Errors, Mail, Flags, Feeds, Go link, Charts, CI cache, ops-model): 31/31 turbo tasks green, conformance allowlists unchanged. - bun run jscpd: ratchet passes with no baseline change; knip reports nothing in console-ui or Hub. - Hub Playwright full suite: 116 passed, including the new e2e/kit-overlays.spec.ts (22 tests: menu keyboard and submenus, Shift+F10, popover focus return, select by keyboard and click, combobox filtering, multi-select with create, async "Searching…", Undo, F6, ⌘Z, ?, g d, palette steps and server results; axe on the open menu, popover, listbox, sheet and toast in light and dark; no overflow at 375 and 1280). After the select became Base UI only, kit-overlays and kit specs repeated 2x with 4 workers: 56/56. - Not run: Vitest browser mode (#5268 unmerged), Woodpecker CI, deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c6d9a69 to
29e710a
Compare
* feat(console-ui): detail, form, time and feedback pieces Why The mockup never drew detail pages, forms, timestamps or loading states, so every console invented its own. CU2 of the console-ui plan settles them once. What - Detail: DescriptionList, Disclosure, CodeBlock, CopyButton, Pager, ListToggle and useCapped (promoted from Hub), BackLink. - Forms on TanStack Form + Zod: Checkbox, RadioGroup, Switch (Base UI), Fieldset, Textarea, InputAddon, FormActions, ErrorSummary, and the fieldErrorMessage / collectErrorSummary binding. Field gains an optional id. - Time and formatting: RelativeTime, ExactTime, Duration on one 30s ticker (useNow); formatBytes (binary), formatCount, formatPercent, formatDuration, formatRelative, formatExact (Pacific). Temporal for math, Intl for display. - Feedback: Kbd, useSearchShortcut and isEditableTarget, StatusDot, SavedStatus, Skeleton, EmailPreview (sandboxed iframe). - Hub /kit gains a "Detail and forms" section; Hub's capped-list now takes useCapped and cappedCount from console-ui. - README and wiki reference entries; conventions for timestamps, bytes, titles. Verification - console-ui: typecheck, lint, 483 tests (formatters with fixed clocks and explicit Pacific output); Hub: 400 unit tests, lint clean. - Hub Playwright full run: 97 passed (kit axe light/dark, overflow 375/1280, validation summary, copy and "/" shortcut, email preview). - The ten consoles' unit tests unchanged and passing; jscpd and knip pass. - Not run: PR CI, deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(console-ui): DataTable on TanStack Table, filters, timeline, bulk bar and charts Why Only Hub can sort, filter or export a table today, and every console hand-builds its tables, activity feeds and small charts. The plan (FM-263, CU3) moves the data pieces into console-ui on the stack standard: TanStack Table for tables, TanStack Virtual for long lists. What - DataTable<T>, promoted from Hub and rebuilt on @tanstack/react-table 9.3 (sorting, search as a global filter over a hidden column, row selection, expansion) with @tanstack/react-virtual 3 past 200 rows, against the page or in its own box. Keeps Hub's props (caption, rows, rowKey, rowLabel, columns with sortValue/exportValue, defaultSort, search, Tabs filters, Copy CSV/JSON, renderExpanded, initialCap "Showing N of M · Show all", emptyMessage) and adds groupBy (groupBySeverity, worst first), selection with select-all and bulkActions, aria-sort button headers, sticky head, currentRowKey and j/k navigation, and the phone stack layout. No frame: it sits flush in a Section. Hub's severity-buckets is promoted with it. - FilterBar (search, filters slot, polite "N of M", Clear filters, end slot) with describeCount and filtersActive; BulkBar; Timeline (Pacific times with exact time on hover, day groups, compact density); useRowNavigation; Sparkline and StatusMatrix promoted from Hub on severities and StatusGlyph; Meter gains projected, detail, format, an inferred severity and block, plus StackedMeter on token tones. - One stylesheet per piece under styles/components/data/; the vocabulary and layer checks now scan component subfolders. ICONS gains sortable, sortAscending and sortDescending. - Hub /kit gains a Data section (kit-data.tsx): 300 generated signals, virtualized, grouped, selectable, expandable and exportable, plus a FilterBar, timelines, sparklines, a status matrix and meters. - README "Data pieces" and the wiki's data table contract. - .jscpd-baseline.json pins the nine Hub/console-ui pairs these promoted copies create; Hub deletes its copies in H4, which tightens them. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: green. console-ui: 437 tests, including jsdom tests for sort, search, clear, cap, expand, selection, groups, copy, j/k and the virtualized window. - Tests of all ten consoles and ops-model pass; conformance counts unchanged. - Hub Playwright full run: 97 passed (kit: axe light/dark at 375 and 1280, no overflow, keyboard sort, 300-row windowing with a stuck head and j/k, select-all and the bulk bar). - test:extended for delivery, errors and golink: green. No other affected workspace has extended steps. - bun run jscpd: green with the baseline above. knip: only the unresolved generated Prisma clients of starlight-karma-bot and tasknotes-server, which were not generated locally. - Not run: Vitest browser mode (#5268 has not landed), live deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(console-ui): menus, popovers, select, combobox, toasts, sheets and shortcuts Why Tracker has the only complete overlays in the consoles; Delivery, Errors and the rest need menus, pickers, toasts and a shortcut registry and each would otherwise grow its own. This promotes generic versions into console-ui (FM-263, CU4) so T2 and the other app PRs can import them, and gives the command palette async results and multi-step commands so Errors and Tracker can drop their own palettes. Additive: no app is migrated. What - Menu, ContextMenu (right-click, long press, Shift+F10, Menu key) with shared items: icon, description, shortcut hint, danger, checkbox and radio items, groups, separators, submenus. - Popover; Sheet (right, left, bottom); Avatar and ActorChip. - Select at 28px on Base UI Select in every browser (the customizable native <select> is Limited Availability and not used). Combobox: single or multiple with chips, groups, check marks, debounced and aborted loadOptions with "Searching…", optional "Create …" row. - toast.notify/error/undo/dismiss/undoLatest under ToastProvider (Base UI manager, limit 4, F6, polite or assertive, glyph + word + text). - createShortcutRegistry (keys, sequences, Mod chords, scopes, anywhere, editable targets and open dialogs ignored), ShortcutSheet, KeyHint. - CommandPaletteSearch gains breadcrumb/onBack/keepOpen, checks and hints; Escape inside a step goes back. New CommandPaletteCommands: filtered static sections, loadSections, steps, run(context), recent. Hub's existing palette API is unchanged. - One stylesheet per piece, `ui-` classes in ui.components, CU1 tokens only; 44px rows and hit areas on coarse pointers; fades only with motion allowed; closing popups are inert. - Hub /kit "Overlays and inputs" section, e2e/kit-overlays.spec.ts, README section and wiki reference entries. Verification - bunx turbo run build typecheck test lint for console-ui and alert-dashboard: 23/23 tasks green; console-ui 442 tests, Hub 400. - Tests of all eleven console-ui consumers (Hub, Delivery, Tracker, Errors, Mail, Flags, Feeds, Go link, Charts, CI cache, ops-model): 31/31 turbo tasks green, conformance allowlists unchanged. - bun run jscpd: ratchet passes with no baseline change; knip reports nothing in console-ui or Hub. - Hub Playwright full suite: 116 passed, including the new e2e/kit-overlays.spec.ts (22 tests: menu keyboard and submenus, Shift+F10, popover focus return, select by keyboard and click, combobox filtering, multi-select with create, async "Searching…", Undo, F6, ⌘Z, ?, g d, palette steps and server results; axe on the open menu, popover, listbox, sheet and toast in light and dark; no overflow at 375 and 1280). After the select became Base UI only, kit-overlays and kit specs repeated 2x with 4 workers: 56/56. - Not run: Vitest browser mode (#5268 unmerged), Woodpecker CI, deployment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(console-ui): review fixes from the first app conversions Why Converting Mail, Feeds, Charts and CI cache onto console-ui surfaced six gaps in the shared package. What - EmailPreview iframe sends referrerPolicy="no-referrer" so remote images do not leak the console URL. - formatDuration and Duration keep one decimal under 10s ("1.3s"), whole seconds from 10s. - Opt-in wrapping table cells via `data-wrap` on td/th; nowrap stays default. - Reserved app layer: order is `ui.reset, ui.tokens, ui.app, ui.components`; apps put element defaults in `@layer ui.app`. Tracker's tracker.elements layer moves to ui.app. README documents why. - Controlled Dialog remembers document.activeElement on open and passes it as Base UI finalFocus by default; optional finalFocus prop overrides. - ConsoleShell gains `sidebarActions` for the desktop sidebar header. - Hub /kit gallery shows a wrapping cell (Dialog was already listed). Verification turbo build typecheck test lint for console-ui and every dependent app (alert-dashboard, ci-cache, delivery, errors, feeds, golink, mail, flags, charts, ops-model, tracker): 65/65 tasks pass; lefthook pre-commit passes. Dialog focus return is not unit-tested (no DOM test environment; browser tests wait for Vitest browser mode). Live checks not run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(console-ui): link buttons keep link semantics; table scroll is a containing block Why Hub's frame work found two gaps: `<Button render={<a/>} nativeButton={false}>` makes Base UI put role="button" on the anchor (it broke 6 Hub e2e specs), and absolutely positioned content in a scrolled table pushed /kit 41px past 375px. What - New ButtonLink: a real <a href> with the ui-btn classes and variants, or a router link through `render`, never a role. Exported and documented; the README and Button docs no longer advise render={<a/>}. On /kit. - .ui-table-scroll is position: relative. Verification turbo build typecheck test lint over console-ui and its 11 dependent apps: 65/65 tasks pass; lefthook pre-commit passes. A test asserts no role on the anchor. Hub e2e and the 375px layout were not re-run here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(console-ui): Tabs supports a disabled option Why Hub's email-preview toggle disables "Plain text" when a message has no text part, so it kept a local segmented control instead of the shared Tabs. What - TabOption gains `disabled`: rendered disabled, styled with --ui-faint, and skipped by arrow, Home and End keys (enabledTargetIndex). - Shown on /kit as a "Disabled tab" section; README updated. Verification turbo build typecheck test lint over console-ui and its 11 dependent apps: 65/65 pass; lefthook pre-commit passes. Playwright against the built Hub: kit.spec.ts and kit-overlays.spec.ts pass (35 with a temporary check): /kit at 375px has scrollWidth 375, the ButtonLink anchor has no role and is found by getByRole("link"), and the disabled tab is disabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(console-ui): a linked row navigates from every cell Why Review of CU1 (#5279, codex P2): `.ui-lead` is `position: relative` for its unread dot, so it became the containing block of the `.ui-row-link` cover and only the lead cell navigated, although the whole row shows a pointer. What - In a linked row the lead cell is static, so the positioned row contains the cover; the unread dot then measures from the row edge, which is why the README now says the link sits in the row's first, lead cell. - Hub /kit e2e: clicking the last cell of a linked row opens the detail page. Verification - The new test fails with the old CSS (no navigation) and passes with this change. - `bun --bun playwright test e2e/kit.spec.ts e2e/kit-overlays.spec.ts` against the built Hub: 35 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(console-ui): row keys yield to overlays; async create keeps the latest selection Why Review of #5430 (codex, two P2s): - DataTable's j/k/o row navigation listens on the document and only skipped text fields, so with a dialog or sheet open, j/k on its buttons moved the background table's current row and `o` opened it. - A multiple Combobox whose onCreate is async added the new value to the selection captured when creation started, so a chip removed or added while the request was pending was silently undone. What - Row navigation ignores keys aimed inside a dialog, sheet, menu, listbox or combobox (`isEditableTarget`) and any key while an interactive dialog is open, the same rule the shortcut registry uses. - MultipleCombobox merges the created value into the selection current when creation resolves (latest props in a ref), and never adds it twice. - Hub /kit's Labels combobox creates asynchronously (400 ms), like a server would, so the gallery and its spec exercise the pending state. Verification - data-table.dom.test.tsx: a dialog's button receiving j and o leaves the current row and onRowOpen untouched; fails on the old handler (1/10), passes now (10/10). - kit-overlays.spec.ts: create "disk-io", remove "prod" while it is pending; both stick. Fails on the old Combobox, passes now; kit specs 35/35. - turbo typecheck test lint for console-ui and alert-dashboard pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
c300e39 to
013d4e5
Compare
Why Current pandas stubs mark DataFrame.iterrows deprecated, so //#pyright fails on packages/homelab/scripts/velero/velero-report.py (lines 512, 636, 764) whenever a PR selects every workspace (for example #5268's global inputs). The file is unchanged since July. Forum notice FM-410. What - The three loops iterate `head(n).to_dict("records")`; rows stay dict-style (`row["phase"]`, `pd.notna(row["timestamp"])`), so the output is unchanged. Verification - `bun run pyright`: 0 errors (pyright 1.1.414 reports the 3 iterrows errors on main's copy). - `ruff check` on the file passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ows (#5539) Why Current pandas stubs mark DataFrame.iterrows deprecated, so //#pyright fails on packages/homelab/scripts/velero/velero-report.py (lines 512, 636, 764) whenever a PR selects every workspace (for example #5268's global inputs). The file is unchanged since July. Forum notice FM-410. What - The three loops iterate `head(n).to_dict("records")`; rows stay dict-style (`row["phase"]`, `pd.notna(row["timestamp"])`), so the output is unchanged. Verification - `bun run pyright`: 0 errors (pyright 1.1.414 reports the 3 iterrows errors on main's copy). - `ruff check` on the file passes. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…r suites Why Vitest browser mode is the preferred runner for new console page and component tests, but nothing ran it: the unit `test` task runs on ci-base, which has no browsers, and no shared axe/theme/viewport helpers existed. Browser suites no longer run on pull requests (#5333), so these follow the same placement: the main-push browser lane, and `bun run e2e:affected` before a pull request is marked ready. What - console-ui gains `src/testing/browser.ts` (axe with the WCAG 2.2 AA tag set, light/dark theme, 375/1280 viewports, horizontal-overflow check) and `src/testing/browser-config.ts` (headless Chromium through `@vitest/browser-playwright`, optional JUnit report). - `*.browser.test.*` files are excluded from the root unit config and run via a `test:browser` script and Turbo task. They are not `test:extended` steps: the nightly verify-extended workflow runs in ci-base, without browsers. - Browser targets may set `task: "test:browser"`; run-playwright.ts runs `test:e2e` and `test:browser` in one Turbo run, so the main-push `playwright-e2e` lane and `bun run e2e:affected` both pick console-ui up. The lane's changed-path guard includes packages/console-ui/**. - `playwright` is registered with the Playwright image-pin promotion list. - Example suite: HeaderBar with Tabs, Button, FigureStrip and `.ui-table` with axe in both themes, computed sizes, no uppercase headers and no overflow at 375px. - console-ui README, wiki CI pipeline shape and test-tier reference, and the delivery skill describe where browser-mode suites run and the local command. `.vitest/` (failure screenshots) is gitignored. Verification - bunx turbo run build typecheck test lint for woodpecker-config-extension, console-ui and root-scripts (includes #5333's extended and selection rendering tests) - bunx turbo run test:browser --filter=@shepherdjerred/console-ui: 5 tests pass in Chromium; a probe with an unlabeled button fails with axe button-name, so the check is not vacuous - bun run e2e:affected on a console-ui-only change selects and runs console-ui's test:browser - Not run: the main-push browser lane in Woodpecker, ArgoCD or runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
013d4e5 to
cb27a75
Compare
Why
Vitest browser mode is the preferred runner for new console page and component tests (plan row S2), but nothing ran it. The unit
testtask runs onci-base, which has no browsers, and there were no shared axe, theme or viewport helpers.#5333 moved browser suites off pull requests. They now run in the
playwright-e2elane on main pushes, andbun run e2e:affectedruns them locally before a PR is marked ready. Browser-mode suites follow that same placement. This PR adds no browser lane to pull requests, and the nightly extended pipeline is unchanged.What
src/testing/browser.ts: axe with the WCAG 2.2 AA tag set the Playwright suites use, light/darksetTheme,setViewportwith 375 and 1280 widths, andexpectNoHorizontalOverflow.src/testing/browser-config.ts: headless Chromium through@vitest/browser-playwright, plus a JUnit report whenCI_BROWSER_TEST_JUNIT_DIRis set.vitest.browser.config.tsand atest:browserscript and Turbo task.console-ui.browser.test.tsx): HeaderBar with Tabs, Button, FigureStrip and.ui-table. It runs axe in both themes, checks computed sizes and that headers are not uppercase, and checks for overflow at 375px.task: "test:browser".run-playwright.tsrunstest:e2eandtest:browserin one Turbo run, so both the main-push lane andbun run e2e:affectedpick console-ui up. The lane's changed-path guard includespackages/console-ui/**.*.browser.test.*files are excluded from the unit config. They are nottest:extendedsteps, because the nightlyverify-extendedworkflow runs inci-base, which has no browsers.playwright(console-ui) joins the ci-playwright promotion list, so image promotions move it together with@playwright/test.explanation/ci-pipeline-shape.mdandreference/ci-test-tiers.md: lane placement, and why these suites are not in the extended tier.bun run e2e:affectedwhen a branch reaches a browser suite. The wiki already pointed there, but the skill did not say it..vitest/(failure screenshots) is gitignored.Demo
Browser-lane target selection (
ci/scripts/selection/run-playwright.ts, used by the main-push lane and bybun run e2e:affected) for a console-ui change:Rendered pipelines (
selectStepsoverbuildPipelineSteps, plusextendedSteps). Main and this head are identical. A console-ui change still gets no browser lane on a pull request, and the nightly extended pipeline is unchanged:The browser suite passing (
bunx turbo run test:browser --filter=@shepherdjerred/console-ui):Verification
bunx turbo run build typecheck test lint test:browser --filter=@shepherdjerred/woodpecker-config-extension --filter=@shepherdjerred/console-ui --filter=@shepherdjerred/root-scriptson head c6d9a69: 29/29. This includes ci(woodpecker-config-extension): move browser and Paper smoke lanes off pull requests #5333's extended-pipeline and selection rendering tests (test/lanes/extended.test.ts,test/select.test.ts) and the newplaywright-targetscases.bunx turbo run typecheck test lint --filter='...@shepherdjerred/console-ui' --continue(every console-ui dependent, on the earlier base d469849): 205/206. The one failure is@shepherdjerred/temporal#test: its real-worker media acquisition tests hit 60 s timeouts while this host was heavily loaded. That package does not touch anything this PR changes.bunx turbo run test:browser --filter=@shepherdjerred/console-ui: 5/5 in Chromium. A throwaway probe with an unlabeled<button>fails with axebutton-name (critical), so the axe check is not vacuous.bun run e2e:affected(on the earlier base d469849, before the restack onto main's Media browser partition; the global inputs select every target):@shepherdjerred/console-ui#test:browser5 passed. Other Playwright runs: docs-wiki 4, media 228, artifacts 103, tracker 218, alert-dashboard 122, delivery 402, scout app 236, design-system 993 passed.turbo run test:e2e --continueafter the runner stopped at its first failure./var/folders), so they are not verified locally.bun run verify:extended -- --filter='...@shepherdjerred/console-ui' --filter=@shepherdjerred/root-scripts --filter=@shepherdjerred/woodpecker-config-extensionon head d1da2e8 (the last restack onto main applied cleanly, with no changes to this branch): 78/78 tasks, including the Temporal, Media, Delivery, Tracker and Scout extended suites....[origin/main...HEAD]form selects all 120 workspaces, only becausebun.lock,turbo.jsonandvitest.config.tscount as global inputs. Those edits only add console-ui's dev dependencies, atest:browsertask and a*.browser.test.*exclude, and the exclude matches files only in console-ui.playwright-e2elane in Woodpecker (pull requests do not run it), ArgoCD and runtime.🤖 Generated with Claude Code