Skip to content

fix(platform): measure Home row contrast and repair the selected row - #4522

Merged
yannickmonney merged 4 commits into
mainfrom
test/home-row-age-contrast
Oct 13, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
test/home-row-age-contrast

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

TALE-452 / #4060 still lacks rendered-browser evidence for Home row age contrast and axe color-contrast. This change extends the existing Chromium Browser-lane suite with twelve light/dark, desktop/phone and neutral/black/shipped-blue cases. Task rows exercise the shared age class in idle, actual pointer-hovered and aria-current highlighted states. Contrast comes from rendered computed styles, canvas composition and the actual sibling SlidingHighlight geometry.

Neutral cases run axe over the whole listed Home panel or screen. Additional branded cases run axe over the age nodes, requiring those nodes to appear in passing results. Light neutral cases temporarily apply the complete pre-#4171 /80 age class to the rendered DOM, require a sub-AA measurement and axe violation, restore the class in finally and recheck the repair. Successful CI logs include colours, ratios and axe age results. One production line changes: the age text of the selected (aria-current=page) Home row now takes the foreground colour, because the measurement found the muted age text on that row below AA (3.47:1 and 3.89:1). No dependency changes.

Addresses Independent Review feedback c521d2f1-8c40-4a4d-a7f1-3803bea8a200 on TALE-452. The production repair in #4171 remains in place.

Validation (rebased onto current main on 2026-10-13): the whole home-panel.browser.test.tsx runs in the local Chromium shell, 50 of 50 pass (the twelve new cases plus the 38 existing). Against main's home-rows.tsx five of the twelve fail, measuring 3.47:1 and 3.89:1. app/features/home under the jsdom UI config: 11 files, 165 tests pass. oxlint (type-aware), oxfmt --check, lint:conflicts, lint:manual and the platform guards pass. Full typecheck is left to the hosted gates (no type change). No merge requested or performed.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-452 repair receipt — head 4c30eea3431f492c1f9b802274312a3784b9787c, base 58cf1464588ecc0f3e9365c68dc87a0bd3e701e8, tree fe01012014ee8a4ef5d0d46f8dcc65bf9abca817. One test file and one normal-hook commit, followed by one ordinary push; no merge.

Ran: installed Oxfmt and file-scoped non-type-aware Oxlint, diff whitespace check, ordinary pre-commit and commitlint hooks. Local-only Opengrep hook completed under its configured skip-if-uncached behavior; no full SAST pass claimed.

NOT_RUN locally: rendered contrast, axe and old-fails/new-passes. Configured real-Chromium Browser runner could not launch because /opt/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell is missing. No tests executed. Installed Vitest 4.1.11 / @vitest/browser 4.1.10 also warn of a mismatch. No install, alternative runner or repeat attempted. Full typecheck and type-aware lint remain for hosted CI.

Twelve authored cases cover light/dark, 1280px desktop and 390px screen, neutral/black/shipped-blue, and idle/hovered/aria-current ages. Task rows keep the shared age visible on hover. Neutral cases audit the whole listed Home panel/screen with axe; additional branded cases audit ages only. Light neutral cases include a DOM class replacement with the exact pre-#4171 age treatment and must observe contrast <4.5 plus an axe violation, restore it and pass. This negative control is authored, not yet executed. CI logs emit measured foreground/background/ratio and axe age results.

Single CI snapshot: 2026-10-08T06:13:29Z; one complete page, 28 exact-head checks: 20 queued, 1 in progress, 7 skipped. Browser check 113176849866 queued. No CI-green or acceptance-proof claim. Publication allowance consumed. Next owner: Fleet routes distinct Independent Review agent 3f9fdcee-79e7-430b-a430-ba179d5b5132 after Browser and applicable hosted gates settle; manager next bounded check at/after 2026-10-08T06:30:00Z. No rerun/cancel/polling or self-review.

@yannickmonney

yannickmonney commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Review A (TALE-358) evidence note, not a review verdict. The TALE-452 gate stays with its captured reviewer.

The description is stale. It says "No production source or dependency changes", but head 7cf07e478 (commit "fix(platform): improve selected home row context contrast", 13:37Z) changes services/platform/app/features/home/components/home-rows.tsx:172. The row's secondary line gains [[aria-current=page]_&]:text-foreground. Merging this PR therefore changes production rendering for the selected Home row, and the description and review scope should say so.

What the failing run before that fix shows about current main. I read the Browser job 113315739921 log at 9e0ffdb1c. Against its merge base 58cf14645, it changes only home-panel.browser.test.tsx (+253), so it carries the new tests without the fix:

  • Row ages: 44 rendered measurements (34 distinct) across light/dark, 1280/390px, neutral/black/blue accents, and idle/hovered/highlighted states. All are at or above 4.5:1; the lowest is 4.72 (light, hovered, rgb(110,110,119) on #f7f7f8).
  • The failure: both light neutral cases (1280px and 390px) failed on axe: expected [ { id: 'color-contrast', …(6) } ] to deeply equal []. Errors-only logging hides the offending node. The fix commit's title points at the selected row's context line.
  • Why it applies to main: between 58cf14645 and main 66162f288, no file under services/platform/app/features/home or packages/ui/src/styles changed. Under packages/ui/src/components/navigation and packages/ui/src/hooks, only collapsible-details.tsx (which no Home or layout component imports) and use-recurrence-format.* changed. So this axe violation is expected on current main until a fix like 7cf07e478 merges. (Corrected at 22:39Z: the first version named 7d212da32 as the base.)
  • The current head: the Browser job 113340323876 at 7cf07e478 passed. Turbo reports 2 tasks, 1 cached, and a 1m50s run. I didn't open the run summary to confirm which task was cached.

Not verified:

  • which node axe flagged (the log doesn't print it);
  • a live browser or assistive-technology check;
  • whether other Home states fail axe outside these 12 cases.

The Review A stack is BLOCKED (no reservation). Logs are cited by job ID; no local execution.

@yannickmonney
yannickmonney added this pull request to the merge queue Oct 9, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to the queue being cleared Oct 9, 2026
@yannickmonney
yannickmonney force-pushed the test/home-row-age-contrast branch from 7cf07e4 to 6c49d45 Compare October 9, 2026 04:28
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 9, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to a manual request Oct 9, 2026
@yannickmonney
yannickmonney force-pushed the test/home-row-age-contrast branch from 6c49d45 to 03d3068 Compare October 9, 2026 04:47
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 9, 2026
@yannickmonney
yannickmonney force-pushed the test/home-row-age-contrast branch from 03d3068 to 83da080 Compare October 13, 2026 10:44
@yannickmonney yannickmonney changed the title test(platform): measure rendered Home row age contrast fix(platform): measure Home row contrast and repair the selected row Oct 13, 2026
@yannickmonney
yannickmonney merged commit c2499fc into main Oct 13, 2026
@yannickmonney
yannickmonney deleted the test/home-row-age-contrast branch October 13, 2026 12:18
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