Commit 9e0e89e
authored
fix(onboarding): surface drive warnings for internal boot (#1963)
## Summary
- replace the internal boot "already configured" hard stop with
structured `driveWarnings` on `internalBootContext`
- show selected-drive warnings in the onboarding UI while keeping
warning drives selectable
- sync Redux into Nest `ConfigService` immediately so `assignableDisks`
matches fresh `devs.ini` state without a stale debounce window
## Why
- onboarding needed to warn about internal boot partitions instead of
blocking the flow outright
- `ConfigService` could lag Redux after a synchronous `devs.ini`
refresh, which let assigned drives from stale state leak into
`assignableDisks`
- the endpoint should reflect `devs.ini` exactly and treat internal boot
partitions as warnings, not implicit exclusion
## Testing
- `pnpm --filter ./api test
src/unraid-api/config/store-sync.service.spec.ts
src/unraid-api/graph/resolvers/disks/disks.service.spec.ts
src/unraid-api/graph/resolvers/onboarding/onboarding-internal-boot.service.spec.ts
src/unraid-api/graph/resolvers/onboarding/onboarding.query.spec.ts
src/unraid-api/graph/resolvers/onboarding/onboarding.mutation.spec.ts`
- `pnpm test
/Users/elibosley/Code/api/web/__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
/Users/elibosley/Code/api/web/__test__/components/Onboarding/OnboardingModal.test.ts
/Users/elibosley/Code/api/web/__test__/components/Onboarding/OnboardingSummaryStep.test.ts`
- deployed API changes to `devgen-dev1.local` and verified
`internalBootContext.assignableDisks` matched `devs.ini` instead of
`disks.ini`
- probed `createInternalBootPool` on `devgen-dev1.local` and confirmed
the old "internal boot is already configured" short-circuit no longer
triggers
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added drive warning indicators to identify selected drives that
already contain internal boot partitions.
* Enhanced onboarding interface with amber alerts displaying warnings
for drives with existing internal boot data.
* **Improvements**
* Refined internal boot configuration validation logic to support
additional setup scenarios while preserving safety checks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent c30a0c0 commit 9e0e89e
File tree
18 files changed
+242
-123
lines changed- api
- src/unraid-api
- config
- graph/resolvers/onboarding
- web
- __test__/components/Onboarding
- src
- components/Onboarding
- graphql
- steps
- composables/gql
- locales
18 files changed
+242
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1078 | 1078 | | |
1079 | 1079 | | |
1080 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1081 | 1088 | | |
1082 | 1089 | | |
1083 | 1090 | | |
| |||
1088 | 1095 | | |
1089 | 1096 | | |
1090 | 1097 | | |
| 1098 | + | |
1091 | 1099 | | |
1092 | 1100 | | |
1093 | 1101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | | - | |
47 | | - | |
| 43 | + | |
48 | 44 | | |
49 | 45 | | |
50 | | - | |
51 | | - | |
| 46 | + | |
| 47 | + | |
52 | 48 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 49 | + | |
56 | 50 | | |
57 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
58 | 54 | | |
59 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
70 | | - | |
| 74 | + | |
71 | 75 | | |
72 | | - | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | | - | |
| 80 | + | |
78 | 81 | | |
79 | | - | |
80 | | - | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | | - | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
86 | 87 | | |
87 | 88 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| 15 | + | |
18 | 16 | | |
19 | | - | |
| 17 | + | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
40 | 31 | | |
41 | 32 | | |
42 | 33 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 34 | | |
49 | 35 | | |
50 | 36 | | |
Lines changed: 43 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
128 | 163 | | |
129 | 164 | | |
130 | 165 | | |
| |||
399 | 434 | | |
400 | 435 | | |
401 | 436 | | |
402 | | - | |
| 437 | + | |
403 | 438 | | |
| 439 | + | |
404 | 440 | | |
405 | 441 | | |
406 | 442 | | |
| |||
410 | 446 | | |
411 | 447 | | |
412 | 448 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
425 | 454 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | 455 | | |
442 | 456 | | |
443 | 457 | | |
| |||
Lines changed: 31 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
184 | 206 | | |
185 | 207 | | |
186 | 208 | | |
| |||
211 | 233 | | |
212 | 234 | | |
213 | 235 | | |
| 236 | + | |
214 | 237 | | |
215 | 238 | | |
216 | 239 | | |
| |||
221 | 244 | | |
222 | 245 | | |
223 | 246 | | |
| 247 | + | |
| 248 | + | |
224 | 249 | | |
225 | 250 | | |
226 | 251 | | |
| |||
235 | 260 | | |
236 | 261 | | |
237 | 262 | | |
238 | | - | |
| 263 | + | |
| 264 | + | |
239 | 265 | | |
240 | 266 | | |
241 | 267 | | |
| |||
498 | 524 | | |
499 | 525 | | |
500 | 526 | | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | 527 | | |
513 | 528 | | |
514 | 529 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
336 | 350 | | |
337 | 351 | | |
338 | 352 | | |
| |||
360 | 374 | | |
361 | 375 | | |
362 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
363 | 380 | | |
0 commit comments