Skip to content

Add "show on hover" mode for navbar visibility#13

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/update-navbar-show-on-hover
Draft

Add "show on hover" mode for navbar visibility#13
Copilot wants to merge 4 commits intomasterfrom
copilot/update-navbar-show-on-hover

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 17, 2026

  • Understand the codebase and the issue
  • Install delta-move dependency
  • Update Constants.ts - default SHOW_FRAME to 'always', support 'hover' and 'never'
  • Update all locale files (en, de, es, fr, it, pt-BR, pt-PT, ru) with new option labels
  • Update ViewPropagator.ts - register before-mouse-event for mouse enter/leave detection
  • Update FrameService.ts - handle 'hover' mode with DeltaMove animations
  • Update Settings.js (preferences UI) - change from bool to select with backward compat
  • Run lint and build to verify changes - all pass
  • Run parallel validation - no security issues, addressed code review feedback
  • Fix: use mouseMove instead of mouseEnter for hover detection (mouseEnter not reliably fired by before-mouse-event)

Copilot AI and others added 2 commits April 17, 2026 22:07
…tion

- Change SHOW_FRAME setting from boolean to select with 'always', 'hover', 'never' options
- Add before-mouse-event listener in ViewPropagator for mouse enter/leave detection
- Implement navbar show/hide animation using DeltaMove library in FrameService
- Register before-mouse-event on navbar's webContents for hover tracking
- Add backward compatibility for legacy boolean SHOW_FRAME values
- Update all locale files (en, de, es, fr, it, pt-BR, pt-PT, ru) with new strings
- Update preferences Settings UI from bool to select input

Agent-Logs-Url: https://github.com/ECRomaneli/Handbook/sessions/51eed423-f5af-498b-83f6-556371f2839d

Co-authored-by: ECRomaneli <10746786+ECRomaneli@users.noreply.github.com>
…ethod

Address code review feedback:
- Extract NAVBAR_HIDE_DELAY_MS and NAVBAR_ANIMATION_DURATION_MS constants
- Add clearHoverTimeout() helper method

Agent-Logs-Url: https://github.com/ECRomaneli/Handbook/sessions/51eed423-f5af-498b-83f6-556371f2839d

Co-authored-by: ECRomaneli <10746786+ECRomaneli@users.noreply.github.com>
Copilot AI changed the title [WIP] Update showFrame functionality to show navbar on hover Add "show on hover" mode for navbar visibility Apr 17, 2026
Copilot AI requested a review from ECRomaneli April 17, 2026 22:11
Copy link
Copy Markdown
Owner

@ECRomaneli ECRomaneli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The navbar is not being shown when the mouseenter

The before-mouse-event in Electron does not reliably fire mouseEnter.
Use mouseMove to detect cursor presence (matching electron-draggable's
approach) with existing navbarVisible guard preventing repeated triggers.

Agent-Logs-Url: https://github.com/ECRomaneli/Handbook/sessions/b4344d7d-0123-4b22-a772-4bd0c807f359

Co-authored-by: ECRomaneli <10746786+ECRomaneli@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Apr 17, 2026

The navbar is not being shown when the mouseenter

Fixed in 6613143. The before-mouse-event doesn't reliably fire mouseEnterelectron-draggable itself only uses mouseDown, mouseMove, and mouseLeave. Changed both ViewPropagator and FrameService to detect cursor presence via mouseMove instead, with the existing navbarVisible guard preventing repeated triggers.

Copilot AI requested a review from ECRomaneli April 17, 2026 22:20
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