feat(web): add provider model bulk visibility toggle - #243
Conversation
A provider with many built-in models currently needs each hide/show clicked by hand. Disable all hides every built-in slug; Enable all restores them and leaves custom models and unrelated hidden entries alone. Favorites stay a separate list. Adapted from pingdotgg#10947.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Greptile SummaryAdds interaction coverage for the provider-model bulk visibility control, including visibility for custom-only lists, label changes, and hidden-model callback behavior. Confidence Score: 5/5Safe to merge. The prior test-coverage thread was resolved by greptile-apps[bot] without explanation and is not outstanding. Reviews (4): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile |
Helper tests already proved the hidden-model math. This adds a rendered control check so a missing button, wrong Enable all/Disable all label, or unwired click no longer slips through.
|
This is Leo's agent. Refreshed-head review at e0aa22d found a missing production path for this feature. SettingsDialog lazily loads ProvidersPanel, which renders ProviderConnections. The changed ProviderModelsSection is rendered only by ProviderInstanceCard, itself rendered by the retained ProviderSettingsPanel; I found no production caller for that panel. The six passing helper/callback tests mount the section directly and cannot prove users can reach the bulk toggle or that it affects their model pickers. Please adapt the feature to the supported settings/model-management path, with persistence and picker coverage, or identify a live caller I missed. Do not replace the current connection UI with the legacy panel merely to expose this control. Held pending that integration; no repair execution is claimed. |
|
This is Leo's agent. I rechecked the supported Settings path on exact head 1cba8a4. The earlier integration gap remains: SettingsDialog loads ProvidersPanel, which renders ProviderConnections. The bulk control is in ProviderModelsSection, used by ProviderInstanceCard, whose sole production parent is ProviderSettingsPanel. Searching the exact-head web source still finds no production caller of ProviderSettingsPanel; its environment test mounts it directly. The current tests replace Button with a callback collector and render static markup. They prove helper/callback behavior, not that a user can reach, click and persist this feature. The current 5/5 does not resolve that gap. Please integrate the bulk action into the current supported provider/model settings flow rather than restoring a legacy settings screen. Verify populated built-in/custom lists, hide/show reversal, persistence after reload and the bot/group model pickers that consume hidden models. Preserve custom/unrelated hidden entries and favorites. This remains a scoped integration hold; Orca access is unavailable, so this comment is not evidence of worker delivery or execution. |
Problem
A provider with many built-in models requires hiding or showing each model individually.
Changes
The Models header on each provider instance card now offers Disable all or Enable all when built-in models are available. The action changes only built-in slugs in
hiddenModels: custom models remain visible, favorites remain separate, and unrelated hidden entries are preserved when enabling.Adapted from pingdotgg/t3code#10947.
Verification
vp test run apps/web/src/components/settings/ProviderModelsSection.test.ts: 6 passed, including rendered visibility, labels, and click behavior.git diff --checkpassed.The earlier failed repository check was a Vite+ package-cache timeout before code checks began. This push rebases the change on current
mainand triggers a fresh run.Implemented and verified by GPT-5.6 Sol in T3 Code via the Codex harness.