Repository navigation
feat(doop): make Hand the default canvas tool (CHE-7328 stage 1, fork PR 60) [squash] - #107
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
congvc-bot-x99[bot] wants to merge 1 commit into
Conversation
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.
Part of CHE-7328 (stage 1 of a stacked forward-port). Ports fork PR 60 (CHE-6941, Hand default tool;
mainmerge323f90ff1a81) ontocheese/main.What this PR changes
store.ts,Stage.tsx,CanvasDrawing.tsx,CanvasPage.tsx: Hand is the resting tool (initial, Esc, canvas switch, role demotion).tests/defaultTool.test.ts(new, unit); browser testopens in Hand ...moved intotests/drawingShapesBrowser.test.tsbecausecheese/mainsplitdrawingBrowser.test.ts. Fixtures and drawing tests that assume Select now start from it explicitly (drawingPage.ts,drawingMoveBrowser,svgImportBrowser, 6 fixtures).Test evidence (X99, this head)
bunx vitest run tests/defaultTool.test.ts tests/drawing*: 150 tests, pass after the fixes above.bunx vitest run --maxWorkers=4: 4526 passed, 11 failed. 10 aretests/elementPanelBrowser.test.ts(align children / flex direction); they fail identically on unmodifiedcheese/main1784adf (checked by stashing this change). The 11th,drawingGeometryBrowser"grabs the visibly top drawing", is a load flake: it passes alone on this head and on base.bun run typecheck: clean. prettier: clean.Why a stack, and what is NOT in this PR
mainandcheese/mainare two lineages fromb28219a7.cheese/mainrewroteStage.tsx/FrameView.tsx/frameRuntime.ts(+2776/-687 lines vs the fork base), so mostmain-only commits do not apply. A trial cherry-pick of every+commit ontocheese/maininmainorder gave 26 clean, 4 empty, 50 conflicts (table below). PR 65 (erus lag fix,968f9275eac7) builds on the frame-culling PR 8 (useCulledFrames.ts,frameCulling.ts), which is absent oncheese/main; it needs a re-implementation on the new FrameView, not a cherry-pick. The server chains (WriteContext/G1, G3 attestation, G2 recon, lock epoch, pins) conflict on migrations 0040+ andstore.ts/actions.ts/mcp.ts. Each is its own PR in the stack; tracked as sub-issues of CHE-7328.Cherry table
git cherry -v origin/cheese/main origin/mainataa43b682(main) /1784adf9(cheese/main): 85 rows (80+, 5-already present by patch-id). Last column is a trialgit cherry-pick -xontocheese/main, not a verdict that the commit is correct there.d8869aa7f39ae29e79cac6788800bd18552e44fba8a6009995579d46a3d37188353e3193ce9415684626f1d99388ff188d1a98ee1d88f57bcc0f19dc157b937b8992f76b81117d5c0b4156f007373ff32c86a9b5f8a93ecb9db42e88a5cfeec48bdbcf5b5081cbbb1e6e6e18b4dd9cadcf9a5152cfbf7cee42123e476615970336ef9c47f589c0a7c95d902092e1a34ca13ddf422417742a3792483c15e363b14c812c21937d09e6afb92858685013016b7e9a972bb44aaeeae69ff3125e395efe7e5ecb69ce780392b4acdf191b41255fbe1ea370ef67a4c498b17fee7dd5fc8faa5adbdbc102a7e12e42f60f6d68895210e820c8a9ddf5a41b1cbbdd5a2a688dcd535fecb983ba85247111c6a699e1fea4fd4a01393adfb2bb1b038c16cf33d6d5267498170ec6dc1c250092d48c057e0e7aa14eff46bdf3d2354585a23a65558fc6992d8c7da97c0cddbcbad6a604a4b38bcb42371c3dea933e768e9849d7080283d154129b5517788e928f0a17c49f8e29f884cd44cfddfd1c564d5e0c38049ebc9043c51af87e51e7397692519a94ebacf214682f51eae955f6b79279e93b5fafbe308137626a