-
-
Notifications
You must be signed in to change notification settings - Fork 475
Add feature to enable Time based DND Mode #896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@timabbott @akashnimare @abhigyank |
Left some comments. I like how it works smoothly for both the themes. |
@abhigyank Thanks. I have implemented your suggestions and toast is also done now. So it's a completed PR from my end. |
The working is fine, it is working as expected for me. The overall logic implementation looks correct to me. |
@manavmehta can you refactor the PR a bit (there are some places where you can improve the code quality + add comments etc)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akashnimare any specifics for refactoring - any function
@manavmehta can you refactor the PR a bit (there are some places where you can improve the code quality + add comments etc)?
Any specific block for refactoring and improving code quality? I can surely implement if you mention.
I have sent you a few things which you can improve in the PM. |
@akashnimare @abhigyank implemented. Please review. |
This looks better I think. @andersk quick review? |
Working LGTM. Refactoring has improved the code. Can be merged after @andersk does a review. |
@andersk ping |
@manavmehta Rebase this once you're free. We can merge this @akashnimare . |
@abhigyank Rebased. Tested again on macOS. |
163fb43
to
64ad096
Compare
Create a menu to allow selecting time for which DND will be enabled. DND will go off at the scheduled time and a toast will be shown, both while setting the DND, thus conveying the DND Off time and again at the time when DND goes off. 'Until I resume' option is time independent, trivially. Fixes zulip#561
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dndswitchOff
would probably be better named as dndEndTime
?
* Better documentation * Use better methods like `append` instead of `innerHTML` * Better function names and parameters
Heads up @manavmehta, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
What's this PR do?
Fixes: #561
User can now select time for which DND will be enabled.
Toast notification (4 sec) will be shown for clock time when DND would go off and also when it actually goes off.
Screenshots?


You have tested this PR on:
[✓ ] macOS Catalina 10.15.4