Skip to content

fix(rail): a rail row lifts under the pointer like a listing row - #230

Closed
alextakitani wants to merge 1 commit into
thisisgm:mainfrom
alextakitani:rail-row-hover
Closed

alextakitani wants to merge 1 commit into
thisisgm:mainfrom
alextakitani:rail-row-hover

Conversation

@alextakitani

@alextakitani alextakitani commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

What changes

The listing rows take Style.hoverFill under the pointer; the rail rows took nothing, so the two panes answered the same gesture differently. A rail row (ui/SidebarRow.qml) now carries its own HoverHandler and the same fill.

  • The cursor row keeps its selection fill, which wins over the hover.
  • Over the eject mark the row keeps the mark's own wash alone (the existing 8% washHover rung) rather than stacking the two.

Tests

  • tools/flea-qmllint-gate: 0 regressions. tools/flea-file-budget: ok (ui/SidebarRow.qml 288 lines, under the cap).
  • Tested by hand at the real window with FLEA_UI pointed at this checkout: Places, Favorites, Network and Devices rows all lift under the pointer, the cursor row keeps its fill.
  • No tests/ui.sh case: the IPC seam reports no rail hover state, and omarchy-drive is not on this machine to drive one.

Summary by CodeRabbit

  • Style
    • Sidebar rows now display a hover highlight, except when the eject mark is hovered. Existing cursor highlighting remains unchanged.

The listing rows take Style.hoverFill under the pointer and the rail rows
took nothing, so the two panes answered the same gesture differently. A
rail row now carries its own HoverHandler and the same fill. The cursor
row keeps its selection fill, which wins, and over the eject mark the
row keeps the mark's own wash alone rather than stacking the two.
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 411e438b-1c9f-4a48-a2e5-4c653c8738fe

📥 Commits

Reviewing files that changed from the base of the PR and between 98404bc and 17d7e5a.

📒 Files selected for processing (1)
  • ui/SidebarRow.qml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

The sidebar row background uses Style.hoverFill while the row is hovered, except when the eject mark is hovered. Cursor-state fills retain precedence.

Changes

Sidebar row hover

Layer / File(s) Summary
Row hover fill
ui/SidebarRow.qml
A HoverHandler tracks row hover. The background uses Style.hoverFill unless the eject mark is hovered, while cursor-state fills remain unchanged.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: thisisgm

Merge Risk: ⚪ Minimal · up to 17d7e

Rows now show the intended hover feedback while preserving cursor selection and eject-mark presentation; no concrete merge-blocking risk remains.

Architecture Summary

Architecture risk: 🔵 Low · up to 17d7e

The change affects 1 system.

Changed systems: ui

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — ui (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in ui/SidebarRow.qml: The row background now shows Style.hoverFill on pointer hover unless the eject mark is hovered; cursor-state fills remain unchanged. A HoverHandler tracks row hover, and the comment documents the eject-mark exception.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: rail rows now respond to pointer hover like listing rows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thisisgm

thisisgm commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Closing unmerged: v0.4.1 already lifts the rail row under the pointer, and the wash is moving under Settings > View > Highlight on hover (off by default) so the rail and the list answer the pointer alike.

@thisisgm thisisgm closed this Nov 9, 2026
@thisisgm

Copy link
Copy Markdown
Owner

Your rail hover landed, reimplemented in the GPUI frontend: Highlight on hover now covers sidebar, breadcrumb and share rows, off by default, in f98c71b (v0.4.2). Thanks @alextakitani! https://github.com/thisisgm/flea/releases/tag/v0.4.2

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