Repository navigation
Phase 4: docs on web — doc tree, rich-text editor, commits with PR fallback - #16
Merged
Merged
Conversation
…tching Shared round-trip fixtures in packages/core/fixtures/docs for every editor (decision 011). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T7sHyaEvdoSPjkLy7T1aaz Signed-off-by: Erik Goins <erikgoins@gmail.com>
…ew mode, doc cache, pending PRs, presence Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T7sHyaEvdoSPjkLy7T1aaz Signed-off-by: Erik Goins <erikgoins@gmail.com>
Tree cache from push webhooks and reconcile; text cached by blob sha; one signed createCommitOnBranch per write; conflict vs. branch protection by re-reading the file; pull request fallback and review mode; image proxy with a sandbox policy; presence heartbeats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T7sHyaEvdoSPjkLy7T1aaz Signed-off-by: Erik Goins <erikgoins@gmail.com>
…el, conflict view Live preview hides markdown marks off the cursor's line; the text never changes, so the round-trip fixtures pass through a real EditorState. Images paste into <docs>/assets/ and commit with the doc. Settings: docs folder and branch per repo, hide folder, review mode. Cached docs open without the GitHub App. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T7sHyaEvdoSPjkLy7T1aaz Signed-off-by: Erik Goins <erikgoins@gmail.com>
…rder change Also tests for D1's 100-parameter limit on doc sync and for hidden frontmatter in the rich-text view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T7sHyaEvdoSPjkLy7T1aaz Signed-off-by: Erik Goins <erikgoins@gmail.com>
erikgoins
force-pushed
the
feature/docs-web
branch
from
November 19, 2026 20:26
537ae19 to
619d7f8
Compare
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.
Phase 4: docs on web. Each linked repo's
docs/folder shows as a tree, and docs open in a rich-text editor that commits to GitHub.What ships
createCommitOnBrancheach. The user's own token is used first; App commits carryCo-authored-by. Images commit with the doc. Rename is one commit. Delete needs Admin.pull_requestwebhook ends it.pushwebhook and reconcile. The tree is cached by folder oid, text by blob sha (decision 035). Pages never call GitHub.Decisions
035 docs cache · 036 doc writes · 037 rich text = live preview. Numbering skips 034, which PR #14 holds.
Verification
pnpm test: 613 passed. This includes the shared round-trip fixtures inpackages/core/fixtures/docs/, run at string level and through a real CodeMirrorEditorState, and docs service tests on libsql and D1 against a fake GitHub with a git model.pnpm test:e2e: 35 passed (newdocs.spec.ts).pnpm smoke: OK on Node and workerd.pnpm lint,pnpm typecheck, andpnpm check:repoare clean.Not verified against real GitHub
createCommitOnBranchgives on a protected branch. The fallback does not depend on it: the server re-reads the head and the file before it opens a pull request.Both belong in the live GitHub check (listed in STATE.md).
🤖 Generated with Claude Code
https://claude.ai/code/session_01T7sHyaEvdoSPjkLy7T1aaz