Uh oh!
There was an error while loading. Please reload this page.
[6.x] Make actions available in a collection tree view - #14331
Conversation
There was a problem hiding this comment.
This is looking good, thanks!
However we are moving away from sending all the actions down the wire initially. It really bloats the responses.
We have a mechanism to lazily load the actions when you hover over the dropdown. You should rework this PR to allow for that.
See RowActions.vue which is used in the Listing component.
https://github.com/statamic/cms/blob/6.x/resources/js/components/ui/Listing/RowActions.vue
In fact you might actually be able to use the RowActions component itself.
…e component is mounted. Update the Show page to display the skeleton loader. Remove unnecessary action references in TreeBuilder.
Devsome
commented
Apr 7, 2026
Hello @jasonvarga thanks for your response, Feel free to let me know what you think. |
Devsome
commented
Apr 14, 2026
@jasonvarga I also fixed the issue where the modal remained open after clicking an action, and based on what I saw in RowActions.vue, I’ve now set the „default“ value for :variants in Show.vue instead of undefined. |
…irmable actions in collection tree view
Devsome
commented
Apr 15, 2026
I've made a few more adjustments to ensure it runs smoothly. Please give it a try and let me know what you think. |
Devsome
commented
Jun 17, 2026
@jasonvarga Is there anything I can do to help here, or are you guys just too busy with other, more important PR right now? Cheers |
edalzell
commented
Jun 17, 2026
They get to it when they get to it, there's a long list of PRs already! |
Devsome
commented
Jul 28, 2026
dunno what happend, but the PHPStan / Analyze (pull_request) test is failing. |
duncanmcclean
commented
Jul 28, 2026
Don't worry about it - #15083 should fix it. |
Hello everyone,
First of all, thank you for Statamic 6. After someone on Discord pointed me to Issue 575 and I saw the other pull requests 4070 & 4439, I decided to give it a try and follow the contribution guidelines.
Procedure:
npm ci && npm run buildin the statamic/cms projectddev artisan vendor:publish --tag=statamic-cp --force && ddev yarn build && ddev artisan optimize:clearddev artisan statamic:make:actionIf I've forgotten anything or something is missing, please let me know. Even if it isn't accepted, as stated in the Contribution Guidelines, it might still be helpful to others who need it.
This is what my custom action looks like
How it looks like in the TreeView:

How it looks like in the ListView:
