Skip to content

[feat] canvas: keep one compact row per model in the picker - #497

Open
Zhangbo-cn wants to merge 1 commit into
ThinkFlowLab:mainfrom
Zhangbo-cn:feat/model-picker-compact
Open

Zhangbo-cn wants to merge 1 commit into
ThinkFlowLab:mainfrom
Zhangbo-cn:feat/model-picker-compact

Conversation

@Zhangbo-cn

@Zhangbo-cn Zhangbo-cn commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What

The model picker drew one block per model instead of one row. Every selected model expanded its capability switches and its availability check inline, so a service returning six models filled the panel: the model names, the only thing the list is for, were the smallest thing on screen and selecting one pushed the next off the page.

Each model is now one line — checkbox, id, test button, and a disclosure control that opens that row's service capabilities and availability check. Nothing was deleted: the details are the same components, defaulted closed, with per-row open state. Fetch feedback moved into the heading; the availability and capability cards gained a compact form that no longer prints "Not checked" on every row.

Refs #477 — a batch control was reported as missing there. The root cause was that it was plain text in a row nobody looked at, and it was redundant: discovery already selects everything a new service returns. That is now the stated behaviour (one API key normally covers the catalog), the user's own edit is never replaced by a later refresh, and a catalog above the enable limit stays manual instead of becoming unsavable.

Please review this part rather than assume it

The search box and the bulk row are gone. With discovery selecting everything the bulk control only repeated the checkboxes, and the list is short in practice — but a catalog of hundreds of models would now want the search box back. Each is a filterbar-sized addition. If you want either one kept, say so and I will restore it in this PR rather than merge a capability away.

Verification

Gate-lane browser tests, run against the isolated fixture (fixture API + Vite on this branch, creation-test-health.isolated === true):

  • new tests/browser/model_select_all.mjs — discovery selects every returned model, rows stay ≤48px, details open one row at a time and keep the selection, an edited selection survives refresh, clearing every checkbox asks for a selection, one save writes one service with every model enabled, and the same holds in English.
  • capability_discovery.mjs, provider_settings.mjs, zhipu_provider.mjs — updated for the compact rows, all pass.
  • tsc --noEmit clean, npm test 978 pass / 0 fail, check:i18n 3343 keys 0 problems, check:browser-manifest 94 entries OK.

Text models no longer show the draft availability check inside the row: their own Test button sends a real message, which proves more than the probe does. The capability card keeps the text and image-understanding switches.

@github-actions github-actions Bot added area:provider Model providers and generation protocols type:feat New capability or behaviour labels Nov 25, 2026
A service that returns six models drew six blocks of switches: each selected row dumped its capability card and its availability check into the list, so the model names — the only thing the list is for — were buried. Selecting one model pushed the next one off the screen.

Every row is now one line: checkbox, name, test button, and a disclosure control that opens that model's service capabilities and availability check for the row being edited. Nothing was removed from the details, only defaulted closed, and each row keeps its own open state. The fetch status moved from a separate status block into the heading, and the availability and capability cards gained a compact form that drops their placeholder line instead of printing "Not checked" on every row.

Discovery now selects every model it returns for a new service, which is what the batch button was for: one API key normally covers the whole catalog. An edited selection is never replaced by a later refresh, and a list above the enable limit stays manual instead of becoming unsavable.

The search box and the bulk row are gone with it. That is the part I would like reviewed rather than assumed: with discovery selecting everything the bulk control only repeated the checkboxes, and the list is short in practice, but a catalog of hundreds of models would now need the search box back. Each is a filterbar-sized addition; say the word and I will restore them.

Refs ThinkFlowLab#477.
@Zhangbo-cn
Zhangbo-cn force-pushed the feat/model-picker-compact branch from 5576be6 to 91c5597 Compare November 25, 2026 03:55
@github-actions github-actions Bot added the area:docs Documentation / 文档 label Nov 25, 2026
@github-actions
github-actions Bot requested a review from wuzhf9 November 25, 2026 03:56

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentation / 文档 area:provider Model providers and generation protocols type:feat New capability or behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant