-
-
Notifications
You must be signed in to change notification settings - Fork 278
Clearly indicate nuances in Visual notification settings. #1080
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
Clearly indicate nuances in Visual notification settings. #1080
Conversation
This commit modifies the label of Visual notifications checkbox to indicate that this setting directly affects other clients, namely Web and desktop.
4b35bc7
to
db6201d
Compare
db6201d
to
45aab00
Compare
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.
@zee-bit Thanks for pushing this promptly. While this is a small addition, I believe it would help improve the user experience significantly. 👍
I have tested the PR locally and it seems to work well. I have left some in-line comments.
zulipterminal/ui_tools/views.py
Outdated
@@ -1299,10 +1299,18 @@ def __init__(self, controller: Any, stream_id: int) -> None: | |||
footlinks_width, | |||
len(visual_notification.label) + 4, | |||
) | |||
visual_notification = [visual_notification] |
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.
This is a bit unclear since you're reassigning another value in the var and later assigning another value conditionally. Could we call it something else?
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.
Perhaps append _setting
?
@@ -32,7 +32,6 @@ | |||
'column_title' : 'bold', | |||
'time' : '', | |||
'bar' : 'standout', | |||
'popup_contrast' : 'standout', |
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.
commit-description: so that it's*
This commit adds another style attribute "popup_important" for rendering hints/errors in the popup, or to justify the reason behind some popup elements being rendered differently/disabled. This also groups all the popup_* attributes together in all themes, so that it's easier to read and compare them.
This commit adds an extra Text widget in the stream settings indicating the user to configure or enable notifications if the checkbox is disabled. Currently, there are two ways to enable notifications in ZT: - Pass the --notify flag when starting ZT. - Add notify=enabled in the zuliprc file. See https://github.com/zulip/zulip-terminal#notifications for details on configuring notifications for your platform.
45aab00
to
89ae3e1
Compare
@zee-bit Thanks for the prompt update following #900, I agree with @preetmishra that this will improve the UX 🎉 |
What does this PR do?
This indicates more explicitly subtle details about the recently introduced Visual notification change via #900. Namely, we indicate that the "Visual notification" setting directly affects other clients such as Web app and desktop. Also, we remind the user
to configure/enable notifications if the checkbox is disabled.
Tested?
Commit flow
Notes & Questions
I have used "msg_mention" style attribute for the suffix text when the checkbox is disabled. Although this looks good visually on all themes, I'm concerned that the attr-name does not align with our context?