diff --git a/Changelog.md b/Changelog.md index d14a857..5485a26 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,13 @@ # Changelog ## [Unreleased] +## [3.18.0] + +### Changed + +- Added a retry action for failed workspace setup tasks using the onboarding approval API without a request body. +- Hide the credit detail inputs on the Superadmin onboarding approval page. +- ## [3.17.0] - 2026-10-15 ### Changed diff --git a/package.json b/package.json index 0427563..816e9d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "entity-developer-dashboard", - "version": "3.17.0", + "version": "3.18.0", "private": true, "scripts": { "serve": "vue-cli-service serve --mode production", diff --git a/src/components/stepper/OnboardingStepper.vue b/src/components/stepper/OnboardingStepper.vue index 623f023..6ee5646 100644 --- a/src/components/stepper/OnboardingStepper.vue +++ b/src/components/stepper/OnboardingStepper.vue @@ -25,7 +25,9 @@ v-else-if="!isLoading && currentStep === 4" :company="company" :is-refreshing="isRefreshingStatus" + :is-retrying="isRetryingOnboarding" @refresh-status="refreshOnboardingStatus" + @retry-onboarding="retryOnboarding" /> @@ -112,6 +114,7 @@ export default { steps: [{ label: 'Organization' }, { label: 'Intended use' }], isProcessingCredit: false, isRefreshingStatus: false, + isRetryingOnboarding: false, creditErrorMessage: null, }; }, @@ -154,6 +157,7 @@ export default { }, populateCompanyFromOnboarding(data) { this.company = { + onboardingRecordId: data._id || data.id || '', name: data.companyName || '', logo: data.companyLogo || '', contact_email: data.customerEmail || '', domain: data.domain || '', type: data.type === 2 || data.type === 'COMMUNITY' ? 'COMMUNITY' : 'BUSINESS', @@ -213,6 +217,20 @@ export default { this.isRefreshingStatus = false; } }, + async retryOnboarding() { + if (this.isRetryingOnboarding || !this.company.onboardingRecordId) return; + this.isRetryingOnboarding = true; + try { + await this.$store.dispatch('mainStore/approveOnboardingRequest', { + recordId: this.company.onboardingRecordId, + }); + await this.refreshOnboardingStatus(); + } catch (error) { + console.error(error?.message || error); + } finally { + this.isRetryingOnboarding = false; + } + }, async processCreditRequest() { if (this.isProcessingCredit || this.hasSubmitted) return; this.isProcessingCredit = true; diff --git a/src/components/stepper/StepCreateSSIService.vue b/src/components/stepper/StepCreateSSIService.vue index 95e26e3..c1bcd62 100644 --- a/src/components/stepper/StepCreateSSIService.vue +++ b/src/components/stepper/StepCreateSSIService.vue @@ -51,7 +51,14 @@
{{ item.description }}
- {{ item.statusLabel }} + + {{ item.statusLabel }}Review all credit details carefully before clicking approve.