Skip to content

fix(agent-dashboard): name kanban columns as regions - #25564

Closed
matbrgz wants to merge 2 commits into
stablyai:mainfrom
UndefinedDump:fix/agent-kanban-column-regions
Closed

matbrgz wants to merge 2 commits into
stablyai:mainfrom
UndefinedDump:fix/agent-kanban-column-regions

Conversation

@matbrgz

@matbrgz matbrgz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

ELI5

The Agents board has columns like "Needs You" and "Working". Sighted users can see which cards sit under which heading, but a screen reader only heard a heading, a number and some cards, with no hint that they belonged together. Each column now tells the screen reader "this is the Needs You area", so the count and cards make sense.

What Changed

  • Before: each column was a <section> with no accessible name, which assistive tech treats as a generic container. The column label and the count badge were announced as unrelated text.
  • After: each column is role="region" with aria-label set to its bucket label ("Needs You", "Working", "Done", "Idle"). Screen readers announce the column on entry and list the columns as landmarks.
  • Mechanism: KanbanColumn computes the localized bucketLabel(bucket) once and uses it for both the visible header and the aria-label. Nothing visual changes.

Why

A named region is the smallest change that gives the column a boundary and a name. The label comes from the same translate() call as the visible header, so it is localized and can't drift from what is on screen. aria-labelledby pointing at the header span would also work, but it needs generated ids for a value already in hand.

Linked Issue

Fixes #25563

Visual Proof

N/A. ARIA attributes only; nothing changes visually. Screen-reader output is covered by the test below.

Testing

  • New case in src/renderer/src/components/dashboard-popout/AgentKanbanBoard.test.tsx: "exposes each column as a region named by its bucket". It asserts getAllByRole('region') returns the three default columns in order with their labels, and that a card is found inside the "Needs You" region.

    • Before the fix: fails (Unable to find an accessible element with the role "region").
    • After the fix: passes.
  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/dashboard-popout/ src/renderer/src/components/dashboard/: 49 files, 406 tests pass.

  • pnpm lint: pass.

  • pnpm typecheck: pass.

  • Full pnpm test not run locally; CI will cover it.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

Implemented with Claude Code (Claude Opus 5.5); reviewed by the author.

Review

  • Cross-platform: ARIA only; the same on macOS, Linux and Windows screen readers.
  • SSH / remote / local: renderer-only, and the same in the in-window drawer and the pop-out window.
  • Performance: none (one string reused).
  • Security: none.
  • UI: no visual change. Columns now appear as landmarks in screen-reader rotors.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Each status column rendered as a bare <section> whose label was a plain
<span> beside a bare count, so assistive tech announced the cards and
the number without saying which column they belonged to. Give each
column role="region" and an aria-label from its bucket label.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 17d762a8-4cca-4d90-8318-5f28b7ce722a
📥 Commits

Reviewing files that changed from the base of the PR and between e2da3a1 and fa26b80.

📒 Files selected for processing (2)
  • src/renderer/src/components/dashboard-popout/AgentKanbanBoard.test.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx

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


📝 Walkthrough

Walkthrough

Kanban columns now expose accessible regions named with the same bucket labels shown in their headings. A test checks the “Needs You,” “Working,” and “Done” region names and verifies that the “Needs You” region contains its card.

Priority: ⬇️ Low

Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to fa26b

The Agents columns now have accessible names matching their headings in both the drawer and pop-out, without changing their layout or card behavior. No material merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: naming kanban columns as accessible regions.
Description check ✅ Passed The description covers the change, reason, linked issue, visual impact, testing, and compatibility considerations. It notes that the full test suite was not run locally and that CI is expected to cove…
Linked Issues check ✅ Passed Issue #25563 requires each Agent status column to be a named group containing its count and cards. The PR summary reports that KanbanColumn exposes each column as a role="region" with its localize…
Out of Scope Changes check ✅ Passed The reported changes are limited to column accessibility behavior and its supporting test. Both changes implement issue #25563. No unrelated change is reported.
  • Fix all pre-merge checks with AI
  • Autopilot · 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

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes

  • Named kanban columns as regions — each KanbanColumn <section> in AgentKanbanBoard.tsx now gets role="region" and aria-label={label}, with label computed once from the existing localized bucketLabel(bucket) and reused for the visible header, so the count and cards are announced as belonging to the column. The change is renderer-only and identical in the pop-out window and the in-window drawer.
  • Test coverage — a new case asserts getAllByRole('region') returns the three default columns in order with their bucket labels and that a card resolves inside the Needs You region. It genuinely fails against the old unnamed <section> (0 regions) and passes with the fix.

I verified the focused suite (AgentKanbanBoard.test.tsx, 18 tests) is green. role="region" is redundant given the <section> already maps to region once it has an accessible name, but it is harmless and explicit; aria-label matches the DOM text of the header, so CSS uppercase does not create a label-in-name mismatch. No other tests assert landmark counts on this surface.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@matbrgz

matbrgz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@matbrgz

matbrgz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@matbrgz

matbrgz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai For the Docstring Coverage pre-merge check on this PR: please list exactly which functions you analyzed and which of them you counted as missing a docstring (file:line and name), so we can address it precisely.

@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
gh pr view 25564 --repo stablyai/orca --json headRefOid,comments,reviews,files,statusCheckRollup
gh api --paginate repos/stablyai/orca/pulls/25564/comments --jq '.[] | {path,line,body,html_url}'
ast-grep outline src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx --items all
ast-grep outline src/renderer/src/components/dashboard-popout/AgentKanbanBoard.test.tsx --items all

Length of output: 16091


🏁 Script executed:

#!/bin/bash
set -euo pipefail
git rev-parse HEAD
gh pr diff 25564 --repo stablyai/orca
nl -ba src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx | sed -n '23,125p'
rg -n -C 12 -F 'exposes each column as a region named by its bucket' src/renderer/src/components/dashboard-popout/AgentKanbanBoard.test.tsx
nl -ba src/renderer/src/components/dashboard-popout/AgentKanbanBoard.test.tsx | sed -n '1,135p'

Length of output: 13908


@matbrgz I verified the diff at commit fa26b80. The published check reports 2 functions across 2 files, with 50% coverage, but it does not expose its per-function results. I cannot confirm the exact internal accounting.

The diff supports this reconstruction:

File and line Function Documentation in source
src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx, Line 70 KanbanColumn Present. The JSDoc is at Line 69.
src/renderer/src/components/dashboard-popout/AgentKanbanBoard.test.tsx, Line 166 Anonymous callback for it('exposes each column as a region named by its bucket', …) Missing. No JSDoc precedes the test callback.

These two entries explain the reported 50% coverage if the check counted the test callback. That remains a reconstruction, not a verified list from the check. The new test also contains an anonymous regions.map callback at Line 170, so source inspection alone cannot prove which callbacks the check included.

The likely missing entry is the test callback at Line 166—not KanbanColumn. Please retry the pre-merge check to confirm its accounting before changing documentation solely to satisfy this warning.

You are interacting with an AI system.

@matbrgz

matbrgz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks — that matches our reading. Every named function this PR touches has a one-line docstring; the remaining miss is the anonymous it(...) test callback, which we're leaving undocumented in line with the repo's concise-comment guideline.

@nwparker

Copy link
Copy Markdown
Contributor

Closing this PR as superseded by the merged PR #26865. It retains the translated column headings as accessible region names and the card-association regression, adding translated and optional Idle coverage. Matheus Breguêz’s retained contribution is credited as a co-author.

@nwparker nwparker closed this Oct 10, 2026
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.

[Bug]: Agent dashboard kanban columns have no accessible name

2 participants