Notification preferences per type
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- full-stack
Direzione di ricerca
Start with apps/api/src/services/notificationService.ts, where the preference check has to run before a notification is created and before a push is sent, and read apps/web/src/components/PushSettings.tsx and apps/web/src/pages/SettingsPage.tsx for the switch UI. Add the notificationPrefs field and the GET/PATCH /api/users/me/notification-prefs routes, with a shared schema in packages/shared. Done means that turning a type off stops new notifications and pushes of that type, existing notifications are kept, and a test shows the defaults are unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Difficulty: Intermediate · Estimated size: 1 to 2 days
Context
Push settings exist (PushSettings.tsx) but people cannot choose which events notify them. A popular account can get many like notifications.
Problem or goal
Let each person turn notification types on or off: likes, comments, follows, messages.
Suggested approach
- API: store
notificationPrefsonUserwith all types on by default;GET/PATCH /api/users/me/notification-prefsvalidated by a Zod schema inpackages/shared. - Check the preference in
notificationServicebefore creating the notification and before sending a push. - Web: a list of switches in Settings.
Where to look
apps/api/src/services/notificationService.tsapps/web/src/components/PushSettings.tsxapps/web/src/pages/SettingsPage.tsx
Acceptance criteria
- Turning a type off stops new notifications and pushes of that type.
- Existing notifications are not deleted.
- Defaults are unchanged for current users (add a test).
- Switches are keyboard and screen-reader friendly.
How to work on it
- Comment here to claim it, so two people do not do the same work.
- Fork the repo and branch from
main(feat/short-nameorfix/short-name). Setup steps are in docs/DEVELOPMENT.md. - Keep the change focused and add tests for backend logic.
- Run
npm run typecheck,npm testandnpm run lintandnpm run formatbefore opening the pull request. - Use a Conventional Commits title (for example
feat(web): add bookmarks). More in CONTRIBUTING.md.
Stuck? Ask in this issue. Questions are welcome.
Generated by Claude Code
- Lingua principale
- TypeScript
- Stelle
- 6
- Fork
- 6
- Merge medio
- 1h 59m
- PR unite (30g)
- 59
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Haseeb-MernStack/commune
-
enhancement good first issue web
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Haseeb-MernStack/commune#141 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Haseeb-MernStack/commune#138 ·
I maintainer di solito rispondono entro 1 giorno
-
api good first issue tests
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
Haseeb-MernStack/commune#132 ·
I maintainer di solito rispondono entro 1 giorno
-
ci good first issue tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Haseeb-MernStack/commune#133 ·
I maintainer di solito rispondono entro 1 giorno
-
accessibility good first issue web
Difficoltà 2/5 Mezza giornata Idoneità per principianti 74/100
Haseeb-MernStack/commune#117 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Haseeb-MernStack/commune
Issue simili
-
[UI] Guard webApis against undefined window in SSR environmentsForse già presa @madhavzanwar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
headroomlabs-ai/headroom#4992 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
paperclipai/paperclip#22575 ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
lingdojo/kana-dojo#34502 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
nikhilb2/simple_invoicing#935 ·