From 6c042cbe01211e1476d40f5cec42a353585fff92 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Tue, 18 Mar 2025 16:21:40 -0400 Subject: [PATCH] fix: stepper fixes (#1240) ## Summary by CodeRabbit - **Refactor** - Streamlined the activation steps display with improved conditional rendering and enhanced interactive button styling. - **New Features** - Introduced a new welcome page featuring a dummy server switcher and refreshed welcome modal. - Expanded the activation interface with a new activation code section for clearer navigation. - **Chores** - Removed the welcome modal from the home page to simplify the layout. --------- Co-authored-by: Zack Spear --- web/components/Activation/Modal.vue | 4 +- web/components/Activation/Steps.vue | 63 ++++++++++++++--------------- web/pages/index.vue | 2 - web/pages/webComponents.vue | 3 ++ web/pages/welcome.vue | 14 +++++++ 5 files changed, 50 insertions(+), 36 deletions(-) create mode 100644 web/pages/welcome.vue diff --git a/web/components/Activation/Modal.vue b/web/components/Activation/Modal.vue index e998dd2a7..effc06c63 100644 --- a/web/components/Activation/Modal.vue +++ b/web/components/Activation/Modal.vue @@ -30,7 +30,7 @@ const description = computed(() => const docsButtons = computed(() => { return [ { - btnStyle: 'underline', + variant: 'underline', external: true, href: 'https://docs.unraid.net/unraid-os/faq/licensing-faq/', iconRight: ArrowTopRightOnSquareIcon, @@ -38,7 +38,7 @@ const docsButtons = computed(() => { text: props.t('More about Licensing'), }, { - btnStyle: 'underline', + variant: 'underline', external: true, href: 'https://docs.unraid.net/account/', iconRight: ArrowTopRightOnSquareIcon, diff --git a/web/components/Activation/Steps.vue b/web/components/Activation/Steps.vue index 9a0a38dc3..1e9bf06b5 100644 --- a/web/components/Activation/Steps.vue +++ b/web/components/Activation/Steps.vue @@ -21,7 +21,7 @@ type StepState = 'inactive' | 'active' | 'completed'; withDefaults( defineProps<{ - activeStep: number; + activeStep?: number; }>(), { activeStep: 1, @@ -75,44 +75,43 @@ const steps: readonly Step[] = [ diff --git a/web/pages/index.vue b/web/pages/index.vue index 25481bdbf..0300ca4a7 100644 --- a/web/pages/index.vue +++ b/web/pages/index.vue @@ -146,8 +146,6 @@ const bannerImage = watch(theme, () => {

WelcomeModalCe

- - Uncomment the WelcomeModalCe component to test it.

Test Callback Builder

diff --git a/web/pages/webComponents.vue b/web/pages/webComponents.vue index a03319fec..3ac54b4e0 100644 --- a/web/pages/webComponents.vue +++ b/web/pages/webComponents.vue @@ -57,6 +57,9 @@ onBeforeMount(() => {

SSOSignInButtonCe

+
+

ActivationCodeCe

+ diff --git a/web/pages/welcome.vue b/web/pages/welcome.vue new file mode 100644 index 000000000..003372a89 --- /dev/null +++ b/web/pages/welcome.vue @@ -0,0 +1,14 @@ + + +