This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/spec/components/auth
cpradio 1e7c69044c FIX: Improve removing advanced filters
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
2016-10-14 19:04:10 -04:00
..
default_current_user_provider_spec.rb FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
facebook_authenticator_spec.rb FEATURE: optionally get extra profile info from facebook 2016-09-19 16:14:11 +10:00
github_authenticator_spec.rb Add support for email whitelist/blacklist to GitHub auth 2016-09-22 11:31:10 -07:00
google_oauth2_authenticator_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
open_id_authenticator_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00