Commit 5be53a4
authored
fix(onboarding): separate apply and completion flows (#1948)
## Summary
- stop the Summary step from marking onboarding complete and keep it
focused on applying settings
- move persistent onboarding completion to the Next Steps screen through
one shared code path used by both Go to Dashboard and Reboot
- make the final Next Steps screen close explicitly after completion so
force-opening onboarding starts from Overview instead of re-persisting
`CONFIGURE_SETTINGS`
- keep bypass and the top-right close behavior unchanged
- address valid CodeRabbit feedback by tightening Summary logging,
making the async completion error accessible, using a semantic failure
assertion in tests, and fixing stale onboarding docs
- keep the new modal regression coverage type-check-safe so the branch
stays green under `vue-tsc`
## Validation
- confirmed on the latest main-based branch that Summary still called
`completeOnboarding()` before this fix
- confirmed the top-right X still uses the backend close path and bypass
still only hides onboarding without completion
- confirmed Go to Dashboard and Reboot did not previously share a
completion path
- traced the regression back to the original onboarding-flow
introduction commit `15bd7477` (`feat(onboarding): add new onboarding
flows for Unraid OS`), so this was not a recent regression from this PR
series
- confirmed the force-open bug happened because `Go to Dashboard`
cleared the draft before calling the modal's generic next-step handler,
which then fell back to Overview and immediately re-saved step 2; Reboot
did not share that bug because it never calls the modal advance path
after cleanup
## Testing
- `pnpm --filter @unraid/web lint`
- `pnpm --filter @unraid/web type-check`
- `pnpm --filter @unraid/web test`
- latest full verification completed successfully after the final
follow-up commit: 63 files, 596 tests passed, 6 skipped
## Notes
- bypass behavior was intentionally left unchanged1 parent 8f4ea98 commit 5be53a4
File tree
8 files changed
+193
-121
lines changed- web
- __test__/components/Onboarding
- src
- components/Onboarding
- steps
- locales
8 files changed
+193
-121
lines changedLines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
122 | 136 | | |
123 | 137 | | |
124 | 138 | | |
| |||
313 | 327 | | |
314 | 328 | | |
315 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
316 | 346 | | |
317 | 347 | | |
318 | 348 | | |
| |||
Lines changed: 66 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
| |||
63 | 76 | | |
64 | 77 | | |
65 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
66 | 88 | | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
70 | 100 | | |
71 | 101 | | |
72 | 102 | | |
| |||
84 | 114 | | |
85 | 115 | | |
86 | 116 | | |
87 | | - | |
| 117 | + | |
88 | 118 | | |
89 | 119 | | |
90 | 120 | | |
91 | 121 | | |
92 | 122 | | |
93 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
94 | 127 | | |
95 | 128 | | |
96 | 129 | | |
97 | 130 | | |
98 | | - | |
| 131 | + | |
99 | 132 | | |
100 | 133 | | |
101 | 134 | | |
| |||
115 | 148 | | |
116 | 149 | | |
117 | 150 | | |
| 151 | + | |
| 152 | + | |
118 | 153 | | |
119 | 154 | | |
120 | 155 | | |
121 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
122 | 186 | | |
Lines changed: 18 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
| 642 | + | |
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
857 | | - | |
| 857 | + | |
858 | 858 | | |
859 | 859 | | |
860 | | - | |
861 | | - | |
| 860 | + | |
| 861 | + | |
862 | 862 | | |
863 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
864 | 867 | | |
865 | 868 | | |
866 | 869 | | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
| 870 | + | |
880 | 871 | | |
881 | 872 | | |
882 | 873 | | |
883 | 874 | | |
884 | 875 | | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
| 876 | + | |
898 | 877 | | |
899 | | - | |
900 | 878 | | |
901 | | - | |
| 879 | + | |
902 | 880 | | |
903 | 881 | | |
904 | 882 | | |
905 | 883 | | |
906 | | - | |
| 884 | + | |
907 | 885 | | |
908 | 886 | | |
909 | 887 | | |
| |||
917 | 895 | | |
918 | 896 | | |
919 | 897 | | |
920 | | - | |
| 898 | + | |
921 | 899 | | |
922 | 900 | | |
923 | 901 | | |
924 | | - | |
| 902 | + | |
925 | 903 | | |
926 | 904 | | |
927 | 905 | | |
928 | 906 | | |
929 | 907 | | |
930 | 908 | | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | 909 | | |
935 | 910 | | |
936 | 911 | | |
937 | 912 | | |
938 | | - | |
| 913 | + | |
939 | 914 | | |
940 | | - | |
941 | 915 | | |
942 | 916 | | |
943 | 917 | | |
| |||
961 | 935 | | |
962 | 936 | | |
963 | 937 | | |
964 | | - | |
| 938 | + | |
965 | 939 | | |
966 | 940 | | |
967 | 941 | | |
| |||
970 | 944 | | |
971 | 945 | | |
972 | 946 | | |
973 | | - | |
974 | 947 | | |
975 | 948 | | |
976 | 949 | | |
977 | 950 | | |
978 | | - | |
979 | | - | |
| 951 | + | |
| 952 | + | |
980 | 953 | | |
981 | 954 | | |
982 | 955 | | |
| |||
1001 | 974 | | |
1002 | 975 | | |
1003 | 976 | | |
1004 | | - | |
1005 | 977 | | |
1006 | 978 | | |
1007 | 979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
435 | 441 | | |
436 | 442 | | |
437 | 443 | | |
| |||
0 commit comments