feat: Display account pronouns, if present, in timelines etc#1901
Merged
nikclayton merged 3 commits intopachli:mainfrom Nov 3, 2025
Merged
feat: Display account pronouns, if present, in timelines etc#1901nikclayton merged 3 commits intopachli:mainfrom
nikclayton merged 3 commits intopachli:mainfrom
Conversation
To do this, extract the pronouns from the account's "fields", if the name of the field matches "pronouns" or similar in a variety of languages. These are then persisted for display. The seed lists of "pronouns" in various languages was extracted from Fedilab and Moshidon, who have a similar feature. Pronouns are displayed in a new `PronounsChip`. The chip has a low colour background to indicate it is interactable and to low-key draw attention to the content. The chip might not have enough width to display the full pronoun content, so tapping the chip shows a toast with the full content (or as much as a toast can display). Pronouns are shown everywhere details for another account might appear: - Status timelines - Notifications - When replying to an account - Search results - Autocomplete results (when creating a post) To make room for this the regular account information is now always displayed on two lines. In timelines this is: First line: Display name and status creation time / edit state Second line: Handle, pronouns Everywhere else it is: First line: Display name, pronouns Second line: Handle Pronouns field values may be quite long. Rather than read them out in Talkback on every selection, add an accessibility action that shows the same Toast as tapping the chip.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To do this, extract the pronouns from the account's "fields", if the name of the field matches "pronouns" or similar in a variety of languages. These are then persisted for display.
The seed lists of "pronouns" in various languages was extracted from Fedilab and Moshidon, who have a similar feature.
Pronouns are displayed in a new
PronounsChip. The chip has a low colour background to indicate it is interactable and to low-key draw attention to the content. The chip might not have enough width to display the full pronoun content, so tapping the chip shows a toast with the full content (or as much as a toast can display).Pronouns are shown everywhere details for another account might appear:
To make room for this the regular account information is now always displayed on two lines.
In timelines this is:
First line: Display name and status creation time / edit state
Second line: Handle, pronouns
Everywhere else it is:
First line: Display name, pronouns
Second line: Handle
Pronouns field values may be quite long. Rather than read them out in Talkback on every selection, add an accessibility action that shows the same Toast as tapping the chip.