Prior:
Entering `test after:5` and then removing the 5 via the search text field would result in the UI not updating
After:
UI updates after half a second
Removing it from the UI, removes it from the search field immediately.
Change the regex to detect filter words. This now matches what happens in search.rb, which gives a lot more flexibility (such as iterating over multiple `in:` terms)
Return [] when searchTerm is empty
Move .trim() to this.set('searchTerm', searchTerm) so it doesn't run twice (which was very obvious when watching the search term field)
More refactoring to make this a bit less complex
Update code based on review comments
FEATURE: Add common `in:` options
|
||
|---|---|---|
| .. | ||
| about-test.js.es6 | ||
| admin-site-text-test.js.es6 | ||
| admin-users-list-test.js.es6 | ||
| badges-test.js.es6 | ||
| category-edit-test.js.es6 | ||
| category-hashtag-test.js.es6 | ||
| composer-test.js.es6 | ||
| create-account-user-fields-test.js.es6 | ||
| groups-test.js.es6 | ||
| login-required-test.js.es6 | ||
| mobile-discovery-test.js.es6 | ||
| mobile-sign-in-test.js.es6 | ||
| mobile-users-test.js.es6 | ||
| modal-test.js.es6 | ||
| search-full-test.js.es6 | ||
| search-test.js.es6 | ||
| sign-in-test.js.es6 | ||
| static-test.js.es6 | ||
| tag-hashtag-test.js.es6 | ||
| topic-anonymous-test.js.es6 | ||
| topic-discovery-test.js.es6 | ||
| topic-test.js.es6 | ||
| unknown-test.js.es6 | ||
| user-anonymous-test.js.es6 | ||
| user-card-test.js.es6 | ||
| user-preferences-test.js.es6 | ||
| user-test.js.es6 | ||
| users-test.js.es6 | ||