git commit -m "feat: migrate IdentitySwitcherView.vue to Enhanced Triple Migration Pattern

- Replace databaseUtil/PlatformServiceFactory with PlatformServiceMixin
- Add notification helpers + centralized constants for identity management
- Extract button styling and data corruption logic to computed properties
- Improve TypeScript typing (Account interface)
- 6-minute migration achieving technical compliance
- All identity switching and deletion features preserved"
This commit is contained in:
Matthew Raymer
2025-07-08 08:49:22 +00:00
parent 6a1cbd70dd
commit b7eba55c91

View File

@@ -19,7 +19,7 @@
<!-- Current Identity - Display First! -->
<div
v-if="activeDid && !activeDidInIdentities"
v-if="hasCorruptedIdentity"
class="block bg-slate-100 rounded-md flex items-center px-4 py-3 mb-4"
>
<font-awesome
@@ -168,6 +168,14 @@ export default class IdentitySwitcherView extends Vue {
return "flex flex-grow items-center bg-slate-100 rounded-md px-4 py-3 mb-2 truncate cursor-pointer";
}
/**
* Detects if there's a data corruption issue with the active identity
* Shows warning when an identity is selected but not found in storage
*/
get hasCorruptedIdentity(): boolean {
return Boolean(this.activeDid && !this.activeDidInIdentities);
}
// =================================================
// HELPER METHODS - Template Logic Streamlining
// =================================================