peppa/openspec/changes/pep-29-35-55-notifications/tasks.md
Асель 06337e18dc PEP-29/35/55: OpenSpec change pep-29-35-55-notifications
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:09:37 +05:00

24 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tasks: PEP-29, PEP-35, PEP-55
## 1. Данные и core
- [ ] 1.1 Схема `push_subscriptions`, `push_outbox` + миграция
- [ ] 1.2 core/notifications.ts: prefs (чтение с умолчаниями, сохранение), тихие часы, `questionEvent`, `projectAudience`, `deliverToUser`
- [ ] 1.3 core/webpush.ts: VAPID-ключи в settings, шифрование aes128gcm, JWT, отправка, push-outbox (очередь, ретраи, 404/410)
- [ ] 1.4 core/digest.ts: сбор и текст сводки, `digestTick` (время, таймзона, окно, дедуп)
## 2. Доставка
- [ ] 2.1 Бот: вопросы через `deliverToUser`, разбор push-outbox, `/digest`
- [ ] 2.2 Ошибки из прода и мониторинг через `deliverToUser`
- [ ] 2.3 Вачдог: `digestTick` в `tick`
## 3. Веб
- [ ] 3.1 «Настройки → Уведомления»: события × каналы, тихие часы, таймзона, дайджест, звук, проекты
- [ ] 3.2 Push в браузере: sw.js, манифест PWA, включить/проверить/отключить
- [ ] 3.3 Счётчик в заголовке и значке, звук; `/api/attention`
- [ ] 3.4 Помощь
## 4. Тесты и документация
- [ ] 4.1 testkit: mock-push, notifications.test.ts (сценарии спеки)
- [ ] 4.2 AGENTS.md
- [ ] 4.3 pnpm run ci зелёный