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

home: Sort leading emoji first in channel names #1234

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

Conversation

lakshya1goel
Copy link

Update the channel sorting logic to ensure streams with leading emojis in their names are listed above those without emojis. The updated sorting respects pinned, muted, and unmuted streams while handling emoji precedence and maintaining alphabetical order for ties.

Fixes: #1202

@lakshya1goel
Copy link
Author

Hello, @chrisbobbe I have done the required changes. Please have a look and let me know if anything else is required.
Thanks!

@PIG208 PIG208 added the maintainer review PR ready for review by Zulip maintainers label Jan 9, 2025
@lakshya1goel
Copy link
Author

Hi @chrisbobbe @PIG208
I just wanted to kindly follow up on this PR. I have made the changes requested, and I requested a review about two weeks ago. If you could take a moment to review it, I would greatly appreciate your feedback.
Thank you for your time and support!

Copy link
Collaborator

@chrisbobbe chrisbobbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Small comments below.

lib/widgets/subscription_list.dart Outdated Show resolved Hide resolved
lib/widgets/subscription_list.dart Outdated Show resolved Hide resolved
test/widgets/subscription_list_test.dart Outdated Show resolved Hide resolved
test/widgets/subscription_list_test.dart Show resolved Hide resolved
Update the channel sorting logic to match the channels order
of web by putting emoji-prefixed channels first.

Fixes: zulip#1202
@lakshya1goel
Copy link
Author

Thanks for the detailed review. I have made the required changes.
Please have a look on it.

@lakshya1goel
Copy link
Author

Pushed the changes atop #1290 for the sake of CI.

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.

Sort leading emoji first in channel names to match web
3 participants