-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Fix: order of group direct message recipients. #28738
base: main
Are you sure you want to change the base?
Conversation
9cfc1f0
to
169a9a9
Compare
169a9a9
to
ef6322c
Compare
Changes made as per the review. |
ef6322c
to
24221cd
Compare
Can you explain how this completes the issue? It talks about several locations and the issue of case-insensitive ordering, and I'd like to see a complete audit confirming this results in the intended logic in all places listed. |
I apologize for any inconvenience caused. I will take the necessary steps to make the required changes. |
a988ccc
to
30de795
Compare
30de795
to
6d04e26
Compare
@richardshaju can you fix the test failures? I appreciate the screenshots, but I'd also appreciate a paragraph or so write-up explaining the analysis for how you determined this is a complete and correct solution. |
Also it'd be helpful if you discuss how you've addressed the feedback on #27557, a previous PR for this feature. |
e7ed63e
to
7ce639d
Compare
All the order of names given below including the pills are fixed using the new function
aaron.Cordelia.Lear.s.daughter.Zoe.-.Zulip.Dev.-.Zulip.-.Google.Chrome.2024-02-15.10-44-16.mp4 |
I appreciate @Jenil-Dobariya for PR #27557. It helped me a lot, especially in writing the tests. I used the same approach with some optimization mentioned in the code review. I think he is nearly finished with the PR work, but unfortunately, he hasn't been responding. |
@timabbott Please review this. |
Hey @richardshaju, I haven't really gone through the code but have found some inconsistencies. It seems it doesn't sort correctly when narrow triggered from message header. Screencast.from.07-03-24.12.42.26.AM.IST.webm |
@pratik-pc Thank you for figuring this out. |
7ce639d
to
402f7ef
Compare
@pratik-pc Is this the correct approach? All.messages.-.Zulip.Dev.-.Zulip.-.Google.Chrome.2024-03-11.15-22-14.mp4 |
@richardshaju Some areas are still left Screencast.from.12-03-24.12.33.10.AM.IST.webm |
@pratik-pc But in my system it's working properly. aaron.Desdemona.King.Hamlet.Zoe.-.Zulip.Dev.-.Zulip.-.Google.Chrome.2024-03-13.23-44-05.mp4 |
Hey @richardshaju, steps to repro are:
Also
|
@pratik-pc but now I can't save the draft with the unsorted recipient list. |
@richardshaju Here's how it is for me Screencast.from.15-03-24.11.43.29.PM.IST.webm |
402f7ef
to
5c4e65e
Compare
Fixed the order of recipients in search bar title. Compose box placeholder and recipient pill input. Created a new function sort_emails in people.ts. Fixes zulip#27375.
5c4e65e
to
77cf1d3
Compare
Heads up @richardshaju, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
Fix: order of group direct message recipients
Fixes: #27375
Screenshots and screen captures:
before :
after:
Self-review checklist
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
Completed manual review and testing of the following: