-
-
Notifications
You must be signed in to change notification settings - Fork 424
refactor: remove redirect while typing #408
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
Closed
MatteoGabriele
wants to merge
16
commits into
npmx-dev:main
from
MatteoGabriele:refactor/remove-redirect-on-typing
Closed
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
215db77
refactor(home): remove redirect while typing
MatteoGabriele cec25c7
Merge branch 'main' into refactor/remove-redirect-on-typing
MatteoGabriele 1ef63f5
refactor: remove unnecessary focus logic
MatteoGabriele 2c5502d
Merge branch 'refactor/remove-redirect-on-typing' of https://github.c…
MatteoGabriele 2df242d
Merge branch 'main' into refactor/remove-redirect-on-typing
MatteoGabriele d61ac5c
test(use-colors): change test expectations
MatteoGabriele 49e1e92
Merge branch 'refactor/remove-redirect-on-typing' of https://github.c…
MatteoGabriele 6ca8d8e
Merge branch 'main' into refactor/remove-redirect-on-typing
MatteoGabriele 954e5b5
Merge branch 'main' into refactor/remove-redirect-on-typing
MatteoGabriele df9b58b
Merge branch 'main' into refactor/remove-redirect-on-typing
MatteoGabriele 106902d
test: revert changes
MatteoGabriele c39cb59
Merge branch 'main' into refactor/remove-redirect-on-typing
MatteoGabriele f25d0b7
refactor: use v-model trim modifier
MatteoGabriele 9ce4495
Merge branch 'refactor/remove-redirect-on-typing' of https://github.c…
MatteoGabriele a17929c
Merge branch 'main' into refactor/remove-redirect-on-typing
MatteoGabriele 146dcdf
merge: resolve conflicts with main
danielroe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about instead using a trailing rather than leading debounce? it would likely have the same effect....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we don't actually redirect unless the user presses Enter or clicks "Search".
This makes the experience less unexpected in my opinion, since people might be trying to remember things while typing.
PS: For the trim, I just remembered that v-model has a
.trimmodifier built in.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielroe, do you want me to try anything in particular for this one? Maybe I didn't fully understand your comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, I fixed that in a separate PR: #526
does that fix any of the issues you were trying to fix here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The focus issue seems to be resolved with your PR. 👍
There’s also a UX preference question around whether the animation should exist at all, which is more subjective. If you’d prefer, we can close this PR and keep the animation as-is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: I have encountered the missing letter again when typing. It's hard to reproduce, but it's out there somewhere. just FYI