Skip to content
Merged
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
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Added

- Added an inline DNS TXT record guide and domain verification controls to App Configuration.
- Added direct URL access to the General, Domain Verification, and Issuer Configuration tabs.

### Changed

Expand Down
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ color: #1a1a2e !important;
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
border-radius: 14px;
}

Expand Down Expand Up @@ -586,7 +585,7 @@ color: #1a1a2e !important;
<b-nav-item v-if="getSelectedService && getSelectedService.env !== 'prod'" class="px-1">
<div class="env-banner env-banner--dev" title="Development Mode">
<span class="env-banner__dot"></span>
<span class="env-banner__label">DEV</span>
<span class="env-banner__label">Development</span>
</div>
</b-nav-item>

Expand Down
6 changes: 3 additions & 3 deletions src/store/mainStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ const mainStore = {
resolve(json)
}
}).catch((e) => {
reject(new Error(`while updating an app ${e}`))
reject(new Error(`${e}`))
})
})
},
Expand Down Expand Up @@ -936,7 +936,7 @@ const mainStore = {
resolve(json)
}
}).catch((e) => {
reject(new Error(`while updating an app ${e}`))
reject(new Error(`${e}`))
})
})
},
Expand All @@ -963,7 +963,7 @@ const mainStore = {
}
})
.catch(e => {
reject(new Error(`while updating an app ${e}`));
reject(new Error(`${e}`));
});
});
},
Expand Down
25 changes: 23 additions & 2 deletions src/views/ServiceConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{{ displayDomainVerified ? '✓ Verified' : 'Unverified' }}
</span>
</div>
<p>Confirm ownership of the domain used by this application.</p>
<p>Verify domain ownership to unlock Production access.</p>
</div>
<div class="edit-actions">
<button v-if="!isEditing && !isEditingDomain" type="button" class="icon-button" title="Edit domain" aria-label="Edit domain" @click="startDomainEdit">
Expand Down Expand Up @@ -256,6 +256,8 @@
<button type="button" :class="{ active: isProd }" :disabled="!(isEditing && editingSection === 'environment')" @click="setEnv(true)">Production</button>
</div>
<p class="environment-help">Switching environments can affect credentials, integrations, and available services.</p>
<p class="production-requirement">Your domain must be verified before moving to Production.</p>
<p v-if="isEditing && editingSection === 'environment'" class="pending-message">The environment change will be applied when you save.</p>
<div v-if="isEditing && editingSection === 'environment'" class="side-card-actions">
<button type="button" class="secondary-button" @click="cancelEdit">Cancel</button>
<button type="button" class="primary-button" @click="saveChanges">Save environment</button>
Expand Down Expand Up @@ -354,7 +356,6 @@
.domain-summary { width: 100%; }
.domain-summary strong { font-size: 13px; }
.card-footer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e8edf3; }
.domain-footer-actions { margin-top: 16px; padding-top: 0; border-top: 0; }
.verification-badge, .inline-verified, .key-type { display: inline-flex; align-items: center; border-radius: 14px; font-size: 11px; font-weight: 700; }
.verification-badge { padding: 5px 10px; }
.verified, .inline-verified { background: #eaf8f0; color: #218459; }
Expand All @@ -366,6 +367,7 @@
.environment-toggle button:disabled { cursor: default; opacity: 1; }
.environment-help { margin: 14px 0 0; color: #7b8798; font-size: 11px; }
.pending-message { margin: 12px 0 0; color: #218459; font-size: 12px; }
.production-requirement { margin: 10px 0 0; padding: 9px 10px; border-radius: 6px; background: #fff8e8; color: #8a611d; font-size: 11px; line-height: 1.45; }
.identity-fields { display: grid; gap: 22px; margin-top: 24px; }
.key-type { margin-top: 7px; padding: 4px 8px; background: #f0f4ff; color: #315fba; }
.dns-record { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border: 1px solid #dfe6ef; border-radius: 7px; background: #f8fafc; }
Expand Down Expand Up @@ -483,6 +485,13 @@ export default {
.map(value => normalizeCorsOrigin(value))
.filter(Boolean)
.filter((origin, index, all) => all.indexOf(origin) === index);
this.activeTab = this.isValidTab(this.$route.query.tab) ? this.$route.query.tab : 'general';
},
watch: {
'$route.query.tab'(tab) {
if (this.isEditing || this.isEditingDomain) return;
this.activeTab = this.isValidTab(tab) ? tab : 'general';
},
},
methods: {
...mapActions('mainStore', [
Expand All @@ -496,9 +505,21 @@ export default {
return serviceId ? this.getAppsWithSSIServices.find(item => item.appId === serviceId) : null;
},
async selectTab(tab) {
if (!this.isValidTab(tab)) return;
this.activeTab = tab;
if (this.$route.query.tab !== tab) {
await this.$router.replace({
query: {
...this.$route.query,
tab,
},
});
}
if (tab === 'issuer' && this.isEditing && this.editingSection === 'issuer') await this.prepareIdentityEditor();
},
isValidTab(tab) {
return this.tabs.some(item => item.value === tab);
},
async prepareIdentityEditor() {
await this.ensureWidgetConfigsLoaded();
if (!this.associatedSSIServiceDIDs.length) await this.fetchDIDs();
Expand Down
Loading