Commit 26d1854
authored
feat(dashboard): give stackiq the KPI tiles it never had (#892)
Stackiq's dashboard was the one fleet dashboard with no KPI cards at all.
Not a rendering fault: the page was type:"custom" rendering a 675-line
hand-written view whose entire widget list was an info box and two
object-statistics tables. The app's five manifest KPI widgets all sit on
detail pages, never on the dashboard.
The page is now type:"dashboard" with four declarative "stat" widgets --
Organisaties, Modules, Diensten, Contracten -- counted by OpenRegister
through @resolve:voorzieningen_register, the same register/schema pairs
every other page in this manifest already uses.
The non-KPI content is preserved exactly. The info box and both tables
move to src/components/CatalogPanels.vue (template restructured, script
untouched) and mount as the "catalog-panels" widget.
Worth knowing for the next app:
1. A dashboard widget TYPE resolves against the LIBRARY's widget catalog
(registerDashboardWidget / getWidgetTypeEntry), not the app's registry
prop and not the page's slots map -- both of those are for page
components and slot overrides. An unregistered type renders "Widget
not available" and logs nothing, so it looks exactly like a wiring
mistake.
2. eslint-suppressions.json is keyed by FILE PATH. Renaming a suppressed
file orphans its entries, and --prune-suppressions then deletes them,
so every previously-suppressed error surfaces at once. The entry moved
to the new path deliberately, minus two suppressions the rename
genuinely fixed: vue/multi-word-component-names (Dashboard ->
CatalogPanels) and an unused arg (route -> _route, docblock updated).
Verified in the browser against the published @conduction/nextcloud-vue
(USE_LOCAL_LIB=false): four cards render in the canonical horizontal
white card, zero grey, no "Widget not available", the info box and both
tables still render. The tiles read 0/0/0/0 and that is CORRECT -- the
statistics tables beside them independently report Organization 0,
Service 0, Contract 0 in this environment, so the tiles agree with the
tables rather than reporting a confident zero on a failed fetch.
eslint exits 0, matching the pre-change baseline; webpack compiles.1 parent 3d4ba96 commit 26d1854
6 files changed
Lines changed: 285 additions & 206 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | 439 | | |
446 | 440 | | |
447 | 441 | | |
| |||
542 | 536 | | |
543 | 537 | | |
544 | 538 | | |
545 | | - | |
| 539 | + | |
Lines changed: 117 additions & 180 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
48 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
49 | 29 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
82 | 55 | | |
83 | 56 | | |
84 | 57 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
91 | 78 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 79 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
135 | 105 | | |
136 | 106 | | |
137 | 107 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
147 | 123 | | |
148 | 124 | | |
149 | 125 | | |
150 | | - | |
151 | 126 | | |
152 | 127 | | |
153 | 128 | | |
| |||
170 | 145 | | |
171 | 146 | | |
172 | 147 | | |
173 | | - | |
| 148 | + | |
| 149 | + | |
174 | 150 | | |
175 | 151 | | |
176 | | - | |
| 152 | + | |
177 | 153 | | |
178 | | - | |
179 | 154 | | |
180 | 155 | | |
181 | 156 | | |
| |||
192 | 167 | | |
193 | 168 | | |
194 | 169 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 170 | | |
222 | 171 | | |
223 | 172 | | |
224 | 173 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | 174 | | |
239 | 175 | | |
240 | 176 | | |
| |||
451 | 387 | | |
452 | 388 | | |
453 | 389 | | |
454 | | - | |
| 390 | + | |
| 391 | + | |
455 | 392 | | |
456 | 393 | | |
457 | 394 | | |
458 | | - | |
| 395 | + | |
459 | 396 | | |
460 | 397 | | |
461 | 398 | | |
| |||
0 commit comments