Skip to content

feat(ci): run Vitest browser-mode tests with axe alongside the browser suites - #5268

Open
shepherdjerred wants to merge 1 commit into
mainfrom
feat/vitest-browser-mode
Open

shepherdjerred wants to merge 1 commit into
mainfrom
feat/vitest-browser-mode

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Why

Vitest browser mode is the preferred runner for new console page and component tests (plan row S2), but nothing ran it. The unit test task runs on ci-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-e2e lane on main pushes, and bun run e2e:affected runs 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

  • Shared set-up in console-ui
    • src/testing/browser.ts: axe with the WCAG 2.2 AA tag set the Playwright suites use, light/dark setTheme, setViewport with 375 and 1280 widths, and expectNoHorizontalOverflow.
    • src/testing/browser-config.ts: headless Chromium through @vitest/browser-playwright, plus a JUnit report when CI_BROWSER_TEST_JUNIT_DIR is set.
    • vitest.browser.config.ts and a test:browser script and Turbo task.
  • Example suite (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.
  • Where it runs
    • Browser targets may set task: "test:browser". run-playwright.ts runs test:e2e and test:browser in one Turbo run, so both the main-push lane and bun run e2e:affected pick console-ui up. The lane's changed-path guard includes packages/console-ui/**.
    • *.browser.test.* files are excluded from the unit config. They are not test:extended steps, because the nightly verify-extended workflow runs in ci-base, which has no browsers.
  • Playwright pin: playwright (console-ui) joins the ci-playwright promotion list, so image promotions move it together with @playwright/test.
  • Docs
    • console-ui README: "Browser tests" section with the local commands.
    • Wiki explanation/ci-pipeline-shape.md and reference/ci-test-tiers.md: lane placement, and why these suites are not in the extended tier.
    • Delivery skill: run bun run e2e:affected when 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 by bun run e2e:affected) for a console-ui change:

== BEFORE (main): run-playwright.ts targets ==
changed packages/console-ui/src/components/button.tsx
  @shepherdjerred/delivery#test:e2e
  @shepherdjerred/tracker#test:e2e
  @shepherdjerred/artifacts#test:e2e
  @shepherdjerred/alert-dashboard#test:e2e
  @scout-for-lol/app#test:e2e
  @scout-for-lol/design-system#test:e2e
changed packages/console-ui/src/components/console-ui.browser.test.tsx
  @shepherdjerred/delivery#test:e2e
  @shepherdjerred/tracker#test:e2e
  @shepherdjerred/artifacts#test:e2e
  @shepherdjerred/alert-dashboard#test:e2e
  @scout-for-lol/app#test:e2e
  @scout-for-lol/design-system#test:e2e

== AFTER (this PR) ==
changed packages/console-ui/src/components/button.tsx
  @shepherdjerred/delivery#test:e2e
  @shepherdjerred/tracker#test:e2e
  @shepherdjerred/artifacts#test:e2e
  @shepherdjerred/alert-dashboard#test:e2e
  @scout-for-lol/app#test:e2e
  @scout-for-lol/design-system#test:e2e
  @shepherdjerred/console-ui#test:browser
changed packages/console-ui/src/components/console-ui.browser.test.tsx
  @shepherdjerred/delivery#test:e2e
  @shepherdjerred/tracker#test:e2e
  @shepherdjerred/artifacts#test:e2e
  @shepherdjerred/alert-dashboard#test:e2e
  @scout-for-lol/app#test:e2e
  @scout-for-lol/design-system#test:e2e
  @shepherdjerred/console-ui#test:browser

Rendered pipelines (selectSteps over buildPipelineSteps, plus extendedSteps). 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:

pull request changing packages/console-ui/src/components/button.tsx:
  verify, semgrep
  playwright-e2e selected: false
main push changing packages/console-ui/src/components/button.tsx:
  verify, resume-build, trmnl-validate, trmnl-plugin-archives, playwright-e2e, images, helm-push, ci-base-refresh, ci-playwright-refresh, scout-site-archives, release-please, sites, publish
  playwright-e2e selected: true
nightly extended pipeline steps:
  verify-extended  (docker.io/shepherdjerred/ci-base)
  paper-smoke-nightly  (docker.io/shepherdjerred/ci-base)

The browser suite passing (bunx turbo run test:browser --filter=@shepherdjerred/console-ui):

browser-suite.cast (terminal recording)

Verification

  • bunx turbo run build typecheck test lint test:browser --filter=@shepherdjerred/woodpecker-config-extension --filter=@shepherdjerred/console-ui --filter=@shepherdjerred/root-scripts on 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 new playwright-targets cases.
  • 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 axe button-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:browser 5 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.
    • The remaining targets were finished with turbo run test:e2e --continue after the runner stopped at its first failure.
    • tasknotes-web passed 30 and sjer.red passed 88 outside Firefox. Their Firefox projects (10 and 22 tests) could not launch in the agent sandbox ("Could not find profile folder" under /var/folders), so they are not verified locally.
  • bun run verify:extended -- --filter='...@shepherdjerred/console-ui' --filter=@shepherdjerred/root-scripts --filter=@shepherdjerred/woodpecker-config-extension on 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.
    • The scope is every workspace whose behaviour this diff can change: console-ui and its dependents, root-scripts and the config extension.
    • The ...[origin/main...HEAD] form selects all 120 workspaces, only because bun.lock, turbo.json and vitest.config.ts count as global inputs. Those edits only add console-ui's dev dependencies, a test:browser task and a *.browser.test.* exclude, and the exclude matches files only in console-ui.
  • Not run: the main-push playwright-e2e lane in Woodpecker (pull requests do not run it), ArgoCD and runtime.

🤖 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 Nov 26, 2026

Copy link
Copy Markdown
Contributor

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

@coderabbitai

coderabbitai Bot commented Nov 26, 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

@shepherdjerred
shepherdjerred marked this pull request as ready for review November 26, 2026 19:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T21:16:26.012980Z b777c9f New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for baaaa56 from the CI review gate.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: baaaa56b7c

ℹ️ 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".

@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch from baaaa56 to b777c9f Compare November 26, 2026 21:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +258 to +259
the matching browsers. The unit `test` task excludes `*.browser.test.*`
files because the `ci-base` image has no browsers. New browser tests for

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch from b777c9f to 5df4557 Compare November 27, 2026 06:31
@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch from 5df4557 to bc1a434 Compare November 27, 2026 19:21
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch from bc1a434 to 41754d7 Compare November 28, 2026 07:39
@shepherdjerred shepherdjerred changed the title feat(ci): run Vitest browser-mode tests with axe in the Playwright image feat(ci): run Vitest browser-mode tests with axe alongside the browser suites Nov 28, 2026
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
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>
@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch 3 times, most recently from d1da2e8 to c6d9a69 Compare November 28, 2026 10:50
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
…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>
@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch from c6d9a69 to 29e710a Compare November 28, 2026 18:20
shepherdjerred added a commit that referenced this pull request Nov 28, 2026
* 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>
@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch 3 times, most recently from c300e39 to 013d4e5 Compare December 3, 2026 02:58
shepherdjerred added a commit that referenced this pull request Dec 3, 2026
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>
shepherdjerred added a commit that referenced this pull request Dec 3, 2026
…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>
@shepherdjerred
shepherdjerred force-pushed the feat/vitest-browser-mode branch from 013d4e5 to cb27a75 Compare December 3, 2026 06:48
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