Commit Graph

46 Commits

Author SHA1 Message Date
5fc5a7f5ae FEATURE: Add search operator to see all direct messages from a user (#7913)
* FEATURE: Add search operator to see all direct messages from a user

* Only show message if related messages >= 5

* Make "all messages" the hyperlink

* Review
2019-07-22 10:55:49 -04:00
b339d67401 DEV: refactors select-kit helper to prevent it to leak into global state (#7708) 2019-06-06 10:47:10 +02:00
d2ea602bdd DEV: Mark flaky tests as pending until we fix them. (#7386) 2019-04-16 13:35:54 -03:00
bd66fbef7f FIX: Post time query filter not set correctly when loaded from params.
https://meta.discourse.org/t/before-and-after-are-not-implemented-right-in-search/92515
2018-08-23 14:06:28 +08:00
04baddf731 DEV: migrate tests to async/await 2018-07-30 12:21:05 +02:00
a89dd51cae DEV: migrate acceptance tests to async/await 2018-07-26 12:51:16 +02:00
2268e29c26 fix linting removed by prettier 2018-06-15 18:18:45 +02:00
03a7d532cf DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
Sam
4194886b62 correct failing test 2018-05-24 13:02:20 +10:00
d9ac0152e4 fixes search-full-test for revamped search page 2018-04-10 09:59:24 +02:00
1b351a3355 disable full page search acceptance tests (cc @jjaffeux) 2018-04-09 20:14:57 +02:00
ac701696b3 FEATURE: replaces tag-chooser/tag-group-chooser with select-kit component
These component were also the last using select2. As a consequence select2 is removed from Discourse in this commit.
2018-02-26 11:42:57 +01:00
315b9d796d select-kit refactoring
* better test helper
* more reliable tests
* more consistent use of data-value/data-name/title/aria-label everywhere: header and rows
2017-12-22 13:08:12 +01:00
fb735d78ef fix the build 2017-11-30 17:28:36 +05:30
7533e5b541 UX: Use date picker on full page search 2017-11-21 12:52:23 -05:00
39f3dbd945 Introduces select-kit
* renames `select-box-kit` into `select-kit`
* introduces `single-select` and `multi-select` as base components
* introduces {{search-advanced-category-chooser}} as a better component for selecting category in advanced search
* improves events handling in select-kit
* recreates color selection inputs using {{multi-select}} and a custom {{selected-color}} component
* replaces category-selector by a component using select-kit and based on multi-select
* improves positioning of wrapper
* removes the need for offscreen, and instead use `select-kit-header` as a base focus point for all select-kit based components
* introduces a formal plugin api for select-kit based components
* introduces a formal pattern for loading and updating select-kit based components:

```
computeValue()
computeContent()
mutateValue()
```
2017-11-21 11:53:09 +01:00
0da529010a FEATURE: support for multi-combo-box 2017-11-09 10:57:53 -08:00
ae1743c61f [WIP] select-box-kit refactoring 2017-10-19 12:51:08 -07:00
d506e577a5 FEATURE: if full search returns no results, show google search form 2017-08-15 16:46:41 -04:00
cea2a9fe53 UX: exclude irrelevant search filters for anonymous users
On the advanced search page, filters like "I've read", "I'm watch
-ing", etc, are irrelevant to anonymous users and should be hidden
2017-08-08 15:25:40 -04:00
cc525b1a8d Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
45a257815a Convert front end paths from /users/ to /u/ 2017-03-30 10:23:24 -04:00
b419a5765e FEATURE: Add seen/unseen filters to advanced search UI.
https://meta.discourse.org/t/advanced-search-posts-that-i-have-seen/57966
2017-03-09 10:46:06 +08:00
e089515dab FIX: Don't try to load avatars in test mode 2017-02-17 16:21:35 -05:00
e03d5e2140 Reapply Ember 2.10 for good this time!
This reverts commit ddd299f4aaf25353cc2f47829d213623a3cf7590.
2016-12-19 11:19:10 -05:00
ddd299f4aa Revert "Revert "Revert Ember 2.10+ for a short while""
This reverts commit 76bbc481cb5bb3e3b35ece5aa5e1275d3d34e4a0.
2016-12-16 10:29:30 -05:00
76bbc481cb Revert "Revert Ember 2.10+ for a short while"
This reverts commit 21682fd60b92414348a0e4aecdab1bc5278e14e6.
2016-12-16 09:52:29 -05:00
21682fd60b Revert Ember 2.10+ for a short while 2016-12-15 16:43:38 -05:00
28699e66d8 Revert "REVERT: Ember 2.10 -- it's not building properly"
This reverts commit 600541c6238a5b371992ad363859d5d9c75ad004.
2016-12-15 10:28:15 -05:00
600541c623 REVERT: Ember 2.10 -- it's not building properly 2016-12-12 16:19:05 -05:00
ec5615033d Add acceptance test for escaping search term 2016-12-13 01:55:39 +05:30
9a7998a930 Various fixes for Ember 2.10 2016-12-12 14:44:29 -05:00
Sam
0631a84ca0 Merge pull request #4576 from cpradio/min-posts-search
FEATURE: Add min_post_count search filter
2016-11-29 10:19:33 +11:00
66ca6d622e FEATURE: Add min_post_count search filter 2016-11-28 11:43:12 -05:00
0904ad5537 Migrate createViewWithBodyClass helper to components 2016-11-10 14:28:04 -05:00
f59c11b4ab FIX: Advanced Search to utilize Category Selector so it can distinguish uncategorized from no category selected 2016-10-31 17:27:57 -04:00
ddacda0388 Update based on review comments
Found a few javascript errors when visiting the search page with ?expanded=true and no query.
2016-10-17 00:02:58 -04:00
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
ae0db10e2d Fix full page search tests. 2016-10-13 15:03:58 +08:00
ff74bd7e28 FIX: comment out tests for UI elements removed from HTML markup 2016-10-11 17:50:16 -04:00
ca4130f30d FIX: Use @username instead of user:username 2016-10-11 17:41:04 -04:00
a7507dad63 Add Acceptance Tests (which found an error)
Tests for populating category and tags

Added acceptance tests for populating the Username and Category through the Advanced Search UI (will work on the other fields later)

Give the combo-box elements ids
Add acceptance tests for the rest of the advanced search UI (except for Tags, tags are evil)
2016-10-08 09:09:37 -04:00
b2134aa173 Refactor full page search for style, remove lookups 2016-08-09 14:49:46 -04:00
d8808aa9ab Add back acceptance tests for full page search 2016-08-09 14:49:46 -04:00
1eb8f710f1 commented search acceptance tests out 2015-07-27 10:32:02 +02:00
f647174c95 Add acceptance test for full page search 2015-07-15 11:17:04 -04:00