Repository navigation
[feat] canvas: keep one compact row per model in the picker - #497
Open
Zhangbo-cn wants to merge 1 commit into
Open
Zhangbo-cn wants to merge 1 commit into
Zhangbo-cn wants to merge 1 commit into
Conversation
Zhangbo-cn
requested review from
hsliuustc0106 and
princepride
as code owners
November 25, 2026 02:49
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
force-pushed
the
feat/model-picker-compact
branch
from
November 25, 2026 03:55
5576be6 to
91c5597
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):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 --noEmitclean,npm test978 pass / 0 fail,check:i18n3343 keys 0 problems,check:browser-manifest94 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.