Skip to content

autocomplete: Show pronouns in @-mention autocomplete and New DM list. - #2527

Open
siddhartha0132 wants to merge 1 commit into
zulip:mainfrom
siddhartha0132:pronouns-autocomplete-313
Open

siddhartha0132 wants to merge 1 commit into
zulip:mainfrom
siddhartha0132:pronouns-autocomplete-313

Conversation

@siddhartha0132

Copy link
Copy Markdown

Fixes: #313

Continues the work from #2165, rebased onto current main with a fix for the CI test failure and remaining review feedback:

  • Fixed new_dm_sheet_test.dart failure: _NewDmUserListItem renders user names and pronouns inside a Text.rich widget containing a WidgetSpan (UserStatusEmoji.asWidgetSpan). Replaced find.textContaining('(he/him)') and find.textContaining('(') with exact findText('User One (he/him)', includePlaceholders: false) and findText('User One', includePlaceholders: false) checks (matching findUserTile in new_dm_sheet_test.dart and addressing the review comment on typeahead: Show pronouns in @-mention and New DM lists #2165).
  • Removed redundant empty-string test: Removed the 'no pronouns when field is empty' widget test in new_dm_sheet_test.dart and replaced it with 'no pronouns when user has no profile data for field', matching the server's CustomProfileFieldValue behavior discussed in typeahead: Show pronouns in @-mention and New DM lists #2165.

Co-authored-by: Yash Agarwal yashagarwal123456@gmail.com

… list.

Cache the realm's primary pronoun custom profile field ID on RealmStore
and expose primaryPronounsFor on UserStore. Display the user's pronouns
in MentionAutocompleteItem sublabels and _NewDmUserListItem labels.

Fixes: zulip#313.

Co-authored-by: Yash Agarwal <yashagarwal123456@gmail.com>
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.

Show pronouns in @-mention autocomplete

1 participant