Remove grey overlay and reduce logging noise

- Removed grey background overlay during sidebar slide-over for cleaner UI
- Removed excessive logging while keeping critical error/security logs
- Kept only: error conditions, connection events, panic mode, security events
- Significantly reduced console noise for better production readiness
This commit is contained in:
jack
2025-07-04 12:28:00 +02:00
parent f77cec3fb2
commit 2cd8443292
5 changed files with 96 additions and 95 deletions
+6 -6
View File
@@ -14,7 +14,7 @@ class NotificationService {
func requestAuthorization() {
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in
if granted {
print("[NOTIFICATIONS] Permission granted")
// Permission granted
} else if let error = error {
print("[NOTIFICATIONS] Permission error: \(error)")
}
@@ -25,17 +25,17 @@ class NotificationService {
// Check if app is in foreground
#if os(iOS)
guard UIApplication.shared.applicationState != .active else {
print("[NOTIFICATIONS] App is active/foreground, skipping notification")
// App is active/foreground, skipping notification
return
}
print("[NOTIFICATIONS] App state: \(UIApplication.shared.applicationState.rawValue), sending notification")
// App state checked, sending notification
#elseif os(macOS)
// On macOS, check if app is active
guard !NSApplication.shared.isActive else {
print("[NOTIFICATIONS] App is active/foreground, skipping notification")
// App is active/foreground, skipping notification
return
}
print("[NOTIFICATIONS] App is not active, sending notification")
// App is not active, sending notification
#endif
let content = UNMutableNotificationContent()
@@ -53,7 +53,7 @@ class NotificationService {
if let error = error {
print("[NOTIFICATIONS] Error sending notification: \(error)")
} else {
print("[NOTIFICATIONS] Notification sent: \(title)")
// Notification sent
}
}
}