Skip to content

Fix: model provider save button label and light mode input background - #17081

Merged
yingfeng merged 2 commits into
infiniflow:mainfrom
dcc123456:fix/model-provider-input-0720
Jul 20, 2026
Merged

yingfeng merged 2 commits into
infiniflow:mainfrom
dcc123456:fix/model-provider-input-0720

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

Fix: model provider save button label and light mode input background

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. 🧰 typescript Pull requests that update Typescript code labels Jul 20, 2026
@dcc123456
dcc123456 requested a review from wangq8 July 20, 2026 03:05
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The provider settings batch Save button now uses the save translation key, with obsolete saveAll entries removed from English and Chinese locales. The light theme input background token now uses a faint black tint instead of transparency.

Changes

Provider save label

Layer / File(s) Summary
Provider save label wiring
web/src/pages/user-setting/setting-model/layout/provider-header-bar.tsx, web/src/locales/en.ts, web/src/locales/zh.ts
The batch Save button uses save, and the obsolete saveAll translations are removed.

Light input background

Layer / File(s) Summary
Light input background token
web/tailwind.css
The light theme --bg-input value changes to rgba(0, 0, 0, 0.05).

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

Possibly related PRs

Poem

A bunny hops where Save once said “all,”
New words now brighten the button call.
Old translations quietly leave the scene,
While inputs gain a soft tint of green—
A tidy little UI tune-up for all.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly matches the main changes: the save button label and light-mode input background.
Description check ✅ Passed The description includes the required Summary section and matches the PR objective, though it is minimal.

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.

@dcc123456 dcc123456 added ci Continue Integration bug labels Jul 20, 2026
@dcc123456
dcc123456 marked this pull request as draft July 20, 2026 03:06
@dcc123456
dcc123456 marked this pull request as ready for review July 20, 2026 03:06

@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 #17081 – Fix: model provider save button label and light mode input background

Overall: Clean, minimal fix. Two small, independent UI corrections. No regressions detected.

1. Save button label: saveAll → save

✅ The save: "Save" key already exists in the translation.setting namespace (en.ts line 468), so tSetting("save") will resolve correctly. The button label changes from "Save all" → "Save", which is more concise. Good.

⚠️ Minor: The saveAll key removal is only done in en.ts and zh.ts, but it also exists in ja.ts (line 1764). After this change, saveAll becomes dead code in the Japanese locale. Consider removing it from ja.ts as well for consistency.

2. Light mode input background (--bg-input)

✅ Changing rgba(255, 255, 255, 0) (fully transparent) → rgba(0, 0, 0, 0.05) (barely visible) in the light-mode block improves input field visibility without being distracting. Low risk since this only affects the .light CSS class.

Verdict: Looks good to merge after the ja.ts cleanup.

@yingfeng
yingfeng merged commit 2e39662 into infiniflow:main Jul 20, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. bug 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