pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/zulip/zulip-flutter/pull/2165

/global-94620c216484da1f.css" /> typeahead: Show pronouns in @-mention and New DM lists by yash-agarwa-l · Pull Request #2165 · zulip/zulip-flutter · GitHub
Skip to content

typeahead: Show pronouns in @-mention and New DM lists#2165

Open
yash-agarwa-l wants to merge 1 commit intozulip:mainfrom
yash-agarwa-l:add-pronouns
Open

typeahead: Show pronouns in @-mention and New DM lists#2165
yash-agarwa-l wants to merge 1 commit intozulip:mainfrom
yash-agarwa-l:add-pronouns

Conversation

@yash-agarwa-l
Copy link
Contributor

@yash-agarwa-l yash-agarwa-l commented Feb 20, 2026

Fixes #313

Implement logic to display user pronouns in the compose box typeahead and the New DM search sheet.

To determine which pronouns to show, we select the primary pronoun field (type 8) with the lowest 'order' value in the realm. This ensures consistency across the organization.

This commit adds primaryPronounFieldId and primaryPronounsFor to RealmStore to handle this retrieval. Pronouns are displayed after the status emoji but before the email.

Includes unit tests for the RealmStore sorting logic and the updated widget rendering in autocomplete and the New DM sheet.

Before vs After
Before
Before state
After
After state
Before vs After
Before
Before state
After
After state
Before vs After
Before
Before state
After
After state
Before vs After
Before
Before state
After
After state

@yash-agarwa-l yash-agarwa-l force-pushed the add-pronouns branch 2 times, most recently from 0586c93 to 61f3dd4 Compare February 23, 2026 18:19
@yash-agarwa-l
Copy link
Contributor Author

Hi! Just checking in, this PR is ready for review whenever you have a moment. Thanks!

@chrisbobbe
Copy link
Collaborator

Those screenshots only show the @-mention UI; they don't show the user selector in the "New DM" UI (reachable by tapping "New DM" from the DMs tab).

@yash-agarwa-l
Copy link
Contributor Author

Thank you! I have updated the screenshots.

@alya
Copy link
Collaborator

alya commented Mar 4, 2026

Following the web app, I think the typeahead styling should be:

she/her, someone@zulip.com

@alya
Copy link
Collaborator

alya commented Mar 4, 2026

Parens seem fine in the user list; I don't think we've got a web app equivalent for that.

@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Mar 4, 2026
@yash-agarwa-l
Copy link
Contributor Author

Thank you for pointing that out, I have updated that to follow the web app for @-typeaheads and updated the screenshots

@yash-agarwa-l yash-agarwa-l force-pushed the add-pronouns branch 2 times, most recently from 6a5741d to 81373a0 Compare March 5, 2026 04:46
Comment on lines +492 to +495
for (final field in customProfileFields) {
if (field.type != CustomProfileFieldType.pronouns) continue;
if (bestField == null || field.order < bestField.order) {
bestField = field;
Copy link
Member

Choose a reason for hiding this comment

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

Is this with .order the right semantics to have? See the comment in RealmStoreImpl._sortCustomProfileFields.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood, when I am using customProfileFields, its already in order and I can take the first field with type pronouns as my primary pronoun.

Fixes zulip#313.

Implement logic to display user pronouns in the compose box typeahead
and the New DM search sheet. For @-mentions, Pronouns are displayed
after the status emoji but before the email.

To determine which pronouns to show, we select the primary pronoun
field which comes first in the `customProfileFields` list after
sorting with type pronouns.
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.

Show pronouns in @-mention autocomplete

4 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy