@ -32,7 +32,7 @@ class PermissionManager {
this . renderStatus ( mockStatus ) ;
this . renderStatus ( mockStatus ) ;
}
}
private renderStatus ( status : any ) : void {
private renderStatus ( status : Record < string , unknown > ) : void {
const statusClass = status . granted ? 'status-granted' : 'status-denied' ;
const statusClass = status . granted ? 'status-granted' : 'status-denied' ;
const statusText = status . granted ? 'Granted' : 'Denied' ;
const statusText = status . granted ? 'Granted' : 'Denied' ;
@ -496,11 +496,11 @@ class TimeSafariElectronTestApp {
retryAttempts : 3 ,
retryAttempts : 3 ,
retryDelay : 5000 ,
retryDelay : 5000 ,
callbacks : {
callbacks : {
onSuccess : async ( data : any ) = > {
onSuccess : async ( data : Record < string , unknown > ) = > {
this . log ( '✅ Content fetch successful' , data ) ;
this . log ( '✅ Content fetch successful' , data ) ;
await this . processEndorserNotificationBundle ( data ) ;
await this . processEndorserNotificationBundle ( data ) ;
} ,
} ,
onError : async ( error : any ) = > {
onError : async ( error : Record < string , unknown > ) = > {
this . log ( '❌ Content fetch failed' , error ) ;
this . log ( '❌ Content fetch failed' , error ) ;
}
}
}
}
@ -591,25 +591,25 @@ class TimeSafariElectronTestApp {
// const config = this.configLoader.getConfig();
// const config = this.configLoader.getConfig();
// Register offers callback
// Register offers callback
await this . notificationService . registerCallback ( 'offers' , async ( event : any ) = > {
await this . notificationService . registerCallback ( 'offers' , async ( event : Record < string , unknown > ) = > {
this . log ( '📨 Electron Offers callback triggered' , event ) ;
this . log ( '📨 Electron Offers callback triggered' , event ) ;
await this . handleOffersNotification ( event ) ;
await this . handleOffersNotification ( event ) ;
} ) ;
} ) ;
// Register projects callback
// Register projects callback
await this . notificationService . registerCallback ( 'projects' , async ( event : any ) = > {
await this . notificationService . registerCallback ( 'projects' , async ( event : Record < string , unknown > ) = > {
this . log ( '📨 Electron Projects callback triggered' , event ) ;
this . log ( '📨 Electron Projects callback triggered' , event ) ;
await this . handleProjectsNotification ( event ) ;
await this . handleProjectsNotification ( event ) ;
} ) ;
} ) ;
// Register people callback
// Register people callback
await this . notificationService . registerCallback ( 'people' , async ( event : any ) = > {
await this . notificationService . registerCallback ( 'people' , async ( event : Record < string , unknown > ) = > {
this . log ( '📨 Electron People callback triggered' , event ) ;
this . log ( '📨 Electron People callback triggered' , event ) ;
await this . handlePeopleNotification ( event ) ;
await this . handlePeopleNotification ( event ) ;
} ) ;
} ) ;
// Register items callback
// Register items callback
await this . notificationService . registerCallback ( 'items' , async ( event : any ) = > {
await this . notificationService . registerCallback ( 'items' , async ( event : Record < string , unknown > ) = > {
this . log ( '📨 Electron Items callback triggered' , event ) ;
this . log ( '📨 Electron Items callback triggered' , event ) ;
await this . handleItemsNotification ( event ) ;
await this . handleItemsNotification ( event ) ;
} ) ;
} ) ;
@ -668,7 +668,7 @@ class TimeSafariElectronTestApp {
/ * *
/ * *
* Process Endorser . ch notification bundle using parallel API requests
* Process Endorser . ch notification bundle using parallel API requests
* /
* /
private async processEndorserNotificationBundle ( data : any ) : Promise < void > {
private async processEndorserNotificationBundle ( data : Record < string , unknown > ) : Promise < void > {
try {
try {
this . log ( 'Processing Endorser.ch notification bundle on Electron...' ) ;
this . log ( 'Processing Endorser.ch notification bundle on Electron...' ) ;
@ -690,12 +690,12 @@ class TimeSafariElectronTestApp {
/ * *
/ * *
* Handle offers notification events from Endorser . ch API
* Handle offers notification events from Endorser . ch API
* /
* /
private async handleOffersNotification ( event : any ) : Promise < void > {
private async handleOffersNotification ( event : Record < string , unknown > ) : Promise < void > {
this . log ( 'Handling Electron offers notification:' , event ) ;
this . log ( 'Handling Electron offers notification:' , event ) ;
if ( event . data && event . data . length > 0 ) {
if ( event . data && event . data . length > 0 ) {
// Process OfferSummaryArrayMaybeMoreBody format
// Process OfferSummaryArrayMaybeMoreBody format
event . data . forEach ( ( offer : any ) = > {
event . data . forEach ( ( offer : Record < string , unknown > ) = > {
this . log ( 'Processing Electron offer:' , {
this . log ( 'Processing Electron offer:' , {
jwtId : offer.jwtId ,
jwtId : offer.jwtId ,
handleId : offer.handleId ,
handleId : offer.handleId ,
@ -716,12 +716,12 @@ class TimeSafariElectronTestApp {
/ * *
/ * *
* Handle projects notification events from Endorser . ch API
* Handle projects notification events from Endorser . ch API
* /
* /
private async handleProjectsNotification ( event : any ) : Promise < void > {
private async handleProjectsNotification ( event : Record < string , unknown > ) : Promise < void > {
this . log ( 'Handling Electron projects notification:' , event ) ;
this . log ( 'Handling Electron projects notification:' , event ) ;
if ( event . data && event . data . length > 0 ) {
if ( event . data && event . data . length > 0 ) {
// Process PlanSummaryAndPreviousClaimArrayMaybeMore format
// Process PlanSummaryAndPreviousClaimArrayMaybeMore format
event . data . forEach ( ( planData : any ) = > {
event . data . forEach ( ( planData : Record < string , unknown > ) = > {
const { plan , wrappedClaimBefore } = planData ;
const { plan , wrappedClaimBefore } = planData ;
this . log ( 'Processing Electron project change:' , {
this . log ( 'Processing Electron project change:' , {
jwtId : plan.jwtId ,
jwtId : plan.jwtId ,
@ -743,7 +743,7 @@ class TimeSafariElectronTestApp {
/ * *
/ * *
* Handle people notification events
* Handle people notification events
* /
* /
private async handlePeopleNotification ( event : any ) : Promise < void > {
private async handlePeopleNotification ( event : Record < string , unknown > ) : Promise < void > {
this . log ( 'Handling Electron people notification:' , event ) ;
this . log ( 'Handling Electron people notification:' , event ) ;
// Implementation would process people data and update local state
// Implementation would process people data and update local state
}
}
@ -751,12 +751,12 @@ class TimeSafariElectronTestApp {
/ * *
/ * *
* Handle items notification events
* Handle items notification events
* /
* /
private async handleItemsNotification ( event : any ) : Promise < void > {
private async handleItemsNotification ( event : Record < string , unknown > ) : Promise < void > {
this . log ( 'Handling Electron items notification:' , event ) ;
this . log ( 'Handling Electron items notification:' , event ) ;
// Implementation would process items data and update local state
// Implementation would process items data and update local state
}
}
private log ( message : string , data? : any ) {
private log ( message : string , data? : Record < string , unknown > ) {
const timestamp = new Date ( ) . toLocaleTimeString ( ) ;
const timestamp = new Date ( ) . toLocaleTimeString ( ) ;
const logEntry = document . createElement ( 'div' ) ;
const logEntry = document . createElement ( 'div' ) ;
logEntry . innerHTML = ` <span class="timestamp">[ ${ timestamp } ]</span> ${ message } ` ;
logEntry . innerHTML = ` <span class="timestamp">[ ${ timestamp } ]</span> ${ message } ` ;