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:
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
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ Design: `design.md`. Every task is TDD. Work is serial in the main session, with
|
||||
- Rich text with a safe link and a refused unsafe one.
|
||||
- A Custom HTML block: the "Save to update" mark, then the new HTML after save.
|
||||
- Leaving by a menu link with unsaved changes.
|
||||
- Done 2026-12-03. The panel change was a card icon, not the Look select. Found and fixed on the way:
|
||||
- Done 2026-12-03, re-run on fresh code after a full reload: Fast Refresh had not applied edits on this page. Also checked: one undo step per Ctrl+Z from three places, drag to reorder, Look, and Duplicate and Move up revealing their section. Found and fixed on the way:
|
||||
- Ctrl+Z did nothing right after a toolbar delete: focus fell to the canvas body.
|
||||
- Ctrl+Z also did nothing once Redo went disabled: focus fell to the page body.
|
||||
- A new empty Text section was a thin line under its Add section button.
|
||||
|
||||
Reference in new issue
Block a user