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

add profiles to search history #4169

Merged
merged 11 commits into from
Jun 4, 2024

Conversation

skiniks
Copy link
Contributor

@skiniks skiniks commented May 22, 2024

This PR satisfies #2513, a duplicate of #1677. The SearchHistory component is enhanced by fully implementing the display of recent profiles. Each recent profile now includes the avatar, display name, and handle. Additionally, the display name and handle are truncated with ellipses if they exceed a specified character limit to ensure they fit within the given space.

Screenshot 2024-05-22 at 3 32 30 PM

@gaearon gaearon force-pushed the feature/search-history-profiles branch from dadbde2 to 5568fb1 Compare May 31, 2024 19:32
@gaearon
Copy link
Collaborator

gaearon commented May 31, 2024

A few issues.

Currently, pressing the avatar hides the dropdown before pushing the next view. That causes flicker:

bug1.mov

I think we'd want to avoid that.

Another problem is that pushing an autocomplete result now seems to navigate twice.

bug2.mov

It seems like you're adding some navigation logic — maybe existing logic could be reused? Whatever we're doing for the existing autocomplete. I presume it wouldn't have those issues? But I haven't looked closely.

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

need to fix flicker and double nav

@skiniks
Copy link
Contributor Author

skiniks commented Jun 1, 2024

it looks like removing this fixes the issues:

scrollToTopWeb()
setShowAutocomplete(false)
updateSelectedProfiles(profile)

additionally, i changed the navigateToProfile function to be asynchronous.

@skiniks skiniks requested a review from gaearon June 4, 2024 10:46
@gaearon
Copy link
Collaborator

gaearon commented Jun 4, 2024

seems like Back button is broken

stuck.mov

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

thanks!

@gaearon gaearon merged commit e7968bc into bluesky-social:main Jun 4, 2024
6 checks passed
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.

3 participants