Skip to content

test(ui): reuse panel tab drag fixture - #147250

Merged
steipete merged 1 commit into
mainfrom
codex/test-panel-tab-drag-fixture
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-panel-tab-drag-fixture

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Reuse the existing zero-import createDataTransferStub in the panel-tab reorder tests, removing five test lines with no production change. All 16 cases and 37 authored assertions remain, including the separate disabled-drag spy and existing cleanup.

The observed callers ignore setData’s return and neither enumerate transfer properties nor read types, so the helper’s return/property differences do not affect these scenarios. Baseline and candidate each passed the same 16 cases; independent Codex review found no actionable findings. This is focused jsdom proof, with no live UI, layout, or performance claim.

All 18 configured checks reached a successful native aggregate result in Testbox run 34771618590, with the exact lease completed and owned resources cleaned up. The backing Actions step can show cancelled after the normal one-shot stop; the native result and lease cleanup were verified separately.

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@steipete
steipete marked this pull request as ready for review September 13, 2026 18:00
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:09 PM ET / 18:09 UTC.

ClawSweeper review

What this changes

The PR replaces duplicated drag-data setup in Control UI panel-tab tests with the existing shared fixture, preserving the assertions and production behavior.

Merge readiness

✅ Ready for maintainer review

The cleanup remains useful on current main and introduces no actionable defect. The shared fixture preserves the tested behavior, and this maintainer-protected PR should remain available for landing.

Priority: P3
Reviewed head: 1fc462dc3881ac3448f5e620f7c109b91775aa85

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, coherent cleanup preserves meaningful coverage without introducing a correctness or security concern.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored cleanup changes only synthetic drag setup in the panel-tab tests; the reported jsdom checks match that scope, and no production or live-browser behavior is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored cleanup changes only synthetic drag setup in the panel-tab tests; the reported jsdom checks match that scope, and no production or live-browser behavior is claimed.
Evidence reviewed 6 items Introduced change: The verified merge-base-to-head diff only replaces the local drag-data object with the shared helper; assertions, event dispatch, disabled-drag spy, and cleanup remain unchanged.
Fixture equivalence: The helper creates a fresh Map per call and preserves getData, effectAllowed, and dropEffect behavior. Its void setData return and additional types getter are not consumed by the tested panel-tab handlers.
Current-main necessity: Fetched main still contains the inline fixture. The production panel-tab owner and shared helper are identical between fetched main and the reviewed head.
Findings None None.
Security None None.

How this fits together

The Control UI panel tab strip translates tab selections and drag gestures into callbacks for its hosting panels. These tests supply synthetic drag data and verify reorder placement and callbacks.

flowchart LR
  A[Shared drag fixture] --> B[Synthetic drag events]
  B --> C[Panel tab strip]
  C --> D[Determine drop placement]
  D --> E[Reorder callback]
  E --> F[Test assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -5. Total -5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 2 7 -5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 7 -5

Review metrics

None.

Technical review

Best possible solution:

Use the existing per-test drag fixture while retaining the current reorder assertions and separate disabled-drag spy.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR consolidates test setup rather than repairing a reported runtime defect.

Is this the best way to solve the issue?

Yes: the existing helper supplies the same consumed drag-data behavior without adding dependencies, production seams, or weaker assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e98e95c03374.

Labels

Label changes:

  • add P3: This is a focused test-fixture cleanup with no production or user-visible change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored cleanup changes only synthetic drag setup in the panel-tab tests; the reported jsdom checks match that scope, and no production or live-browser behavior is claimed.

Label justifications:

  • P3: This is a focused test-fixture cleanup with no production or user-visible change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored cleanup changes only synthetic drag setup in the panel-tab tests; the reported jsdom checks match that scope, and no production or live-browser behavior is claimed.

Evidence

What I checked:

  • Introduced change: The verified merge-base-to-head diff only replaces the local drag-data object with the shared helper; assertions, event dispatch, disabled-drag spy, and cleanup remain unchanged. (ui/src/components/panel-tab-strip.test.ts:257, 1fc462dc3881)
  • Fixture equivalence: The helper creates a fresh Map per call and preserves getData, effectAllowed, and dropEffect behavior. Its void setData return and additional types getter are not consumed by the tested panel-tab handlers. (ui/src/test-helpers/drag-data.ts:1, 1fc462dc3881)
  • Current-main necessity: Fetched main still contains the inline fixture. The production panel-tab owner and shared helper are identical between fetched main and the reviewed head. (ui/src/components/panel-tab-strip.test.ts:256, e98e95c03374)
  • Shared-helper history: The helper was added by the merged test(ui): share sidebar drag data fixture #143901. Its exact addition was checked against the commit's raw recorded parent, providing relevant prior area history for routing. (ui/src/test-helpers/drag-data.ts:1, 25ae005b696f)
  • Validation scope: The captured PR body reports matching baseline/candidate results for 16 cases and explicitly limits its claims to jsdom. The linked Testbox run has a cancelled Actions conclusion, consistent with the disclosed one-shot shutdown; its run metadata alone does not independently verify the claimed native aggregate. Tests were not executed during this read-only review; git diff --check passed.
  • Historical inspection limitation: Reading the release-tag test blob failed because a missing Git object could not be retrieved (HTTP 403); deeper --follow history encountered the same limitation. Current source, the introduced diff, and the shared-helper addition were inspected successfully. No shipped-release claim is made. (ui/src/components/panel-tab-strip.test.ts, e98e95c03374)

Likely related people:

  • Peter Steinberger: Raw commit 25ae005 adds ui/src/test-helpers/drag-data.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 25ae005b696f; files: ui/src/test-helpers/drag-data.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete steipete self-assigned this Sep 13, 2026
@steipete
steipete merged commit bb62038 into main Sep 13, 2026
129 checks passed
@steipete
steipete deleted the codex/test-panel-tab-drag-fixture branch September 13, 2026 18:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '28887b564210326174413d0d8ade72b38268d5f3': (1827 commits)
  fix(qa): bind coverage IDs to producer assertions (#144000)
  fix(linux): explain FreeBSD desktop setup prerequisites (#147211)
  fix(memory): split embedding batches rejected for an input array item cap (#139541)
  test: isolate timing metadata persistence from inherited settings (#147112)
  refactor(status): retire test-only helper publication (#147071)
  improve: reduce workspace agent lookup work for large fleets (#147144)
  refactor(macos): share connect credential selection (#144214)
  fix(plugins): restore Slack onboarding after core updates (#147109)
  refactor: share ANSI compatibility matching (#146998)
  fix(test): settle Models catalog before picker open (#147215)
  test(ui): reuse panel tab drag fixture (#147250)
  fix(install): use system Node for FreeBSD CLI setup (#147204)
  fix(cli): explain MCP probes with no enabled servers (#147216)
  docs: require UI screenshots in chat and PR (#147263)
  docs(skills): clarify remote gog OAuth setup for Gateway hosts (#145945)
  test: replace idle account catalog waits with synchronization (#147228)
  feat(qa): preserve maturity decision context (#147219)
  feat(macos): clarify agent activity in native chat (#147197)
  fix(runtime): complete Bun compatibility follow-ups (#147085)
  fix(ui): release closed chat panes after queued updates (#147240)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant