Commit 6091035
ui(dashboard): drop redundant Streaming card + manual Refresh button
User confirmed during the dashboard UI review that Active Cameras and
Streaming were essentially the same number on the live deployment, and
the manual Refresh button was suspect (turned out to be a placebo —
loadCameras already fires every 5s on a setInterval).
Three small cleanups that move together:
1. Stats grid: drop the Streaming card. Active Cameras stays as
"things that aren't down." Total stays. System Status stays.
4 cards → 3.
2. getStats: rewrite the active-count filter to mirror CameraCard's
isDown logic — anything NOT in {offline, failed, error,
plan-suspended} counts. Old version only matched streaming +
online, which silently undercounted any camera in `recording`
mode (continuous-24/7) — the count read 0 active even with a
camera actively writing to disk. That was a real bug.
3. Camera Feeds section header: remove the manual Refresh button
(and the handleRefresh callback, refreshing state, and
refreshPlanInfo destructure that fed it). The 5-second auto-
refresh interval already keeps the dashboard live; the button
was reassuring affordance, not real work.
Net diff: ~30 lines removed, 0 added behavior, 1 latent bug fixed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c0aae39 commit 6091035
1 file changed
Lines changed: 22 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
123 | 120 | | |
124 | 121 | | |
125 | 122 | | |
126 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
127 | 137 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 138 | + | |
| 139 | + | |
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
| |||
269 | 278 | | |
270 | 279 | | |
271 | 280 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 281 | | |
277 | 282 | | |
278 | 283 | | |
| |||
306 | 311 | | |
307 | 312 | | |
308 | 313 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 314 | | |
317 | 315 | | |
318 | 316 | | |
| |||
0 commit comments