Skip to content

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

Merged
merged 3 commits into from
Jul 14, 2021

Conversation

zee-bit
Copy link
Member

@zee-bit zee-bit commented Jul 13, 2021

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?

  • Manually
  • Passed linting & tests (each commit)

Commit flow

  • views: Indicate visual notifications setting affects other clients.
  • views: Indicate configuring/enabling notifications if checkbox disabled.

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?

This commit modifies the label of Visual notifications checkbox to indicate
that this setting directly affects other clients, namely Web and desktop.
@zee-bit zee-bit force-pushed the indicate-notification-setting-nuances branch from 4b35bc7 to db6201d Compare July 14, 2021 13:46
@zulipbot zulipbot added the size: S [Automatic label added by zulipbot] label Jul 14, 2021
@zee-bit zee-bit force-pushed the indicate-notification-setting-nuances branch from db6201d to 45aab00 Compare July 14, 2021 16:02
@zulipbot zulipbot added size: M [Automatic label added by zulipbot] and removed size: S [Automatic label added by zulipbot] labels Jul 14, 2021
Copy link
Member

@preetmishra preetmishra left a 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.

@@ -1299,10 +1299,18 @@ def __init__(self, controller: Any, stream_id: int) -> None:
footlinks_width,
len(visual_notification.label) + 4,
)
visual_notification = [visual_notification]
Copy link
Member

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?

Copy link
Member

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',
Copy link
Member

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*

zee-bit added 2 commits July 14, 2021 21:48
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.
@zee-bit zee-bit force-pushed the indicate-notification-setting-nuances branch from 45aab00 to 89ae3e1 Compare July 14, 2021 16:32
@neiljp
Copy link
Collaborator

neiljp commented Jul 14, 2021

@zee-bit Thanks for the prompt update following #900, I agree with @preetmishra that this will improve the UX 🎉

@neiljp neiljp merged commit 59c847a into zulip:main Jul 14, 2021
@neiljp neiljp added this to the Next Release milestone Jul 14, 2021
@neiljp neiljp added the area: UI General user interface update label Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UI General user interface update size: M [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants