nordabiz/blueprints
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
..
admin feat: port fee analysis (parent/child brands, stawka) to admin fees view 2026-04-10 16:40:42 +02:00
api fix: auto-clear KRS people (zarząd/wspólnicy) when CEIDG data is fetched 2026-04-08 18:02:49 +02:00
audit feat: capture and display Google account email for OAuth connections 2026-03-11 07:32:43 +01:00
auth chore(email): stop admin notifications for registrations and activations 2026-04-13 14:40:19 +02:00
benefits claude-mem plugin v10.3.3 2026-02-23 10:33:26 +01:00
board feat: fee analysis with parent/child brands on skladki page 2026-04-10 15:15:10 +02:00
chat fix: handle lazy loading error for company.category in chat routes 2026-03-28 05:54:49 +01:00
community fix(classifieds,admin): blokada duplikatów przez double/triple-click 2026-04-14 16:35:14 +02:00
education security(permissions): restrict guest access to members-only areas 2026-03-19 16:23:56 +01:00
forum fix: prevent duplicate forum topics from rapid double-submit 2026-04-13 13:29:40 +02:00
it_audit feat(security): Restrict audit access to single designated user 2026-02-09 12:31:10 +01:00
membership feat(membership): record workflow history for all status changes 2026-03-30 13:39:55 +02:00
messages feat(push): Web Push (VAPID + pywebpush) dla prywatnych wiadomości 2026-04-14 16:56:49 +02:00
public docs(releases): v1.67.0 — zabezpieczenie przed duplikatami ogłoszeń 2026-04-14 16:48:19 +02:00
push feat(push): Web Push (VAPID + pywebpush) dla prywatnych wiadomości 2026-04-14 16:56:49 +02:00
reports feat(reports): add membership structure breakdown to fees report 2026-03-31 11:48:57 +02:00
__init__.py feat(push): Web Push (VAPID + pywebpush) dla prywatnych wiadomości 2026-04-14 16:56:49 +02:00
CLAUDE.md chore: Clean up CLAUDE.md files and remove old downloaded files 2026-02-08 18:02:35 +01:00
pej_constants.py fix(pej): use SessionLocal instead of db_session 2026-03-16 18:30:24 +01:00