Files
OmniRoute/tests
Diego Rodrigues de Sa e Souza c49757b3b8 feat(dashboard): Done button in model picker for combo creation
Adds an opt-in `keepOpenOnSelect` prop to `ModelSelectModal`. When the
combos page sets it, picking a model no longer auto-closes the modal and
a full-width "Done" button is rendered in the footer (via Modal's
`footer` slot) so users can add several models in a row and confirm
explicitly. All other single-select callers keep the existing
auto-close-on-select behaviour (the prop is off by default). When
`multiSelect` is on, the existing Clear+Done footer wins to avoid two
competing footers.

The upstream JS variant gates the Done button on `!closeOnSelect`.

TDD coverage: tests/unit/ui/model-select-modal-keep-open.test.tsx
asserts the Done button is absent by default, present when
`keepOpenOnSelect=true`, fires only `onClose` (not a stray `onSelect`),
and that `multiSelect` still renders exactly one Done button.

Inspired-by: decolua/9router#1031
Co-authored-by: Zanuar Tri Romadon <triromadon@gmail.com>
2026-06-21 14:09:46 -03:00
..
2026-06-17 19:26:32 -03:00
2026-05-23 01:46:59 -03:00
2026-06-20 07:09:43 -03:00
2026-06-19 06:49:01 -03:00
2026-06-10 13:49:08 -03:00
2026-06-13 17:27:40 -03:00