From e63d24571677c7166b9eafde491420abf948cc3e Mon Sep 17 00:00:00 2001 From: jedarden Date: Thu, 16 Apr 2026 14:00:03 -0400 Subject: [PATCH] feat: add Start Over button to wizard header Clears session state and returns to step 1. Useful when onboarding multiple devices back-to-back without a page reload. Co-Authored-By: Claude Sonnet 4.6 --- dashboard/js/onboard.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dashboard/js/onboard.js b/dashboard/js/onboard.js index c073519..e775570 100644 --- a/dashboard/js/onboard.js +++ b/dashboard/js/onboard.js @@ -1215,8 +1215,13 @@ '
' + '
' + '

Spaxel Setup

' + + '
' + + '' + '' + '
' + + '
' + '
' + '
' + '
' + @@ -1226,6 +1231,11 @@ state.container = overlay; document.getElementById('wizard-close-btn').addEventListener('click', closeWizard); + document.getElementById('wizard-restart-btn').addEventListener('click', function () { + clearState(); + if (activeCleanup) { activeCleanup.cleanup(); activeCleanup = null; } + goToStep(0); + }); overlay.addEventListener('click', function (e) { if (e.target === overlay) closeWizard(); });