-
Notifications
You must be signed in to change notification settings - Fork 318
msglist: Friendlier placeholder text when narrow has no messages #1640
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
1e9c27d
to
416787a
Compare
Revision pushed, incorporating Vlad's new design with larger "header" text and smaller "message" text: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=11194-18392&m=dev I've updated the screenshots. |
We can reuse this for the empty message list.
Fixes zulip#1555. For now, the text simply says "There are no messages here." We'll add per-narrow logic later, but this is an improvement over the current appearance which just says "No earlier messages." (Earlier than what?) To support being used in the message-list page (in addition to Inbox, etc.), the placeholder widget only needs small changes, it turns out.
Following a new Figma frame that specifies larger text for the first part: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=11194-18392&m=dev The smaller text is left optional. The subscriptions page has a plan to add that smaller text, as a TODO(zulip#188); it's blocked on adding an "All channels" page.
416787a
to
e2c3ab5
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.
Thanks @chrisbobbe! One small comment otherwise LGTM.
if (learnMoreButtonUrl != null) | ||
ZulipWebUiKitButton( | ||
label: zulipLocalizations.learnMoreButtonLabel, | ||
onPressed: () => ZulipBinding.instance.launchUrl(learnMoreButtonUrl!)), |
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.
I think we should use PlatformActions.launchUrl
here to follow user's browser preference.
Stacked atop #1650 and #1652.
Fixes #1653.
Done using web as a guide for the conditional logic.
Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=11194-18392&m=dev
cc @alya
Screenshots
Starred messages: "Learn more" button opens

/help/star-a-message
Mentions: web shows more text here, but there's complexity around what kind of mentions are supported; I've left a TODO for later.

Group DM:

Group DM with a deactivated user:

DM with muted user:

DM with deactivated user:

Unknown channel (unknown because I'm not allowed to know about it):

Private channel I'm not subscribed to: "Learn more" button goes to

/help/channel-permissions#private-channels
(The error banner replacing the compose box is also new in this PR. It's the same as the one above, for unknown channels, which is in
main
.)