Repository navigation
Dirty-draft leave-warning hotfix
Unfinished recipe drafts now request a best-effort leaving-page warning even when session storage is working. This fixes the guard that previously required a storage warning before requesting protection for a dirty draft.
The judge packet contains all 28 source files, unchanged from ec9492637d5c4a7c02c41d43e306a0e5c61cab61, including the reviewed PR #2 fix. Exact arithmetic, storage behavior, the JSON schema and the visible interface are unchanged. The previous backup-size correction remains included.
Try the packet
Download PortionLab-ec949263-judge-packet.zip, extract it, and open PortionLab/START-HERE.txt or the illustrated PortionLab/guide/index.html. With Node.js 22 or later, run npm start in PortionLab/source, then open http://127.0.0.1:4186/. No install or build step is needed for the app. Run npm test in that same folder to check the source.
The seven genuine guide screenshots are preserved from baseline b5bcaddd. They illustrate the existing workflow, not native prompt behavior for this hotfix. The included JSON is the same prepared synthetic fixture, not a recorded export or a tested cooking method.
Validation and limits
- Clean-extracted source: 43 Node tests, 15 simulated-DOM groups and 48 independent actual-handler warning-request checks passed.
- All source bytes and Git blob identities match the pinned commit's tree,
550603b0b8cde9e7cc0036f178f5888b1456363d. - The packet includes a per-file SHA-256 manifest. Its source, seven screenshots and synthetic example were checked after extraction.
- Simulated tests establish warning requests, not native browser prompt display. Browsers may suppress prompts. Draft recovery remains tab-scoped and is not guaranteed after closing a tab and opening a fresh one. Apply changes and keep portable JSON backups.
- Native print preview, Safari, physical devices and screen-reader acceptance remain unverified. See
source/VALIDATION.mdfor the scope of earlier checks.
v0.1.2 identifies this maintenance source/judge-packet release; package.json remains 0.1.0. OpenAI Codex assisted with design, code, synthetic sample text, tests and review. The app makes no AI calls.
SHA-256 (PortionLab-ec949263-judge-packet.zip):
cb57431b7735de946f0b7404fe59bcf0bb152c1eddfb0f70bdbfe9aeb20fe729