Commit 00b42c8
authored
feat(notifications): adds toast and drawer notification system (#11)
* feat(notifications): expands error store to notification store with severity and read state
* feat(notifications): adds ToastContainer with auto-dismiss
* feat(notifications): adds NotificationDrawer slide-out panel
* fix(notifications): moves mutedSources export to ToastContainer, removes circular import
* feat(notifications): adds bell icon with unread badge to header
* refactor(notifications): replaces clear-and-repush with reconciliation
* refactor(notifications): migrates callers to appropriate severity
* refactor(notifications): removes ErrorBannerList for toast/drawer
* fix(notifications): prune maps, hoist constant, memo, focus
* fix(notifications): fixes dismiss timeout leak, double-dismiss guard, and adds aria-modal
* fix(notifications): clears notification state on logout, removes orphaned toasts on dismiss
* fix(notifications): moves mutedSources to errors.ts, adds aria attrs, fixes responsive width, caches matchMedia, clears state on logout
* fix(notifications): addresses PR review findings
- wraps mutedSources in createSignal for proper SolidJS reactivity
- swaps markAllAsRead/setDrawerOpen order so unread highlights render
- removes dead errors prop from tab components and DashboardStore
- adds type="button" to all notification drawer and toast buttons
- adds createMemo for sorted notifications, classList consistency
- adds 8 new tests: muting, pruning, aria-expanded, reset, cycling
* fix(notifications): adds type=button to logout, mocks matchMedia1 parent d490ec4 commit 00b42c8
File tree
24 files changed
+1568
-341
lines changed- src/app
- components
- dashboard
- layout
- lib
- services
- tests
- components
- layout
- lib
- services
24 files changed
+1568
-341
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
208 | | - | |
| 203 | + | |
209 | 204 | | |
210 | 205 | | |
211 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| |||
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | | - | |
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
| |||
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
54 | | - | |
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
| |||
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
96 | | - | |
97 | 91 | | |
98 | 92 | | |
99 | 93 | | |
| |||
191 | 185 | | |
192 | 186 | | |
193 | 187 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 188 | | |
201 | 189 | | |
202 | 190 | | |
203 | 191 | | |
204 | 192 | | |
205 | 193 | | |
206 | | - | |
207 | 194 | | |
208 | 195 | | |
209 | 196 | | |
210 | 197 | | |
211 | 198 | | |
212 | 199 | | |
213 | 200 | | |
214 | | - | |
215 | 201 | | |
216 | 202 | | |
217 | 203 | | |
218 | 204 | | |
219 | 205 | | |
220 | 206 | | |
221 | 207 | | |
222 | | - | |
223 | 208 | | |
224 | 209 | | |
225 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
165 | | - | |
166 | | - | |
167 | 163 | | |
168 | 164 | | |
169 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | | - | |
248 | | - | |
249 | 245 | | |
250 | 246 | | |
251 | 247 | | |
| |||
0 commit comments