Skip to content

๐ŸŽจ ์ ‘๊ทผ์„ฑ ๊ฐœ์„ : OverviewStats ํŽผ์น˜๊ธฐ ๋ฒ„ํŠผ์— ARIA ์†์„ฑ ์ถ”๊ฐ€#4

Closed
seonghobae wants to merge 4 commits into
mainfrom
palette/a11y-overview-stats-2586341598940276216
Closed

๐ŸŽจ ์ ‘๊ทผ์„ฑ ๊ฐœ์„ : OverviewStats ํŽผ์น˜๊ธฐ ๋ฒ„ํŠผ์— ARIA ์†์„ฑ ์ถ”๊ฐ€#4
seonghobae wants to merge 4 commits into
mainfrom
palette/a11y-overview-stats-2586341598940276216

Conversation

@seonghobae

@seonghobae seonghobae commented May 28, 2026

Copy link
Copy Markdown

๊ฐœ์š”

OverviewStats ์ปดํฌ๋„ŒํŠธ์˜ ํŽผ์น˜๊ธฐ/์ ‘๊ธฐ ๋ฒ„ํŠผ์— ์ ์ ˆํ•œ ARIA ์†์„ฑ์„ ์ถ”๊ฐ€ํ•˜์—ฌ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ์‚ฌ์šฉ์ž์˜ ์ ‘๊ทผ์„ฑ์„ ๊ฐœ์„ ํ•ฉ๋‹ˆ๋‹ค.

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

packages/web/src/components/dashboard/overview-stats.tsx

์ถ”๊ฐ€๋œ ARIA ์†์„ฑ

์†์„ฑ ์ ์šฉ ์œ„์น˜ ์—ญํ• 
aria-expanded ํŽผ์น˜๊ธฐ ๋ฒ„ํŠผ ํ˜„์žฌ ํŽผ์นจ/์ ‘ํž˜ ์ƒํƒœ๋ฅผ ์Šคํฌ๋ฆฐ ๋ฆฌ๋”์— ์ „๋‹ฌ
aria-controls ํŽผ์น˜๊ธฐ ๋ฒ„ํŠผ ๋ฒ„ํŠผ์ด ์ œ์–ดํ•˜๋Š” ์ฝ˜ํ…์ธ  ์˜์—ญ๊ณผ ์—ฐ๊ฒฐ
id ํŽผ์น  ์ˆ˜ ์žˆ๋Š” ์„น์…˜ aria-controls ์ฐธ์กฐ ๋Œ€์ƒ ๋ช…์‹œ
aria-hidden="true" ์žฅ์‹์šฉ ํ…์ŠคํŠธ ๋ฐ ํ™”์‚ดํ‘œ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ๋…ธ์ด์ฆˆ ๊ฐ์†Œ

๊ฐœ์„  ์ด์œ 

๊ธฐ์กด์—๋Š” ํŽผ์น˜๊ธฐ/์ ‘๊ธฐ ๋ฒ„ํŠผ์ด ์‹œ๊ฐ์  ๋‹จ์„œ์™€ ํ…์ŠคํŠธ์—๋งŒ ์˜์กดํ–ˆ์Šต๋‹ˆ๋‹ค. ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ์‚ฌ์šฉ์ž๋Š”:

  • ๋ฒ„ํŠผ์˜ ํ˜„์žฌ ์ƒํƒœ(ํŽผ์ณ์ง/์ ‘ํ˜€์ง)๋ฅผ ์•Œ ์ˆ˜ ์—†์—ˆ๊ณ 
  • ๋ฒ„ํŠผ๊ณผ ํ•ด๋‹น ์ฝ˜ํ…์ธ ์˜ ๊ด€๊ณ„๋ฅผ ํŒŒ์•…ํ•˜๊ธฐ ์–ด๋ ค์› ์Šต๋‹ˆ๋‹ค

์ด ๋ณ€๊ฒฝ์œผ๋กœ WAI-ARIA Disclosure ํŒจํ„ด์„ ์ค€์ˆ˜ํ•ฉ๋‹ˆ๋‹ค.

ํ…Œ์ŠคํŠธ ๋ฐฉ๋ฒ•

# VoiceOver(macOS) ๋˜๋Š” NVDA(Windows)๋กœ ๋ฒ„ํŠผ ํฌ์ปค์Šค ์‹œ
# "ํ†ต๊ณ„ ์˜๋ฏธ ๋ณด๊ธฐ, ์ ‘ํ˜€์ง, ๋ฒ„ํŠผ" ํ˜•ํƒœ๋กœ ์ฝํ˜€์•ผ ํ•จ
# ํด๋ฆญ ํ›„: "ํ†ต๊ณ„ ์˜๋ฏธ ๋ณด๊ธฐ, ํŽผ์ณ์ง, ๋ฒ„ํŠผ"

- Add `aria-expanded` and `aria-controls` to the expand button in `overview-stats.tsx`
- Add an `id` to the toggled content div to match `aria-controls`
- Hide purely visual indicators ('โ–ธ' and text like 'click to expand') from screen readers using `aria-hidden="true"` to reduce verbosity and redundancy since state is already conveyed via `aria-expanded`.
@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 May 28, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@seonghobae, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 41 minutes and 25 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

โŒ› How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

๐Ÿšฆ How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

โ„น๏ธ Review info
โš™๏ธ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3cc0a7de-0e30-466c-ade3-278d585be526

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 891728c and 3748b52.

๐Ÿ“’ Files selected for processing (1)
  • packages/web/src/components/dashboard/overview-stats.tsx
๐Ÿ“ Walkthrough

Walkthrough

์ด PR์€ ์ ‘๊ทผ์„ฑ์ด ํ–ฅ์ƒ๋œ ํ™•์žฅ/์ถ•์†Œ ํ† ๊ธ€ UI ํŒจํ„ด์„ ๋ฌธ์„œํ™”ํ•˜๊ณ  OverviewStats ์ปดํฌ๋„ŒํŠธ์— ๊ตฌํ˜„ํ•ฉ๋‹ˆ๋‹ค. ARIA ์†์„ฑ(aria-expanded, aria-controls, aria-labelledby)์„ ์ถ”๊ฐ€ํ•˜๊ณ , ์กฐ๊ฑด๋ถ€ DOM ๋ Œ๋”๋ง ๋Œ€์‹  hidden ์†์„ฑ์œผ๋กœ ํ‘œ์‹œ ์ƒํƒœ๋ฅผ ์ œ์–ดํ•˜๋„๋ก ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.

Changes

ํ™•์žฅ/์ถ•์†Œ UI ์ ‘๊ทผ์„ฑ ๊ฐœ์„ 

Layer / File(s) Summary
์ ‘๊ทผ์„ฑ ๊ฐ€์ด๋“œ ๋ฌธ์„œํ™”
.Jules/palette.md
aria-expanded๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ํ† ๊ธ€ UI์—์„œ ์ค‘๋ณต๋œ ์‹œ๊ฐ ๋ณด์กฐ ํ…์ŠคํŠธ์— aria-hidden='true'๋ฅผ ์ ์šฉํ•˜์—ฌ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ์ถœ๋ ฅ์„ ๊ฐœ์„ ํ•˜๋Š” ์ ‘๊ทผ์„ฑ ๊ถŒ๊ณ  ์‚ฌํ•ญ์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
OverviewStats ํ† ๊ธ€ UI ์ ‘๊ทผ์„ฑ ๊ตฌํ˜„
packages/web/src/components/dashboard/overview-stats.tsx
ํ† ๊ธ€ ๋ฒ„ํŠผ์— id, aria-expanded, aria-controls๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ์„ค๋ช… ์˜์—ญ์„ role="region"๊ณผ aria-labelledby๋กœ ์—ฐ๊ฒฐํ–ˆ์œผ๋ฉฐ, ์กฐ๊ฑด๋ถ€ ๋ Œ๋”๋ง ๋ฐฉ์‹์„ hidden ์†์„ฑ์œผ๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.

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

๐Ÿฐ ํ† ๊ธ€ UI์— ๋งˆ๋ฒ•์„ ๋”ํ–ˆ๋„ค,
ARIA ์†์„ฑ์œผ๋กœ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ํ–‰๋ณต,
์ˆจ๊ฒจ์ง„ ๊ฒƒ๋„ DOM์—์„œ ์‚ด์•„์žˆ๊ณ ,
์ ‘๊ทผ์„ฑ ๊ฐ€์ด๋“œ๊ฐ€ ๋ฐ˜์ง๋ฐ˜์ง,
๋ชจ๋‘๊ฐ€ ๋ˆ„๋ฆด ์ˆ˜ ์žˆ๋Š” ์ธํ„ฐํŽ˜์ด์Šค! โœจ


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
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.
Title check โœ… Passed PR ์ œ๋ชฉ์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์˜ ํ•ต์‹ฌ์„ ๋ช…ํ™•ํ•˜๊ฒŒ ๋ฐ˜์˜ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. 'OverviewStats ํŽผ์น˜๊ธฐ ๋ฒ„ํŠผ์— ARIA ์†์„ฑ ์ถ”๊ฐ€'๋Š” main_file์˜ ๋ณ€๊ฒฝ ๋‚ด์šฉ๊ณผ pr_objectives์—์„œ ์„ค๋ช…ํ•˜๋Š” ์ ‘๊ทผ์„ฑ ๊ฐœ์„  ์ž‘์—…๊ณผ ์ •ํ™•ํžˆ ์ผ์น˜ํ•ฉ๋‹ˆ๋‹ค.
Description check โœ… Passed PR ์„ค๋ช…์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ๊ณผ ๊ด€๋ จ ์žˆ์Šต๋‹ˆ๋‹ค. OverviewStats ์ปดํฌ๋„ŒํŠธ์— ARIA ์†์„ฑ์„ ์ถ”๊ฐ€ํ•œ ๊ตฌ์ฒด์ ์ธ ๋‚ด์šฉ๊ณผ ๊ฐœ์„  ์ด์œ , ํ…Œ์ŠคํŠธ ๋ฐฉ๋ฒ•์„ ํฌํ•จํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, ์‹ค์ œ ๋ณ€๊ฒฝ ํŒŒ์ผ๊ณผ ์ผ์น˜ํ•ฉ๋‹ˆ๋‹ค.
โœจ Finishing Touches
๐Ÿงช Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette/a11y-overview-stats-2586341598940276216
โœจ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch palette/a11y-overview-stats-2586341598940276216

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.


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

@seonghobae

Copy link
Copy Markdown
Author

@codex[agent] ๋ฆฌ๋ทฐํ•˜์‹œ์˜ค.

@google-labs-jules

Copy link
Copy Markdown

@codex[agent] ๋ฆฌ๋ทฐํ•˜์‹œ์˜ค.

Acknowledged.

seonghobae and others added 2 commits May 30, 2026 14:37
- Add `aria-expanded` and `aria-controls` to the expand button in `overview-stats.tsx`
- Add an `id` to the toggled content div to match `aria-controls`
- Hide purely visual indicators ('โ–ธ' and text like 'click to expand') from screen readers using `aria-hidden="true"` to reduce verbosity and redundancy since state is already conveyed via `aria-expanded`.
Co-authored-by: seonghobae <8172694+seonghobae@users.noreply.github.com>
@Codex

Codex AI commented May 30, 2026

Copy link
Copy Markdown

@codex[agent] ๋ฆฌ๋ทฐํ•˜์‹œ์˜ค.

Reviewed and pushed an a11y refinement: keep the controlled content region in the DOM (toggle via hidden) so aria-controls always points to a real element, and label the region via aria-labelledby on the toggle button. Commit: 891728c.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.16.0/x64/bin/node /opt/hostedtoolcache/node/24.16.0/x64/bin/node /home/REDACTED/work/argos/argos/node_modules/.pnpm/prisma@6.19.3_typescript@5.9.3/node_modules/prisma/build/child {&#34;product&#34;:&#34;prisma&#34;,&#34;version&#34;:&#34;6.19.3&#34;,&#34;cli_install_type&#34;:&#34;local&#34;,&#34;information&#34;:&#34;&#34;,&#34;local_timestamp&#34;:&#34;2026-05-30T14:37:54Z&#34;,&#34;project_hash&#34;:&#34;256f53da&#34;,&#34;cli_path&#34;:&#34;/home/REDACTED/work/argos/argos/packages/web/node_modules/prisma/build/index.js&#34;,&#34;cli_path_hash e/git (dns block)
  • fonts.googleapis.com
    • Triggering command: /opt/hostedtoolcache/node/24.16.0/x64/bin/node /opt/hostedtoolcache/node/24.16.0/x64/bin/node /home/REDACTED/work/argos/argos/node_modules/.pnpm/next@15.5.15_@babel&#43;core@7.29.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/compiled/jest-worker/processChild.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@seonghobae

Copy link
Copy Markdown
Author

@coderabbitai ์ ‘๊ทผ์„ฑ ๊ฐœ์„  PR์„ ๋ฆฌ๋ทฐํ•ด ์ฃผ์„ธ์š”:

  1. aria-expanded, aria-controls, id ์†์„ฑ ๊ฐ’์˜ ์ •ํ™•์„ฑ
  2. aria-hidden="true" ์ ์šฉ ๋ฒ”์œ„๊ฐ€ ์‹ค์ œ ์žฅ์‹ ์š”์†Œ์—๋งŒ ํ•œ์ •๋˜๋Š”์ง€
  3. ํ‚ค๋ณด๋“œ ๋‚ด๋น„๊ฒŒ์ด์…˜(Tab, Enter, Space) ์‹œ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๋™์ž‘ํ•˜๋Š”์ง€
  4. PR #6๊ณผ ๋™์ผ ํŒŒ์ผ ์ˆ˜์ • - ๋‘ PR ๋ณ‘ํ•ฉ ์‹œ ์ถฉ๋Œ ๊ฐ€๋Šฅ์„ฑ ๊ฒ€ํ† 

@google-labs-jules

Copy link
Copy Markdown

@coderabbitai ์ ‘๊ทผ์„ฑ ๊ฐœ์„  PR์„ ๋ฆฌ๋ทฐํ•ด ์ฃผ์„ธ์š”:

  1. aria-expanded, aria-controls, id ์†์„ฑ ๊ฐ’์˜ ์ •ํ™•์„ฑ
  2. aria-hidden="true" ์ ์šฉ ๋ฒ”์œ„๊ฐ€ ์‹ค์ œ ์žฅ์‹ ์š”์†Œ์—๋งŒ ํ•œ์ •๋˜๋Š”์ง€
  3. ํ‚ค๋ณด๋“œ ๋‚ด๋น„๊ฒŒ์ด์…˜(Tab, Enter, Space) ์‹œ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๋™์ž‘ํ•˜๋Š”์ง€
  4. PR #6๊ณผ ๋™์ผ ํŒŒ์ผ ์ˆ˜์ • - ๋‘ PR ๋ณ‘ํ•ฉ ์‹œ ์ถฉ๋Œ ๊ฐ€๋Šฅ์„ฑ ๊ฒ€ํ† 

Acknowledged. The review request has been noted.

@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown

Tip

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

๐Ÿงฉ Analysis chain

๐Ÿ Script executed:

#!/bin/bash
# Fetch PR `#4` diff
gh pr diff 4 --repo Seongho-Bae/argos

echo "=== PR `#4` FILES ==="
gh pr view 4 --repo Seongho-Bae/argos --json files -q '.files[].path'

echo "=== PR `#6` INFO ==="
gh pr view 6 --repo Seongho-Bae/argos --json title,files,state -q '{title: .title, state: .state, files: [.files[].path]}'

echo "=== PR `#6` DIFF ==="
gh pr diff 6 --repo Seongho-Bae/argos

Length of output: 8538


๐Ÿ Script executed:

#!/bin/bash
# Read the actual file from the PR branch
cat packages/web/src/components/dashboard/overview-stats.tsx

Length of output: 4605



@seonghobae, PR #4์˜ ์ ‘๊ทผ์„ฑ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ 4๊ฐ€์ง€ ํ•ญ๋ชฉ๋ณ„๋กœ ๊ฒ€ํ† ํ•œ ๊ฒฐ๊ณผ์ž…๋‹ˆ๋‹ค.


1. aria-expanded / aria-controls / id ์†์„ฑ ๊ฐ’ ์ •ํ™•์„ฑ โœ…

์†์„ฑ ๊ฐ’ ํ‰๊ฐ€
๋ฒ„ํŠผ id "overview-stats-explanation-toggle" ๊ณ ์œ ํ•˜๊ณ  ๋ช…ํ™•ํ•จ โœ…
aria-controls "overview-stats-explanation" ๋Œ€์ƒ div์˜ id์™€ ์ •ํ™•ํžˆ ์ผ์น˜ โœ…
aria-expanded {expanded} (boolean) React๊ฐ€ "true"/"false"๋กœ ์ •ํ™•ํžˆ ๋ Œ๋”๋ง โœ…
์˜์—ญ์˜ aria-labelledby "overview-stats-explanation-toggle" ๋ฒ„ํŠผ id ์ฐธ์กฐ โ†’ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ์ด๋ฆ„์ด "What do these numbers mean?"์œผ๋กœ ํ•ด์„๋จ โœ…

โš ๏ธ ์ฃผ์˜: OverviewStats๊ฐ€ ํ•œ ํŽ˜์ด์ง€์— ์—ฌ๋Ÿฌ ์ธ์Šคํ„ด์Šค๋กœ ๋ Œ๋”๋ง๋  ๊ฒฝ์šฐ, id ๊ฐ’ ์ค‘๋ณต์ด ๋ฐœ์ƒํ•˜์—ฌ ์œ ํšจํ•˜์ง€ ์•Š์€ HTML์ด ๋ฉ๋‹ˆ๋‹ค. ํ˜„์žฌ ๋Œ€์‹œ๋ณด๋“œ์—์„œ ๋‹จ์ผ ์ธ์Šคํ„ด์Šค๋ผ๋ฉด ๋ฌธ์ œ ์—†์ง€๋งŒ, ์žฌ์‚ฌ์šฉ์„ฑ์„ ๊ณ ๋ คํ•œ๋‹ค๋ฉด useId() ํ›… ์‚ฌ์šฉ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค:

import { useId } from 'react'

// ์ปดํฌ๋„ŒํŠธ ๋‚ด๋ถ€
const uid = useId()
const toggleId = `${uid}-toggle`
const panelId = `${uid}-panel`

2. aria-hidden="true" ์ ์šฉ ๋ฒ”์œ„ โœ…

์š”์†Œ aria-hidden ์ ์šฉ ์ ์ ˆ์„ฑ
โ–ธ ํ™”์‚ดํ‘œ span โœ… ์ ์šฉ ์ˆœ์ˆ˜ ์žฅ์‹ ์š”์†Œ โœ…
โ€” click to collapse/expand span โœ… ์ ์šฉ aria-expanded๋กœ ์ด๋ฏธ ์ƒํƒœ ์ „๋‹ฌ โ†’ ์ค‘๋ณต ์ œ๊ฑฐ โœ…
"What do these numbers mean?" span โŒ ๋ฏธ์ ์šฉ ๋ฒ„ํŠผ์˜ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ์ด๋ฆ„์œผ๋กœ ๋…ธ์ถœ๋˜์–ด์•ผ ํ•จ โœ…

์˜๋ฏธ ์žˆ๋Š” ๋ ˆ์ด๋ธ”์€ ๊ทธ๋Œ€๋กœ ๋…ธ์ถœํ•˜๊ณ , ์žฅ์‹์ /์ค‘๋ณต ์š”์†Œ๋งŒ ์ˆจ๊ฒผ์Šต๋‹ˆ๋‹ค. ์˜ฌ๋ฐ”๋ฅธ ์ ์šฉ์ž…๋‹ˆ๋‹ค.


3. ํ‚ค๋ณด๋“œ ๋‚ด๋น„๊ฒŒ์ด์…˜ โœ…

  • Tab: native <button> ์š”์†Œ์ด๋ฏ€๋กœ ํฌ์ปค์Šค ๊ฐ€๋Šฅ โœ…
  • Enter / Space: <button type="button">์ด ๊ธฐ๋ณธ์ ์œผ๋กœ ๋‘ ํ‚ค ๋ชจ๋‘ ์ฒ˜๋ฆฌ โœ…
  • ์ˆจ๊ฒจ์ง„ ์˜์—ญ: hidden={!expanded} โ†’ HTML hidden ์†์„ฑ์ด ์ฝ˜ํ…์ธ ๋ฅผ ํƒญ ์ˆœ์„œ์™€ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ๋ชจ๋‘์—์„œ ์ œ๊ฑฐ โœ…
  • ์ปค์Šคํ…€ tabIndex๋‚˜ role ๋ณ€๊ฒฝ ์—†์Œ โœ…

๊ธฐ์กด {expanded && (...)} ๋ฐฉ์‹์—์„œ hidden ์†์„ฑ ๋ฐฉ์‹์œผ๋กœ ๋ณ€๊ฒฝํ•œ ๊ฒƒ๋„ ARIA ์—ฐ๋™(aria-controls ๋Œ€์ƒ์ด DOM์— ํ•ญ์ƒ ์กด์žฌํ•ด์•ผ ํ•จ)์— ๋” ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.

์ฐธ๊ณ : role="region"์€ ์œ ํšจํ•˜์ง€๋งŒ, ์ž‘์€ ์„ค๋ช… ํŒจ๋„์— ๋žœ๋“œ๋งˆํฌ๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ํƒ์ƒ‰ ๋ชฉ๋ก์— ๋…ธ์ด์ฆˆ๊ฐ€ ์ƒ๊ธธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜๋Š” ์•„๋‹ˆ๋‚˜ ์„ค๊ณ„ ์˜๋„์— ๋”ฐ๋ผ ์œ ์ง€ํ•ด๋„ ๋ฌด๋ฐฉํ•ฉ๋‹ˆ๋‹ค.


4. PR #6๊ณผ์˜ ์ถฉ๋Œ ๊ฐ€๋Šฅ์„ฑ โš ๏ธ

๋‘ PR ๋ชจ๋‘ ๋™์ผํ•œ ํŒŒ์ผ์˜ ๋™์ผํ•œ ๋ผ์ธ์„ ์ˆ˜์ •ํ•˜์—ฌ ์ถฉ๋Œ์ด ํ™•์ •์ ์ž…๋‹ˆ๋‹ค:

ํŒŒ์ผ PR #4 PR #6
overview-stats.tsx aria-expanded + aria-controls + id(๋ฒ„ํŠผ) + aria-hidden(2๊ฐœ) + role="region" + aria-labelledby aria-expanded + aria-controls + id(div๋งŒ)
.Jules/palette.md ์‹ ๊ทœ ํŒŒ์ผ(๋‹ค๋ฅธ ๋‚ด์šฉ) ์‹ ๊ทœ ํŒŒ์ผ(๋‹ค๋ฅธ ๋‚ด์šฉ)

PR #4๊ฐ€ ๋” ์™„์ „ํ•œ ๊ตฌํ˜„์ž…๋‹ˆ๋‹ค. ๊ถŒ์žฅ ์ฒ˜๋ฆฌ ๋ฐฉ์•ˆ:

  1. PR #4๋ฅผ ๋จผ์ € ๋จธ์ง€ํ•˜๊ณ , PR #6์€ ๋‹ซ๊ฑฐ๋‚˜
  2. PR #6์„ PR #4 ๋ธŒ๋žœ์น˜ ๊ธฐ๋ฐ˜์œผ๋กœ ๋ฆฌ๋ฒ ์ด์Šค ํ›„ ์ค‘๋ณต ๋ถ€๋ถ„ ์ œ๊ฑฐ

์ข…ํ•ฉ ํ‰๊ฐ€

์ „๋ฐ˜์ ์œผ๋กœ ์ ‘๊ทผ์„ฑ ๊ฐœ์„  ๋ฐฉํ–ฅ์ด ์˜ฌ๋ฐ”๋ฅด๋ฉฐ, ARIA ํ‘œ์ค€ disclosure ํŒจํ„ด์„ ์ž˜ ๋”ฐ๋ฅด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. useId()๋ฅผ ํ†ตํ•œ ๊ณ ์œ  ID ์ฒ˜๋ฆฌ์™€ PR #6 ์ถฉ๋Œ ํ•ด์†Œ๊ฐ€ ๋ณ‘ํ•ฉ ์ „ ํ™•์ธ์ด ํ•„์š”ํ•œ ํ•ต์‹ฌ ํ•ญ๋ชฉ์ž…๋‹ˆ๋‹ค.

@seonghobae

Copy link
Copy Markdown
Author

@coderabbitai review

์ด PR์„ ์ „์ฒด ๊ฒ€ํ† ํ•ด ์ฃผ์„ธ์š”. ํŠนํžˆ ๋‹ค์Œ ์‚ฌํ•ญ์„ ์ค‘์ ์ ์œผ๋กœ ํ™•์ธํ•ด ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค:

  • ์ฝ”๋“œ ์ •ํ™•์„ฑ ๋ฐ ์ž ์žฌ์  ๋ฒ„๊ทธ
  • ๋ณด์•ˆ ์ทจ์•ฝ์  ์—ฌ๋ถ€
  • ์„ฑ๋Šฅ ์˜ํ–ฅ
  • ์ฝ”๋”ฉ ํ‘œ์ค€ ๋ฐ best practice ์ค€์ˆ˜ ์—ฌ๋ถ€

@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown

Tip

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

๐Ÿงฉ Analysis chain

๐Ÿ Script executed:

#!/bin/bash
echo "=== PR `#4` DIFF ==="
gh pr diff 4 --repo Seongho-Bae/argos

echo "=== FILE CONTENT ==="
cat packages/web/src/components/dashboard/overview-stats.tsx

echo "=== JULES PALETTE MD ==="
cat .Jules/palette.md

Length of output: 9418



@seonghobae, PR #4 ์ „์ฒด ๋ฆฌ๋ทฐ ๊ฒฐ๊ณผ์ž…๋‹ˆ๋‹ค.


์ฝ”๋“œ ์ •ํ™•์„ฑ ๋ฐ ์ž ์žฌ์  ๋ฒ„๊ทธ

โœ… ์˜ฌ๋ฐ”๋ฅธ ๊ตฌํ˜„

  • aria-expanded={expanded} โ€” React๊ฐ€ boolean์„ "true"/"false" ๋ฌธ์ž์—ด๋กœ ์ •ํ™•ํžˆ ๋ Œ๋”๋ง
  • aria-controls โ†” id ์ฐธ์กฐ๊ฐ€ ์ •ํ™•ํžˆ ์ผ์น˜
  • type="button" โ€” ํผ ๋‚ด๋ถ€ ์‚ฌ์šฉ ์‹œ ์˜๋„์น˜ ์•Š์€ submit ๋ฐฉ์ง€
  • hidden={!expanded} โ€” HTML hidden ์†์„ฑ์œผ๋กœ AT์™€ ํƒญ ์ˆœ์„œ ๋ชจ๋‘์—์„œ ์ œ๊ฑฐ, aria-controls ๋Œ€์ƒ์ด DOM์— ํ•ญ์ƒ ์กด์žฌํ•ด์•ผ ํ•œ๋‹ค๋Š” ARIA ์š”๊ตฌ์‚ฌํ•ญ ์ถฉ์กฑ

โš ๏ธ ์ž ์žฌ์  ๋ฒ„๊ทธ โ€” ํ•˜๋“œ์ฝ”๋”ฉ๋œ id (์ค‘์š”)

// ํ˜„์žฌ: ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋‘ ๋ฒˆ ๋ Œ๋”๋ง๋˜๋ฉด id๊ฐ€ ์ค‘๋ณต๋˜์–ด ARIA ์—ฐ๊ฒฐ์ด ๊นจ์ง
id="overview-stats-explanation-toggle"
id="overview-stats-explanation"

// ๊ถŒ์žฅ: React 18+์˜ useId() ์‚ฌ์šฉ
import { useState, useId } from 'react'

const uid = useId()
// <button id={`${uid}-toggle`} aria-controls={`${uid}-panel`} ...>
// <div id={`${uid}-panel`} aria-labelledby={`${uid}-toggle`} ...>

ํ˜„์žฌ ๋Œ€์‹œ๋ณด๋“œ์—์„œ ๋‹จ์ผ ์ธ์Šคํ„ด์Šค๋งŒ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด ์ฆ‰๊ฐ์ ์ธ ๋ฌธ์ œ๋Š” ์—†์œผ๋‚˜, ์ปดํฌ๋„ŒํŠธ ์žฌ์‚ฌ์šฉ ์‹œ ์œ ํšจํ•˜์ง€ ์•Š์€ HTML์ด ๋ฉ๋‹ˆ๋‹ค.


๋ณด์•ˆ ์ทจ์•ฝ์ 

๐ŸŸข ์—†์Œ. ์‚ฌ์šฉ์ž ์ž…๋ ฅ ๋ Œ๋”๋ง ์—†์Œ, dangerouslySetInnerHTML ์—†์Œ, ์™ธ๋ถ€ API ํ˜ธ์ถœ ์—†์Œ. ์ด PR์€ ์ˆœ์ˆ˜ํ•œ ์ •์  ๋งˆํฌ์—… ๋ณ€๊ฒฝ์ด๋ฉฐ ๋ณด์•ˆ ์œ„ํ—˜์ด ์—†์Šต๋‹ˆ๋‹ค.


์„ฑ๋Šฅ ์˜ํ–ฅ

๐ŸŸข ๋ฌด์‹œํ•  ์ˆ˜์ค€. {expanded && <div>} โ†’ <div hidden={!expanded}>๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด ์„ค๋ช… ์˜์—ญ์ด ํ•ญ์ƒ DOM์— ์กด์žฌํ•˜์ง€๋งŒ, 6๊ฐœ์˜ ์ •์  <p> ์š”์†Œ์ด๋ฏ€๋กœ ์‹ค์งˆ์  ์„ฑ๋Šฅ ์˜ํ–ฅ์€ ์—†์Šต๋‹ˆ๋‹ค. ์˜คํžˆ๋ ค ํ† ๊ธ€ ์‹œ DOM ์ƒ์„ฑ/์‚ญ์ œ ๋น„์šฉ์ด ์ œ๊ฑฐ๋˜์–ด ๋ฏธ์„ธํ•˜๊ฒŒ ์œ ๋ฆฌํ•ฉ๋‹ˆ๋‹ค.


์ฝ”๋”ฉ ํ‘œ์ค€ ๋ฐ Best Practice

โš ๏ธ role="region" โ€” ๋žœ๋“œ๋งˆํฌ ๋…ธ์ด์ฆˆ ๊ฐ€๋Šฅ์„ฑ

role="region"์€ ARIA ๋žœ๋“œ๋งˆํฌ๋กœ, ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ์‚ฌ์šฉ์ž๊ฐ€ F6 / ๋‹จ์ถ•ํ‚ค๋กœ ํƒ์ƒ‰ํ•˜๋Š” ๋ชฉ๋ก์— ํฌํ•จ๋ฉ๋‹ˆ๋‹ค. "What do these numbers mean?" ์ˆ˜์ค€์˜ ์†Œํ˜• ์ •๋ณด ํŒจ๋„์€ ๋žœ๋“œ๋งˆํฌ๋กœ ๋…ธ์ถœํ•˜๊ธฐ์— ๊ณผ๋„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • ๋Œ€์•ˆ 1: role="region" ์ œ๊ฑฐ โ€” ์ด๋ฏธ aria-controls/aria-expanded๋กœ ๊ด€๊ณ„๊ฐ€ ๋ช…ํ™•ํžˆ ์„ ์–ธ๋จ
  • ๋Œ€์•ˆ 2: ์œ ์ง€ โ€” ์„ค๊ณ„ ์˜๋„์— ๋”ฐ๋ผ ํ—ˆ์šฉ ๊ฐ€๋Šฅ

โš ๏ธ .Jules/palette.md ํŒŒ์ผ

์ด ํŒŒ์ผ์€ AI ์—์ด์ „ํŠธ(Jules)๊ฐ€ ์ƒ์„ฑํ•œ ์ž‘์—… ๋ฉ”๋ชจ ํŒŒ์ผ๋กœ ํ”„๋กœ์ ํŠธ ์ฝ”๋“œ๋ฒ ์ด์Šค์— ํฌํ•จ๋  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค. .gitignore์— ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ์ปค๋ฐ‹์—์„œ ์ œ์™ธํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค:

# .gitignore ์ถ”๊ฐ€ ๊ถŒ์žฅ
.Jules/

์ข…ํ•ฉ ํ‰๊ฐ€

ํ•ญ๋ชฉ ํ‰๊ฐ€
์ฝ”๋“œ ์ •ํ™•์„ฑ โœ… ์–‘ํ˜ธ (๋‹จ, useId() ์ ์šฉ ๊ถŒ์žฅ)
๋ณด์•ˆ โœ… ์ด์Šˆ ์—†์Œ
์„ฑ๋Šฅ โœ… ์ด์Šˆ ์—†์Œ
Best Practice โš ๏ธ useId() ๋ฏธ์ ์šฉ, .Jules/palette.md ํŒŒ์ผ ์ •๋ฆฌ ํ•„์š”

์ ‘๊ทผ์„ฑ ๊ฐœ์„  ๋ฐฉํ–ฅ์€ ARIA disclosure ํŒจํ„ด์— ์ž˜ ๋ถ€ํ•ฉํ•˜๋ฉฐ ์ „๋ฐ˜์ ์œผ๋กœ ์˜ฌ๋ฐ”๋ฅธ ๊ตฌํ˜„์ž…๋‹ˆ๋‹ค. ๋ณ‘ํ•ฉ ์ „ useId() ์ ์šฉ๊ณผ .Jules/palette.md ํŒŒ์ผ ์ฒ˜๋ฆฌ๋ฅผ ๊ฒ€ํ† ํ•ด ์ฃผ์„ธ์š”.

@google-labs-jules

Copy link
Copy Markdown

@coderabbitai review

์ด PR์„ ์ „์ฒด ๊ฒ€ํ† ํ•ด ์ฃผ์„ธ์š”. ํŠนํžˆ ๋‹ค์Œ ์‚ฌํ•ญ์„ ์ค‘์ ์ ์œผ๋กœ ํ™•์ธํ•ด ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค:

  • ์ฝ”๋“œ ์ •ํ™•์„ฑ ๋ฐ ์ž ์žฌ์  ๋ฒ„๊ทธ
  • ๋ณด์•ˆ ์ทจ์•ฝ์  ์—ฌ๋ถ€
  • ์„ฑ๋Šฅ ์˜ํ–ฅ
  • ์ฝ”๋”ฉ ํ‘œ์ค€ ๋ฐ best practice ์ค€์ˆ˜ ์—ฌ๋ถ€

Acknowledged.

@seonghobae seonghobae changed the title ๐ŸŽจ Palette: Improve accessibility of Overview Stats expand button ๐ŸŽจ ์ ‘๊ทผ์„ฑ ๊ฐœ์„ : OverviewStats ํŽผ์น˜๊ธฐ ๋ฒ„ํŠผ์— ARIA ์†์„ฑ ์ถ”๊ฐ€ May 30, 2026
- .Jules/palette.md AI ์—์ด์ „ํŠธ ๋‚ด๋ถ€ ๋กœ๊ทธ ํŒŒ์ผ ์‚ญ์ œ
- role='region' ๋ฐ aria-labelledby ์ œ๊ฑฐ: WAI-ARIA Disclosure ํŒจํ„ด์—์„œ
  ์งง์€ ์„ค๋ช… ํ…์ŠคํŠธ์— landmark role์„ ์‚ฌ์šฉํ•˜๋ฉด ์Šคํฌ๋ฆฐ ๋ฆฌ๋”์˜
  landmark ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ชฉ๋ก์— ๋ถˆํ•„์š”ํ•œ ํ•ญ๋ชฉ์ด ์ƒ๊ธฐ๋ฏ€๋กœ ์ œ๊ฑฐ
- aria-expanded + aria-controls + hidden ์กฐํ•ฉ๋งŒ์œผ๋กœ ์ถฉ๋ถ„ํ•œ Disclosure ํŒจํ„ด ์œ ์ง€

Co-Authored-By: Mastra Code (anthropic/claude-opus-4-6) <noreply@mastra.ai>
@seonghobae

Copy link
Copy Markdown
Author

upstream PR vibemafiaclub/argos#20์ด ์Šน์ธ ๋ฐ ๋จธ์ง€๋˜์–ด ์ด ์‚ฌ์ „ ์ž‘์—… PR์€ ๋‹ซ๊ฒ ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

@seonghobae seonghobae closed this Jun 1, 2026
@google-labs-jules

Copy link
Copy Markdown

upstream PR vibemafiaclub/argos#20์ด ์Šน์ธ ๋ฐ ๋จธ์ง€๋˜์–ด ์ด ์‚ฌ์ „ ์ž‘์—… PR์€ ๋‹ซ๊ฒ ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Understood. Acknowledging that this PR is being closed as obsolete and stopping work on this task.

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