Repository navigation
fix(desk): no hover preview or tooltip opens by itself on a new page (15.4.1) - #326
Conversation
…(15.4.1) - Focus that a redraw restores goes only to the same control (all its data- attributes match), and quietly: it opens no preview. Before, a click on a card moved focus to the first control with the same first data- attribute (the #N chip of the new page) and its preview opened. - After a click, a preview waits until the pointer moves: the page draws anew under a still pointer. - The pointer on a kept page's frame shows no tooltip: the frame's title is for screen readers.
There was a problem hiding this comment.
🛡️ Code Guardian - Code guardian repo — c5269cd
PR #326: fix(desk): no hover preview or tooltip opens by itself on a new page (15.4.1)
Author: xjacka | Branch: fix/desk-stray-hover-dialogs → main | Changes: +20 −8 (3 files)
Summary
The Desk page now opens no preview and no tooltip by itself after a click. Focus restore matches the whole control and stays quiet.
Limits: 3 skill(s) did not run: issue-fit, typescript-engineering, react-ui-engineering.
Findings
- 🟡 Warning: a tooltip still opens by itself after a redraw —
scripts/desk/page.html:3178 - ✅ Looks good: the focus restore matches all data- attributes, and every focusable control keeps them stable.
Human Review Guide
📊 Visual guide for the human reviewer — accept the focus and touch compromises, and check every hover dialog reads the gate (about 15 min)
Documentation Check (doc-drift)
✅ No findings.
Agent Engineering
✅ No findings.
Verdict
COMMENT — one 🟡 stays open: the tooltip guard covers only a frame, not a redraw.
Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi
| } | ||
| const tipTarget = (e) => e.target.closest?.("[data-tip], [title]"); | ||
| // A frame's title names it for a screen reader; the pointer resting on a kept page shows no tip. | ||
| const tipTarget = (e) => { const el = e.target.closest?.("[data-tip], [title]"); return el?.tagName === "IFRAME" ? null : el; }; |
There was a problem hiding this comment.
The guard added here refuses only a frame. A tooltip opens after a redraw under a still pointer, which is the defect this PR fixes for previews.
The click handler sets peekArmed = false, and the preview handler reads it. The tooltip handler below does not. A click on a control that the page draws again under the pointer, such as a nav tab with a title, gives a repeated mouseover with no pointer move. That event starts the 500 ms timer of line 3179, and the tooltip then opens by itself. The person sees the dialog that the PR removes.
Fix: every hover dialog opens only on a real pointer move: read the same movement gate in the tooltip mouseover handler that the preview handler reads.
One gate (hoverArmed) holds both hover dialogs. The tooltip mouseover reads it, and the first real move after a click opens the preview or the tooltip under the pointer.
Checks: the review's |
There was a problem hiding this comment.
🛡️ Code Guardian - Code guardian repo — ✅ Code Review @ d86b235
PR #326: fix(desk): no hover preview or tooltip opens by itself on a new page (15.4.1)
Author: xjacka | Branch: fix/desk-stray-hover-dialogs → main | Changes: +26 −9 (3 files)
Summary
One gate, hoverArmed, now holds the preview and the tooltip after a click. The focus restore matches all data- attributes of the control and stays quiet.
Limits: 4 skill(s) did not run: issue-fit, typescript-engineering, react-ui-engineering, agent-engineering.
Changes since last review
Previous HEAD: c5269cd (2026-12-03T13:46:09Z) — verdict COMMENT
- ✅ Fixed: tooltip still opens by itself after a redraw (
scripts/desk/page.html:3178) - 🆕 New: focus restore still opens a tooltip for a keyboard user (
scripts/desk/page.html:3186)
Findings
- 🟢 Suggestion: The hover gate covers the mouse only. A redraw restores focus for a keyboard user, and the tooltip handler opens a tooltip with no input. The preview handler reads
focusQuiet, and the tooltip handler does not (scripts/desk/page.html:3186).
Human Review Guide
📊 Visual guide for the human reviewer — accept one closed hover gate for mouse, keyboard and touch (about 12 min)
Documentation Check (doc-drift)
✅ No findings.
Verdict
APPROVE — the prior 🟡 is fixed, the hover gate holds, and no blocking finding stays.
Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi
What and why
On the Desk, a hover preview or a tooltip opened by itself on a page that a click had just opened. A click on the review guide card opened the guide, and the preview of the
#Nchip in the new heading stayed open. The pointer on the kept guide frame showed a "Review guide" tooltip. This change stops both.Reviewer guide
data-attributes of the control, not only the first one. Before, focus went to an unrelated control with the same first attribute (data-goto="prs"). The alternative was to drop focus restore; the change keeps it for list rows and buttons.data-tipis left out of the match, because it comes fromtitleonly after the draw. (open)mouseoverwith no move. One gate holds both dialogs. The first real move opens the dialog under the pointer. Keyboard focus still opens a dialog at once.titlestays for screen readers. (open)keepFocusinscripts/desk/page.html: a control whose otherdata-attribute changes between draws now loses focus after a redraw.mousemovegate: a touch tap fires no move withmovementX/movementY, so after the first tap a tap shows no preview or tooltip. A tap opens the item, so the dialog has no use there.Scope
scripts/desk/page.html— focus restore, the hover gate of the preview and the tooltip, the tooltip target.VERSION15.4.1 and itsCHANGELOG.mdentry: publish a revision of the Desk page.Issue
No issue tracks this change. It came up while recording a product video of the review guide on the Desk.
Testing
scripts/tests/docker.sh scripts/tests/test_desk.shran. The test skipped its checks: the container has no Node.node --checkon the page's inline script: passes.#7055preview open.