Commit 8619294
committed
fix(onboarding): reuse confirm dialog in standalone boot flow
- Purpose: reuse the shared internal boot reboot/shutdown confirmation dialog in the standalone internal boot wizard.
- Before: the onboarding Next Steps screen showed a confirmation modal, but the standalone internal boot wizard called reboot and shutdown immediately from its locked result state.
- Problem: the same internal boot follow-up action behaved differently depending on which flow the user was in, which made the UX inconsistent and skipped the new licensing guidance in the standalone path.
- Change: route standalone reboot and shutdown actions through InternalBootConfirmDialog before executing the power command.
- How it works: the standalone wizard now tracks a pending power action, opens the shared dialog for reboot or shutdown, and only submits the matching helper after the dialog confirms.
- Tests: updated the standalone internal boot wizard test to verify the shared dialog opens for both actions and that the reboot/shutdown helpers run only after confirmation.1 parent cf56cad commit 8619294
2 files changed
Lines changed: 66 additions & 2 deletions
File tree
- web
- __test__/components/Onboarding
- src/components/Onboarding/standalone
Lines changed: 41 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
106 | 130 | | |
107 | 131 | | |
108 | 132 | | |
| |||
231 | 255 | | |
232 | 256 | | |
233 | 257 | | |
| 258 | + | |
234 | 259 | | |
235 | 260 | | |
236 | 261 | | |
| |||
596 | 621 | | |
597 | 622 | | |
598 | 623 | | |
599 | | - | |
| 624 | + | |
600 | 625 | | |
601 | 626 | | |
602 | 627 | | |
| |||
617 | 642 | | |
618 | 643 | | |
619 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
620 | 653 | | |
621 | 654 | | |
622 | 655 | | |
623 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
624 | 664 | | |
625 | 665 | | |
626 | 666 | | |
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | | - | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
74 | 92 | | |
75 | 93 | | |
76 | 94 | | |
| |||
618 | 636 | | |
619 | 637 | | |
620 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
621 | 645 | | |
622 | 646 | | |
0 commit comments