Add first-run setup wizard

Full-screen onboarding at admin.php?page=aurora-admin-setup: Welcome →
Appearance (theme + font) → Branding (logo/favicon/rename) → Features
(replacement-screen toggles) → Done. Reuses SettingsField for every control
and applyLiveTheme for instant preview; finish/skip saves via wp/v2/settings
and marks completion.

- admin/src/Pages/SetupWizard.php: hidden submenu page, disables the shell on
  its own page (aurora_admin_shell_enabled filter) + hides native chrome,
  register_activation_hook sets a one-time redirect flag, admin_init redirects
  once, and a POST /aurora-admin/v1/setup/complete route marks it done.
- app/src/pages/setup-wizard/SetupWizard.vue + entries/setup-wizard.js + vite
  input.
- Wired into aurora-admin.php + AuroraAdmin.php.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
NixReaper
2026-07-12 13:55:03 -05:00
co-authored by Claude Opus 4.8
parent 2da3883d20
commit 2fec4cf34b
6 changed files with 475 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ export default defineConfig({
shell: fileURLToPath(new URL('./src/entries/shell.js', import.meta.url)),
dashboard: fileURLToPath(new URL('./src/entries/dashboard.js', import.meta.url)),
settings: fileURLToPath(new URL('./src/entries/settings.js', import.meta.url)),
'setup-wizard': fileURLToPath(new URL('./src/entries/setup-wizard.js', import.meta.url)),
'menu-creator': fileURLToPath(new URL('./src/entries/menu-creator.js', import.meta.url)),
'admin-notices': fileURLToPath(new URL('./src/entries/admin-notices.js', import.meta.url)),
'role-editor': fileURLToPath(new URL('./src/entries/role-editor.js', import.meta.url)),