Commit 2fbe93e
authored
feat: Revamped update banner (#1659)
## Problem
Update notifications were easy to miss as ephemeral toasts and the "ready to install" state had no persistent UI.
_The little gift icon animates / shakes periodically so they know something good is inside._ _This_ _is_ _the_ _most_ _important_ _part._
<!-- Who is this for and what problem does it solve? -->
Closes #1640

## Changes
1. Replace toast-based UpdatePrompt with persistent UpdateBanner in sidebar
2. Add updateStore (Zustand) to manage update lifecycle state via tRPC subscriptions
3. Animate banner transitions between downloading, ready and installing states
4. Add border separator above ProjectSwitcher for visual consistency
<!-- What did you change and why? -->
<!-- If there are frontend changes, include screenshots. -->
## How did you test this?
Manually
<!-- Describe what you tested -- manual steps, automated tests, or both. -->
<!-- If you're an agent, only list tests you actually ran. -->1 parent 5c2e519 commit 2fbe93e
5 files changed
Lines changed: 230 additions & 281 deletions
File tree
- apps/code/src/renderer
- components
- features/sidebar/components
- stores
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
218 | 223 | | |
219 | 224 | | |
220 | 225 | | |
221 | | - | |
222 | 226 | | |
223 | 227 | | |
224 | 228 | | |
| |||
This file was deleted.
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments