Skip to content

[Improvement] Add a per-pool notification mute option #146

Description

@grantfox-oss

Getting Started

  1. Fork the repository: https://github.com/JointSave-org/Joint_Save
  2. Clone your fork:
   git clone https://github.com/<your-username>/Joint_Save.git
   cd Joint_Save
  1. 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

  • Muting a specific pool stops notifications for that pool only, others still come through
  • Toggle state persists and is reflected correctly when revisiting the page
  • Edge Function correctly respects the per-pool mute alongside existing global preferences

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSOfficial CampaignCampaign: Official Campaignmedium-complexityNot too complex, Few files and some planning needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions