domaino/app-admin
agent cfe4e2062d Page editor: save in place, unsaved-changes guard, safer block list
- Saving no longer reloads the page: a validation error (empty title,
  duplicate slug) used to re-render from the server and silently discard
  every unsaved block edit. Shows saving/saved/error feedback like the
  email editor, an "Unsaved changes" badge, and warns before leaving.
- Status shown in the header; on a published page "Save draft" was
  misleading (changes go live immediately), so it now says so and the
  button reads "Save". Publish is a named submit (no DOM mutation).
- Block list: selected block is visible again (Tailwind v4's default
  border colour is currentColor, so every item had a heavy black border);
  drag & drop works in Firefox (needs dataTransfer data) with a drop
  indicator; Alt+↑/↓ keyboard reorder; hold-to-delete works from the
  keyboard, is cancelled on pointercancel/unmount, and no longer selects
  the wrong neighbour afterwards.
- Shared warnOnUnsavedChanges helper; the email editor uses it too
  (confirm() is ignored on tab close — cancel() triggers the browser prompt).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KgF3Kf47LjPGHKQHszpUAv
2026-10-06 10:46:40 +00:00
..
src Page editor: save in place, unsaved-changes guard, safer block list 2026-10-06 10:46:40 +00:00
static moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
.npmrc moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
Dockerfile moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
package-lock.json added mailing through Brevo and node mailer, also a email editor, with 2026-09-28 19:25:19 +02:00
package.json added mailing through Brevo and node mailer, also a email editor, with 2026-09-28 19:25:19 +02:00
svelte.config.js moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
tsconfig.json moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
vite.config.ts moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00