Skip to content

[6.x] Port the entry edit page to Inertia - #19389

Draft
brianjhanson wants to merge 1 commit into
6.xfrom
feature/inertia-edit-entry
Draft

[6.x] Port the entry edit page to Inertia#19389
brianjhanson wants to merge 1 commit into
6.xfrom
feature/inertia-edit-entry

Conversation

@brianjhanson

@brianjhanson brianjhanson commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Description

Ports the full-page entry edit screen to Inertia, rendering the field layout through the Form system.

ElementEditViewModel is the shared payload for element edit screens, mirroring ContentIndexViewModel: public methods are payload keys, and element types extend it with their own keys plus a saveUrl(). EntryEditViewModel and content/Edit.vue are the entry-specific pieces, while useElementEditPage and ElementEditPage.vue hold the shared client pipeline so the remaining element types only supply what their save action needs.

The field layout is compiled to a FormPayload through the same FieldLayoutCompiler the legacy editor and slideouts already use, and rendered by FormRenderer. Saving posts through Inertia to the existing entries/save-entry action — the Form payload submits ordinary nested input names, so the save controller reads it without a translation layer.

Drafts, revisions, and provisional drafts still fall through to EditElementController, keeping their notices and apply/revert controls intact until those screens are ported later in this stack. That controller also continues to serve slideouts and the element types that haven't been ported.

The sidebar meta fields remain a server-rendered island here and move onto the Form system in #19390.

An error occurred while trying to automatically change base from feature/forms to 6.x August 10, 2026 22:08
@brianjhanson brianjhanson changed the title Port the entry edit page to Inertia [6.x] Port the entry edit page to Inertia Aug 10, 2026
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

No changed components detected in this Storybook.

resources/jsopen Storybook

No changed components detected in this Storybook.

@brianjhanson
brianjhanson force-pushed the feature/inertia-edit-entry branch from 420e109 to 129fd0e Compare August 11, 2026 19:56
@brianjhanson
brianjhanson changed the base branch from feature/forms to 6.x August 11, 2026 19:57
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