Repository navigation
Conversation
…ard save deferred
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Handoff: this PR fixes two PR-only checks that #207138 and #207112 left red on |
|
Codex review: passed. What this changesThis PR removes Workshop’s reverse type dependency on its page and matches the board test deferred to its mock’s inferred return type. Example: CI checks the board’s pending-save test.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep this PR: it repairs two source-confirmed CI failures still present on fetched main, and no introduced defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherWorkshop presentation consumes page-owned scope and action results; the board browser test supplies a deferred save and observes layout reconciliation. flowchart TD
A[Workshop page owner] --> B[Action presentation]
B --> C[Solid presentation state]
D[Board browser test] --> E[Deferred save mock]
E --> F[Board layout assertions]
A --> G[Architecture and type checks]
D --> G
Technical reviewBest possible solution: Land the focused type repairs through the existing owning lane once the remaining CI gate has an established disposition. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the circular import and incompatible mock return types; the recorded base diagnostics and successful affected head checks corroborate both without executing target code during this review. Is this the best way to solve the issue? The patch repairs each contract at its existing owner without weakening guards, adding runtime machinery, or changing presentation behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fd79057d465c. Provenance checked
SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests 0. Total +4 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 28, 2026, 1:50 AM ET / 06:50 UTC. |
…cycle # Conflicts: # ui/src/pages/skill-workshop/action-presentation.ts
Co-authored-by: Jason (Json) <[email protected]>
|
Closing as superseded. All three fixes this PR carried landed separately:
|
Problem
check-lint-core-5fails on every PR based on currentmain:#207112 (
861216a0) built the saved snapshot withwidgets.map((w, i) => (i === 0 ? { ...w, sizeW: 9 } : w)). CI on pushes tomaindoes not run this lint stripe, somainlooks green. Examples: #207319, #207317.Solution
Build the list with
snapshot.widgets.with(0, { ...snapshot.widgets[0]!, sizeW: 9 }). This stays copy-on-write: the fixture'ssnapshot.widgetsand its first widget are not mutated, and the other widgets keep their identity, as before. No rule is disabled.This PR first fixed two other red checks from the same
mainstate. The owning lane landed those fixes and a third separately: #207345 (Skill Workshop import cycle), #207348 (Board drop test type) and #207352 (its redundant type argument, the secondcheck-lint-core-5error). This branch takes main's versions of those files, so the diff is only this one line.@fuller-stack-dev first proposed the
.withform in #207341 and is credited as co-author. That PR still failscheck-guards-architecturebecause its base predates #207345.Evidence
node scripts/run-oxlint-shards.mts --only=core --split-core --core-stripe=5/5(the CIcheck-lint-core-5command), compared with a cleanorigin/main: theno-map-spreaderror is gone and no new error appears. Local runs also report the samemax-lineserrors onmainand on this branch; CI does not report them.pnpm tsgo:ui: clean.ui/src/e2e/dashboard-widget-drop.e2e.test.ts: passes.