feat(ui-react): add Badge and ColorDot accessibility props - #2863
Conversation
|
Warning Review limit reached
Next review available in: 41 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (8)
📝 WalkthroughWalkthroughBadge now supports optional live-region announcements for changing child content. ColorDot accepts an explicit ChangesBadge accessibility announcements
ColorDot accessible label override
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 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 |
|
thought (non-blocking): Accessibility audit (advisory)The sharded axe audit is report-only while the baseline and runtime budget mature.
Shard 1 reportShard 2 reportShard 3 report |
|
Admiral assignment: Deckhand w3 is independently verifying source and tests for issue 2740 at exact head 8238b219c1c2e08bf0f4cf34adb066f21d54d446. Review only; do not modify, arm, or merge. |
|
Admiral assignment: Deckhand w5 is independently verifying issue 2740 at the actual current head 8238b21, including public API/DOM semantics, accessible naming, decorative behavior, focused gates, generated artifacts, Storybook/axe, and fresh CI. Review only; do not edit, arm, or merge. |
|
Independent exact-head verification: FINDING (do not arm). At The Badge test only checks initial markup; it does not rerender repeated/equal/rapid values to establish that the same single polite atomic region updates without duplicates or stale regions. Please add those dynamic assertions. Evidence: exact head matches required SHA; diff is scoped (11 ui-react source/story/test/dist files); token and barrel gates pass; no worktree diff; current exact-head CI is green, including Build/Test, visual regression, and UI-react Storybook axe light/dark. Local package tests/type/lint/build could not be reproduced because the Windows host rejects npm cache creation ( |
|
Admiral assignment: Bosun w4 is performing the independent UX/accessibility design-gate review for issue 2740 at actual current head 8238b21, distinct from Deckhand source/test verification. Review only; do not edit, arm, or merge. |
|
Admiral accepts Deckhand w3’s exact-current-head findings at 8238b21: an explicit empty ColorDot aria-label can incorrectly erase the meaningful label path, and Badge coverage does not prove stable single-region updates across repeated/equal/rapid rerenders. Deckhand w3 is assigned the retained branch correction; keep unarmed for corrected-head review. |
|
Admiral assignment: Deckhand w3 is amending retained head 8238b21 to define empty/nullish ColorDot label semantics and add mutation-resistant Badge live-region rerender coverage, preserving public API and tight source/story/test/dist scope. Push evidence and keep unarmed. |
|
Admiral recovered and accepts Deckhand w5’s additional exact-head blocker at 8238b21: BadgeProps still permits root aria-live while announceChanges adds a nested polite atomic region, so a valid assertive root can double-announce one update and expose an assertive mode contrary to contract A-6. The active retained-branch correction must omit or safely own conflicting live-region props and add a regression before corrected-head review. Keep unarmed. |
|
Corrected head for re-review: ColorDot now falls back to its meaningful Evidence: focused Badge/ColorDot 53/53; lint; scope-bleed gate; production package build. Full ui-react suite: 7,272 tests passed, with the pre-existing dist-public-exports failure ( |
|
Admiral ruling: fe43ea8 is an incomplete correction. ColorDot empty/nullish fallback and Badge equal/rapid rerender coverage are improved, but Badge still permits a conflicting root aria-live/role around its nested polite atomic region, and required CI is red. Deckhand w3 must continue the retained branch, harden both TypeScript and runtime spread semantics, add nested/assertive/external-wrapper regressions, repair any head-only dist/gate failures, and keep unarmed. |
UX/accessibility design gate — CHANGESReviewed exact current head Release-blocking findings
Measured gate evidence
Impeccable record
Please request a fresh UX gate at the corrected exact head. |
|
Admiral harvest: Bosun w4 CHANGES is accepted at exact head |
|
Admiral harvest: Deckhand w3 advanced the Badge/ColorDot correction to exact head |
|
Independent corrected-head review: REQUEST CHANGES. Exact head: The previous Badge root-live-region blocker is fixed: announcing mode strips conflicting root role/live props and renders one polite atomic child region; ESM/CJS/DTS contain it. Remaining blocking ColorDot gaps:
Fresh CI for this exact head is green, including ui-react build/test/lint/no-diff and Storybook axe light/dark. I could not rerun ui-react locally: it is excluded from the root pnpm workspace and the package-local npm bootstrap is denied cache creation by this Windows sandbox. Keep unarmed for Bosun UX review. |
|
Admiral accepts Deckhand w5’s remaining ColorDot blockers at exact head |
|
Admiral CI diagnosis at corrected head |
|
Immutable-head Mac receipt — card 2740 Head verified: Passed:
Blocked environment evidence (not a source failure): both required |
08f69d7 to
c218e82
Compare
Summary
Validation
npm test -- --run src/components/badges/__tests__/Badge.test.tsx src/components/badges/__tests__/ColorDot.test.tsxnpm run typechecknpm run lintnpm run scope-bleed-gatenpm run buildnpm testCloses #2740
Summary by CodeRabbit
aria-labelthat overrides the default label when provided.