Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

## [Unreleased]
## [3.15.6] - 2026-10-1

### 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.15.5] - 2026-10-1

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "entity-developer-dashboard",
"version": "3.15.5",
"version": "3.15.6",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --mode production",
Expand Down
18 changes: 18 additions & 0 deletions src/components/stepper/OnboardingStepper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
v-else-if="!isLoading && currentStep === 4"
:company="company"
:is-refreshing="isRefreshingStatus"
:is-retrying="isRetryingOnboarding"
@refresh-status="refreshOnboardingStatus"
@retry-onboarding="retryOnboarding"
/>
</main>

Expand Down Expand Up @@ -112,6 +114,7 @@ export default {
steps: [{ label: 'Organization' }, { label: 'Intended use' }],
isProcessingCredit: false,
isRefreshingStatus: false,
isRetryingOnboarding: false,
creditErrorMessage: null,
};
},
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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;
Expand Down
13 changes: 12 additions & 1 deletion src/components/stepper/StepCreateSSIService.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@
<p>{{ item.description }}</p>
<time v-if="item.time" :datetime="item.time">{{ formatDate(item.time) }}</time>
</div>
<span class="status-label">{{ item.statusLabel }}</span>
<button
v-if="item.state === 'failed'"
type="button"
class="status-label retry-button"
:disabled="isRetrying"
@click="$emit('retry-onboarding')"
>{{ isRetrying ? 'Retrying…' : 'Retry' }}</button>
<span v-else class="status-label">{{ item.statusLabel }}</span>
</div>

<div v-if="item.failureReason" class="failure-row">
Expand Down Expand Up @@ -100,6 +107,7 @@ export default {
props: {
company: { type: Object, required: true },
isRefreshing: { type: Boolean, default: false },
isRetrying: { type: Boolean, default: false },
},
computed: {
supportMailto() {
Expand Down Expand Up @@ -296,6 +304,9 @@ export default {
.complete .status-label { background: #e3f8ed; color: #159a68; }
.active .status-label { background: #e2e4e6; color: #5a6268; }
.failed .status-label { background: #ffe1e1; color: #dc3c3c; }
.retry-button { border: 0; cursor: pointer; font: inherit; }
.retry-button:hover:not(:disabled) { background: #dc3c3c; color: #fff; }
.retry-button:disabled { cursor: wait; opacity: .65; }
.failure-row { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.failure-row > span { min-width: 0; flex: 1; padding: 7px 10px; border-radius: 4px; background: #fff0f0; color: #d74848; font-size: 11px; line-height: 1.35; }
.status-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 2px; }
Expand Down
2 changes: 1 addition & 1 deletion src/store/mainStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ const mainStore = {
const url = `${apiServerBaseUrl}/customer-onboarding/${payload.recordId}/process`;
const resp = await RequestHandler(url,
'POST',
payload,
{},
UtilsMixin.methods.getHeader(getters.getAuthToken),
)
if (!resp || Array.isArray(resp.message)) {
Expand Down
9 changes: 3 additions & 6 deletions src/views/sa/components/ApproveCustomerOnboarding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<v-divider class="mb-6"></v-divider>

<!-- Credit detail inputs are hidden while onboarding processing no longer requires them.
<v-row>
<v-col cols="12" md="6">
<div class="warning-box h-100">
Expand Down Expand Up @@ -75,9 +76,9 @@
</div>
</v-col>
</v-row>
-->

<div class="mt-8 d-flex flex-column align-center">
<p class="x-small text-muted mb-4">Review all credit details carefully before clicking approve.</p>
<v-btn
:loading="loading"
:disabled="loading"
Expand Down Expand Up @@ -201,11 +202,7 @@ export default {
this.loading = true;
this.isLoading = true;
try {
await this.approveOnboardingRequest({
recordId: this.recordId,
ssiCreditDetail: this.form.ssiCreditDetail,
kycCreditDetail: this.form.kycCreditDetail
});
await this.approveOnboardingRequest({ recordId: this.recordId });
this.notifySuccess("Customer onboarded successfully!");
} catch (e) {
this.notifyErr(e.message || 'An unexpected error occurred.');
Expand Down
Loading