Repository navigation
Fix: Modify the text color of the TreeSelect component. - #19507
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe changes replace legacy text color classes with theme tokens in select components and dataset configuration fields. They also remove formatting-only whitespace and reformat unchanged expressions. ChangesTheme token styling
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to This PR updates select and dataset-form text colors without changing behavior or layout. No concrete merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. A rabbit reads each line, Comment |
wangq8
left a comment
There was a problem hiding this comment.
Thanks for the fix. The change correctly migrates hardcoded/legacy palette colors (text-slate-400, text-muted-foreground) to the project design tokens (text-text-primary / text-text-secondary / text-text-disabled).
Verified:
- The three tokens are valid and defined in
web/tailwind.config.js(backed by--text-primary/secondary/disabledinweb/tailwind.css). - These tokens resolve per theme (light
--text-secondary: 117 120 122, dark178 181 183), so unlike the hardcodedslate-400they keep proper contrast in dark mode — this is the right kind of fix. - The
missingValueandselectedNode?.title || placeholder || ...line collapses are formatting-only (prettier), no behavior change. The stray leading space removal inselect-with-search.tsxis harmless.
Minor suggestions (not blocking):
web/src/components/tree-select.tsx~line 310: the empty-state "no data" text still uses hardcodedtext-slate-400. Consider migrating it totext-text-disabledas well, for full consistency with the rest of this PR.- In
embedding-model-form-field.tsxandcommon-item.tsx, the label wrappers are changed fromtext-muted-foreground/text-text-secondarytotext-text-primary. This intentionally makes the control text match the label above; please confirm the visual hierarchy is still as intended in both light and dark themes, since those wrappers were previously muted on purpose.
No functional, security, or test concerns — pure styling change. LGTM with the small note above.
Summary
Fix: Modify the text color of the TreeSelect component.