Conversation
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +367 B (0%) Total Size: 7.66 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 3d76cc8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23427102941
|
|
Error messages should be plain language, reassure you, and help you recover from error. I'd say this meets that criteria quite well. |
|
The downside here is that we're losing the actual "raw message" from the server, which can be confusing but also helpful to debug. So I wonder how we can either incorporate it somehow, alternatively we could just dump it into the console but it will be more hidden. |
|
Rich, what do you the messaging should be for publish/update errors. |
I tried to do that as part of #64158, but eventually closed my PR - #68360 (comment). |
What do you think of these: Publishing failed. Your content will be persisted locally to avoid content loss. Please try publishing again. |
|
They work for me, with the same caveat that they hide the actual error message that might help debugging. |
Append server error messages in an expandable <details> element on save failure notices, improve failure copy to mention local persistence and retry guidance, and add autosave-specific notice strings for both online and offline failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add the missing tsconfig.json reference for @wordpress/escape-html, fixing the lint:tsconfig CI check. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Regenerate the lock file after adding @wordpress/escape-html to the editor package dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

What?
Updates editor autosave failure notices to use autosave-specific copy, explain local persistence and retry behavior, and avoid appending raw server error text.
Why?
Autosave failures currently fall back to the generic update failure notice, which is less clear in context and can append cryptic backend messages that are not actionable for most users.
How?
This passes save options into the save-failure notice builder so autosave requests can use dedicated notice strings for normal and offline failures, while preserving existing publish/update failure behavior. It also adds unit coverage for the autosave-specific notice path.
Testing Instructions
Auto-save failed. Your changes will be persisted locally to avoid content loss. We’ll retry automatically, or you can save manually.npm run test:unit -- packages/editor/src/store/utils/test/notice-builder.js --runInBand.Testing Instructions for Keyboard
Screenshots or screencast