Repository navigation
[M11] Start dialog that writes the snippet (M11.8) - #97
Merged
Merged
Conversation
Story M11.8. The page ends with an open "new database" dialog: an editable directory, a segmented fsync choice and a "copy the code" button that copies a snippet built from web/src/data/snippets.json. tests/test_snippets.py fills in the same template and executes it against the engine for every fsync policy, including a directory name with quotes and backslashes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QWNkuQ7vhXw8ijQ3q3NZDG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QWNkuQ7vhXw8ijQ3q3NZDG
4 tasks done
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.
The page now ends with the start section from docs/FRONTEND_DESIGN.md section 6: the closing line "start writing." beside an open "new database" dialog (440px,
data-ui, the one shadow on the page, via a new--shadow-dialogtoken).How the snippet is kept honest
web/src/data/snippets.jsonholds the one template. The page fills it in withJSON.stringify(web/src/data/snippet.ts), andtests/test_snippets.pyfills it in the same way withjson.dumpsand executes it against the real engine. JSON string syntax is valid Python, so a directory with quotes or backslashes is quoted, not spliced.Acceptance criteria
FsyncPolicy)Verified locally (macOS)
pytest: 1264 passed, 6 skipped (the existing/procdescriptor tests, which skip on macOS).ruff checkandruff format --checkare clean.npm run lint,typecheck,build: clean.npx playwright test: 102 passed, 2 failed. The failures are the existingconsole.spec.ts"whole flow works by keyboard alone" test in both projects. It pressesControl+A, which doesn't select all on macOS, so it fails on a Mac and passes on Linux CI. It was not touched here.start.spec.ts: 18 passed in both projects. It includes the house-rules audit at 1440, 768 and 390.Built by hand in a local session, not by the pipeline routine.
Closes #86
🤖 Generated with Claude Code
https://claude.ai/code/session_01QWNkuQ7vhXw8ijQ3q3NZDG