Skip to content

Dashboard: tables fit a phone screen and are keyboard-reachable - #12

Merged
dhonitheja merged 1 commit into
mainfrom
dashboard-mobile-a11y
Nov 22, 2026
Merged

dhonitheja merged 1 commit into
mainfrom
dashboard-mobile-a11y

Conversation

@dhonitheja

@dhonitheja dhonitheja commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

What

Browser QA of readback dashboard (Chrome 157, synthetic log of 60 runs) found two problems:

  1. Hidden counts on phones. Every table had min-width: 520px, so at 375px the Failed and Unverified columns of "By action" and the Count column of the two-column "Why claims failed" table were scrolled out of view.
  2. Scroll areas not keyboard-safe. The scroll boxes had no tabindex or label. Chrome makes scrollers focusable on its own; other browsers may not.

Changes (agent_readback/dashboard.py)

  • Only the five-column "Latest problems" table keeps a minimum width (table.wide, 560px). The other two fit at 320px and up.
  • Action names wrap after each dot (<wbr>), not mid-word. Headers and verdict badges no longer break mid-word.
  • Each scroll box is role="region", tabindex="0", aria-labelledby its heading, with a :focus-visible outline.
  • Headers have scope="col"; each table is labelled by its heading.
  • The three tables are built by one small _table() helper.

Escaping is unchanged: action names are escaped before <wbr> is inserted.

Verified

Measured in the browser on the regenerated page:

Width Page overflow Columns hidden behind scroll
320 no only "Latest problems" (Verdict, Findings, Context)
375 no only "Latest problems" (Findings, Context)
768 no none
1440 no none
  • New test test_dashboard_tables_are_keyboard_reachable_and_labelled passes, and fails on the previous markup.
  • 199 passed, 1 skipped (Windows symlink test); bandit clean.
  • CHANGELOG "Unreleased" entry added; README and CLAUDE.md test counts updated to 200.

No automated accessibility scanner (axe) was run; this covers the specific issues found, not a full WCAG audit.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Dashboard tables now fit narrow screens more effectively, with long content wrapping and reduced cell padding on phones. Only the “Latest problems” table keeps a minimum width.
  • Accessibility
    • Table regions are labelled and keyboard-focusable, with visible focus outlines and column-scoped headers.
  • Documentation
    • Updated the documented test-suite counts.

Browser QA at 375px found every table had a 520px minimum width, which
scrolled the Failed/Unverified counts and the findings Count column out
of view. Only the five-column "Latest problems" table keeps a minimum
width; action names wrap after each dot; headers and verdict badges stay
on one line.

Each table's scroll area is now a focusable, labelled region with a
visible focus outline, headers carry scope="col", and tables are
labelled by their headings. A test pins all of this and fails on the
previous markup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 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-22T22:59:26.344688Z d3841b7 PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Dashboard table updates

Layer / File(s) Summary
Build accessible table markup
agent_readback/dashboard.py
A shared helper renders labelled, focusable table regions with column-scoped headers. Action names gain break opportunities, and only the latest-problems table uses wide-table styling.
Style and verify dashboard tables
agent_readback/dashboard.py, tests/test_evidence_and_cli.py, CHANGELOG.md, CLAUDE.md, README.md
The styles allow cell wrapping, reduce padding on narrow screens, and reserve a minimum width for wide tables. Tests check accessibility attributes and table sizing. Documentation describes the dashboard changes and updates test counts.

Change: Bug fix

Merge Risk: Minimal · up to d3841

This change makes dashboard tables fit narrow screens and be reachable by keyboard. No merge-blocking risk was found, and it is easy to revert if needed.

Security architecture risk: Minimal · up to d3841

This is a presentation and accessibility update. The inspected changes preserve HTML escaping and introduce no security-relevant state transition or expanded authority.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec5fecf1-053e-43bb-9f80-252d3b11fe5c
Commits

Reviewing files that changed from the base of the PR and between ed36333 and d3841b7.

Files selected for processing: 5

  • CHANGELOG.md
  • CLAUDE.md
  • README.md
  • agent_readback/dashboard.py
  • tests/test_evidence_and_cli.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@dhonitheja
dhonitheja merged commit 0b0fc60 into main Nov 22, 2026
10 checks passed
dhonitheja added a commit that referenced this pull request Nov 22, 2026
Dashboard: tables fit a phone screen and are keyboard-reachable
@dhonitheja
dhonitheja deleted the dashboard-mobile-a11y branch November 22, 2026 23:31
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.

2 participants