In-progress puzzles are remembered and can be resumed #6
Loading…
Reference in a new issue
No description provided.
Delete branch "osf/206-remember-in-progress-puzzles"
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?
Before, closing the app threw away any puzzle you were working on, and reopening it always showed the setup screen. Now, puzzles made from a bundled image are remembered while in progress: reopening the app lists each one with its image, grid size, placed pieces, and elapsed time, and picking one restores the board, move count, and timer where you left off. You can keep several puzzles in progress at once, and finishing one drops it from the list. Puzzles from your own uploads are still not remembered, and the game plays the same as before.
Checks: 2 things to look at
.forgejo/workflows,.gitea/workflowsor.github/workflows); what only CI tests went unverifiedTry it
npm installandnpm run dev, then open the printed URL.npm testruns the unit suite;npx playwright testruns the browser smoke test.openspec/changes/remember-in-progress-puzzles-currently-i-96xs8p/specs/puzzle-persistence/spec.md.Code review: 4 notes left, 3 fixed
Left for you
src/components/ResumeScreen.tsx:34)src/hooks/usePuzzle.ts:241)tsconfig.node.json:22)src/components/Game.tsx:99)Fixed before the commit
.gitignore:16)src/lib/persistence.test.ts:96)e2e/resume.spec.ts:3)Tests: 79 passed in 2 lanes
All 15 scenarios of
remember-in-progress-puzzles-currently-i-96xs8phave a tagged test.The test lint found, in the run's tests on the last check:
Recorded, not decided
e2e/resume.spec.ts:14B6 inan in-progress puzzle survives a reload and can be resumed: test has no// spec: <capability>/<scenario>tag, on itself, its describe or its file's topsrc/lib/persistence.test.ts:99B6 inremoving a seed drops only that record: test has no// spec: <capability>/<scenario>tag, on itself, its describe or its file's topsrc/lib/persistence.test.ts:182B3 inreads and writes no-op when localStorage is unavailable: bare toThrow(): require toThrow(TypeName) or toThrow(/message/)src/lib/persistence.test.ts:183B3 inreads and writes no-op when localStorage is unavailable: bare toThrow(): require toThrow(TypeName) or toThrow(/message/)src/lib/persistence.test.ts:199B3 ina failing write is non-fatal and remembers nothing: bare toThrow(): require toThrow(TypeName) or toThrow(/message/)Braid run 206: 2 h 40 m on vLLM · qwen3.8-27b
remember-in-progress-puzzles-currently-i-96xs8p(32 steps)Opened by Braid from cmoriarty/brooke#5.