Commit 4dc8386
fix: use consistent server count across UI components (smart-mcp-proxy#266)
The top header and NavBar were using systemStore.upstreamStats which
counts raw connection status, while the Servers page uses
serversStore.serverCount which counts health.level === 'healthy'.
This inconsistency caused the top header to show different connected
server counts than the server page (e.g., 8/23 vs 14/23).
Changed TopHeader.vue and NavBar.vue to use serversStore.serverCount
as the single source of truth, ensuring consistent counts across
all UI components.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7a64add commit 4dc8386
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments