-
Notifications
You must be signed in to change notification settings - Fork 638
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
Volume folder nav improvements (Craft 3) #12558
Conversation
# Conflicts: # src/web/assets/cp/dist/cp.js # src/web/assets/cp/dist/cp.js.map # src/web/assets/cp/src/js/AssetIndex.js
[ci skip]
[ci skip]
This is so nice. Chef kiss. 😙🤌 |
# Conflicts: # src/web/assets/cp/dist/cp.js # src/web/assets/cp/dist/cp.js.map
# Conflicts: # src/web/assets/cp/dist/cp.js # src/web/assets/cp/dist/cp.js.map # src/web/assets/cp/src/js/BaseElementIndex.js
Hey, I really like the new folder navigation style, in most cases this is a lot easier than having to poke around in a long list of folders in the sidebar. Currently I see one big regression though, when I select assets through an element select input (like within a reference field), the modal does not remember the last subfolder I was in and instead always starts at the top folder. Therefore the user has to constantly navigate to the subfolder he was just working in. Previously the element select input used the the |
@sebastian-lenz Can you post a new issue with steps to reproduce? |
The subfolders right now are shown as-is in the paths of assets, e.g. |
No, as |
Description
Revamps how volume subfolder navigation works within asset indexes, to improve performance and usability.
Instead of trying to display every recursive subfolder within the sidebar as nested sources (which had a tendency to crash the browser on sites with 1K+ subfolders), we now show subfolders inline within the element listing pane:
Subfolders are always displayed first, generally in ascending alphabetical order, or descending order if assets are being sorted by Title or Filename in descending order.
As you navigate into subfolders, the current path is shown in the new “source path” component, above the element listing.
Clicking on a parent folder within the source path will navigate to it. (Command-clicking to open the folder in a new tab is also supported.)
The currently active subfolder in the source path has a disclosure menu, with “New subfolder”, “Rename folder”, “Move folder”, and “Delete folder” options.
Additionally, a new “Move…” bulk element action has been added for asset indexes, which supports moving subfolders alongside other assets. Selecting it will open a new folder selector modal where a new destination can be chosen.
Related issues