From da48ee71401a565e5e326b6c24e35fe93d4e6892 Mon Sep 17 00:00:00 2001 From: didintern Date: Fri, 22 Aug 2025 11:09:37 +0530 Subject: [PATCH 1/2] fix: Fixed the state persist problem when stwitching between apps, for KYCWebPageGenerator --- src/store/mainStore.js | 4 ++++ src/views/playground/KYCWebpageGenerator.vue | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/store/mainStore.js b/src/store/mainStore.js index d96bde7..799a16a 100644 --- a/src/store/mainStore.js +++ b/src/store/mainStore.js @@ -225,6 +225,10 @@ const mainStore = { }, setSelectedAppId: (state, payload) => { state.selectedServiceId = payload; + // Clear app-specific configs when switching apps + state.kycWebpageConfig = {}; + state.webhookConfig = {}; + state.onChainConfig = {}; }, setDIDList(state, payload) { diff --git a/src/views/playground/KYCWebpageGenerator.vue b/src/views/playground/KYCWebpageGenerator.vue index cd28208..f47fab0 100644 --- a/src/views/playground/KYCWebpageGenerator.vue +++ b/src/views/playground/KYCWebpageGenerator.vue @@ -1363,7 +1363,7 @@ export default { previewMode: "desktop", showDeleteModal: false, kycWebpageConfigTemp: { - pageTitle: "KYC Verification", + pageTitle: "", pageDescription: "", expiryType: "3months", customExpiryDate: "", @@ -1548,9 +1548,9 @@ export default { } else { // Reset to default values if no config exists this.kycWebpageConfigTemp = { - pageTitle: "KYC Verification", + pageTitle: "", pageDescription: "", - expiryType: "3months", + expiryType: "1months", customExpiryDate: "", selectedTheme: "vibrant", contactEmail: "", From 45271e08ae7e2cfc521008723113fda9570a7171 Mon Sep 17 00:00:00 2001 From: didintern Date: Fri, 22 Aug 2025 12:05:53 +0530 Subject: [PATCH 2/2] Fix: KYCWebPageGenerator - Changed the menu text to KYC Verifier, - Status badge allignment, - Status getting expired when selecting custom page expiry, - Live preview not looking consistent in mobile mode, - contact info not centered --- src/App copy.vue | 2 +- src/App.vue | 3 +- src/views/playground/KYCWebpageGenerator.vue | 187 ++++++++++++++++++- 3 files changed, 180 insertions(+), 12 deletions(-) diff --git a/src/App copy.vue b/src/App copy.vue index fb45906..5e2454c 100644 --- a/src/App copy.vue +++ b/src/App copy.vue @@ -226,7 +226,7 @@ mdi-cog - Settings + Settings1 diff --git a/src/App.vue b/src/App.vue index 42f3593..18ff209 100644 --- a/src/App.vue +++ b/src/App.vue @@ -202,6 +202,7 @@