Skip to content

Allow unified search filtering and bump @nextcloud/vue - #22111

Merged
skjnldsv merged 4 commits into
masterfrom
enh/unified-search-filters
Sep 3, 2020
Merged

Allow unified search filtering and bump @nextcloud/vue#22111
skjnldsv merged 4 commits into
masterfrom
enh/unified-search-filters

Conversation

@skjnldsv

@skjnldsvskjnldsv commented Aug 5, 2020

Copy link
Copy Markdown
Member

Capture d’écran_2020-08-06_08-34-04

Comment threadcore/src/components/UnifiedSearch/SearchFilter.vue Outdated
@georgehrke

Copy link
Copy Markdown
Member

OT: Are there plans to allow search providers to support their own filters?
For events i could think of: before: 2020, at: location123

@skjnldsv

skjnldsv commented Aug 5, 2020

Copy link
Copy Markdown
MemberAuthor

OT: Are there plans to allow search providers to support their own filters?
For events i could think of: before: 2020, at: location123

You can do it already, i'm only filtering out in:xxxx searches, anything else will be passed through the search.

@npmbuildbot-nextcloud
npmbuildbot-nextcloudBotforce-pushed the enh/search/make-app-handle-the-order-logic branch from 38621f2 to ea8f68bCompareAugust 5, 2020 12:52
Base automatically changed from enh/search/make-app-handle-the-order-logic to masterAugust 5, 2020 14:38
@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch from 4e687d9 to 6f15bb7CompareAugust 5, 2020 14:42
jancborchardt
jancborchardt previously requested changes Aug 5, 2020

@jancborchardtjancborchardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, the filters are now a bit too present – more present than the results themselves.

Since it’s basically a guide for very advanced features, they can go into a 3-dot menu on the right inside the search field, which opens a menu with these filters. That way they are not in the way, people can still easily reach them via mouse, and they are also learnable

@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch from 3796792 to ee7d2d8CompareAugust 6, 2020 06:36
@skjnldsvskjnldsv added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 6, 2020
@jancborchardt

Copy link
Copy Markdown
Member

Looks much better with the menu! :) Only: If the icon is the same for all, we don’t need the icon. Or we show the relevant app icon there. :)

@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch 3 times, most recently from d8bd988 to 7cb0022CompareAugust 10, 2020 15:02
@skjnldsvskjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Aug 10, 2020
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

Or we show the relevant app icon there

Would be nice, but we don't provide a unified way to get the apps icons :)
Something for 21? 😁

@nickvergessen

Copy link
Copy Markdown
Member

But search filters are not bound to apps... So therw is no 1-to-1 mapping to app icons

@skjnldsv

Copy link
Copy Markdown
MemberAuthor

But search filters are not bound to apps... So therw is no 1-to-1 mapping to app icons

Exactly :)
We'd need a new entry in the api 😉

@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch from 2c5500b to 737dfbfCompareSeptember 1, 2020 07:47
@skjnldsv

This comment has been minimized.

@georgehrkegeorgehrke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still working as expected 👍

@georgehrke

This comment has been minimized.

@skjnldsv

This comment has been minimized.

@georgehrke

This comment has been minimized.

@skjnldsv

This comment has been minimized.

@skjnldsvskjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Sep 1, 2020
@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch from 737dfbf to ee35f98CompareSeptember 1, 2020 13:14
@nickvergessen

This comment has been minimized.

@skjnldsv

Copy link
Copy Markdown
MemberAuthor

Rebasing

@nextcloudnextcloud deleted a comment from faily-botBotSep 3, 2020
@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch from ee3d526 to d80655eCompareSeptember 3, 2020 07:02
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch from d80655e to ca4c7c3CompareSeptember 3, 2020 07:03
The menu button and the menu of a share are no longer direct childs of
the actions of the share row. The menu button is now a child of a
".trigger" element, while the menu is a direct child of the body and has
an id defined in the "aria-describedby" attribute of the ".trigger"
element.
In XPath 1.0 it does not seem possible to "backreference" a value or
create variables, so when the share menu or one of its item is needed
now the ".trigger" element is first found and then its XPath expression
is used to compose its "aria-describedby" attribute in the XPath
expression for the menu.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@skjnldsv
skjnldsvforce-pushed the enh/unified-search-filters branch from ca4c7c3 to 9682194CompareSeptember 3, 2020 07:09

@nickvergessennickvergessen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦈

@skjnldsvskjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Sep 3, 2020
@faily-bot

faily-botBot commented Sep 3, 2020

Copy link
Copy Markdown

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 32575: failure

mariadb10.1-php7.2

Show full log
There were 2 errors:
1) Test\Comments\ManagerTest::testSaveUpdate
InvalidArgumentException: IDs must be translatable to a number in this implementation.
/drone/src/lib/private/Comments/Manager.php:248
/drone/src/lib/private/Comments/Manager.php:809
/drone/src/lib/private/Comments/Manager.php:729
/drone/src/tests/lib/Comments/ManagerTest.php:495
2) OCA\Files_Sharing\Tests\ExpireSharesJobTest::testExpireLinkShare with data set #3 (true, 'P1D', true, false)
Error: Call to a member function getMountPoint() on null
/drone/src/lib/private/Share20/Manager.php:304
/drone/src/lib/private/Share20/Manager.php:705
/drone/src/apps/files_sharing/tests/ExpireSharesJobTest.php:149
--
There were 2 warnings:
1) Test\Files\ViewTest::testRenameFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static
2) Test\Files\ViewTest::testCopyFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

@skjnldsv
skjnldsv merged commit 6a3b649 into masterSep 3, 2020
@skjnldsv
skjnldsv deleted the enh/unified-search-filters branch September 3, 2020 08:25
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishenhancementfeature: search

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@skjnldsv@georgehrke@jancborchardt@nickvergessen@danxuliu