Skip to content

🎨 Palette: μ ‘κ·Όμ„± κ°œμ„ μ„ μœ„ν•œ ContextSection μˆ˜μ •#122

Closed
seonghobae wants to merge 11 commits into
developmentalfrom
palette-a11y-context-section-1948321501256679692
Closed

🎨 Palette: μ ‘κ·Όμ„± κ°œμ„ μ„ μœ„ν•œ ContextSection μˆ˜μ •#122
seonghobae wants to merge 11 commits into
developmentalfrom
palette-a11y-context-section-1948321501256679692

Conversation

@seonghobae

Copy link
Copy Markdown

πŸ’‘ What

ContextSection μ»΄ν¬λ„ŒνŠΈμ˜ μ ‘κ·Όμ„±(A11y)을 ν–₯μƒμ‹œμΌ°μŠ΅λ‹ˆλ‹€.

  • React 18 λ‚΄μž₯ useId() 훅을 μ‚¬μš©ν•˜μ—¬ ν† κΈ€ λ²„νŠΌ(aria-controls)κ³Ό μ½˜ν…μΈ  μ»¨ν…Œμ΄λ„ˆ(id) κ°„μ˜ κ³ μœ ν•˜κ³  동적인 ID λ§€ν•‘ 적용
  • μ‹œκ°μ  λ‹¨μ„œλ‘œλ§Œ μ‚¬μš©λ˜λŠ” <ChevronUp> 및 <ChevronDown> μ•„μ΄μ½˜μ— aria-hidden="true" 속성 μΆ”κ°€

🎯 Why

  • ID 좩돌 λ°©μ§€: ν•˜λ“œμ½”λ”©λœ IDλ₯Ό μ‚¬μš©ν•  경우 νŽ˜μ΄μ§€ λ‚΄ λ™μΌν•œ μ»΄ν¬λ„ŒνŠΈκ°€ μ—¬λŸ¬ 번 쓰일 λ•Œ 슀크린 리더가 μ—°κ²°λœ μ½˜ν…μΈ λ₯Ό μ˜¬λ°”λ₯΄κ²Œ μ°Ύμ§€ λͺ»ν•˜λŠ” 문제 ν•΄κ²°.
  • 슀크린 리더 λ…Έμ΄μ¦ˆ μΆ•μ†Œ: ν† κΈ€ λ²„νŠΌ μžμ²΄κ°€ 이미 aria-expanded μ†μ„±μœΌλ‘œ μƒνƒœλ₯Ό μ•Œλ €μ£Όκ³  μžˆμœΌλ―€λ‘œ, λΆˆν•„μš”ν•˜κ²Œ μ…°λΈŒλ‘  μ•„μ΄μ½˜μ„ 슀크린 리더가 읽지 μ•Šλ„λ‘ ν•˜μ—¬ μ‚¬μš©μ„±μ„ κ°œμ„ ν–ˆμŠ΅λ‹ˆλ‹€.

β™Ώ Accessibility

  • 슀크린 리더 μ‚¬μš©μžκ°€ ν˜„μž¬ 접이식 μ˜μ—­μ˜ μ½˜ν…μΈ  μ»¨ν…Œμ΄λ„ˆλ₯Ό λͺ…ν™•νžˆ 식별할 수 μžˆλŠ” 의미둠적 μ—°κ²°(semantic linkage) κ°•ν™”.
  • μ€‘λ³΅λœ μž₯μ‹μš© μ•„μ΄μ½˜ 정보 차단 (aria-hidden="true").

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

seonghobae and others added 11 commits June 22, 2026 10:26
…licate calculation

`buildTimelineGroups` was calculated redundantly inside both `EventList` and `SessionActivityRibbon` inside `useMemo` hooks. This commit moves the `useMemo` computation into the parent `page.tsx` component and passes down `groups` as a prop to its children, preventing duplicate O(n) array iterations per `events` change.
Replace chained `.reduce()` and `Object.values()` with a single `for...of` loop over `Object.keys()` to avoid unnecessary intermediate array allocations and improve iteration performance during report aggregation.
overview-stats μ»΄ν¬λ„ŒνŠΈμ˜ μ„€λͺ… ν…μŠ€νŠΈλ₯Ό νŽΌμΉ˜κ±°λ‚˜ μ ‘λŠ” λ²„νŠΌμ— ν‚€λ³΄λ“œ 포컀슀 μŠ€νƒ€μΌμ΄ λˆ„λ½λ˜μ–΄ μžˆμ–΄, ν‚€λ³΄λ“œ λ‚΄λΉ„κ²Œμ΄μ…˜ μ‚¬μš©μžμ—κ²Œ ν˜„μž¬ 포컀슀 μœ„μΉ˜λ₯Ό λͺ…ν™•νžˆ 보여주지 λͺ»ν•˜λŠ” 문제λ₯Ό μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€.

Tailwind CSS의 `focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm` 클래슀λ₯Ό μΆ”κ°€ν•˜μ—¬ νƒ­(Tab) ν‚€ 이동 μ‹œ 포컀슀 링이 보이도둝 접근성을 κ°œμ„ ν–ˆμŠ΅λ‹ˆλ‹€.
- `TokenUsageChart`와 `WeeklyFlowChart`의 데이터 λ³€ν™˜ λ‘œμ§μ— `useMemo`λ₯Ό μ μš©ν•˜μ—¬ λΆˆν•„μš”ν•œ λ¦¬λ Œλ”λ§ μ΅œμ ν™”.
- React의 `useId()`λ₯Ό μ‚¬μš©ν•˜μ—¬ `aria-controls`와 `id`λ₯Ό λ™μ μœΌλ‘œ 바인딩해 μ—¬λŸ¬ μΈμŠ€ν„΄μŠ€ λ Œλ”λ§ μ‹œ λ°œμƒν•˜λŠ” ID 좩돌 문제 ν•΄κ²°
- μ‹œκ°μ  역할을 ν•˜λŠ” ChevronUp/Down μ•„μ΄μ½˜μ— `aria-hidden="true"`λ₯Ό μΆ”κ°€ν•˜μ—¬ 슀크린 리더 λ…Έμ΄μ¦ˆ 제거
@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.

Copilot AI review requested due to automatic review settings June 26, 2026 20:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

ContextSection μ»΄ν¬λ„ŒνŠΈμ˜ μ ‘κ·Όμ„±(A11y)을 κ°œμ„ ν•˜κΈ° μœ„ν•΄, ν† κΈ€ λ²„νŠΌκ³Ό μ½˜ν…μΈ  μ˜μ—­ κ°„μ˜ 연결을 고유 ID둜 λ§€ν•‘ν•˜κ³ (React useId()), μž₯μ‹μš© μ•„μ΄μ½˜μ„ 슀크린 λ¦¬λ”μ—μ„œ μˆ¨κΈ°λ„λ‘ μˆ˜μ •ν•œ PRμž…λ‹ˆλ‹€.

Changes:

  • useId()둜 μƒμ„±ν•œ 동적 IDλ₯Ό aria-controls / id에 μ—°κ²°
  • Chevron μ•„μ΄μ½˜μ— aria-hidden="true" μΆ”κ°€
  • κ΄€λ ¨ ν•™μŠ΅ λ‚΄μš©μ„ .Jules/palette.md에 기둝

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/web/src/components/dashboard/reports/context-section.tsx useId() 및 aria-hiddenλ₯Ό 톡해 ν† κΈ€ UI의 A11y μ—°κ²°/λ…Έμ΄μ¦ˆλ₯Ό κ°œμ„ 
.Jules/palette.md ContextSection A11y κ°œμ„  ν•™μŠ΅/μ•‘μ…˜ 둜그 μΆ”κ°€

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 36 to 40
{open && (
<div className="px-4 pb-4 pt-1">
<div id={contentId} className="px-4 pb-4 pt-1">
{children}
</div>
)}
@seonghobae

Copy link
Copy Markdown
Author

Closing as superseded during org-wide PR triage. Keeping #210 as the canonical PR for the same overlapping topic: ContextSection/accessibility accordion. This PR is stale/conflicted or has review blockers, so retaining one current PR reduces duplicated review and merge conflict work.

@seonghobae seonghobae closed this Jul 7, 2026
@google-labs-jules

Copy link
Copy Markdown

Closing as superseded during org-wide PR triage. Keeping #210 as the canonical PR for the same overlapping topic: ContextSection/accessibility accordion. This PR is stale/conflicted or has review blockers, so retaining one current PR reduces duplicated review and merge conflict work.

Understood. Acknowledging that this work is now 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