Skip to content

[6.x] Render the element action menu in the Inertia editor - #19403

Closed
brianjhanson wants to merge 1 commit into
feature/inertia-edit-drafts-revisionsfrom
feature/inertia-edit-action-menu
Closed

[6.x] Render the element action menu in the Inertia editor#19403
brianjhanson wants to merge 1 commit into
feature/inertia-edit-drafts-revisionsfrom
feature/inertia-edit-action-menu

Conversation

@brianjhanson

@brianjhanson brianjhanson commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

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 to getActionMenuItems() — 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 through extraActionMenuDescriptors() 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-dashed was 404ing for the Copy item until its custom-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.

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

No changed components detected in this Storybook.

resources/js⚠️ deploy failure, no preview available

@brianjhanson brianjhanson changed the title Render the element action menu in the Inertia editor [6.x] Render the element action menu in the Inertia editor Aug 11, 2026
@brianjhanson
brianjhanson force-pushed the feature/inertia-edit-action-menu branch 2 times, most recently from 8ae8197 to c77f87a Compare August 12, 2026 14:53
@brianjhanson

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant