Skip to content

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented Jun 27, 2025

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

Screenshot 2025-07-01 at 12 42 58 PM

Starred messages: "Learn more" button opens /help/star-a-message
Screenshot 2025-07-01 at 12 43 08 PM

Mentions: web shows more text here, but there's complexity around what kind of mentions are supported; I've left a TODO for later.
Screenshot 2025-07-01 at 12 43 18 PM

Group DM:
Screenshot 2025-07-01 at 12 43 31 PM

Group DM with a deactivated user:
Screenshot 2025-07-01 at 12 43 48 PM

Screenshot 2025-07-01 at 12 43 56 PM

DM with muted user:
Screenshot 2025-07-01 at 12 44 11 PM

DM with deactivated user:
Screenshot 2025-07-01 at 12 44 19 PM

Screenshot 2025-07-01 at 12 44 26 PM Screenshot 2025-07-01 at 12 44 44 PM Screenshot 2025-07-01 at 12 44 54 PM

Unknown channel (unknown because I'm not allowed to know about it):
Screenshot 2025-07-01 at 12 45 25 PM

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.)
Screenshot 2025-07-01 at 12 46 00 PM

@chrisbobbe chrisbobbe added the maintainer review PR ready for review by Zulip maintainers label Jun 27, 2025
@chrisbobbe chrisbobbe force-pushed the pr-empty-msglist-placeholder branch from 1e9c27d to 416787a Compare July 1, 2025 19:57
@chrisbobbe
Copy link
Collaborator Author

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.
@chrisbobbe chrisbobbe force-pushed the pr-empty-msglist-placeholder branch from 416787a to e2c3ab5 Compare July 2, 2025 00:35
@chrisbobbe chrisbobbe marked this pull request as ready for review July 2, 2025 00:37
Copy link
Member

@rajveermalviya rajveermalviya left a 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!)),
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

msglist: Different "no-messages" placeholders per-narrow (and some other conditions)
2 participants