Skip to content
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

feat: Implement API for file list filters #1027

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jul 24, 2024

The API allows to create file list filters.

The basic filter just provides a filter function, while you could also register a visual entry.
I played with custom elements (aka web components) as this is probably the way to go in the future, but with Vue2 it seems to be more complex than I could invest time, so went the legacy way and just add a callback function that gets the root element where to render its component.

Copy link

codecov bot commented Jul 24, 2024

Bundle Report

Changes will increase total bundle size by 36.44kB ⬆️

Bundle name Size Change
@nextcloud/files-esm 116.69kB 18.14kB ⬆️
@nextcloud/files-esm-cjs 118.07kB 18.29kB ⬆️

lib/fileListFilters.ts Outdated Show resolved Hide resolved
lib/fileListFilters.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

Only issue is the wording of the events :)

susnux and others added 2 commits July 25, 2024 10:08
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@skjnldsv skjnldsv merged commit 24da851 into main Jul 25, 2024
15 of 17 checks passed
@skjnldsv skjnldsv deleted the feat/file-list-filters branch July 25, 2024 08:15
@susnux susnux mentioned this pull request Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants