Skip to content

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
cheese/mainfrom
che-7328-forward-port
Draft

congvc-bot-x99[bot] wants to merge 1 commit into
cheese/mainfrom
che-7328-forward-port

Conversation

@congvc-bot-x99

Copy link
Copy Markdown

Part of CHE-7328 (stage 1 of a stacked forward-port). Ports fork PR 60 (CHE-6941, Hand default tool; main merge 323f90ff1a81) onto cheese/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: tests/defaultTool.test.ts (new, unit); browser test opens in Hand ... moved into tests/drawingShapesBrowser.test.ts because cheese/main split drawingBrowser.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.
  • Full bunx vitest run --maxWorkers=4: 4526 passed, 11 failed. 10 are tests/elementPanelBrowser.test.ts (align children / flex direction); they fail identically on unmodified cheese/main 1784adf (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

main and cheese/main are two lineages from b28219a7. cheese/main rewrote Stage.tsx / FrameView.tsx / frameRuntime.ts (+2776/-687 lines vs the fork base), so most main-only commits do not apply. A trial cherry-pick of every + commit onto cheese/main in main order 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 on cheese/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+ and store.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/main at aa43b682 (main) / 1784adf9 (cheese/main): 85 rows (80 +, 5 - already present by patch-id). Last column is a trial git cherry-pick -x onto cheese/main, not a verdict that the commit is correct there.

patch SHA subject trial cherry-pick onto cheese/main
+ d8869aa7f3 perf(server): gzip the client and cache hashed assets as immutable conflict
+ 9ae29e79ca feat(web): add to home screen opens Doop full-screen on iPhone conflict
+ c6788800bd test(web): cover the built app and production static path for the manifest conflict
+ 18552e44fb docs: note the built-app manifest test conflict
+ a8a6009995 fix(canvas): unmount frames far from the camera to cap iframe memory conflict
+ 579d46a3d3 fix(canvas): keep a culled frame's iframe until its pending text edit is saved conflict
+ 7188353e31 fix(canvas): release a culled frame's iframe only when its final save arrives conflict
+ 93ce941568 fix(canvas): never cull a frame once it has been edited conflict
+ 4626f1d993 fix(canvas): mount a new frame's iframe on its first render conflict
+ 88ff188d1a test(canvas): reload the page per culling case instead of rekeying the shared fixture conflict
+ 98ee1d88f5 feat(skills): add verify-change, a repo skill that proves a change works clean
+ 7bcc0f19dc fix(skills): cover deleted modules and browser tests in verify-change clean
+ 157b937b89 fix(skills): keep the verify-change test out of its own browser-test search clean
+ 92f76b8111 fix(skills): satisfy noUncheckedIndexedAccess in the verify-change test clean
+ 7d5c0b4156 fix(skills): run the whole suite on deleted modules and flag server/ browser gaps in verif clean
+ f007373ff3 ci: add 15-minute merge-queue stall alarm (CHE-3326) conflict
+ 2c86a9b5f8 style(ci): format merge-queue-watch workflow with prettier empty (already applied)
+ a93ecb9db4 fix(ci): time merge-queue stalls from the merge-group head, not enqueue conflict
+ 2e88a5cfee fix(ci): use the doop repo name in the merge-queue-watch test empty (already applied)
+ c48bdbcf5b fix(ci): report headless AWAITING_CHECKS entries as inconclusive empty (already applied)
+ 5081cbbb1e ci(ci-policy): add the caller and policy file (doop, CHE-3275) conflict
+ 6e6e18b4dd fix(auth): keep canvas link when a provider sign-in fails (CHE-3469) conflict
+ 9cadcf9a51 feat(doop): double-tap fit on Stage clean
+ 52cfbf7cee feat(pwa): service worker with offline fallback page conflict
+ 42123e4766 feat(canvas): phone review layout and safe-area insets conflict
+ 15970336ef fix(doop): judge double-tap on release so pan and pinch never fit conflict
+ 9c47f589c0 fix(pwa): scope SW cache cleanup to own caches; add browser offline test conflict
+ a7c95d9020 fix(canvas): keep Comments reachable in the phone review layout conflict
+ 92e1a34ca1 feat(skills): add verify-doop live-app verification skill clean
+ 3ddf422417 fix(skills): declare globals for verify-doop drive script clean
+ 742a379248 feat(doop): carry the Multica task id on MCP calls, bind pages to issues, list runs per pa conflict
+ 3c15e363b1 fix(doop): document Multica env vars conflict
+ 4c812c2193 docs(design): lock lifecycle-ui direction A clean
+ 7d09e6afb9 docs(design): record lock PR number clean
+ 2858685013 docs(design): export lifecycle-ui frames verbatim from doop clean
+ 016b7e9a97 docs(design): lock agents-panel direction B pinned run strip clean
+ 2bb44aaeea docs(design): record lock PR number for agents-panel clean
+ e69ff3125e ci(ci-policy): classify all workflows and add R2 concurrency groups (CHE-5570) conflict
+ 395efe7e5e test(doop): measure the mRAnnjvGod load-time baseline (CHE-5849) clean
+ cb69ce7803 test(doop): fail fast on a bad cookie and print per-run progress (CHE-5849) clean
+ 92b4acdf19 test(doop): show where a slow measurement run is and bound a stuck run (CHE-5849) clean
+ 1b41255fbe test(doop): read the canvas payload outside the browser (CHE-5849) clean
+ 1ea370ef67 test(doop): time all frames of the file, including culled ones (CHE-5849) clean
+ a4c498b17f test(doop): run the load-time measurement on a local instance, no credential (CHE-6196) clean
+ ee7dd5fc8f refactor(doop): require WriteContext on every store mutator, policy stub (CHE-6624) conflict
+ aa5adbdbc1 test(doop): red tests for WriteContext policy and G1 (CHE-6624) conflict
+ 02a7e12e42 feat(doop): enforce write policy and G1 project binding, task identity (CHE-6624) conflict
+ f60f6d6889 feat(doop): check_design_completeness + stored attestation (CHE-6625) conflict
+ 5210e820c8 fix(doop): hold MCP agents and sync keys to G1, undo refused page copy (CHE-6624) conflict
+ a9ddf5a41b fix(doop): bind recon frame and flow start into the G3 attestation (CHE-6625) conflict
+ 1cbbdd5a2a fix(doop): judge page-copy policy inside the db transaction (CHE-6624) conflict
+ 688dcd535f feat(doop): agent frame writes cannot overlap another frame (CHE-6119) conflict
+ ecb983ba85 feat(doop): make Hand (H) the default canvas tool (CHE-6941) conflict
+ 247111c6a6 fix(doop): check the defaulted x/y too when an agent creates a frame (CHE-6119) conflict
+ 99e1fea4fd test(doop-load): add the throttle proxy that shapes the c00 profile (CHE-6953) clean
+ 4a01393adf test(doop-load): add the reference render and paint validation modules (CHE-6954) clean
+ b2bb1b038c feat(doop-load): post first-paint and paint-support signals from the frame runtime (CHE-69 conflict
+ 16cf33d6d5 fix(doop-load): count whole pixels for fractional boxes (CHE-6954) clean
+ 267498170e test(doop-load): bound C1-e by the recorded doop:html-result time (CHE-6951) conflict
+ c6dc1c2500 test(doop-load): bound C1-e on the frame's own apply time, not host receipt (CHE-6951) conflict
+ 92d48c057e fix(canvas): show the stored preview, not a live iframe, for small or surplus frames (CHE- conflict
+ 0e7aa14eff test(perf): measure erus-like lag, iframe count and zoom-in (CHE-7019) clean
+ 46bdf3d235 test(perf): take a pixel check and real sizes in measure-lag (CHE-7019) clean
- 4585a23a65 feat(doop): minimap L1 requirement ledger as a G3 row (CHE-6629) already on cheese/main (patch-id match)
+ 558fc6992d feat(doop): add G2 recon guard and recon-scan (CHE-6627) conflict
- 8c7da97c0c fix(doop): unchecked requirement ledger cannot attest or stay current (CHE-6629) already on cheese/main (patch-id match)
+ ddbcbad6a6 fix(doop): exempt only recon-only frames and wire the Multica comment source (CHE-6627) conflict
+ 04a4b38bcb feat(doop): lock frames at the store with lock_if_version and lockEpoch (CHE-6626) conflict
+ 42371c3dea fix(doop): keep the lock attestation and read lock owners at boot (CHE-6626) conflict
+ 933e768e98 fix(doop): check the attested version on a same-attestation lock retry (CHE-6626) conflict
+ 49d7080283 docs(env): document DOOP_LOCK_OWNERS in .env.example (CHE-6626) clean
+ d154129b55 test(doop): red tests for lock pins, with stubs and the frame_pins schema (CHE-7062) conflict
+ 17788e928f feat(doop): lock pin core, durable frame_pins and durable lock/unlock (CHE-7062) conflict
+ 0a17c49f8e fix(doop): serialize pin releases and make lock publish durable (CHE-7062) conflict
+ 29f884cd44 docs(env): document DOOP_PIN_SECRET (CHE-7062) clean
+ cfddfd1c56 test(doop): restore pin receipt tests and fix publish test actor (CHE-7062) conflict
+ 4d5e0c3804 ci: run the required CI and CLA checks on merge_group (CHE-7287) conflict
- 9ebc9043c5 feat(doop): g3-r6 motion per transition, motion page and screen docs (CHE-6853) already on cheese/main (patch-id match)
- 1af87e51e7 fix(doop): g3-r6 attestation tracks the Motion page (CHE-6853) already on cheese/main (patch-id match)
+ 397692519a chore(ci): limit push trigger to cheese/main in ci, desktop, ios workflows (CHE-7631) empty (already applied)
+ 94ebacf214 test(doop): red tests and harness for the pin interleaving table, with a reconcile stub (C conflict
+ 682f51eae9 test(doop): fix table cells, add the six concurrent pin tests (CHE-7063) conflict
+ 55f6b79279 feat(doop): pin_reconcile job with abort_if_pending and the pin interleaving tests (CHE-70 conflict
+ e93b5fafbe feat(design): attest sloplint per frame and components page references (CHE-6854) conflict
- 308137626a fix(design): reject hollow sloplint results and store the verified JSON (CHE-6854) already on cheese/main (patch-id match)

…or CHE-7328)

Forward-port of fork PR 60 (main 323f90f, commit ecb983b) onto cheese/main.
Esc and canvas switch return to Hand. cheese/main split drawingBrowser.test.ts, so
the Hand test lives in drawingShapesBrowser.test.ts; fixtures and drawing tests that
assume Select start from it explicitly.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants