Skip to content

Fix duplicate error toasts and editor feedback scope - #63

Open
ruibaby wants to merge 1 commit into
mainfrom
fix/frontend-feedback
Open

ruibaby wants to merge 1 commit into
mainfrom
fix/frontend-feedback

Conversation

@ruibaby

@ruibaby ruibaby commented Nov 29, 2026

Copy link
Copy Markdown
Member

Summary

Fixes several Console UX issues in the page workbench:

  • Duplicate error toasts: requests whose failures are already surfaced inline now opt out of the global error toast, so each failure is reported once with actionable context. Save, publish, and delete stay unmuted so the 401 re-login dialog still appears.
  • Error copy: known 409/400/422 details are translated to Chinese instead of falling back to the optimistic-lock message, Chinese server details are kept as-is, and unmapped English details are logged in development builds instead of being shown raw.
  • Page list: a page beyond the last page now shows "current page has no content" with a back-to-first-page action, and the toolbar is hidden for a genuinely empty workspace. Clone, import, and delete invalidate the list, and the active-run poll no longer stacks toasts.
  • AI panel: unfinished prompts are kept per conversation and restored when switching back to a session.
  • Editor shortcuts: Ctrl/Cmd+Z is ignored inside text fields, code editors, and open modals; Ctrl/Cmd+S only fires from the canvas/source editor instead of hijacking the browser shortcut everywhere.

Validation

  • pnpm --dir ui type-check
  • pnpm --dir ui test:unit --run — 33 files, 355 tests passed
  • CI=true ./gradlew build — build successful
  • Manual check on an isolated Halo instance: out-of-range page state, back-to-first-page action, single toast for a slug conflict, and the modal DOM used by the shortcut guard

Screenshots

The screenshots are in Chinese because this plugin has no English copy yet.

Out-of-range page now shows a dedicated empty state and a back-to-first-page action:

Out-of-range page empty state

Cloning to an existing slug shows one toast with the server detail instead of two toasts with a generic conflict message:

Single clone conflict toast

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