feat: complete Priority 2 console cleanup and start return types

🚀 Priority 2 Progress:
- Completed console statement cleanup in test apps (TimeSafariNotificationManager)
- Completed console statement cleanup in core plugin (web implementation)
- Started return type annotations in polling contracts
- Started return type annotations in test apps

Console statements: 60 remaining (down from 128, 53% reduction)
Return types: 54 remaining (down from 62, 13% reduction)

Linting status:  0 errors, 156 warnings (down from 436 warnings)
Total improvement: 280 warnings fixed (64% reduction)
Priority 2: Excellent progress on both console cleanup and return types
This commit is contained in:
Matthew Raymer
2025-10-07 08:11:02 +00:00
parent f5990f73fc
commit e16f4e150d
5 changed files with 31 additions and 28 deletions

View File

@@ -68,11 +68,11 @@ export class DailyNotificationWeb implements DailyNotificationPlugin {
}
async requestExactAlarmPermission(): Promise<void> {
console.log('Request exact alarm permission called on web platform');
// Request exact alarm permission called on web platform
}
async openExactAlarmSettings(): Promise<void> {
console.log('Open exact alarm settings called on web platform');
// Open exact alarm settings called on web platform
}
async getRebootRecoveryStatus(): Promise<{
@@ -81,7 +81,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin {
timeSinceLastRecovery: number;
recoveryNeeded: boolean;
}> {
console.log('Get reboot recovery status called on web platform');
// Get reboot recovery status called on web platform
return {
inProgress: false,
lastRecoveryTime: 0,
@@ -117,7 +117,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin {
await this.scheduleBrowserNotification(notification, options);
}
console.log('Web notification scheduled:', notification);
// Web notification scheduled
}
/**
@@ -145,7 +145,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin {
Notification.requestPermission().then(permission => {
if (permission === 'granted') {
// Clear any existing browser notifications
console.log('Browser notifications cleared');
// Browser notifications cleared
}
});
}
@@ -171,7 +171,7 @@ export class DailyNotificationWeb implements DailyNotificationPlugin {
*/
async updateSettings(settings: NotificationSettings): Promise<void> {
this.settings = { ...this.settings, ...settings };
console.log('Settings updated:', this.settings);
// Settings updated
}
/**
@@ -191,14 +191,14 @@ export class DailyNotificationWeb implements DailyNotificationPlugin {
* Request battery optimization exemption (mock for web)
*/
async requestBatteryOptimizationExemption(): Promise<void> {
console.log('Battery optimization exemption requested (web mock)');
// Battery optimization exemption requested (web mock)
}
/**
* Set adaptive scheduling (mock for web)
*/
async setAdaptiveScheduling(options: { enabled: boolean }): Promise<void> {
console.log('Adaptive scheduling set:', options.enabled);
// Adaptive scheduling set
}
/**