nordabiz/static/js
Maciej Pienczyn 6c4db17807
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
feat(push): Web Push (VAPID + pywebpush) dla prywatnych wiadomości
Pierwsza iteracja — trigger to nowa wiadomość prywatna. Rollout
fazowany przez PUSH_USER_WHITELIST w .env: pusta = wszyscy, lista
user_id = tylko wymienieni. Ta sama flaga kontroluje widoczność
dzwonka w navbarze (context_processor inject_push_visibility).

Co jest:
- database/migrations/100 — push_subscriptions + notify_push_messages
- database.py — PushSubscription model + relacja na User
- blueprints/push/ — vapid-public-key, subscribe, unsubscribe, test,
  pending-url (iOS PWA), CSRF exempt, auto-prune martwych (410/404/403)
- static/sw.js — push + notificationclick (z iOS fallback przez
  /push/pending-url w Redis, TTL 5 min)
- static/js/push-client.js — togglePush, iOS detection, ?pushdiag=1
- base.html — dzwonek + wpięcie skryptu gated przez push_bell_visible
- message_routes.py — _send_message_push_notifications po emailach
- requirements.txt — pywebpush==2.0.3

Kill switch: PUSH_KILL_SWITCH=1 zatrzymuje wszystkie wysyłki.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 16:56:49 +02:00
..
vendor fix(company-edit): host Quill editor locally instead of CDN 2026-03-18 18:12:39 +01:00
analytics-tracker.js fix(zopk): Add Brave API rate limit handling and heartbeat limit fix 2026-02-09 14:43:34 +01:00
analytics-tracker.min.js fix: sendBeacon 415 error - wrap payload in Blob with application/json 2026-04-10 06:56:24 +02:00
conversations.js fix: prevent duplicate messages from SSE/poll race condition 2026-04-11 09:58:47 +02:00
mention-autocomplete.js feat(forum): @mention autocomplete with user picker 2026-04-13 13:38:09 +02:00
push-client.js feat(push): Web Push (VAPID + pywebpush) dla prywatnych wiadomości 2026-04-14 16:56:49 +02:00
scroll-animations.js feat: Animacje scroll z IntersectionObserver (Sprint 4) 2026-01-30 14:43:30 +01:00