forked from trent_larson/crowd-funder-for-time-pwa
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:
@@ -454,6 +454,7 @@ export default class HomeView extends Vue {
|
||||
* Called automatically by Vue lifecycle system
|
||||
*/
|
||||
async mounted() {
|
||||
logger.debug("[HomeView] mounted() starting");
|
||||
try {
|
||||
await this.initializeIdentity();
|
||||
// Settings already loaded in initializeIdentity()
|
||||
@@ -494,6 +495,7 @@ export default class HomeView extends Vue {
|
||||
* @throws Logs error if DID retrieval fails
|
||||
*/
|
||||
private async initializeIdentity() {
|
||||
logger.debug("[HomeView] initializeIdentity() starting");
|
||||
try {
|
||||
// Retrieve DIDs with better error handling
|
||||
try {
|
||||
@@ -539,7 +541,10 @@ export default class HomeView extends Vue {
|
||||
await this.ensureCorrectApiServer();
|
||||
|
||||
// Use new façade method with legacy fallback
|
||||
this.activeDid = (await this.$getActiveDid()) || "";
|
||||
const retrievedActiveDid = await this.$getActiveDid();
|
||||
logger.debug("[HomeView] Retrieved activeDid:", retrievedActiveDid);
|
||||
this.activeDid = retrievedActiveDid || "";
|
||||
logger.debug("[HomeView] Set activeDid to:", this.activeDid);
|
||||
|
||||
// Load contacts with graceful fallback
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user