-
Notifications
You must be signed in to change notification settings - Fork 79
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
Folders sorting incorrectly across pagination #893
Comments
So I understand that folders used to be shown first, before files, but now that has regressed and is no longer the case. This means that if you have one folder (Uploads) and 45 pages of files, it won't show up until page 45. If that's the case, I'll triage as a high impact bug/regression |
There's two ways we could do this. Examples with 50 folders and 10 files
We'd need either loading of all folders (cap at 100?), or we need infinite scrolling. |
Both solutions have serious drawbacks when handling large assets libraries. Maybe the most intuitive solution would be using for folders the same Treeview that is used for Pages. This would:
What do you think? |
In my opinion any option will heavily depend on a project workflow.
|
/cc @silverstripeux |
I'm pretty sure this was in our pattern-lib at some point but I can't find it now. I don't think it either took you to edit or presented a tree view - I remember it allowing you to edit the folder name in-line. Hopefully I didn't imagine all of that. |
Currently in the CMS it takes you to the edit panel, not sure about it being inline editable though? |
I checked the 4.1 behaviour and that's a bit different. I'm still going to reproduce that original behaviour in sake of backward compatibility. |
Yep, I've removed the "(by name asc or desc)" from the AC, good catch |
Currently the former AC takes precedence and when files with folders are on the same page, folders go first even with custom ordering. |
Overview
The fix here #844 caused another issue where folders will only appear at the top of the page they're on, not across all pages. E.g. if I have 50 pages of files/folders and I have a folder called 'Uploads', this folder may not appear until page ~45. This has a fairly big impact on the UX of asset-admin as content authors will struggle to find their folders.
Acceptance Criteria
The below is documenting what already should be there before the regression was introduced.
PRs
The text was updated successfully, but these errors were encountered: