feat(Chips): replace Chip with grey Label#2291
feat(Chips): replace Chip with grey Label#2291LightOfHeaven1994 merged 1 commit intoRedHatInsights:masterfrom
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Summary by CodeRabbit
WalkthroughReplaced PatternFly Chip/ChipGroup with Label/LabelGroup in FilterChips; moved group closability to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Stylelint (17.5.0)packages/components/src/FilterChips/filter-chips.scssConfigurationError: Could not find "stylelint-config-recommended-scss". Do you need to install the package or use the "configBasedir" option? 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: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/components/src/FilterChips/FilterChips.tsx`:
- Around line 72-74: Grouped chips are using chip.color directly while plain
chips use a default 'grey', causing inconsistent visuals; update the
grouped-chip rendering in FilterChips (where you pass icon={chip.icon}
color={chip.color}) to apply the same default (e.g., color={chip.color ??
'grey'} or set a default when destructuring chip) so both grouped and plain
chips use 'grey' when color is absent.
- Around line 87-89: Remove the three debug console.log statements in the
FilterChips component that print plainFilters, groupedFilters, and the 'updated'
message (these are in FilterChips.tsx near the render/update logic); delete
those console.log calls entirely (or replace them with a conditional debug
logger behind a feature flag) and ensure the remaining code has proper
punctuation (add the missing semicolon if any statement remains on that line).
This keeps filter data out of the production console and fixes the missing
semicolon.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 01a8bdd2-d543-4c4d-a6a4-543d951dbc8f
⛔ Files ignored due to path filters (2)
packages/components/src/FilterChips/__snapshots__/FilterChips.test.js.snapis excluded by!**/*.snappackages/components/src/PrimaryToolbar/__snapshots__/PrimaryToolbar.test.js.snapis excluded by!**/*.snap
📒 Files selected for processing (2)
packages/components/src/FilterChips/FilterChips.tsxpackages/components/src/FilterChips/filter-chips.scss
8b58d43 to
d5b0da7
Compare
|
LGTM! |
bastilian
left a comment
There was a problem hiding this comment.
Awesome! LGTM! Thank you for updating these components @LightOfHeaven1994
0a091d4 to
eec9da1
Compare
Replace deprecated Chip with Label component

It will look the same as it is now, but using non-deprecated component now