-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat(menu): implement search functionality #57
Merged
Merged
Changes from all commits
Commits
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 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1270,7 +1270,7 @@ | |
"@handlebars/parser" "^1.1.0" | ||
simple-html-tokenizer "^0.5.10" | ||
|
||
"@glimmer/tracking@^1.0.4": | ||
"@glimmer/tracking@^1.0.2", "@glimmer/tracking@^1.0.4": | ||
version "1.0.4" | ||
resolved "https://registry.yarnpkg.com/@glimmer/tracking/-/tracking-1.0.4.tgz#f1bc1412fe5e2236d0f8d502994a8f88af1bbb21" | ||
integrity sha512-F+oT8I55ba2puSGIzInmVrv/8QA2PcK1VD+GWgFMhF6WC97D+uZX7BFg+a3s/2N4FVBq5KHE+QxZzgazM151Yw== | ||
|
@@ -2556,7 +2556,7 @@ babel-plugin-ember-modules-api-polyfill@^2.6.0: | |
dependencies: | ||
ember-rfc176-data "^0.3.13" | ||
|
||
babel-plugin-ember-modules-api-polyfill@^3.5.0: | ||
babel-plugin-ember-modules-api-polyfill@^3.4.0, babel-plugin-ember-modules-api-polyfill@^3.5.0: | ||
version "3.5.0" | ||
resolved "https://registry.yarnpkg.com/babel-plugin-ember-modules-api-polyfill/-/babel-plugin-ember-modules-api-polyfill-3.5.0.tgz#27b6087fac75661f779f32e60f94b14d0e9f6965" | ||
integrity sha512-pJajN/DkQUnStw0Az8c6khVcMQHgzqWr61lLNtVeu0g61LRW0k9jyK7vaedrHDWGe/Qe8sxG5wpiyW9NsMqFzA== | ||
|
@@ -2576,6 +2576,13 @@ babel-plugin-htmlbars-inline-precompile@^3.2.0: | |
resolved "https://registry.yarnpkg.com/babel-plugin-htmlbars-inline-precompile/-/babel-plugin-htmlbars-inline-precompile-3.2.0.tgz#c4882ea875d0f5683f0d91c1f72e29a4f14b5606" | ||
integrity sha512-IUeZmgs9tMUGXYu1vfke5I18yYJFldFGdNFQOWslXTnDWXzpwPih7QFduUqvT+awDpDuNtXpdt5JAf43Q1Hhzg== | ||
|
||
babel-plugin-htmlbars-inline-precompile@^4.2.0: | ||
version "4.4.6" | ||
resolved "https://registry.yarnpkg.com/babel-plugin-htmlbars-inline-precompile/-/babel-plugin-htmlbars-inline-precompile-4.4.6.tgz#9fd632ad2717226b90bde6940b4148b3a323fddb" | ||
integrity sha512-h/HA2T+iKL/AmmOaaH5w107F8G/foMPyapuMWFtwqa+RqHYNiaNg73JCQ13XMa2SJGPYckHE9hKgjV699k1tVA== | ||
dependencies: | ||
babel-plugin-ember-modules-api-polyfill "^3.4.0" | ||
|
||
babel-plugin-htmlbars-inline-precompile@^5.0.0: | ||
version "5.3.0" | ||
resolved "https://registry.yarnpkg.com/babel-plugin-htmlbars-inline-precompile/-/babel-plugin-htmlbars-inline-precompile-5.3.0.tgz#eeaff07c35415264aea4d6bafb5e71167f6ffb2f" | ||
|
@@ -3560,7 +3567,7 @@ broccoli-persistent-filter@^2.1.0, broccoli-persistent-filter@^2.2.1, broccoli-p | |
sync-disk-cache "^1.3.3" | ||
walk-sync "^1.0.0" | ||
|
||
broccoli-persistent-filter@^3.1.2: | ||
broccoli-persistent-filter@^3.1.0, broccoli-persistent-filter@^3.1.2: | ||
version "3.1.2" | ||
resolved "https://registry.yarnpkg.com/broccoli-persistent-filter/-/broccoli-persistent-filter-3.1.2.tgz#41da6b9577be09a170ecde185f2c5a6099f99c4e" | ||
integrity sha512-CbU95RXXVyy+eJV9XTiHUC7NnsY3EvdVrGzp3YgyvO2bzXZFE5/GzDp4X/VQqX+jsk4qyT1HvMOF0sD1DX68TQ== | ||
|
@@ -5266,7 +5273,28 @@ ember-cli-htmlbars@^4.2.2: | |
strip-bom "^4.0.0" | ||
walk-sync "^2.0.2" | ||
|
||
ember-cli-htmlbars@^5.1.0, ember-cli-htmlbars@^5.3.1, ember-cli-htmlbars@^5.7.1: | ||
ember-cli-htmlbars@^5.1.0: | ||
version "5.3.1" | ||
resolved "https://registry.yarnpkg.com/ember-cli-htmlbars/-/ember-cli-htmlbars-5.3.1.tgz#61793964fc2599ce750db9e972ab55c6dd177c48" | ||
integrity sha512-ZjQTt44euDoqLvUkWbt1svgNCXgLzOztEbc2qqYMQvhQig416LMrWK7l3SSbNU+BtLD5UIxmwvLfF1tsO2CVyA== | ||
dependencies: | ||
"@ember/edition-utils" "^1.2.0" | ||
babel-plugin-htmlbars-inline-precompile "^4.2.0" | ||
broccoli-debug "^0.6.5" | ||
broccoli-persistent-filter "^3.1.0" | ||
broccoli-plugin "^4.0.3" | ||
common-tags "^1.8.0" | ||
ember-cli-babel-plugin-helpers "^1.1.0" | ||
fs-tree-diff "^2.0.1" | ||
hash-for-dep "^1.5.1" | ||
heimdalljs-logger "^0.1.10" | ||
json-stable-stringify "^1.0.1" | ||
semver "^7.3.2" | ||
silent-error "^1.1.1" | ||
strip-bom "^4.0.0" | ||
walk-sync "^2.2.0" | ||
|
||
ember-cli-htmlbars@^5.3.1, ember-cli-htmlbars@^5.6.3, ember-cli-htmlbars@^5.7.1: | ||
version "5.7.1" | ||
resolved "https://registry.yarnpkg.com/ember-cli-htmlbars/-/ember-cli-htmlbars-5.7.1.tgz#eb5b88c7d9083bc27665fb5447a9b7503b32ce4f" | ||
integrity sha512-9laCgL4tSy48orNoQgQKEHp93MaqAs9ZOl7or5q+8iyGGJHW6sVXIYrVv5/5O9HfV6Ts8/pW1rSoaeKyLUE+oA== | ||
|
@@ -5587,6 +5615,17 @@ ember-compatibility-helpers@^1.1.2, ember-compatibility-helpers@^1.2.0, ember-co | |
fs-extra "^9.1.0" | ||
semver "^5.4.1" | ||
|
||
ember-concurrency@^2.1.0: | ||
version "2.1.0" | ||
resolved "https://registry.yarnpkg.com/ember-concurrency/-/ember-concurrency-2.1.0.tgz#5e55c19f43fb245c4fbe0628cbf26cc6561af40c" | ||
integrity sha512-NIJfphS9NvO3Fin+QPQkTvhD8rFDc9ydpy+my+VFLcCfC5F+yI6sr5tHVSgSVBh8UutloHvIbGvdfKuoY6Abyg== | ||
dependencies: | ||
"@glimmer/tracking" "^1.0.2" | ||
ember-cli-babel "^7.22.1" | ||
ember-cli-htmlbars "^5.6.3" | ||
ember-compatibility-helpers "^1.2.0" | ||
ember-destroyable-polyfill "^2.0.2" | ||
|
||
ember-css-transitions@^2.1.0: | ||
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/ember-css-transitions/-/ember-css-transitions-2.1.1.tgz#616069b8adef0175ec310cf504587587e8789f65" | ||
|
@@ -9278,12 +9317,17 @@ miller-rabin@^4.0.0: | |
bn.js "^4.0.0" | ||
brorand "^1.0.1" | ||
|
||
[email protected]: | ||
version "1.44.0" | ||
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.44.0.tgz#fa11c5eb0aca1334b4233cb4d52f10c5a6272f92" | ||
integrity sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg== | ||
|
||
[email protected]: | ||
version "1.47.0" | ||
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" | ||
integrity sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw== | ||
|
||
[email protected], "mime-db@>= 1.43.0 < 2": | ||
"mime-db@>= 1.43.0 < 2": | ||
version "1.48.0" | ||
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.48.0.tgz#e35b31045dd7eada3aaad537ed88a33afbef2d1d" | ||
integrity sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ== | ||
|
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.
Just wanted to throw an explanation in here, since this is a little weird:
We need a custom way to trigger a sequence of key events because Ember's
fillIn
andtypeIn
helpers reject sending input to an element that isn't aninput
orcontenteditable
.We only want to await the final key event, otherwise we will wait the 350ms after each event for the search term to be cleared, which is not what we want.
I tried to implement the Ember Concurrency task using
rawTimeout
(which the tests will not wait for) but then ran into a problem where it's quite for the test to wait for the search term to clear when we do want it to, since in some tests we search for multiple items in a row.TL;DR: I tried to clean this up but the other approaches I could think of didn't actually work in practice!