Repository navigation
refactor(ui): own hover marquee lifecycle in Solid - #173778
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed Solid cleanup removes lifecycle plumbing without a definite introduced regression. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherSidebar 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
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -29, Tests 0. Total -29 across 4 files. Added test files: 0. View PR surface stats
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 October 16, 2026, 12:25 AM ET / 04:25 UTC. |
|
Merged via squash.
|
* refactor(ui): own hover marquee lifecycle in Solid * fix(ui): retain the measured marquee module path
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
HoverMarqueeControllerwith an ownedcreateHoverMarqueefunction. 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
hover-marquee.test.tsx, one workerpnpm tsgo:uici:full; existing browser lifecycle tests run in CIAcross the old/new geometry owner and its Solid consumer:
createEffectcallsuntrackcallsaddEventListenercallsEvery 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.