docs: add-page-visual-editor spec covers reveal, empty-field cues and Ctrl+Z focus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-03 16:18:40 +08:00
1 parent 7f43869444
commit d42e60d104
2 files changed
+10 -4

No files matched your search

@@ -80,7 +80,7 @@ The on-page editor SHALL show the page on a canvas, rendered as visitors see it,
### Requirement: Edit Text On The Page
Clicking a heading, short text, button label, card title or text, or FAQ question or answer on the canvas SHALL edit it in place as plain text, with the server's length limit shown when close. Rich text SHALL be edited in place with bold, italic, link, lists and alignment, and links SHALL follow the page link rule. Clicking an image spot SHALL open the file picker.
Clicking a heading, short text, button label, card title or text, or FAQ question or answer on the canvas SHALL edit it in place as plain text, with the server's length limit shown when close. Rich text SHALL be edited in place with bold, italic, link, lists and alignment, and links SHALL follow the page link rule. An empty field SHALL show a faded cue naming it, and empty rich text SHALL keep room to click into. Clicking an image spot SHALL open the file picker.
#### Scenario: Edit a heading in place
@@ -94,7 +94,7 @@ Clicking a heading, short text, button label, card title or text, or FAQ questio
### Requirement: Section Selection And Actions
Clicking a section on the canvas SHALL select it, outline it and show its settings in the side panel. With none selected, the panel SHALL show the page settings. A selected section SHALL offer drag, up, down, duplicate and delete. "Add section" between sections and at the end SHALL offer every block type. Up and down SHALL work from the keyboard.
Clicking a section on the canvas SHALL select it, outline it and show its settings in the side panel. With none selected, the panel SHALL show the page settings. A selected section SHALL offer drag, up, down, duplicate and delete. "Add section" between sections and at the end SHALL offer every block type. Up and down SHALL work from the keyboard. A section that is added, duplicated or moved SHALL be brought into view on the canvas.
#### Scenario: Duplicate a section
@@ -106,9 +106,15 @@ Clicking a section on the canvas SHALL select it, outline it and show its settin
- **WHEN** staff press Add section between the first and second sections and choose Steps
- **THEN** a Steps section appears second and is selected
#### Scenario: Add a section from the side panel
- **GIVEN** the canvas shows the top of a long page
- **WHEN** staff press Add Text in the side panel
- **THEN** the canvas scrolls to the new Text section at the end, which shows a faded "Content" cue to type into
### Requirement: Undo And Redo
The on-page editor SHALL undo and redo page changes, up to 50 steps, by buttons and by Ctrl+Z and Ctrl+Shift+Z. Typing in one field SHALL be one step. Saving SHALL NOT clear the history.
The on-page editor SHALL undo and redo page changes, up to 50 steps, by buttons and by Ctrl+Z and Ctrl+Shift+Z. The keys SHALL work wherever focus is in the editor, including after the focused control is removed or disabled, except inside a field outside the editor. Typing in one field SHALL be one step. Saving SHALL NOT clear the history.
#### Scenario: Undo a delete