Repository navigation
test(ui): fix the no-map-spread lint error in the dashboard widget drop test - #207341
fuller-stack-dev merged 3 commits into
Conversation
|
🦞👀 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. |
|
Codex review: passed. What this changesReplaces a map-and-spread expression with Array.prototype.with when constructing the dashboard resize test’s saved snapshot. Example: The resize test saves Release schedule at sizeW 9 while retaining Verification.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a correct, minimal lint repair still needed on main; no introduced defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser test supplies board snapshots through a mock Gateway and checks pending resize geometry, rejection rollback, successful retry, and menu interaction. flowchart LR
A[Board fixture] --> B[Browser resize test]
B --> C[Mock Gateway]
C --> D[Control UI board]
D --> E[Geometry and interaction assertions]
Technical reviewBest possible solution: Retain the one-line fixture replacement and handle the separately owned architecture failure through the existing CI landing policy. Do we have a high-confidence way to reproduce the issue? Main contains the prohibited map-and-spread expression under an enabled lint rule, while the exact-head lint lane passes; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair: it preserves the fixed fixture’s values, ordering, and untouched widget reference using an array operation already used elsewhere in the UI. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a8beee9d178d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. 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, 2:51 AM ET / 07:51 UTC. |
|
Merged via squash.
|
What Problem This Solves
mainfailscheck-lint-core-5on every PR:ui/src/e2e/dashboard-widget-drop.e2e.test.ts:102spreads inside amapcallback, whichoxc(no-map-spread)rejects. The line came in with #207112.User Impact
None. Test-only lint fix; CI's core lint lane passes again.
Why This Change Was Made
The test's saved board replaces only the first widget's size.
snapshot.widgets.with(0, { ...snapshot.widgets[0]!, sizeW: 9 })builds the same array without spreading insidemap(Array.prototype.withis already used inui/src). What the test asserts is unchanged.Evidence
node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json ui/src/e2e/dashboard-widget-drop.e2e.test.ts: onmainit reports102:37: error oxc(no-map-spread); with this change it reports nothing.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/dashboard-widget-drop.e2e.test.ts: 1 test passed.node scripts/check-changed.mjs: every lane passes except the dead-export scan, which reportsgetCommandOptionsWithRootOptionsandAgentHarnessSideQuestionRequestin files this PR does not touch (inherited frommain).main(the Skill Workshop import cycle incheck-guards-architectureand the board view mock type incheck-test-types-core-2); test(ui): fix the no-map-spread lint error in the dashboard widget drop test #207294 fixes those and is not duplicated here.