Fix lint failures, console.* convention violations, and CI Node version mismatch

- Add docs/capacitor-native-app-plan.md to hex-lint ignore list (code examples
  naturally reference hex colors in Capacitor config)
- Replace direct console.error/console.log calls with logger utility in
  historyView.js, profileCache.js, EventDetailsModal.js, ZapInterface.js,
  and notificationController.js
- Update CI workflow from Node 20 to Node 22 to match package.json engines

https://claude.ai/code/session_01LzErpH9FNw4hAPsjoYb1v9
This commit is contained in:
Claude committed 2026-02-10 02:35:24 +00:00
1 parent c4b829d5e4
commit 696a30051b
7 files changed
+19 -14

No files matched your search

+4 -2
View File
@@ -1,3 +1,5 @@
import { userLogger as _fallbackUserLogger, devLogger as _fallbackDevLogger } from "../utils/logger.js";
export default class NotificationController {
constructor({
portal,
@@ -16,8 +18,8 @@ export default class NotificationController {
this.statusContainer?.querySelector("[data-status-message]") || null;
// Fallback loggers if not provided
this.userLogger = loggers.userLogger || { error: console.error, warn: console.warn, log: console.log, info: console.info };
this.devLogger = loggers.devLogger || { error: console.error, warn: console.warn, log: console.log, info: console.info };
this.userLogger = loggers.userLogger || _fallbackUserLogger;
this.devLogger = loggers.devLogger || _fallbackDevLogger;
this.document = documentRef;
this.window = windowRef;