Skip to content

refactor(ui): own hover marquee lifecycle in Solid - #173778

Merged
steipete merged 2 commits into
mainfrom
solid2/w-idiom-app-marquee
Oct 16, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-idiom-app-marquee

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Hovering or focusing a clipped sidebar title still used a controller class plus a Solid connect/disconnect adapter to own its DOM observers and animation timer.

User Impact

No intended visual or interaction change. Offscreen labels remain unmeasured; visible labels retain their existing fade, hover delay, focus behavior, touch-menu reveal, direction, and reduced-motion handling.

Why This Change Was Made

Replace HoverMarqueeController with an owned createHoverMarquee function. Label and text refs identify the DOM island directly, removing the child query. The existing layout scheduler still batches every geometry read before style writes. A single owner cleanup releases all observers, listeners, pending layout work, and the timer.

The factory remains in hover-marquee-controller.ts: the measured boot manifest groups by exact module path, so a cosmetic file rename would change chunk membership. The controller class and adapter are removed.

Geometry stays imperative because it is consumed only by this DOM island. The ancestor lookup and current focus-descendant query still express the existing semantic trigger contract. No new abstraction, dependency, tag, class, or lazy import.

Evidence

Proof Result
hover-marquee.test.tsx, one worker 6 passed; 6.54s
pnpm tsgo:ui Passed
Targeted oxlint, formatting, diff check Passed
Codemod dry run Only the expected manual controller-lifecycle diagnostic; resolved by the cutover
Independent Codex review (P0–P2) Original cutover and module-path correction clean; no actionable findings
Production Knip Passed on the final path-corrected head
Broader proof ci:full; existing browser lifecycle tests run in CI
Base/head build + strict startup check Passed: JS gzip 347,728 → 347,753 B (+25 B, within the checker’s 64 B build variance); raw JS 1,057,381 B unchanged; 8 JS requests and 1 CSS request. CSS remains 38,844 B gzip. Existing lazy imports and measured module membership remain intact.
Visual proof Markup and styling unchanged; existing interaction tests reused.

Across the old/new geometry owner and its Solid consumer:

Metric Before After
Production LOC 243 214
Controller-pattern references 1 0
createEffect calls 1 1
untrack calls 0 0
addEventListener calls 2 2

Every retained listener has owner cleanup. The test file is unchanged against the merge base; its passing behavior proof is reused for the path-only correction. No leases or changelog edits.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T04:42:46.876725Z 1b96585 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 26c0a1a4fe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/lib/solid/hover-marquee.tsx Resolved
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces the hover-marquee controller class with a Solid-owned function that manages DOM refs, observers, listeners, and animation cleanup.

Example: A clipped sidebar title receives keyboard focus for 500 ms.

  • Before: The controller measures overflow and starts revealing the title, then cancels pending work on disposal.
  • After: The Solid-owned function preserves that behavior and releases resources through owner cleanup.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-consistent refactor with passing UI coverage and no definite finding; behavioral evidence remains automated.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored refactor is outside the ordinary contributor proof gate; supplied validation consists of automated tests and static checks, with no direct shipped-UI media or runtime trace.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No new user-visible problem is claimed; clipped titles must retain their existing reveal and accessibility behavior during the Solid migration.
Reason: The maintainer-authored direction is approved, and the implementation reduces lifecycle machinery without adding configuration, dependencies, or a competing owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed Solid cleanup removes lifecycle plumbing without a definite introduced regression.

Priority: P3
Reviewed head: 26c0a1a4fe2ca638f15d95d89ec9cee7cd11617d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied shipped-UI recording or trace directly demonstrates reveal and disposal/remount; existing automated browser lifecycle coverage exercises those contracts.
Agent review details

How this fits together

Sidebar and person-activity renderers pass title content and options to HoverMarquee; its DOM owner measures visible labels through the shared layout scheduler and publishes overflow styles and animation state.

flowchart TD
  A[Sidebar and activity renderers] --> B[HoverMarquee component]
  B --> C[Solid marquee owner]
  D[Visibility and interaction events] --> C
  C --> E[Shared layout scheduler]
  E --> F[Label styles and animation]
  B --> G[Owner disposal]
  G --> C
Loading

Technical review

Best possible solution:

Retain the focused Solid lifecycle cutover while preserving the existing interaction contracts and shared layout batching.

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

No product defect is claimed; source comparison supports a behavior-preserving refactor, and no target code was executed during this review.

Is this the best way to solve the issue?

The change places lifecycle ownership directly under the Solid component, removes the superseded class and adapter, and retains the existing geometry and interaction rules.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned lifecycle cutover: The introduced diff deletes the controller, moves its behavior into createHoverMarquee, and replaces the component adapter with label and text refs; the test change only redirects a type import. (ui/src/lib/hover-marquee.ts:11, 26c0a1a4fe2c)
  • Current-main implementation: Fetched main still constructs HoverMarqueeController and owns its connect/disconnect adapter, so this refactor is not already implemented there. (ui/src/lib/solid/hover-marquee.tsx:12, 6871f81d89fb)
  • Boot-manifest review concern checked: The connector's manifest concern identifies a stale filename, but does not establish its claimed chunking regression: the existing Solid consumer remains listed, imports the replacement directly, and boot groups include dependencies recursively. No material boot-path regression was demonstrated. (ui/config/control-ui-chunking.ts:190, 26c0a1a4fe2c)
  • Behavioral coverage retained: Existing coverage exercises unseen-label deferral, batched geometry, zero-width recovery, content and direction changes, touch intent, reduced motion, and disposal followed by remount. (ui/src/lib/hover-marquee.browser.test.tsx:61, 26c0a1a4fe2c)
  • Exact-head CI: All nine UI E2E shards, both real-Gateway shards, all three UI test shards, and control-ui-performance report success for the reviewed head; the aggregate CI status remains pending. (26c0a1a4fe2c)
  • Feature ownership history: History across the controller, Solid consumer, original helper, and renamed test identifies Peter Steinberger's original marquee implementation and later migration/performance work, alongside Vyctor H. Brzezowski's fade, focus, RTL, and identity-name contributions. Older blob-dependent searches encountered an unavailable promisor object; introduction claims rely on readable commit records. (ui/src/lib/hover-marquee-controller.ts, 6871f81d89fb)

PR surface

Source -29, Tests 0. Total -29 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 191 220 -29
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 192 221 -29

Labels

Label changes:

  • add P3: This is a focused internal UI refactor with no intended user-visible behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused internal UI refactor with no intended user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 16, 2026, 12:25 AM ET / 04:25 UTC.

@steipete
steipete merged commit 25037ce into main Oct 16, 2026
95 checks passed
@steipete
steipete deleted the solid2/w-idiom-app-marquee branch October 16, 2026 06:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
* refactor(ui): own hover marquee lifecycle in Solid

* fix(ui): retain the measured marquee module path
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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