feat(aurora): add badge support to ContentHeader#981
Conversation
Add badges prop to ContentHeader component that displays on the left side of the actions row (below the divider). Also add mb-8 margin to header for consistent spacing.
📝 WalkthroughWalkthrough
ChangesContentHeader Badge Support
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/aurora/src/client/components/ContentHeader/ContentHeader.tsx`:
- Around line 49-54: The conditional rendering in ContentHeader should use
presence checks instead of truthiness so valid ReactNode values like 0 are not
dropped. Update the badges/actions block in ContentHeader to test whether badges
or actions are actually provided, and only render the left badges wrapper when
badges exists so actions-only content doesn’t produce an empty container.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 27925662-fa75-46ad-a00e-34d7729711df
📒 Files selected for processing (2)
.changeset/badge-support-contentheader.mdpackages/aurora/src/client/components/ContentHeader/ContentHeader.tsx
Add badges prop to ContentHeader component that displays on the left side of the actions row (below the divider). Also add mb-8 margin to header for consistent spacing.
Checklist
Summary by CodeRabbit