vincent-paing / CCDroidX

CCDroidX is to Android what CCMenu is to Mac and what CCTray is to Windows
GNU General Public License v3.0
16 stars 1 forks source link

[Feature] Mute Until X time #3

Open vincent-paing opened 2 years ago

vincent-paing commented 2 years ago

Value Statement

As a user, I want to mute a project for only a certain period so that if it's a known issue, I won't get nagged about it

Summary

Currently, the database has column for muteUntil which saves a timestamp when a certain project should be alerted again. My idea is to show a popup similar to what Messenger does, when user click on Mute, and give options. When it's synced again and about to notify, we can check for the existence of muteUntil and alert accordingly.

Acceptance Criteria

AC 1 : Mute until options

Given When Then
A project card exists I click on three dots menu and click Mute I should see a dialog with 3 options: 30 minutes, 1 hour, 24 hours, Always
A project card exists I click on three dots menu and click Mute and one of the options The database should be updated with relevant selected options

AC 2 : Mute until notification

Given When Then
I have set mute until options for a certain project I made a sync on the project before that mute until expires I should not see notification
I have set mute until options for a certain project I made a sync on the project after that mute until expires I should see notification