Skip to content

Update save & submit docs - #81077

Open
jasmussen wants to merge 2 commits into
trunkfrom
update/expand-saving-docs
Open

Update save & submit docs#81077
jasmussen wants to merge 2 commits into
trunkfrom
update/expand-saving-docs

Conversation

@jasmussen

Copy link
Copy Markdown
Contributor

What?

Related to a chat with @keoshi and a few others which revealed shortcomings in the current Storybook guidance on save & submit ux. This expands it to notably suggest that autosave and manual save are both valid supported methods, but you should choose one, not mix both.

Testing Instructions

npm run storybook:dev

Use of AI Tools

Yes.

@jasmussen
jasmussen requested a review from a team August 3, 2026 13:31
@jasmussen jasmussen self-assigned this Aug 3, 2026
@jasmussen jasmussen added [Type] Enhancement A suggestion for improvement. [Type] Developer Documentation Documentation for developers labels Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Required label: Any label starting with [Type].
  • Labels found: [Type] Enhancement, [Type] Developer Documentation.

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@jasmussen jasmussen removed the [Type] Enhancement A suggestion for improvement. label Aug 3, 2026

@keoshi keoshi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing this up, @jasmussen!

A few things that stand out to me:

Partial success is not included

Right now the documentation covers a full success (snackbar) and a full failure, with nothing in between. Is it worth underlining the hybrid: tell people what saved and what still needs attention, and never stack a success and an error on top of each other.

There could be more than one invalid field

The Invalid fields section says the page scrolls to the first invalid field. That's right when there's a single error and the field is on screen. But it doesn't cover the case when there are several required fields, or multiple errors scattered across it. Those are the scenarios behind the idea of the error summary:

Image

Another thing: it says the page scrolls to the field and it should say focus moves there, otherwise keyboard and screen reader users won't follow.

Guidance for ConfirmDialog on failed save

As far as I can tell, that dialog has both confirm and cancel buttons, and it closes on ESC/click outside. For a save that failed, there's no decision for the user to make, the message can be dismissed by accident, and it covers the fields they need to go fix. A regular error Notice keeps the form visible is the more permanent indication that it needs their attention.

Removing the toggle label guidance

The old Auto-save section included guidance that seems important to preserve: "keep labels short", "lead labels with a verb like Use, Allow, Show or Enable", and "prefer a toggle over a checkbox for on/off".

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: keoshi <keoshi@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@jasmussen
jasmussen force-pushed the update/expand-saving-docs branch from edce8ef to cd1aed7 Compare August 4, 2026 10:30
@jasmussen

Copy link
Copy Markdown
Contributor Author

Fantastic feedback, I addressed all of it. Let me know if this resonates!

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

Labels

[Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants