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

Stop mentions dropdown from jumping around #48

Merged
merged 3 commits into from
Jul 1, 2020

Conversation

askvortsov1
Copy link
Member

@askvortsov1 askvortsov1 commented Jun 30, 2020

  • Cache the order in which users are returned by the API to stop the mentions list from jumping around
  • Only ping the api when 2 or more characters are entered

Copy link
Member

@clarkwinkelmann clarkwinkelmann left a comment

Choose a reason for hiding this comment

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

Ok for me.

The users jumping around once more are loaded is another issue I'm experiencing frequently but I guess this will be for another time as it's a bit more complex than this.

@askvortsov1
Copy link
Member Author

Is that an issue you're still seeing in this PR? The PR should actually mostly fix that I believe

@clarkwinkelmann
Copy link
Member

I have not tested. But I don't think this PR changes anything to the behavior of the user list. It just changes the order of the post list and user list. That's fine, we'll revisit the other issues later. I'll need to check whether a GitHub issue exists for what I'm mentioning.

@askvortsov1 askvortsov1 changed the title In the mentions dropdown, display users from the API AFTER posts in the discussion Stop mentions dropdown from jumping around Jul 1, 2020
@askvortsov1
Copy link
Member Author

@clarkwinkelmann since I pretty much completely changed up this PR, I've rerequested your review.

Copy link
Member

@clarkwinkelmann clarkwinkelmann left a comment

Choose a reason for hiding this comment

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

I have not tested the PR but looking at the code this looks good 👍

@askvortsov1 askvortsov1 merged commit 9d65a18 into master Jul 1, 2020
@franzliedke franzliedke deleted the as/display_api_list_after_post_list branch November 18, 2020 20:58
askvortsov1 added a commit that referenced this pull request Mar 11, 2022
Cache the order in which users are returned by the API to stop the mentions list from jumping around
Only ping the api when 2 or more characters are entered
askvortsov1 added a commit that referenced this pull request May 10, 2022
Cache the order in which users are returned by the API to stop the mentions list from jumping around
Only ping the api when 2 or more characters are entered
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