Skip to content

Leave the indicator peek shut while hovering right of the clock - #16293

Merged
dhh merged 2 commits into
quattrofrom
worktree-bar-peek-left-of-clock
Oct 22, 2026
Merged

dhh merged 2 commits into
quattrofrom
worktree-bar-peek-left-of-clock

Conversation

@dhh

@dhh dhh commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

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) and test/shell.d/runtime-smoke-test.sh pass. Reviewed with Codex, no findings. The hover itself was not exercised in a live session.

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[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

  1. P2 Live hover check is missing ▶

Summary

The PR limits indicator peeking to the stretch of bar before the center box ends.

  • The indicator peek opens only up to the center box’s end.

Reviews (2) · Last reviewed commit: "Hold the indicator peek's edge still whi..." · Reviewed by Greptile

Comment thread shell/plugins/bar/Bar.qml Resolved
Comment thread test/shell.d/bar-test.sh Resolved
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]>
@dhh
dhh merged commit 331fa3d into quattro Oct 22, 2026
2 checks passed
@dhh
dhh deleted the worktree-bar-peek-left-of-clock branch October 22, 2026 15:04
Comment thread shell/plugins/bar/Bar.qml
// 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)

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.

P2 Live hover check is missing

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!

omarchybot added a commit to sprajs/omarchy that referenced this pull request Oct 22, 2026
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]>
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants