Commit d3032c1
fix: unify onboarding internal boot state refresh (#1923)
## Summary
- move onboarding internal boot reads to a backend-owned
- refresh , , and on demand through
- add a refresh action in onboarding so array start/stop and assignable
drive state can be re-read without restarting the API
## Validation
-
> unraid-monorepo@4.29.2 lint /Users/elibosley/Code/api
> pnpm -r lint
Scope: 8 of 9 workspace projects
unraid-ui lint$ eslint src
web lint$ pnpm lint:eslint && pnpm lint:prettier
web lint: > @unraid/web@4.29.2 lint:eslint /Users/elibosley/Code/api/web
web lint: > eslint --cache
web lint: > @unraid/web@4.29.2 lint:prettier
/Users/elibosley/Code/api/web
web lint: > prettier --check "**/*.{js,ts,tsx,vue}"
web lint: Checking formatting...
unraid-ui lint: Done
web lint: All matched files use Prettier code style!
web lint: Done
api lint$ eslint --config .eslintrc.ts src/
api lint: Done
-
> @unraid/api@4.29.2 type-check /Users/elibosley/Code/api/api
> tsc --noEmit
-
> @unraid/api@4.29.2 test /Users/elibosley/Code/api/api
> NODE_ENV=test vitest run
src/unraid-api/graph/resolvers/onboarding/onboarding-internal-boot.service.spec.ts
src/unraid-api/graph/resolvers/onboarding/onboarding.mutation.spec.ts
src/unraid-api/graph/resolvers/onboarding/onboarding.query.spec.ts
RUN v3.2.4 /Users/elibosley/Code/api/api
stdout |
src/unraid-api/graph/resolvers/onboarding/onboarding.mutation.spec.ts
[dotenv@17.2.1] injecting env (18) from .env.test -- tip: ⚙️ enable
debug logging with { debug: true }
stdout |
src/unraid-api/graph/resolvers/onboarding/onboarding.query.spec.ts
[dotenv@17.2.1] injecting env (18) from .env.test -- tip: ⚙️ write to
custom object with { processEnv: myObject }
stdout |
src/unraid-api/graph/resolvers/onboarding/onboarding-internal-boot.service.spec.ts
[dotenv@17.2.1] injecting env (18) from .env.test -- tip: ⚙️ specify
custom .env file path with { path: '/custom/path/.env' }
✓
src/unraid-api/graph/resolvers/onboarding/onboarding-internal-boot.service.spec.ts
(10 tests) 5ms
✓ src/unraid-api/graph/resolvers/onboarding/onboarding.query.spec.ts (1
test) 2ms
✓ src/unraid-api/graph/resolvers/onboarding/onboarding.mutation.spec.ts
(8 tests) 4ms
Test Files 3 passed (3)
Tests 19 passed (19)
Start at 12:25:35
Duration 1.37s (transform 278ms, setup 2.83s, collect 613ms, tests 11ms,
environment 0ms, prepare 130ms)
-
> unraid-monorepo@4.29.2 type-check /Users/elibosley/Code/api
> pnpm -r type-check
Scope: 8 of 9 workspace projects
unraid-ui type-check$ vue-tsc --noEmit
web type-check$ vue-tsc --noEmit
unraid-ui type-check: Done
web type-check: Done
api type-check$ tsc --noEmit
api type-check: Done in
-
> unraid-monorepo@4.29.2 test /Users/elibosley/Code/api
> pnpm -r test
__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
__test__/components/Onboarding/OnboardingSummaryStep.test.ts
Scope: 8 of 9 workspace projects
packages/unraid-api-plugin-health test$ echo "Error: no test specified"
&& exit 0
__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
__test__/components/Onboarding/OnboardingSummaryStep.test.ts
packages/unraid-shared test$ vitest run
__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
__test__/components/Onboarding/OnboardingSummaryStep.test.ts
plugin test$ vitest && pnpm run test:extractor && pnpm run
test:shell-detection
__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
__test__/components/Onboarding/OnboardingSummaryStep.test.ts
unraid-ui test$ vitest
__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
__test__/components/Onboarding/OnboardingSummaryStep.test.ts
packages/unraid-api-plugin-health test: Error: no test specified
packages/unraid-api-plugin-health test: sh: line 0: exit: too many
arguments
packages/unraid-api-plugin-health test: Failed
/Users/elibosley/Code/api/packages/unraid-api-plugin-health:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL unraid-api-plugin-health@4.25.3
test: `echo "Error: no test specified" && exit 0
__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
__test__/components/Onboarding/OnboardingSummaryStep.test.ts`
Exit status 1
web test$ vitest run
__test__/components/Onboarding/OnboardingInternalBootStep.test.ts
__test__/components/Onboarding/OnboardingSummaryStep.test.ts
ELIFECYCLE Test failed. See above for more details. in
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added manual refresh capability for internal boot context state with
dedicated refresh button and loading indicators.
* Simplified disk eligibility messaging to focus on size constraints
only.
* **Improvements**
* Streamlined disk selection interface with updated data structure for
assignable disks.
* Enhanced internal boot onboarding context handling and state
management.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Ajit Mehrotra <ajit@lime-technology.com>1 parent 5360b5b commit d3032c1
28 files changed
Lines changed: 904 additions & 463 deletions
File tree
- api
- src
- __test__/store/watch
- store/watch
- unraid-api
- cli/generated
- graph/resolvers
- disks
- mutation
- onboarding
- web
- __test__/components/Onboarding
- src
- components/Onboarding
- graphql
- steps
- composables/gql
- locales
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | 349 | | |
355 | 350 | | |
356 | 351 | | |
| |||
1080 | 1075 | | |
1081 | 1076 | | |
1082 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1083 | 1090 | | |
1084 | 1091 | | |
1085 | 1092 | | |
| |||
1394 | 1401 | | |
1395 | 1402 | | |
1396 | 1403 | | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1397 | 1409 | | |
1398 | 1410 | | |
1399 | 1411 | | |
| |||
3162 | 3174 | | |
3163 | 3175 | | |
3164 | 3176 | | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
3165 | 3180 | | |
3166 | 3181 | | |
3167 | 3182 | | |
| |||
3181 | 3196 | | |
3182 | 3197 | | |
3183 | 3198 | | |
| 3199 | + | |
3184 | 3200 | | |
3185 | 3201 | | |
3186 | 3202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 48 | + | |
| 49 | + | |
| 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 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
79 | 74 | | |
80 | 75 | | |
81 | 76 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
718 | | - | |
719 | 717 | | |
720 | 718 | | |
721 | 719 | | |
| |||
1978 | 1976 | | |
1979 | 1977 | | |
1980 | 1978 | | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
1981 | 1992 | | |
1982 | 1993 | | |
1983 | 1994 | | |
| |||
1995 | 2006 | | |
1996 | 2007 | | |
1997 | 2008 | | |
| 2009 | + | |
| 2010 | + | |
1998 | 2011 | | |
1999 | 2012 | | |
2000 | 2013 | | |
| |||
2265 | 2278 | | |
2266 | 2279 | | |
2267 | 2280 | | |
| 2281 | + | |
2268 | 2282 | | |
2269 | 2283 | | |
2270 | 2284 | | |
| |||
2283 | 2297 | | |
2284 | 2298 | | |
2285 | 2299 | | |
| 2300 | + | |
| 2301 | + | |
2286 | 2302 | | |
2287 | 2303 | | |
2288 | 2304 | | |
| |||
3209 | 3225 | | |
3210 | 3226 | | |
3211 | 3227 | | |
| 3228 | + | |
3212 | 3229 | | |
3213 | 3230 | | |
3214 | 3231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 126 | | |
135 | 127 | | |
136 | 128 | | |
| |||
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 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 | + | |
91 | 128 | | |
92 | 129 | | |
93 | 130 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
0 commit comments