Skip to content

user and territory autocomplete in search bar #2217

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ed-kung
Copy link
Contributor

@ed-kung ed-kung commented Jun 10, 2025

Description

Closes #2039

Implements autocomplete in the search bar. Functionality should work the same as for posts. @ brings up a list of users and ~ brings up a list of territories.

Screenshots

autocomplete-search.mov

Additional Context

n/a

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

8

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

Haven't tested on mobile

Did you introduce any new environment variables? If so, call them out explicitly here:

no

Copy link
Member

@huumn huumn left a comment

Choose a reason for hiding this comment

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

This works well. Nice job.

However, this change suggests an opportunity for generalization. Both MarkdownInput and this new SearchInput share an awful lot of logic that can probably be abstracted into a SuggestionInput component and/or a hook that they share.

It's beyond the scope of the PR perhaps, so I'll try to do this myself soon.

@ed-kung
Copy link
Contributor Author

ed-kung commented Jun 11, 2025

Makes sense. I also noticed the opportunity for generalization, but didn't want to mess with MarkdownInput too much unnecessarily.

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.

Feature Request: Autocomplete in the search bar
2 participants