Step-by-Step View for guides (#98) #119
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/98-step-by-step-view"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #98.
A reading mode for a tablet or phone at the machine: one step per screen, filling the window.
What changes
/guides/<id>/stepsis a start screen with title, difficulty, duration, protective equipment, description and attachments./guides/<id>/steps/<n>is step n. Each can be linked directly.StepFiguregot astackedlayout), then the step content.history.replaceState. The top bar shows „Schritt 4 von 12" and a progress bar. Swipes are ignored while zoomed in and on content that scrolls sideways.localStorageand is bound to the version shown, so it starts over when a new version is published. For drafts it is bound to the working copy's last edit.stepsis now reserved. A guide already sluggedstepsreads at/steps-2, becauseguideHrefmaps reserved slugs.Tests
e2e/stepByStep.spec.ts):npm test(529),npm run typecheck,npm run lintand the full Playwright suite (67) all pass.🤖 Generated with Claude Code