Skip to content

๐ŸŽจ Palette: Improve accessibility of table collapsible groups#24

Open
seonghobae wants to merge 6 commits into
mainfrom
palette/accessible-table-collapsibles-11417230484446285947
Open

๐ŸŽจ Palette: Improve accessibility of table collapsible groups#24
seonghobae wants to merge 6 commits into
mainfrom
palette/accessible-table-collapsibles-11417230484446285947

Conversation

@seonghobae

Copy link
Copy Markdown

๐Ÿ’ก What: Added aria-controls attributes to the collapsible group toggle buttons in the UsecaseTable and ActorTable components. To support this properly, the conditional unmounting logic was refactored to use a CSS hidden class on a dedicated <tbody> so the target ID is always present in the DOM.
๐ŸŽฏ Why: When a collapsible section hides its content by completely removing it from the DOM, the aria-controls attribute points to an invalid ID, which can confuse screen readers. Keeping the element in the DOM with hidden ensures a consistent and accessible relationship between the toggle button and its content.
๐Ÿ“ธ Before/After: Visually identical. Verified with Playwright screenshots.
โ™ฟ Accessibility: Fixes broken aria-controls references and improves screen reader context for grouped table rows.


PR created automatically by Jules for task 11417230484446285947 started by @seonghobae

Added `aria-controls` to the toggle buttons in `UsecaseTable` and `ActorTable` to properly associate them with the collapsible content.
Refactored the table body structure to use multiple `<tbody>` tags wrapped in a React Fragment, and used CSS `hidden` instead of conditional unmounting to ensure the `aria-controls` target ID remains in the DOM when collapsed.
@google-labs-jules

Copy link
Copy Markdown

๐Ÿ‘‹ Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a ๐Ÿ‘€ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. ๐ŸŽ‰

โ„น๏ธ Recent review info
โš™๏ธ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 08955161-cfcf-4c82-a3fd-6732ff7487e8

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between b686d2f and b2ab02e.

๐Ÿ“’ Files selected for processing (1)
  • apps/cli/tests/e2e-cli/UC-033.test.ts

๐Ÿ“ Walkthrough

Summary by CodeRabbit

๋ฆด๋ฆฌ์Šค ๋…ธํŠธ

  • Documentation

    • ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ํ…Œ์ด๋ธ” ์„น์…˜ ์ ‘๊ธฐ ๊ตฌํ˜„ ๊ฐ€์ด๋“œ๋ผ์ธ ์ถ”๊ฐ€
  • Refactor

    • ํ…Œ์ด๋ธ” ์ปดํฌ๋„ŒํŠธ์˜ ์ ‘๊ทผ์„ฑ ๊ฐœ์„  (aria-controls ๋ฐ hidden ์†์„ฑ ํ™œ์šฉ์œผ๋กœ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ํ˜ธํ™˜์„ฑ ํ–ฅ์ƒ)
  • Tests

    • CLI ๊ฐ€์ด๋“œ ์ถœ๋ ฅ ๊ฒ€์ฆ ์—…๋ฐ์ดํŠธ

์›Œํฌ์Šค๋ฃจ

ActorTable๊ณผ UsecaseTable์—์„œ ๊ทธ๋ฃน ๋ณธ๋ฌธ ๋ Œ๋”๋ง ๋ฐฉ์‹์„ ์กฐ๊ฑด๋ถ€ ๋งˆ์šดํŠธ์—์„œ ํ•ญ์ƒ ๋งˆ์šดํŠธ ํ›„ hidden ํด๋ž˜์Šค ํ† ๊ธ€๋กœ ๋ณ€๊ฒฝํ•˜๊ณ , ํ† ๊ธ€ ๋ฒ„ํŠผ๊ณผ ๋ณธ๋ฌธ <tbody> ์‚ฌ์ด์— aria-controls/id๋ฅผ ์—ฐ๊ฒฐํ–ˆ๋‹ค. ๋™์ผ ํŒจํ„ด์ด .jules/palette.md์— ๋ฌธ์„œํ™”๋˜์—ˆ์œผ๋ฉฐ ๊ด€๋ จ e2e ํ…Œ์ŠคํŠธ๊ฐ€ ์—…๋ฐ์ดํŠธ๋˜์—ˆ๋‹ค.

๋ณ€๊ฒฝ ์‚ฌํ•ญ

ํ…Œ์ด๋ธ” ์ ‘๊ทผ์„ฑ ๊ฐœ์„ 

Layer / File(s) ์š”์•ฝ
์ ‘๊ทผ์„ฑ ํŒจํ„ด ๋ฌธ์„œํ™”
.jules/palette.md
์ ‘ํžˆ๋Š” ์„น์…˜์ด ์žˆ๋Š” ํ…Œ์ด๋ธ”์—์„œ aria-controls ๋Œ€์ƒ ID๊ฐ€ DOM์—์„œ ์‚ฌ๋ผ์ง€์ง€ ์•Š๋„๋ก ํ† ๊ธ€ ํ–‰๊ณผ ์ฝ˜ํ…์ธ  ํ–‰์„ ๋ณ„๋„ tbody๋กœ ๋ถ„๋ฆฌํ•˜๊ณ  hidden ํด๋ž˜์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ตฌํ˜„ ๊ฐ€์ด๋“œ๊ฐ€ ์ถ”๊ฐ€๋˜์—ˆ๋‹ค.
ActorTable: ์ ‘๊ทผ์„ฑ tbody ๋ถ„๋ฆฌ ๋ฐ hidden ํด๋ž˜์Šค ์ ์šฉ
apps/app/app/components/ActorTable.tsx
Fragment import๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ๊ทธ๋ฃน ํ—ค๋”์™€ ๋ณธ๋ฌธ์„ ๋ณ„๋„ <tbody>๋กœ ๋ถ„๋ฆฌํ•ด aria-controls/id๋กœ ์—ฐ๊ฒฐํ•œ๋‹ค. ๋ณธ๋ฌธ tbody๋Š” isOpen ์—ฌ๋ถ€์— ๋”ฐ๋ผ hidden ํด๋ž˜์Šค๋กœ ํ‘œ์‹œ/์ˆจ๊น€์ด ์ œ์–ด๋˜๋ฉฐ, DOM์—์„œ ํ•ญ์ƒ ์œ ์ง€๋œ๋‹ค.
UsecaseTable: ์ ‘๊ทผ์„ฑ tbody ๋ถ„๋ฆฌ ๋ฐ hidden ํด๋ž˜์Šค ์ ์šฉ
apps/app/app/components/UsecaseTable.tsx
Fragment import๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ๊ทธ๋ฃน ์ปจํ…Œ์ด๋„ˆ๋ฅผ <tbody>์—์„œ Fragment๋กœ ๋ณ€๊ฒฝํ•œ๋‹ค. ํ—ค๋” ๋ฒ„ํŠผ์— contentId ๊ธฐ๋ฐ˜ aria-controls๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ๋ณธ๋ฌธ <tbody id={contentId}>๋Š” ํ•ญ์ƒ ๋งˆ์šดํŠธํ•˜๋˜ hidden ํด๋ž˜์Šค๋กœ ์ ‘ํž˜ ์ƒํƒœ๋ฅผ ํ‘œํ˜„ํ•œ๋‹ค.
AI guide ์ถœ๋ ฅ ๊ฒ€์ฆ e2e ํ…Œ์ŠคํŠธ ์—…๋ฐ์ดํŠธ
apps/cli/tests/e2e-cli/UC-033.test.ts
ai-guide CLI ์ถœ๋ ฅ ๊ฒ€์ฆ์„ ์—…๋ฐ์ดํŠธํ•˜์—ฌ "Use vspec step add --at <n> to insert" ๋ฌธ๊ตฌ ๊ธฐ๋Œ€๊ฐ’์„ ์ถ”๊ฐ€ํ•˜๊ณ  ๊ธฐ์กด "vspec step add appends" ๋ฌธ๊ตฌ๋Š” ์ œ๊ฑฐํ–ˆ๋‹ค.

์ฝ”๋“œ ๋ฆฌ๋ทฐ ์˜ˆ์ƒ ๋…ธ๋ ฅ

๐ŸŽฏ 2 (Simple) | โฑ๏ธ ~12๋ถ„

์‹œ

๐Ÿ‡ ํ† ๋ผ๊ฐ€ ํ…Œ์ด๋ธ” ์†์„ ๊นก์ถฉ๊นก์ถฉ ๋›ฐ์–ด๋‹ค๋‹ˆ๋ฉฐ,
hidden ํด๋ž˜์Šค๋กœ ์ˆจ๋ฐ”๊ผญ์งˆ์„ ํ•˜๋„ค~
aria-controls๋กœ ์†์žก๊ณ  ์—ฐ๊ฒฐํ•˜๋‹ˆ
์Šคํฌ๋ฆฐ๋ฆฌ๋”๋„ ๊ธธ์„ ์žƒ์ง€ ์•Š๋Š”๋‹ค์˜ค! ๐ŸŽ‰
DOM์— ์‚ด๋ฉฐ์‹œ ๋‚จ์•„์žˆ๋Š” tbody,
์ ‘๊ทผ์„ฑ์˜ ๊ฝƒ์ด ํ™œ์ง ํ”ผ์—ˆ๊ตฌ๋‚˜! ๐ŸŒธ


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

โŒ Failed checks (1 error)

Check name Status Explanation Resolution
Docstring Coverage โŒ Error Docstring coverage is 0.00% which is insufficient. The required threshold is 100.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
โœ… Passed checks (4 passed)
Check name Status Explanation
Title check โœ… Passed ์ œ๋ชฉ์€ ํ’€ ๋ฆฌํ€˜์ŠคํŠธ์˜ ์ฃผ์š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ธ ํ…Œ์ด๋ธ” ์ฝœ๋ ‰์„œ๋ธ” ๊ทธ๋ฃน์˜ ์ ‘๊ทผ์„ฑ ๊ฐœ์„ ์„ ๋ช…ํ™•ํ•˜๊ฒŒ ์š”์•ฝํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
Description check โœ… Passed ์„ค๋ช…์€ ๋ณ€๊ฒฝ ์‚ฌํ•ญ๊ณผ ๊ด€๋ จ์ด ์žˆ์œผ๋ฉฐ, ์ ‘๊ทผ์„ฑ ๊ฐœ์„ ์˜ ์ด์œ , ๋ฐฉ๋ฒ•, ์˜ํ–ฅ์„ ๋ช…ํ™•ํ•˜๊ฒŒ ์„ค๋ช…ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
Linked Issues check โœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check โœ… Passed Check skipped because no linked issues were found for this pull request.
โœจ Finishing Touches
๐Ÿ“ Generate docstrings
  • Create stacked PR
  • Commit on current branch
๐Ÿงช Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette/accessible-table-collapsibles-11417230484446285947
โœจ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch palette/accessible-table-collapsibles-11417230484446285947

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

๐Ÿ”ง ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.


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 and usage tips.

โ€ฆLI test

Added `aria-controls` to the toggle buttons in `UsecaseTable` and `ActorTable` to properly associate them with the collapsible content.
Refactored the table body structure to use multiple `<tbody>` tags wrapped in a React Fragment, and used CSS `hidden` instead of conditional unmounting to ensure the `aria-controls` target ID remains in the DOM when collapsed.
Fixed a failing unit test in CLI (`UC-033.test.ts`) that checked for the exact old wording of the AI guide, bringing it up to date with the latest content.
The `UC-033.test.ts` test was failing because it asserted the presence of the string "`vspec step add` appends" which was removed from the AI guide in a recent update. It now asserts the presence of "Use `vspec step add --at <n>` to insert" instead.
The `UC-033.test.ts` test was failing because it asserted the presence of the string "`vspec step add` appends" which was removed from the AI guide in a recent update. It now asserts the presence of "Use `vspec step add --at <n>` to insert" instead.
The `UC-033.test.ts` test was failing because it asserted the presence of the string "`vspec step add` appends" which was removed from the AI guide in a recent update. It now asserts the presence of "Use `vspec step add --at <n>` to insert" instead.
The `UC-033.test.ts` test was failing because it asserted the presence of the string "`vspec step add` appends" which was removed from the AI guide in a recent update. It now asserts the presence of "Use `vspec step add --at <n>` to insert" instead.
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