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/app/assets/javascripts/discourse
cpradio 4b71fd253b Advanced Search UI
Properly support Categories so it updates the search box correctly

Use category id, as it is more consistent with search results than using the slugs, especially for parent/subcategory

Added Status

Improve AutoComplete so it can receive updates
Added the ability for AutoComplete to receive updates to badge-selector and group-selector

Respect null, which is set via web-hooks

Support both # and category: for category detection.

Only update the searchedTerms if they differ from its current value (this helps the Category Selector receive updates)

Opt in receive updates (#3)

* Make the selectors opt-in for receiving updates

* Opt-in to receive updates

* Fix category detection for search-advanced-options

Fix eslint error

Update user-selector so it can receive updates live too
Make the canReceiveUpdates check validate against 'true'

Converted to use template literals

Refactor the regex involved with this feature
Split apart the init to make it a bit more manageable/testable

Switch the category selector to category-chooser, so it is a dropdown of categories instead of auto-complete

Reduce RegEx to make this happier with unicode languages and reduce some of the complexity
2016-10-04 11:18:01 -04:00
..
adapters FEATURE: Webhooks. 2016-09-05 18:44:00 +08:00
components Advanced Search UI 2016-10-04 11:18:01 -04:00
controllers FEATURE: Import facebook avatars when logging in via facebook 2016-09-19 15:10:23 +10:00
helpers Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
initializers FEATURE: increase interval to 24 hours for "please refresh site" 2016-09-19 10:12:27 +10:00
lib Advanced Search UI 2016-10-04 11:18:01 -04:00
mixins FIX: Archetype class wasn't being applied on refresh 2016-08-02 15:26:07 -04:00
models Advanced Search UI 2016-10-04 11:18:01 -04:00
pre-initializers Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
routes FEATURE: tag filter dropdown menu is scoped to user and category 2016-09-22 15:23:37 -04:00
services FIX: Logs notice was not displaying the right Date. 2016-08-02 12:40:28 +08:00
templates Advanced Search UI 2016-10-04 11:18:01 -04:00
views Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
widgets Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
mapping-router.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00