Skip to content

fix(web): unify required asterisk color in instance name section - #17082

Merged
wangq8 merged 4 commits into
infiniflow:mainfrom
euvre:fix/instance-name-asterisk-color
Jul 20, 2026
Merged

wangq8 merged 4 commits into
infiniflow:mainfrom
euvre:fix/instance-name-asterisk-color

Conversation

@euvre

@euvre euvre commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

The required-field asterisk of the "Instance Name" label in the provider instance draft card used text-destructive, while the asterisks rendered by FormLabel (e.g. the "API-Key" field right below it) use text-state-error. This caused two visibly different asterisk colors within the same card.

This PR changes the instance name asterisk to text-state-error so it matches the color used by FormLabel, making the required markers consistent across the card.

Use text-state-error for the instance name asterisk to match the
required-field asterisk rendered by FormLabel.
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code labels Jul 20, 2026
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7d7e3b7a-fcd9-4fca-923f-b48cc6ef6036

📥 Commits

Reviewing files that changed from the base of the PR and between c396ae9 and 9b361a2.

📒 Files selected for processing (1)
  • web/src/pages/user-setting/setting-model/instance-card/components/instance-name-section.tsx

📝 Walkthrough

Walkthrough

The required-field asterisk in the instance name label now uses the text-state-error CSS class instead of text-destructive. Other label, input, and delete dialog behavior remains unchanged.

Changes

Instance Name Label

Layer / File(s) Summary
Required indicator styling
web/src/pages/user-setting/setting-model/instance-card/components/instance-name-section.tsx
The required-field asterisk uses the text-state-error CSS class.

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

Suggested reviewers: xugangqiang

Poem

I’m a bunny with a star so bright,
Switched its red class to state-error light.
The label stays, the input too,
Delete dialog follows through.
Hop, hop—one tiny style change!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the asterisk color change in the instance name section.
Description check ✅ Passed The description includes the required Summary section with clear background and intent, matching the template.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
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.

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

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

@euvre euvre added the ci Continue Integration label Jul 20, 2026
@euvre euvre added ci Continue Integration and removed ci Continue Integration labels Jul 20, 2026
@wangq8
wangq8 requested review from dcc123456 and wangq8 July 20, 2026 05:05

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

Review: PR #17082

Change: Replaces text-destructive with text-state-error on the required-field asterisk in the instance name section to match the FormLabel convention used by other fields in the same card.

Assessment: Trivial one-class swap, clearly correct. Unifies asterisk styling within the card. No tests needed. No risk of regression.

Verdict: ✅ LGTM — safe to merge.

@wangq8
wangq8 merged commit 27b6cd1 into infiniflow:main Jul 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants