Ability to search posts via profile dropdown #4373
Open
+20
−0
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.
Description: I've been using search tags to get posts from users, usually finding posts from 6 months ago that are going around in my head. I've found some usernames are long and annoying to type, or I can just never remember them (I cannot for the life of me remember Paul's "pfrazee.com" username [paul ur awesome, I'm just bad at some names]). Usernames have no autocomplete in the search-bar when using search tags. This makes it nice and easy.
You'll notice I've made another "<Menu.Group>", this is because otherwise users can't see the button when viewing their own account, or it's above the divider when logged in (if using the menu.group share is in). It's not visible when logged out because menu.group #2 and #3 are both under an "isSession" condition. I could have added it separately, but it would have made the code slightly harder to read, when there really isn't a use case for showing the button when logged out.
Limitations:
github-search-posts-button.mp4
🦋
Thanks,
Josh