diff options
| author | Adam Malczewski <[email protected]> | 2026-06-27 18:15:37 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-27 18:15:37 +0900 |
| commit | f4e6fb12c1ed446bc7b088a7d07b51c6de991af3 (patch) | |
| tree | aeb738337ccafc6a910559b3f0845592f2b93654 /src/features/tabs/tabs.test.ts | |
| parent | 5b9f48f48053e5e2d8e456efd12a461562b6e593 (diff) | |
| download | dispatch-web-f4e6fb12c1ed446bc7b088a7d07b51c6de991af3.tar.gz dispatch-web-f4e6fb12c1ed446bc7b088a7d07b51c6de991af3.zip | |
feat(concurrency): provider dropdown instead of free-text input
Replace the Add-form provider text input with a <select> dropdown populated
from the available models' provider prefixes (<provider>/<model>), unioned
with providers already carrying a configured limit (so a limit set out-of-band
but whose model list is empty still appears). The selection auto-defaults to
the first option and falls back when an option disappears.
- logic/view-model.ts: pure providerFromModel + providerOptions(models, limits)
(distinct provider ids, first-seen order) + 7 tests.
- ConcurrencyView.svelte: models prop + <select> bound to newProviderId;
disabled + 'No providers available' when there are no models.
- App.svelte: pass models={store.models}; component test updated to the
dropdown (selectOptions) + a no-models case (6 component tests).
Verified: typecheck 0/0, 922 tests green, biome clean, build OK.
Diffstat (limited to 'src/features/tabs/tabs.test.ts')
0 files changed, 0 insertions, 0 deletions
