Commit 0838196
fix(ui): collapse AI Destination items by default (#43)
* fix(ui): collapse AI Destination items by default
Start with expandedId = null so all destination cards are collapsed when
the screen opens, giving a clean overview instead of auto-expanding the
first item.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(ui): don't auto-expand after delete when nothing was open
Guard the expandedId reassignment in deleteDestination so it only
picks a successor card if the user had one open. Without the guard,
deleting any destination would silently expand a card even when the
screen started (or was left) fully collapsed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(ui): only move focus when the deleted card was open
The previous guard (expandedId != null) moved focus to the first
enabled destination whenever anything was expanded, even if the deleted
card was a different one. Change the condition to (expandedId ==
destination.id) so focus only shifts when the card being deleted is
the one currently open; all other expanded cards are left untouched.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Rob <rob@performanceinsights.ai>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 09e06ae commit 0838196
1 file changed
Lines changed: 2 additions & 4 deletions
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 97 | + | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
| 128 | + | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| |||
0 commit comments