Repository navigation
Leave the indicator peek shut while hovering right of the clock - #16293
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
[Medium impact] The change affects indicator-peek behavior across the desktop bar. The code addresses both previous findings, but the required live hover check must be completed before merging. Findings
SummaryThe PR limits indicator peeking to the stretch of bar before the center box ends.
Reviews (2) · Last reviewed commit: "Hold the indicator peek's edge still whi..." · Reviewed by Greptile |
Beside a display notch, indicators right of the clock pull the center box's end toward the start as they reveal, which closed the peek under a still pointer and reopened it in a loop. Move the hover rule into BarModel so the bar test exercises it at both sides of the edge. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| // hover to the section the pointer entered. | ||
| HoverHandler { | ||
| onHoveredChanged: root.setBarHovered(hovered) | ||
| readonly property bool peeking: hovered && BarModel.peeksAt(point.position, barWindow.peekEdge, root.vertical) |
There was a problem hiding this comment.
The changed hover behavior has not been checked in the running UI, as the PR description confirms. AGENTS.md requires visual changes to be verified there in addition to automated tests. Exercise both sides of the clock, the vertical bar, and the notch placement; record and inspect the hover transitions. This repository requirement must be satisfied before merging.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
quattro now opens the peek only short of the center box's end (omacom#16293) and holds that edge still while the peek is open. This branch moved the hover tally and the hold onto each bar surface, so the merged hover handler feeds its surface's BarRevealState, and the center sections hold the edge on their own surface's reveal. Reading root.centerSectionRevealHeld, which this branch removes, would leave the edge unheld and bring back the open-close loop beside a notch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex Medium <[email protected]> Co-Authored-By: Muse <[email protected]>
Hovering the panel icons, or anything right of the clock, no longer reveals the hidden indicators. The peek still opens anywhere from the bar's start up to the end of the center box.
Each bar surface learns where its center box ends (
peekEdge, set by the drawn center sections, including the notch's beside-right placement), and the whole-bar hover only opens the peek while the pointer is short of that edge. The reveal grows the indicators away from the clock, so the edge never moves under the pointer and the open/close loop the whole-bar hover guarded against can't come back. Vertical bars use the same rule along y.Tests:
test/shell.d/bar-test.sh(assertions updated for the new handler) andtest/shell.d/runtime-smoke-test.shpass. Reviewed with Codex, no findings. The hover itself was not exercised in a live session.🤖 Generated with Claude Code