Trek_CN/client/tests/helpers/msw/handlers
jubnl bfe84b3016
feat(notifications): add ntfy as a first-class notification channel
Adds ntfy.sh (and self-hosted instances) as a new push notification
channel with full parity to the existing webhook channel.

- Backend: NtfyConfig type, getUserNtfyConfig, getAdminNtfyConfig,
  resolveNtfyUrl, sendNtfy (header-based API with Title/Priority/Tags/
  Click headers), testNtfy, NTFY_EVENT_META (priority + emoji tags per
  event), SSRF guard via existing checkSsrf + createPinnedDispatcher
- notificationPreferencesService: ntfy added to NotifChannel union,
  IMPLEMENTED_COMBOS, getActiveChannels parser, getAvailableChannels,
  ADMIN_GLOBAL_CHANNELS, and AvailableChannels interface
- notificationService: per-user ntfy dispatch after webhook block;
  admin-scoped ntfy via getAdminGlobalPref for version_available events
- Routes: POST /api/notifications/test-ntfy with saved-token fallback
- authService: admin_ntfy_server/topic/token in ADMIN_SETTINGS_KEYS,
  masked + encrypted on read/write
- settingsService: ntfy_token added to ENCRYPTED_SETTING_KEYS
- Frontend: ntfy topic/server/token inputs + Save/Test/Clear buttons in
  NotificationsTab; admin Ntfy panel in AdminPage; testNtfy API method
- i18n: full English strings; English placeholders in 14 other locales
- Tests: resolveNtfyUrl, sendNtfy, dispatch integration, UI tests,
  MSW handler for test-ntfy endpoint
2026-04-15 13:59:25 +02:00
..
addons.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
admin.ts test: add comprehensive coverage for OAuth scopes, MCP, and core services 2026-04-11 14:08:09 +02:00
assignments.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
auth.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
budget.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
dayNotes.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
files.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
index.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
notifications.ts feat(notifications): add ntfy as a first-class notification channel 2026-04-15 13:59:25 +02:00
packing.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
places.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
reservations.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
settings.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
shared.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
tags.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
todo.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00
trips.ts feat(pwa): implement real offline mode with IndexedDB sync 2026-04-14 23:04:25 +02:00
vacay.ts test(front): add test suite frontend (WIP) 2026-04-07 12:31:09 +02:00