[6.x] Render the element action menu in the Inertia editor - #19403
Closed
brianjhanson wants to merge 1 commit into
Closed
[6.x] Render the element action menu in the Inertia editor#19403brianjhanson wants to merge 1 commit into
brianjhanson wants to merge 1 commit into
Conversation
📚 Storybook previews@craftcms/ui — open Storybook No changed components detected in this Storybook. resources/js — |
brianjhanson
force-pushed
the
feature/inertia-edit-action-menu
branch
2 times, most recently
from
August 12, 2026 14:53
8ae8197 to
c77f87a
Compare
brianjhanson
force-pushed
the
feature/inertia-edit-action-menu
branch
from
August 12, 2026 16:14
c77f87a to
1bc71ee
Compare
Contributor
Author
|
Superseded by #19425, which flattens this stack into a single PR against 6.x — this PR is one of its commits, description and all. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Brings the element action menu to the Inertia editor: Validate, Copy, the entry type and section settings slideouts, Delete for this site, and Delete.
actionMenuDescriptors()is the counterpart togetActionMenuItems()— the same actions, but each item names what it does rather than pairing markup with an inline script. The client dispatches those behaviors itself, so nothing depends on registered jQuery handlers. Element types extend it throughextraActionMenuDescriptors()the way they extend the HTML items; entries add their settings slideouts there, and the entry type slideout still follows the sidebar's unsaved selection rather than the stored value.Deletion continues to run through
ElementDeletionManager, so blocking relations and references can be reassigned before the element goes. The manager was already ported to TypeScript, so the Vue handler constructs it directly."Edit" is never offered — this is the edit screen — and "View in a new tab" drops out once preview targets exist, matching the legacy rules.
Custom icons are qualified with their family. The action menu's icon renderer resolves a bare name against the default set, so
clone-dashedwas 404ing for the Copy item until itscustom-icons/prefix was carried through.Plugin-provided items still come through the HTML pairing and aren't rendered here yet; that contract is unchanged and needs its own decision.