From 6597ade3f7432bf32e456818ee9607726d2d1ba4 Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Tue, 29 Jul 2025 20:59:39 +0530 Subject: [PATCH] fix: SH admin dashboard setting and onboarding page cleanups (#5290) Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com> --- .../src/components/firebase/Login.vue | 8 +- packages/hoppscotch-sh-admin/locales/en.json | 6 +- .../onboarding/AuthProviderCard.vue | 46 ++ .../src/components/onboarding/AuthSetup.vue | 444 ++++++++---------- .../components/onboarding/CompleteScreen.vue | 4 +- .../src/components/onboarding/SmtpSetup.vue | 2 + .../src/components/settings/RateLimit.vue | 2 - .../src/components/ui/Accordion.vue | 62 ++- .../src/composables/useConfigHandler.ts | 62 ++- .../composables/useOnboardingConfigHandler.ts | 12 +- 10 files changed, 367 insertions(+), 281 deletions(-) create mode 100644 packages/hoppscotch-sh-admin/src/components/onboarding/AuthProviderCard.vue diff --git a/packages/hoppscotch-common/src/components/firebase/Login.vue b/packages/hoppscotch-common/src/components/firebase/Login.vue index e955b98e..6cd6017a 100644 --- a/packages/hoppscotch-common/src/components/firebase/Login.vue +++ b/packages/hoppscotch-common/src/components/firebase/Login.vue @@ -27,7 +27,11 @@ @click="provider.action" /> -
{{ t("state.require_auth_provider") }}
diff --git a/packages/hoppscotch-sh-admin/locales/en.json b/packages/hoppscotch-sh-admin/locales/en.json index a0c06f03..3d9ff4b6 100644 --- a/packages/hoppscotch-sh-admin/locales/en.json +++ b/packages/hoppscotch-sh-admin/locales/en.json @@ -176,7 +176,8 @@ }, "onboarding": { "add_atleast_one_auth_provider": "Please add at least one authentication provider to continue.", - "add_configurations": "Please add the configurations for the selected authentication methods.", + "add_configurations": "Add Configurations", + "add_configurations_description": "Please add the configurations for the selected authentication methods.", "add_oauth_config": "Add Auth Configurations", "auth_setup": "Authentication Setup", "auth_successfully_configured": "authentication has been successfully configured.", @@ -214,7 +215,8 @@ "title": "SMTP" }, "smtp_advanced_config_enable": "Enable to configure your own SMTP credentials", - "select_auth_provider": "Please select the authentication methods you want to set up.", + "select_auth_methods": "Please select authentications", + "select_auth_provider": "You can select one or more authentication providers to continue.", "select_atleast_one": "Please select at least one authentication provider to continue.", "start_onboarding": "Start Onboarding", "welcome": "Welcome", diff --git a/packages/hoppscotch-sh-admin/src/components/onboarding/AuthProviderCard.vue b/packages/hoppscotch-sh-admin/src/components/onboarding/AuthProviderCard.vue new file mode 100644 index 00000000..a6e4ee67 --- /dev/null +++ b/packages/hoppscotch-sh-admin/src/components/onboarding/AuthProviderCard.vue @@ -0,0 +1,46 @@ + +- {{ t('onboarding.smtp.description_accordian') }} -
-