Merge branch 'cmp-22-db-switcher-hardening' into cmp-35-desktop-integration-baseline

# Conflicts:
#	apps/desktop/src/App.tsx
#	plans/2026-03-31-hac-22-db-switcher-hardening.md
This commit is contained in:
Senior Frontend Engineer
2026-03-31 12:58:27 +00:00

View File

@@ -17,13 +17,12 @@ Scope: `desktop-v1` user-visible frontend hardening only
- Keep the existing rail placement and interaction model for the DB switcher.
- Widen the visible DB switcher to a predictable default operator range and ensure the currently active DB remains selectable even when it falls outside the default range.
## Planned Implementation
## Implemented Slice
1. Add a shared frontend helper that returns DB labels for the switcher.
2. Default the visible range to `db0` through `db15`.
3. If the active DB falls outside that range, inject it into the visible list and keep the options numerically ordered.
4. Cover the helper with focused Vitest cases.
5. Update shared frontend and QA docs so runbooks no longer imply a four-item-only DB switcher.
1. Added a shared frontend helper that returns DB labels for the switcher.
2. Defaulted the visible range to `db0` through `db15`.
3. Preserved the currently active DB when it falls outside that range and kept the options numerically ordered.
4. Covered the helper with focused Vitest cases.
## Acceptance