chore(demos): update various react demos - #12586
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
WalkthroughReact Table demos now use PatternFly ChangesTable label status migration
Notification badge variants
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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/react-table/src/demos/examples/TableCompact.tsx`:
- Around line 117-123: Normalize the Needs Maintenance switch case to the
sample-data key Needs maintenance so the label renders correctly. Apply this
change in the status renderers at
packages/react-table/src/demos/examples/TableCompact.tsx#L117-L123,
TableSortableResponsive.tsx#L124-L130, TableStaticBottomPagination.tsx#L71-L89,
and TableStickyHeader.tsx#L10-L16; leave the associated label statuses
unchanged.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: cdcbf011-5583-47eb-96c9-2adcf12b81bf
📒 Files selected for processing (8)
packages/react-table/src/demos/examples/TableColumnManagement.tsxpackages/react-table/src/demos/examples/TableColumnManagementWithDraggable.tsxpackages/react-table/src/demos/examples/TableCompact.tsxpackages/react-table/src/demos/examples/TableExpandCollapseAll.tsxpackages/react-table/src/demos/examples/TableFilterable.tsxpackages/react-table/src/demos/examples/TableSortableResponsive.tsxpackages/react-table/src/demos/examples/TableStaticBottomPagination.tsxpackages/react-table/src/demos/examples/TableStickyHeader.tsx
rebeccaalpert
left a comment
There was a problem hiding this comment.
Some demos still seem to need the updated alert icon:
- patternfly-react/packages/react-core/src/demos/examples/Page/PageContextSelector.tsx
- patternfly-react/packages/react-core/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx
- patternfly-react/packages/react-core/src/demos/examples/Page/PageStickySectionGroup.tsx
- patternfly-react/packages/react-core/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx
- patternfly-react/packages/react-table/src/demos/DashboardHeader.tsx
I don't mind pushing these.
CodeRabbit also has a good callout worth fixing here. I can push to your PR to get that closed up.
Needs Maintenance was being used rather than the lowercase version in the actual data. This meant some labels were missing after render step.
Left the component-specific examples alone, but replaced remaining nav usage.
Closes #12528 AND patternfly/patternfly-design#1683
Summary by CodeRabbit
Bug Fixes
Style