Skip to content

Fix: Modify the text color of the TreeSelect component. - #19507

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
cike8899:fix-agent-prologue
Sep 11, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
cike8899:fix-agent-prologue

Conversation

@cike8899

Copy link
Copy Markdown
Contributor

Summary

Fix: Modify the text color of the TreeSelect component.

@cike8899
cike8899 requested a review from wangq8 September 10, 2026 11:24
@cike8899 cike8899 added the ci Continue Integration label Sep 10, 2026
@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: be87bd68-9a23-496a-8ad4-66f0d2ae0d5c

📥 Commits

Reviewing files that changed from the base of the PR and between a024bea and 02bdfcb.

📒 Files selected for processing (4)
  • web/src/components/originui/select-with-search.tsx
  • web/src/components/tree-select.tsx
  • web/src/pages/dataset/setting/go/embedding-model-form-field.tsx
  • web/src/pages/dataset/setting/python/configuration/common-item.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The 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.

Changes

Theme token styling

Layer / File(s) Summary
Select component color tokens
web/src/components/originui/select-with-search.tsx, web/src/components/tree-select.tsx
Selected labels, empty-state text, search icons, and placeholders use theme color tokens. Imports and unchanged expressions receive formatting-only updates.
Dataset form color tokens
web/src/pages/dataset/setting/go/embedding-model-form-field.tsx, web/src/pages/dataset/setting/python/configuration/common-item.tsx
Embedding and LLM model wrappers use text-text-primary while preserving the existing width condition.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: dcc123456

Merge Risk: ⚪ Minimal · up to 02bdf

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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the primary change to the TreeSelect text color. It is concise and related to the changeset.
Description check ✅ Passed The description includes the required Summary section and states the purpose of the pull request. It is brief but sufficient for this styling-only change.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI

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.

❤️ Share

A rabbit reads each line,
The patch grows clear beneath the moon,
Small changes hop in place,
Tests guard the garden path,
Reviews bloom before the dawn.

Comment @coderabbitai help to get the list of available commands.

@wangq8 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/disabled in web/tailwind.css).
  • These tokens resolve per theme (light --text-secondary: 117 120 122, dark 178 181 183), so unlike the hardcoded slate-400 they keep proper contrast in dark mode — this is the right kind of fix.
  • The missingValue and selectedNode?.title || placeholder || ... line collapses are formatting-only (prettier), no behavior change. The stray leading space removal in select-with-search.tsx is harmless.

Minor suggestions (not blocking):

  1. web/src/components/tree-select.tsx ~line 310: the empty-state "no data" text still uses hardcoded text-slate-400. Consider migrating it to text-text-disabled as well, for full consistency with the rest of this PR.
  2. In embedding-model-form-field.tsx and common-item.tsx, the label wrappers are changed from text-muted-foreground/text-text-secondary to text-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.

@wangq8
wangq8 merged commit 1406980 into infiniflow:main Sep 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants