๐จ Palette: ๋นํ์ฑํ ๋ฒํผ ์ ๊ทผ์ฑ(Tooltip) ๊ฐ์ ์ถ๊ฐ - #1452
๐จ Palette: ๋นํ์ฑํ ๋ฒํผ ์ ๊ทผ์ฑ(Tooltip) ๊ฐ์ ์ถ๊ฐ#1452seonghobae wants to merge 13 commits into
Conversation
- `SettingsLayout.tsx`์ "๊ณ์ ์ค์ ์ ์ฅ", "๋ฑ๋ก ํ ํฐ ํ์ ", "OIDC ๋ก๊ทธ์ธ", "๋ก๊ทธ์์" ๋นํ์ฑํ ๋ฒํผ์ ํฌ์ปค์ค๊ฐ ๊ฐ๋ฅํ๋๋ก `span` wrapper ์ถ๊ฐ - ์คํฌ๋ฆฐ ๋ฆฌ๋์ ํค๋ณด๋ ์ฌ์ฉ์๋ฅผ ์ํด `tabIndex`, `aria-describedby`๋ฅผ ์ถ๊ฐํ์ฌ ๋นํ์ฑํ ์ด์ ๋ฅผ ์ฝ์ ์ ์๋๋ก ๊ฐ์ - ์ค๋ณต ID ๋ฐฉ์ง๋ฅผ ์ํด `React.useId()`๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ ์ ํ aria-describedby ID ์ ์ฉ - wrapper ์์ญ์ `cursor-not-allowed` ์๊ฐ ํจ๊ณผ ์ ์ง
|
๐ 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Important Approval pendingCodeRabbit has no unresolved comments, but it has not reviewed the latest commit. Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.
๐ WalkthroughWalkthrough
ChangesAccessible settings actions
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ๐ก Moderate ยท up to The change makes disabled buttons keyboard-focusable and provides spoken explanations, but the current implementation does not associate the explanation with the element that receives focus, and one explanation can be inaccurate during loading or error states. These issues can prevent users from understanding why actions are unavailable, so the PR should wait for fixes or explicit owner acceptance. ๐ฅ Pre-merge checks | โ 4โ Passed checks (4 passed)
โจ Finishing Touches๐ Generate docstrings
๐งช Generate unit tests (beta)
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. Comment |
|
PR governance metadata gate is not ready for
|
- `SettingsLayout.tsx`์ "๊ณ์ ์ค์ ์ ์ฅ", "๋ฑ๋ก ํ ํฐ ํ์ ", "OIDC ๋ก๊ทธ์ธ", "๋ก๊ทธ์์" ๋นํ์ฑํ ๋ฒํผ์ ํฌ์ปค์ค๊ฐ ๊ฐ๋ฅํ๋๋ก `span` wrapper ์ถ๊ฐ - ์คํฌ๋ฆฐ ๋ฆฌ๋์ ํค๋ณด๋ ์ฌ์ฉ์๋ฅผ ์ํด `tabIndex`, `aria-describedby`๋ฅผ ์ถ๊ฐํ์ฌ ๋นํ์ฑํ ์ด์ ๋ฅผ ์ฝ์ ์ ์๋๋ก ๊ฐ์ - ์ค๋ณต ID ๋ฐฉ์ง๋ฅผ ์ํด `React.useId()`๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ ์ ํ aria-describedby ID ์ ์ฉ - wrapper ์์ญ์ `cursor-not-allowed` ์๊ฐ ํจ๊ณผ ์ ์ง
Review follow-up
Exact-head validation: |
Acknowledged. |
- `SettingsLayout.tsx`์ "๊ณ์ ์ค์ ์ ์ฅ", "๋ฑ๋ก ํ ํฐ ํ์ ", "OIDC ๋ก๊ทธ์ธ", "๋ก๊ทธ์์" ๋นํ์ฑํ ๋ฒํผ์ ํฌ์ปค์ค๊ฐ ๊ฐ๋ฅํ๋๋ก `span` wrapper ์ถ๊ฐ - ์คํฌ๋ฆฐ ๋ฆฌ๋์ ํค๋ณด๋ ์ฌ์ฉ์๋ฅผ ์ํด `tabIndex`, `aria-describedby`๋ฅผ ์ถ๊ฐํ์ฌ ๋นํ์ฑํ ์ด์ ๋ฅผ ์ฝ์ ์ ์๋๋ก ๊ฐ์ - ์ค๋ณต ID ๋ฐฉ์ง๋ฅผ ์ํด `React.useId()`๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ ์ ํ aria-describedby ID ์ ์ฉ - wrapper ์์ญ์ `cursor-not-allowed` ์๊ฐ ํจ๊ณผ ์ ์ง
Current-head remediationVerified and repaired at exact head The latest remote refresh had restored native Validation:
The regression test verifies the button remains focusable, announces |
Acknowledged. |
Exact-head remediation โ 3e373bdThe current accessible action implementation is retained and the remaining state-accuracy issue is fixed:
Exact-tree validation:
The prior CodeRabbit CHANGES_REQUESTED review targeted the predecessor |
Acknowledged. |
Current-head accessibility remediationThe latest review identified two valid regressions in the focusable disabled-button approach:
The account action title also now distinguishes saving, loading, load failure, unavailable configuration, and ready states. Added a real pending-PUT regression test asserting two submit events produce one request, plus the visual state assertion. Exact local commit: e94073d. Validation: SettingsLayout tests 8 passed, ESLint, TypeScript typecheck, and git diff --check passed. Hosted checks and exact-head review must be regenerated; no bypass was used. |
Current-head remediation after remote refreshThe branch refresh had reverted the disabled-reason semantics and the in-flight form-submit guard. Restored against exact predecessor c2edfb5:
Exact local commit: 603aa93. Validation: SettingsLayout tests 8 passed, ESLint, TypeScript typecheck, and git diff --check passed. Hosted checks and current-head review must be regenerated; no bypass was used. |
Acknowledged. |
Acknowledged. |
Current-head remediationExact head
Local validation:
Hosted checks and current-head review are being regenerated. No bypass or review dismissal was used. |
Acknowledged. |
Exact-head review requestThe only unresolved current-head observation on Hosted state still requires normal remediation: |
Acknowledged. |
์ด PR์ Palette ์ญํ ๋ก์ ๋นํ์ฑํ(disabled)๋ ๋ฒํผ์ ์ ๊ทผ์ฑ์ ๊ฐ์ ํฉ๋๋ค.
๊ธฐ์กด์๋ ๋นํ์ฑํ๋ ๋ฒํผ๋ค์ด ํญ(Tab) ์์์์ ์ ์ธ๋๊ณ ๋ง์ฐ์ค ํฌ์ธํฐ ์ด๋ฒคํธ๋ฅผ ๋ฌด์ํ์ฌ ์๊ฐ ์ฅ์ ์ธ์ด๋ ํค๋ณด๋ ์ฌ์ฉ์์๊ฒ ๋นํ์ฑํ๋ ์ด์ ๋ฅผ ๋ช ํํ๊ฒ ์ ๋ฌํ์ง ๋ชปํ์ต๋๋ค.
์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ:
SettingsLayout.tsx๋ด์ 4๊ฐ์ ์ฃผ์ ๋นํ์ฑํ ๋ฒํผ(๊ณ์ ์ค์ ์ ์ฅ, ๋ฑ๋ก ํ ํฐ ํ์ , OIDC ๋ก๊ทธ์ธ, ๋ก๊ทธ์์)์AccessibleDisabledButton์ปดํฌ๋ํธ๋ก ๋ถ๋ฆฌtabIndex={0}๋ฅผ ๊ฐ์งspan์์๋ก ๊ฐ์ธ ํค๋ณด๋ ํฌ์ปค์ค๋ฅผ ๋ฐ์ ์ ์๋๋ก ์ฒ๋ฆฌaria-describedby์sr-onlyํ ์คํธ๋ฅผ ์ ๊ณตํ์ฌ ๋นํ์ฑํ ์ด์ ๋ฅผ ์์ฑ์ผ๋ก ์๋ดReact.useId()๋ฅผ ์ฌ์ฉํ์ฌ ์์ ํ๊ฒaria-describedby์ค์ pointer-events-none์ ์ฉ ์ ์ฌ๋ผ์ง๋ ๋ง์ฐ์ค ์ค๋ฒ ์ปค์๋ฅผspan์cursor-not-allowedํด๋์ค๋ฅผ ์ถ๊ฐํ์ฌ ์๊ฐ์ ํผ๋๋ฐฑ ์ ์ง์ด๋ฅผ ํตํด ์ฌ์ฉ์๋ ๋ฒํผ์ด ๋นํ์ฑํ๋ ์ด์ ๋ฅผ ์ง๊ด์ ์ด๊ณ ์ ๊ทผ์ฑ ๋์ ๋ฐฉ๋ฒ์ผ๋ก ํ์ธํ ์ ์์ต๋๋ค.
PR created automatically by Jules for task 5498388002017568684 started by @seonghobae
Summary by CodeRabbit