Repository navigation
feat(doop): carry the author ledger through copies, moves and restores [squash] - #175
Open
congvc-bot-x99[bot] wants to merge 2 commits into
Open
congvc-bot-x99[bot] wants to merge 2 commits into
congvc-bot-x99[bot] wants to merge 2 commits into
Conversation
added 2 commits
November 27, 2026 12:14
CHE-7083, S4 of CHE-7064. createFrame takes a required origin. Copies, page moves and restores carry the page_authors rows.
CHE-7083 review fix: paste, duplicate, Alt-drag and drawing move resolve the first page for a frame with no pageId.
This branch has not been deployed
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.
Closes nothing yet (draft). Implements CHE-7083, slice S4 of CHE-7064.
What
createFrametakes a requiredorigin(neworcopyof source pages). Every caller declares it; the REST route accepts an optionalcopiedFromlist and builds acopyorigin from it.duplicatePage,duplicateCanvasandcreateFramewith origincopycopy the source pages'page_authorsrows into the destination (sourcecopy,sourcePageIdset) and add the copier.copiedFrom.legacypage inheritsunknown.Out of scope, untouched: G5 lock/pin,
design_card_guard, C00 config/build/deploy. doopmaindoes not deploy to C00.Tests (red, then green)
Command:
bunx vitest run tests/pageAuthorsInherit.test.ts tests/createFrameOrigins.test.ts tests/pageAuthorsCopyRest.test.tsRed, before the implementation (real assertion failures, not compile errors):
(
AssertionError: expected [] to deeply equal [ { kind: 'agent', ... }, ... ])Green, after:
pageAuthorsCopyRestwas also confirmed red with the route reverted to always-new(expected 400, got 200).Existing tests updated for the new contract:
pageAuthors.test.ts(move destination now also holds the source rows),webpageImport.test.ts(passes the origin),pageIssueStore.test.ts(persist mock gainsinheritedAuthors).Checks run locally
bun run typecheckPASS,bun run lintPASS,bun run format:checkPASS.*Browser.test.tsfiles time out on navigation (5-30s) on this host. They fail the same way on a cleanmainworktree at 9eec359, andprototypeBrowserpasses on this branch when run alone.claudeExtensionis flaky on timeouts (passes alone on both). CI is the authority for those.Risk
copiedFromis treated asnew, so a paste from an older client inherits nothing.Review fix (head
a4c4dba1)Review finding: a legacy frame has no
pageId, so paste and duplicate sent nocopiedFromand the copy lost the source page's rows. The client now resolves the page withframePageId(paste, duplicate, drawing move) and the Alt-drag duplicate inFrameViewalso declares its source.Test command:
bunx vitest run tests/frameClipboard.test.ts tests/drawingMove.test.ts tests/elementClipboard.test.ts tests/createFrameOrigins.test.tsRed, before the fix (the explicit-
pageIdcase passes):Green, after:
typecheckandlintpass.