Repository navigation
feat(ghost): Stamp hands the ghost back to the cursor (STAMP-PICKUP) - #333
Merged
Merged
Conversation
Wendi: "i want the text and box to go away after using a ghost stamp."
The box and the word Typical are the ghost itself, which survived its
own stamp by design so it could be dragged to the next location and
stamped again; clearing it meant right-click, Delete ghost, after every
stamp. The next stamp is served better by carrying the ghost than by
leaving it.
- Stamp lands the marks and hands the ghost back to the cursor, grabbed
where the menu was opened, as it rides between capture and the first
drop. Nothing stays over the marks just stamped. The next click drops
it on the next spot; Esc lets it go ("Ghost dropped. The stamped marks
stay."); any other tool orphans it as before.
- Undo of a stamp takes the marks back and puts the ghost back on the
sheet, so the copy in hand is dropped rather than doubled
(state.placingGhostFromStamp, read by app.js undo/redo through
dropGhostPickedUpByStamp); a ghost in hand from a capture is untouched
by an unrelated undo.
- features/ghost.js, app.js, ghost.spec.js (the new test: stamp, in hand
with the grab point, the next drop, stamp again, Esc, undo and redo, a
captured ghost's undo), the ARCHITECTURE row, CHANGELOG, sw.js and the
TOC restamped.
npm run check: all 14 steps pass. ghost.spec.js 17/17; duct-ghost and
esc-ladder specs pass. Walked in the browser on test-page.pdf: capture,
place, Stamp from the menu, the ghost riding the pointer with nothing
over the stamped marks, Esc leaving only real marks.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wendi: "i want the text and box to go away after using a ghost stamp." The box and the word Typical are the ghost itself, which survived its own stamp by design so it could be dragged to the next spot and stamped again; clearing it meant right-click, Delete ghost, after every stamp.
npm run checkall 14 steps; ghost.spec.js 17/17; duct-ghost and esc-ladder specs pass; walked in the browser on test-page.pdf (capture, place, Stamp from the menu, the ghost riding the pointer with nothing over the stamped marks, Esc leaving only real marks).🤖 Generated with Claude Code