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

feat: Show autocomplete hashtags with usage counts, sort by popularity #807

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

nikclayton
Copy link
Contributor

When autocompleting hashtags while composing a status the previous code showed the hashtags in the same order they're returned by the server, with no additional information.

This doesn't allow the user to make an informed choice about which hashtag might be better to use. For example, trying to choose between "#nivenly" and "#NivenlyFoundation".

To fix that, include the hashtag's usage when receiving data from the server. Sum that, and show it to the user in the hashtag list. Sort the hashtags by popularity, most popular first.

When autocompleting hashtags while composing a status the previous
code showed the hashtags in the same order they're returned by the
server, with no additional information.

This doesn't allow the user to make an informed choice about which
hashtag might be better to use. For example, trying to choose between
"#nivenly" and "#NivenlyFoundation".

To fix that, include the hashtag's usage when receiving data from the
server. Sum that, and show it to the user in the hashtag list. Sort
the hashtags by popularity, most popular first.
@nikclayton nikclayton merged commit 4dac29c into pachli:main Jul 6, 2024
23 checks passed
@nikclayton nikclayton deleted the autocomplete-hashtag-popularity branch July 6, 2024 12:25
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.

1 participant