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/components
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
..
activity-filter.js.es6 es6 migration and fixes 2015-12-02 11:15:22 +11:00
auto-close-form.js.es6 FIX: auto-focus input field on Safari was closing the modal 2015-09-14 12:39:46 +02:00
avatar-uploader.js.es6 FIX: profile picture selector 2015-09-11 15:10:56 +02:00
badge-button.js.es6 FIX: strip out links from badge titles 2016-03-29 16:21:52 +11:00
badge-card.js.es6 FIX: Regression with escaping on badge page 2016-07-28 15:57:06 -04:00
badge-selector.js.es6 Advanced Search UI 2016-10-04 11:18:01 -04:00
basic-topic-list.js.es6 .@each on leafs is deprecated in favor of .[] 2016-04-28 16:49:24 -04:00
bread-crumbs.js.es6 FIX: Subcategories should show pills 2016-02-26 15:18:52 -05:00
bulk-select-button.js.es6 Deprecation: Remove controller from templates 2016-05-11 14:26:08 -04:00
categories-admin-dropdown.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
categories-and-latest-topics.js.es6 UX: new 'category_page_style' site setting 2016-08-22 23:01:43 +02:00
category-chooser.js.es6 Wizard: Server Side Validation + Finished Step 2016-09-22 09:52:19 -04:00
category-drop.js.es6 add category list label and state 2015-12-21 23:07:16 +05:30
category-notifications-button.js.es6 Remove duplicated NotificationType globals 2015-02-27 10:33:39 -05:00
category-panel-base.js.es6 Can add topic templates to categories, prepopulated on compose 2015-07-03 10:01:46 -04:00
category-selector.js.es6 Advanced Search UI 2016-10-04 11:18:01 -04:00
category-title-link.js.es6 FIX: Don't double escape the category title 2016-09-22 21:13:08 -04:00
category-unread.js.es6 FIX: unread badges should be inline on the category list 2015-03-27 12:10:21 -04:00
cdn-img.js.es6 FIX: Category images were not using the CDN 2015-02-18 12:30:41 -05:00
check-mark.js.es6 UX: Show badges as cards on the badges index and show page 2016-03-25 15:33:06 -04:00
choose-topic.js.es6 Deprecation: Removes more references to view.xyz in templates 2016-05-11 14:26:08 -04:00
color-picker.js.es6 Remove deprecations from edit-category and add skeleton acceptance test 2015-05-15 11:12:41 -04:00
composer-editor.js.es6 FIX: Disable pasting hack for Firefox 50+ 2016-08-10 01:24:15 +02:00
composer-message.js.es6 FIX: ESLint 2016-06-07 15:01:30 -04:00
composer-messages.js.es6 FIX: don't fail if targetUsernames is not set 2016-08-29 12:39:25 +10:00
composer-title.js.es6 UX: Focus on usernames if creating a PM from your user page 2016-07-22 13:56:17 -04:00
composer-user-selector.js.es6 UX: Focus on usernames if creating a PM from your user page 2016-07-22 13:56:17 -04:00
conditional-loading-spinner.js.es6 UX: Merge notifications and user dropdown 2015-08-28 16:11:40 -04:00
count-i18n.js.es6 Broken WIP 2015-05-11 11:18:37 -04:00
create-topics-notice.js.es6 Track steps the user has completed, nag them to finish it. 2016-09-22 09:52:19 -04:00
d-button.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
d-checkbox.js.es6 FIX: Show overriden checkbox not triggering search on check. 2016-07-08 14:37:24 +08:00
d-editor-modal.js.es6 UX: Use separate input fields for link and description in d-editor 2016-04-08 16:13:42 -04:00
d-editor.js.es6 FIX: Format selection as multiline code only when selection spans multiple lines. 2016-08-23 15:00:16 +08:00
d-link.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
date-picker-future.js.es6 update pikaday.js to latest and replace date inputs with pikadays 2016-04-15 17:58:32 +02:00
date-picker-past.js.es6 update pikaday.js to latest and replace date inputs with pikadays 2016-04-15 17:58:32 +02:00
date-picker.js.es6 FIX: force date-picker to work with english locale 2016-05-18 20:58:33 +02:00
desktop-notification-config.js.es6 Refactor desktop notifications to be more modular. 2016-07-01 00:11:32 +08:00
directory-item.js.es6 Deprecation: replace itemController with components 2016-05-04 16:18:22 -04:00
directory-toggle.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
disabled-icon.js.es6 More refactoring to support extensibility of history 2015-01-28 13:37:06 -05:00
discourse-banner.js.es6 Migrate KeyValueStore to ES6 modules 2015-09-01 14:45:24 -04:00
discourse-tag-bound.js.es6 FEATURE: Merge tagging plugin into core 2016-04-27 11:58:53 -04:00
discovery-categories.js.es6 Fixes some deprecations: 2016-04-28 15:25:45 -04:00
discovery-topics-list.js.es6 Remove more views and deprecations. 2016-04-28 16:17:18 -04:00
dropdown-button.js.es6 FIX: Several fixes related to category reorder 2015-09-10 13:42:10 -07:00
edit-category-general.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
edit-category-images.js.es6 Refactor category edit to use components 2015-07-03 10:01:46 -04:00
edit-category-panel.js.es6 Refactor category edit to use components 2015-07-03 10:01:46 -04:00
edit-category-security.js.es6 Deprecation: {{view}} helper 2016-05-11 14:26:06 -04:00
edit-category-settings.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
edit-category-tab.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
edit-category-tags.js.es6 FEATURE: restrict tags to be used in a category 2016-05-30 16:56:33 -04:00
edit-category-topic-template.js.es6 FIX: Weird UX with d-editor for topic templates 2015-11-06 15:10:28 -05:00
emoji-uploader.js.es6 FEATURE: move all uploads to a single endpoint + defer upload creation in a background thread 2015-05-20 16:45:48 +02:00
featured-topic.js.es6 Clicking on the date of a featured topic should show topic entrance 2015-02-24 12:56:06 -05:00
flag-action-type.js.es6 Fix Plural Strings 2016-08-10 20:24:28 +03:00
global-notice.js.es6 FIX: Wizard didn't work with subfolders 2016-09-22 14:39:36 -04:00
group-notifications-button.js.es6 FEATURE: notification_level on a per-group basis 2015-12-14 23:17:09 +01:00
group-post-stream.js.es6 Fixes some deprecations: 2016-04-28 15:25:45 -04:00
group-selector.js.es6 Advanced Search UI 2016-10-04 11:18:01 -04:00
header-extra-info.js.es6 PERF: Migrate header to discourse widgets 2016-04-25 10:48:04 -04:00
highlight-text.js.es6 fix highlighting of text in search, make title bigger 2015-07-28 09:43:03 +10:00
image-uploader.js.es6 FEATURE: Replace composer editor with ember version 2015-11-06 09:49:16 -05:00
input-tip.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
json-file-uploader.js.es6 FIX: Broken JSHint. cc @riking 2015-06-22 16:02:14 -04:00
latest-topic-list-item.js.es6 FIX: show topic entrance when clicking the # of replies in /categories 2016-08-24 22:25:10 +02:00
load-more.js.es6 Remove more views and deprecations. 2016-04-28 16:17:18 -04:00
login-buttons.js.es6 REFACTOR: Migrate more legacy JS to ES6 2016-07-11 12:57:05 -04:00
mobile-category-topic.js.es6 FIX: Add topic entrance to mobile categories page when clicking count 2016-07-20 16:08:58 -04:00
mobile-nav.js.es6 UX: Hide close mobile navigation on click. 2016-02-19 15:22:41 +08:00
mount-widget.js.es6 FIX: Don't remove all events, only the ones we created 2016-06-14 13:40:56 -04:00
nav-item.js.es6 UX: don't show the top period in the navigation bar since it has its own dropdown 2015-09-14 21:54:39 +02:00
navigation-bar.js.es6 UX: don't show the top period in the navigation bar since it has its own dropdown 2015-09-14 21:54:39 +02:00
navigation-item.js.es6 UX: don't show the top period in the navigation bar since it has its own dropdown 2015-09-14 21:54:39 +02:00
notifications-button.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
number-field.js.es6 FEATURE: Category reordering dialog 2015-09-06 16:53:52 -07:00
password-field.js.es6 FIX: JSHint wasn't validating ES6 files, this fixes a bunch of errors. 2015-02-10 17:21:16 -05:00
period-chooser.js.es6 FIX: top period chooser layout on mobile 2016-08-26 12:39:09 -04:00
pinned-button.js.es6 Convert Notification button to a component 2015-02-27 10:33:39 -05:00
popup-input-tip.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
popup-menu.js.es6 FIX: Hide popup-menu options when typing. 2016-06-20 10:12:01 +08:00
preference-checkbox.js.es6 FIX: users on ie/safari were unable to disable mailing list mode 2016-04-29 15:17:53 +05:30
queued-post.js.es6 Deprecation: replace itemController with components 2016-05-04 16:18:22 -04:00
radio-button.js.es6 ES6: All components ported over 2014-06-03 12:11:17 -04:00
scrolling-post-stream.js.es6 FIX: Couldn't track some post positions properly 2016-06-09 12:17:42 -04:00
search-advanced-options.js.es6 Advanced Search UI 2016-10-04 11:18:01 -04:00
search-text-field.js.es6 fix search screen looks white 2015-09-16 15:02:57 +10:00
share-source.js.es6 Refactor sharing dialog for extensibility 2015-01-13 17:26:05 -05:00
signup-cta.js.es6 Remove excessive text on signup CTA 2015-10-30 14:13:16 -04:00
site-header.js.es6 FIX: Scrollbar wouldn't reach the bottom if you scrolled too fast 2016-06-01 13:10:33 -04:00
small-action.js.es6 FEATURE: can invite/revoke groups on private messages 2016-06-20 16:29:27 +10:00
stream-item.js.es6 FIX: Missing username key 2016-01-11 11:50:58 -05:00
tag-chooser.js.es6 FIX: tag search should not be case sensitive 2016-09-09 16:55:26 -04:00
tag-drop-link.js.es6 FEATURE: Merge tagging plugin into core 2016-04-27 11:58:53 -04:00
tag-drop.js.es6 FIX: tag filter shows when "no tags" is selected 2016-07-25 12:13:07 -04:00
tag-group-chooser.js.es6 FEATURE: ability to restrict tags to categories using groups 2016-06-07 15:36:20 -04:00
tag-list.js.es6 FEATURE: show category-to-tag relationships on tags index page 2016-05-31 17:27:22 -04:00
tag-notifications-button.js.es6 FEATURE: Merge tagging plugin into core 2016-04-27 11:58:53 -04:00
tags-admin-dropdown.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
text-field.js.es6 Support for "Only show overridden" in site text customization 2015-11-30 15:25:08 -05:00
text-overflow.js.es6 FIX: rare user card exception 2015-05-25 22:37:00 +08:00
toggle-deleted.js.es6 Ember Deprecations for Topics 2015-05-11 11:18:37 -04:00
top-period-buttons.js.es6 FEATURE: User Directory, with sorting and time period filter 2015-03-18 15:20:34 -04:00
topic-admin-menu-button.js.es6 FIX: Try to be a little smarter about which way topic menus open 2016-05-31 15:13:57 -04:00
topic-closing.js.es6 Deprecation: {{view}} helper 2016-05-11 14:26:06 -04:00
topic-footer-buttons.js.es6 FEATURE: Move topic admin button into timeline 2016-05-31 10:51:46 -04:00
topic-footer-mobile-dropdown.js.es6 Wizard: Server Side Validation + Finished Step 2016-09-22 09:52:19 -04:00
topic-list-item.js.es6 FEATURE: highlight last visited topic in topic list 2016-08-19 11:58:39 +10:00
topic-list.js.es6 FIX: improve last visited detection 2016-08-21 17:06:00 +10:00
topic-navigation.js.es6 UX: Hide the timeline when the composer is open 2016-06-01 14:42:00 -04:00
topic-notifications-button.js.es6 FIX: Correct the topic notification keyboard shortcuts 2016-06-17 14:44:08 -04:00
topic-post-badges.js.es6 UX: new 'category_page_style' site setting 2016-08-22 23:01:43 +02:00
topic-progress.js.es6 FIX: Jump to post on iOS was broken - replace with prompt 2016-07-26 15:08:04 -04:00
topic-status.js.es6 Split out common functions into discourse-common module 2016-09-22 09:52:19 -04:00
topic-timeline.js.es6 FIX: Permit Timeline Topic Status to receive dispatch events to handle keyboard shortcuts when the topic footer is not loaded 2016-08-11 08:30:37 -04:00
track-selected.js.es6 Add semi colon linting to Javascript 2015-09-15 17:08:50 -04:00
user-badge.js.es6 FEATURE: you can not drill down and see why you have badges 2016-01-18 17:59:20 +11:00
user-field.js.es6 Force users to select an option in required custom user dropdown fields 2016-03-06 21:07:00 +00:00
user-info.js.es6 UX: Make user info rendering more consistent 2016-03-24 13:49:35 -04:00
user-link.js.es6 UX: username should always be case sensitive in user card 2015-11-23 15:57:10 +01:00
user-notifications-large.js.es6 FIX: Notifications do not fade after marking all as read. 2016-05-09 17:02:44 +08:00
user-selector.js.es6 Advanced Search UI 2016-10-04 11:18:01 -04:00
user-stat.js.es6 UX: Improve user directory on mobile 2015-05-11 11:20:46 -04:00
user-stream.js.es6 REFACTOR: Migrate markdown functionality in ES6 2016-07-11 12:57:05 -04:00
visible.js.es6 Assorted Ember 1.11 fixes 2015-05-11 11:20:45 -04:00