Skip to content

refactor(web): drop per-model checkbox selection from batch actions - #18233

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/web-model-batch-actions
Aug 14, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/web-model-batch-actions

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

refactor(web): drop per-model checkbox selection from batch actions

Batch verify now targets every model matching the current search/tag filter instead of a separate checkbox selection, so the row checkboxes, select-all control, and their i18n keys are removed. The batch add/remove control becomes a labeled button next to batch verify, making both filter-scoped actions read consistently.

Batch verify now targets every model matching the current search/tag
filter instead of a separate checkbox selection, so the row checkboxes,
select-all control, and their i18n keys are removed. The batch add/remove
control becomes a labeled button next to batch verify, making both
filter-scoped actions read consistently.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. ☯️ refactor Pull request that refactor/refine code 🧰 typescript Pull requests that update Typescript code labels Aug 13, 2026
@dcc123456
dcc123456 requested a review from wangq8 August 13, 2026 11:13
@dcc123456 dcc123456 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels Aug 13, 2026
@dcc123456
dcc123456 marked this pull request as draft August 13, 2026 11:13
@dcc123456
dcc123456 marked this pull request as ready for review August 13, 2026 11:13
@coderabbitai

coderabbitai Bot commented Aug 13, 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 Plus

Run ID: c45853f9-5daf-4017-9144-52c5b0622b20

📥 Commits

Reviewing files that changed from the base of the PR and between a4e8195 and a4c1b31.

📒 Files selected for processing (5)
  • web/src/locales/en.ts
  • web/src/locales/zh.ts
  • web/src/pages/user-setting/setting-model/instance-card/models-section/components/model-row.tsx
  • web/src/pages/user-setting/setting-model/instance-card/models-section/index.tsx
  • web/src/pages/user-setting/setting-model/instance-card/models-section/interface.ts
💤 Files with no reviewable changes (2)
  • web/src/pages/user-setting/setting-model/instance-card/models-section/components/model-row.tsx
  • web/src/pages/user-setting/setting-model/instance-card/models-section/interface.ts

📝 Walkthrough

Walkthrough

Model management no longer supports per-model selection. Batch verification now applies to all filtered models. Batch add/remove actions use broader labels in English and Chinese locales.

Changes

Model batch actions

Layer / File(s) Summary
Remove model selection contract and controls
web/src/pages/user-setting/setting-model/instance-card/models-section/interface.ts, web/src/pages/user-setting/setting-model/instance-card/models-section/components/model-row.tsx
ModelRow no longer accepts selection props or renders selection checkboxes.
Apply batch actions to filtered models
web/src/pages/user-setting/setting-model/instance-card/models-section/index.tsx, web/src/locales/en.ts, web/src/locales/zh.ts
Batch verification applies to all filtered models. Batch add/remove uses updated labels, and obsolete selection labels are removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Mergeability Score: ⚪ Minimal · up to a4c1b

This localized UI refactor changes batch actions to use the active filter and removes per-model selection controls; no actionable merge-blocking risk remains beyond normal checks and review.

Possibly related PRs

Suggested reviewers: buua436

Poem

A rabbit checks the filtered rows,
No tiny boxes block the flow.
Add all models, remove them too,
Batch verify the chosen view.
Hop, the labels now align!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 and concisely describes the removal of per-model checkbox selection from batch actions.
Description check ✅ Passed The description includes the required Summary section and clearly explains the filter-scoped batch action changes.

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.

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

LGTM overall. The refactor cleanly removes the per-row/select-all checkbox state and makes batch verify operate on all currently filtered models, matching the PR description.

Verified against the current code:

  • useMemo removal is safe — the only remaining usage was filteredSelectedCount, which is deleted along with the selection state.
  • Loader2 is still imported and used in the new labeled batch add/remove button; ListMinus/ListPlus (only used by the removed icon button) are correctly dropped.
  • ModelRow is only consumed in models-section/index.tsx, so removing isSelected/onToggleSelect from ModelRowProps is safe.
  • selectModelBeforeVerify is still referenced by the provider-modal/instance-card flows, so it's correctly retained; the removed keys (selectAllFiltered, batchVerifySelected) exist only in en.ts/zh.ts, so no orphaned keys remain elsewhere.

Non-blocking observations:

  1. This is a real UX behavior change: batch verify previously allowed verifying a hand-picked subset, but now always targets every model matching the current search/tag filter. That's the stated intent, though worth a quick product sign-off since a broad filter match now verifies all models at once.
  2. No frontend tests accompany the change (consistent with the existing web codebase), but the new "verify all filtered" path and the labeled toggle button would benefit from a smoke test.

@wangq8 wangq8 added ci Continue Integration and removed ci Continue Integration labels Aug 14, 2026
@wangq8
wangq8 merged commit 5e87198 into infiniflow:main Aug 14, 2026
18 checks passed
nikminer pushed a commit to nikminer/ragflow-mws that referenced this pull request Aug 14, 2026
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. ci Continue Integration ☯️ refactor Pull request that refactor/refine code size:L This PR changes 100-499 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants