fix(active-identity): complete component migration to new Active Identity system

Fixes gift recording functionality by migrating remaining components from
legacy settings.activeDid to new $getActiveDid() method. Migration 004
dropped settings.activeDid column before all components were updated,
causing validation failures in GiftedDialog, OfferDialog, and
OnboardingDialog. Added comprehensive logging to $getActiveDid() method
and HomeView initialization for debugging. Test "Check User 0 can register
a random person" now passes consistently.

- GiftedDialog, OfferDialog, OnboardingDialog use new Active Identity system
- Enhanced logging in PlatformServiceMixin.$getActiveDid() method
- Added debugging logs to HomeView component lifecycle
- Fixed Playwright test navigation and element selectors
This commit is contained in:
Matthew Raymer
2025-08-22 12:10:52 +00:00
parent a6a461d358
commit 4ea72162ec
6 changed files with 57 additions and 6 deletions

View File

@@ -218,7 +218,10 @@ export default class GiftedDialog extends Vue {
try {
const settings = await this.$settings();
this.apiServer = settings.apiServer || "";
this.activeDid = settings.activeDid || "";
// Use new façade method with legacy fallback
const retrievedActiveDid = await this.$getActiveDid();
this.activeDid = retrievedActiveDid || "";
logger.debug("[GiftedDialog] Set activeDid from new system:", this.activeDid);
this.allContacts = await this.$contacts();
@@ -292,7 +295,9 @@ export default class GiftedDialog extends Vue {
}
async confirm() {
logger.debug("[GiftedDialog] confirm() called with activeDid:", this.activeDid);
if (!this.activeDid) {
logger.error("[GiftedDialog] Validation failed - activeDid is empty/null:", this.activeDid);
this.safeNotify.error(
NOTIFY_GIFTED_DETAILS_NO_IDENTIFIER.message,
TIMEOUTS.SHORT,

View File

@@ -175,7 +175,8 @@ export default class OfferDialog extends Vue {
const settings = await this.$accountSettings();
this.apiServer = settings.apiServer || "";
this.activeDid = settings.activeDid || "";
// Use new façade method with legacy fallback
this.activeDid = (await this.$getActiveDid()) || "";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) {

View File

@@ -270,7 +270,8 @@ export default class OnboardingDialog extends Vue {
async open(page: OnboardPage) {
this.page = page;
const settings = await this.$accountSettings();
this.activeDid = settings.activeDid || "";
// Use new façade method with legacy fallback
this.activeDid = (await this.$getActiveDid()) || "";
this.isRegistered = !!settings.isRegistered;
const contacts = await this.$getAllContacts();