Getting Started
- Fork the repository: https://github.com/JointSave-org/Joint_Save
- Clone your fork:
git clone https://github.com/<your-username>/Joint_Save.git
cd Joint_Save
- Create a new branch:
git checkout -b feat/per-pool-notification-mute
Overview
The existing notification preferences in useUserProfile.ts are global (e.g. "email me on deposit" applies to every pool the user is in). Checked and confirmed there's no way to mute notifications for one specific pool while keeping them on for others — for a user in many pools, this could get noisy if they only care about updates from a couple of them.
Requirements
- Add a
muted_pools array (or a join table, whichever fits the existing schema conventions better) to track per-pool mute state per user
- Add a "Mute notifications for this pool" toggle on the group detail page
- Update the notification-sending logic (the Edge Function) to check this mute list before sending, in addition to the existing global preferences
- Muting should be additive with the global preference — both need to allow a notification through for it to actually send
Acceptance Criteria
Getting Started
Overview
The existing notification preferences in
useUserProfile.tsare global (e.g. "email me on deposit" applies to every pool the user is in). Checked and confirmed there's no way to mute notifications for one specific pool while keeping them on for others — for a user in many pools, this could get noisy if they only care about updates from a couple of them.Requirements
muted_poolsarray (or a join table, whichever fits the existing schema conventions better) to track per-pool mute state per userAcceptance Criteria