Admin on phones: touch dragging, roomier setting rows, fading save banner #13

Merged
reudy merged 1 commit from mobile-editor-fixes into main 2026-10-26 18:27:20 +01:00
Member

Fixes found while editing pages on a phone.

  • Reordering blocks by touch. Phones don't fire HTML drag-and-drop events, so the ⠿ handle now follows the finger with pointer events (and scrolls near the screen edges). The mouse keeps the existing drag-and-drop on the whole row. Both page and email editors use BlockList, so both get it.
  • Crowded setting rows. SegmentedControl, ColorField and the Anchor row put their label above the control when the row is narrow (@container query, under 24rem), so e.g. the Shop block's Item type (All / Products / Services / Bundles) has room. On desktop they look as before.
  • Background overlay is a 0–90 % slider (steps of 10, same stored values) instead of ten buttons that couldn't fit a phone.
  • Save banner. "Draft saved." / "Saved and published." now fades out after a moment like Site design's; errors stay. A new SaveStatus.svelte does it for the page and email editors.

AGENTS.md notes the narrow-row rule and SaveStatus.

Tested

  • svelte-check: 0 errors (the same 15 warnings as main).
  • Playwright on the test stack at 390×844 with real touch events (CDP): dragged Hero onto the third row and the order changed with "Unsaved changes" shown; screenshots of the Shop and image-background settings; overlay slider sets 60 %.
  • Save banner appears and is gone after ~3 s (desktop and phone).
  • Not tried on a physical phone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW

Fixes found while editing pages on a phone. - **Reordering blocks by touch.** Phones don't fire HTML drag-and-drop events, so the ⠿ handle now follows the finger with pointer events (and scrolls near the screen edges). The mouse keeps the existing drag-and-drop on the whole row. Both page and email editors use `BlockList`, so both get it. - **Crowded setting rows.** `SegmentedControl`, `ColorField` and the Anchor row put their label above the control when the row is narrow (`@container` query, under 24rem), so e.g. the Shop block's *Item type* (All / Products / Services / Bundles) has room. On desktop they look as before. - **Background overlay** is a 0–90 % slider (steps of 10, same stored values) instead of ten buttons that couldn't fit a phone. - **Save banner.** "Draft saved." / "Saved and published." now fades out after a moment like Site design's; errors stay. A new `SaveStatus.svelte` does it for the page and email editors. AGENTS.md notes the narrow-row rule and `SaveStatus`. ## Tested - `svelte-check`: 0 errors (the same 15 warnings as main). - Playwright on the test stack at 390×844 with real touch events (CDP): dragged *Hero* onto the third row and the order changed with "Unsaved changes" shown; screenshots of the Shop and image-background settings; overlay slider sets 60 %. - Save banner appears and is gone after ~3 s (desktop and phone). - Not tried on a physical phone. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
agent added 1 commit 2026-10-26 18:23:56 +01:00
- Block list: drag a block by its handle with a finger (phones don't fire
  HTML drag events); the mouse keeps drag-and-drop on the whole row.
- Setting rows (SegmentedControl, ColorField, Anchor) put the label above
  the choices in a narrow row, so e.g. Shop "Item type" fits.
- Background Overlay is a slider instead of ten buttons.
- Page and email editors: "Draft saved." fades out like Site design's
  (new SaveStatus component); errors stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
reudy merged commit 1f6d4806f9 into main 2026-10-26 18:27:20 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/domaino#13
No description provided.