From 6013b8e167c2c3d1d436fc4f2b203e8cd3644d36 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Fri, 22 Aug 2025 10:18:09 +0000 Subject: [PATCH] =?UTF-8?q?feat(migration):=20migrate=20core=20identity=20?= =?UTF-8?q?views=20to=20Active=20Identity=20fa=C3=A7ade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace settings.activeDid reads with $getActiveDid() calls in critical identity management components. This continues the Active Identity table separation migration by updating components to use the new façade API instead of direct database field access. Components migrated: - AccountViewView: user account settings and profile management - ClaimView: credential/claim viewing and verification - ContactsView: contact management and invitation processing - DIDView: DID display and identity information - ProjectsView: project listing and management All components maintain backward compatibility through dual-write pattern while transitioning to the new active_identity table structure. --- src/views/AccountViewView.vue | 3 ++- src/views/ClaimView.vue | 3 ++- src/views/ContactsView.vue | 3 ++- src/views/DIDView.vue | 3 ++- src/views/ProjectsView.vue | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index eb99665c..ff8c4b8a 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -1035,7 +1035,8 @@ export default class AccountViewView extends Vue { // Then get the account-specific settings const settings: AccountSettings = await this.$accountSettings(); - this.activeDid = settings.activeDid || ""; + // Use new Active Identity façade instead of settings.activeDid + this.activeDid = (await this.$getActiveDid()) || ""; this.apiServer = settings.apiServer || ""; this.apiServerInput = settings.apiServer || ""; this.givenName = diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index f594dc9b..0626f993 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -728,7 +728,8 @@ export default class ClaimView extends Vue { const settings = await this.$accountSettings(); - this.activeDid = settings.activeDid || ""; + // Use new Active Identity façade instead of settings.activeDid + this.activeDid = (await this.$getActiveDid()) || ""; this.apiServer = settings.apiServer || ""; this.allContacts = await this.$contacts(); diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index 6c670f26..676ad8bd 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -295,7 +295,8 @@ export default class ContactsView extends Vue { this.notify = createNotifyHelpers(this.$notify); const settings = await this.$accountSettings(); - this.activeDid = settings.activeDid || ""; + // Use new Active Identity façade instead of settings.activeDid + this.activeDid = (await this.$getActiveDid()) || ""; this.apiServer = settings.apiServer || ""; this.isRegistered = !!settings.isRegistered; diff --git a/src/views/DIDView.vue b/src/views/DIDView.vue index a6212ece..1e24a495 100644 --- a/src/views/DIDView.vue +++ b/src/views/DIDView.vue @@ -373,7 +373,8 @@ export default class DIDView extends Vue { */ private async initializeSettings() { const settings = await this.$accountSettings(); - this.activeDid = settings.activeDid || ""; + // Use new Active Identity façade instead of settings.activeDid + this.activeDid = (await this.$getActiveDid()) || ""; this.apiServer = settings.apiServer || ""; } diff --git a/src/views/ProjectsView.vue b/src/views/ProjectsView.vue index acc6e467..103d59c4 100644 --- a/src/views/ProjectsView.vue +++ b/src/views/ProjectsView.vue @@ -386,7 +386,8 @@ export default class ProjectsView extends Vue { */ private async initializeUserSettings() { const settings = await this.$accountSettings(); - this.activeDid = settings.activeDid || ""; + // Use new Active Identity façade instead of settings.activeDid + this.activeDid = (await this.$getActiveDid()) || ""; this.apiServer = settings.apiServer || ""; this.isRegistered = !!settings.isRegistered; this.givenName = settings.firstName || "";