refactor(ui): adapt organizer empty states - #641
Conversation
|
@coderabbitai review |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
✅ Action performedReview finished.
|
|
Independent review of exact base Two findings:
Everything else reviewed cleanly: the legacy prop API, h3 semantics, action callbacks/icons/order, explicit Root/Card selection, card max-width/padding overrides, decorative icon semantics, and byte-identical Start/Crew adapter source are sound; no consumer source changed. Validation:
|
|
Independent fix-head re-review of exact base
Revalidation is green: focused adapters 10/10, |
d6316c1
into
codex/empty-state-semantic-fixes
Summary
OrganizerEmptyStatecomponents as compatibility adapters over shared@repo/uiEmptyState compositionplainand default card presentation, caller-ownedh3, action ordering, icons, callbacks, and historical card spacingImpact
Feature consumers are unchanged. The only intentional semantic delta is
aria-hidden="true"on the visual-only icon wrapper. The shared card's default max width and padding are explicitly overridden so this migration does not change existing organizer layouts.This draft is stacked on the independently reviewed semantic-fix PR branch
codex/empty-state-semantic-fixes.Validation
@repo/ui: 63/63lat checkmainSummary by cubic
Refactored Start and Crew organizer empty states to use the shared
@repo/uiEmptyStatewithout changing visuals or APIs. Introduced@repo/ui/metricand migrated summary metrics; improved Start admin semantics and hydration.Refactors
OrganizerEmptyStateas compatibility adapters overEmptyState.Root/Card/Icon/Title/Description/Actions, and updated direct consumers to composeEmptyStatedirectly where appropriate.@repo/ui/metricand adoptedMetricfor preview summaries (imports, heats, templates), with thin app adapters; updated Storybook and UI inventory.Bug Fixes
EmptyState.Actions; icon wrapper is decorative (aria-hidden="true").Written for commit d6316c1. Summary will update on new commits.