-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "File type" filter Chip #9912
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I'd love to have some tests if possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add q_mimeTypes
here to ensure that the filter stays active after closing an editor on the search result page:
web/packages/web-pkg/src/router/common.ts
Line 31 in 7e5340a
'term', |
I addressed most issues, i didn't rename the capability yet because it would break the whole thing. I'll have to wait until the linked PR (in the description) from Roman is changed. |
e2e tests added, but will only work if romans PR is on master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found one weird issue:
- open file type filter
- select "Document" and "Folder"
- use text filter in the dropdown with whatever string and delete it again
- selected items (Document and Folder) are re-arranged to the top of the list
Fine to solve this in a followup if this is an issue of the filter dropdown (that's what I suspect). Please open a bug issue after investigation.
e235369
to
88c161f
Compare
Co-authored-by: Jannik Stehle <[email protected]>
3705d10
to
7ce522c
Compare
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it! 😍
* Implement basic ui filter construct * Implement doctype icons * Add changelog * Refactor using capabilities for filetypes * Make filter work * Add check for capability * Fix typescript error * Address PR issues * rename to mediatype * Update changelog * add missing mediatype renames * Fix renaming issue * WIP e2e * WIP e2e * Implement basic mediaType filter e2e test * Add more e2e steps * logout user before finishing test scenario Co-authored-by: Jannik Stehle <[email protected]> * Update ocis commit id * Adjust ocis commit id * Adjust commit id * Update changelog --------- Co-authored-by: Jan <[email protected]> Co-authored-by: Jannik Stehle <[email protected]>
Description
The capability for mimeTypes needs to be enabled OR find
unref(modifiedDateCapability).enabled
and add a!
Backend is not on master yet, needs Romans PR (owncloud/ocis#7602) as backend
See #9780
Related Issue
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: