Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): description support for question and route navigation issue

Ramesh Mane860e34675398
diff --git a/packages/nc-gui/components/auth/onboarding/Question/index.vue b/packages/nc-gui/components/auth/onboarding/Question/index.vue
index 872e72a130..213ff060de 100644
--- a/packages/nc-gui/components/auth/onboarding/Question/index.vue
+++ b/packages/nc-gui/components/auth/onboarding/Question/index.vue
@@ -39,7 +39,12 @@ const isOptionSelected = (option: OnboardingOptionType) => {
<template>
<div class="flex flex-col gap-6">
- <h3 class="my-0 text-heading3 text-nc-content-gray-emphasis">{{ question.question }}</h3>
+ <div class="flex flex-col gap-3">
+ <h3 class="my-0 text-heading3 text-nc-content-gray-emphasis">{{ question.question }}</h3>
+ <p v-if="question.description" class="my-0 text-body text-nc-content-gray-subtle2">
+ {{ question.description }}
+ </p>
+ </div>
<div
class="flex flex-wrap gap-4"
:class="{
diff --git a/packages/nc-gui/composables/useOnboardingFlow.ts b/packages/nc-gui/composables/useOnboardingFlow.ts
index 4258a1de24..0a7fae5300 100644
--- a/packages/nc-gui/composables/useOnboardingFlow.ts
+++ b/packages/nc-gui/composables/useOnboardingFlow.ts
@@ -942,6 +942,10 @@ export const useOnboardingFlow = createSharedComposable(() => {
postCompleteOnboardingFlow(skipped)
+ /**
+ * Mark `is_new_user` as `false` in user object after onboarding flow is completed
+ * So that user will not see onboarding flow again
+ */
try {
await updateUserProfile({
attrs: {
@@ -973,6 +977,11 @@ export const useOnboardingFlow = createSharedComposable(() => {
showOnboardingFlowLocalState.value = true
+ // If current route is root route then no need to navigate to root route again
+ if (route.value.name === 'index') {
+ return
+ }
+
const continueAfterOnboardingFlow = route.value.query.continueAfterOnboardingFlow ?? route.value.fullPath
navigateTo({