-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Improve asset filters #206
Comments
I've been working on grouping filters by their full filepath: I have an
Currently looks like this: And if you select common root folders it highlights them in each group automatically: Since these groups have common roots, I was playing with combining them further like mockup in the original post of this ticket and adding a separate {#each filterGroup as filter, i}
<div on:click={() => toggleFilter(filter)} class="filter{enabledFilters.includes(filter) ? ' active' : ''}">{">".repeat(i)} {filter}</div>
{/each} I feel like this might be getting too complicated visually, even though it's more concise: |
Was sketching out some other ideas around "revealing" filters: Basically the idea is we'd only show the top level folder and as you click into it, the next level nested layer would appear. Then you could click into the newly revealed nested layer to reveal the next level and so on. This sounds great at first, but it starts to work a lot like traditional folders instead of filters and introduces several questions:
It seems like you're either stuck with a confusing experience where control is taken away from the user, or an experience where the more filters you apply the more broad the results are. Both seem like a losing strategy. To make the top level reveal work you either need to show only files directly in the last selected filter (works exactly like traditional filters and you lose the ability to combine filters) or show all the files in the path which makes your results expand as filters are added. Proposal:
|
These updates are largely included in v0.5.11 but not all, some of them will have to wait until following release. |
Currently we convert nest folders inside the "assets" dir into filters that CMS users can use to narrow results in the media browser.
There's a small bug at the moment where the top level
assets
filter is being displayed:Assets Dir Screenshot
This needs to be parsed out because it exactly displays all the files which happens by default and will never narrow any results.
We should also double check that full asset paths are appropriately being check and not just the top level folder. For example if we have files located at
assets/thing1/abc/test.jpg
andassets/thing2/abc/test.jpg
applying theabc
filter should only correspond to either the parentthing1
orthing2
folder.I also want to improve the filters in general so they are not only more clear what the actual filepath is, but also so they are more useful when uploading or swapping files as well. I imagine it would function something like this:
>
= one level deep and>>
= two levels)Here's a rough sketch of what this may look like:
Improved Filters Screenshot
These filters should be available when uploading files so editors can place them in the correct folder structure (bulk uploads will all need to go in the same folder).
When swapping a file, the filters should be applied by default (on gallery and upload) so similar images styles can be grouped together logically.
The text was updated successfully, but these errors were encountered: