Skip to content
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

Add conditional UI for displaying messages or default text #1292

Conversation

yashrajpu
Copy link

Fixes #381

This pull request (PR) addresses issue #386 and enhances the user interface by introducing a conditional feature for displaying messages.

If messages are available, they are displayed in the UI. If no messages exist, a default text is shown instead. This improvement enhances the user experience by providing clear feedback when no messages are present.

Changes Made:

  • Implemented logic to check for the existence of messages.
  • Displayed messages when available; if not, switched to a default text.
  • Improved the overall layout and clarity of the UI.

Testing:

  • Verified that the feature works correctly when messages are present.
  • Confirmed the fallback text appears appropriately when no messages are available.

Figma link:-

The updated UI aligns with the Figma design provided here
[Figma Design Link]
(https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=5966-176642&p=f&t=gdUmGEmNiTNiCHVf-0)

Ensured consistent behaviour across various screen sizes and edge cases.

Screenshots:

Old image:
Screenshot 2025-01-20 at 10 57 17 AM

New image:
Screenshot 2025-01-20 at 10 56 10 AM

@yashrajpu yashrajpu closed this Jan 21, 2025
@yashrajpu
Copy link
Author

check this one

#1294

@yashrajpu yashrajpu deleted the InboxPage-Design-implement-appearance-when-empty#386 branch January 21, 2025 04:16
@chrisbobbe
Copy link
Collaborator

chrisbobbe commented Jan 21, 2025

It looks like you closed this PR and opened a new one (#1294) for the same feature. We usually prefer not to do that; just force-push to the same branch to update the PR, instead of closing it and opening a new one.

@yashrajpu
Copy link
Author

I tried that, but I'm still encountering a CI error. I don’t see any other option, so I created a new PR. I also attempted to rebase, but that didn’t work for me, so I manually resolved the errors in my case. Please check the new PR.

@yashrajpu yashrajpu restored the InboxPage-Design-implement-appearance-when-empty#386 branch January 22, 2025 03:39
@chrisbobbe
Copy link
Collaborator

For the future, the #git help channel in the development community would be the place to ask if you're having trouble updating a PR. 🙂

@yashrajpu
Copy link
Author

I used 'git help pr request' and they suggested making a new PR.

@chrisbobbe
Copy link
Collaborator

Who suggested making a new PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants