Skip to content

refactor(desktop): enhance project tile interaction with suppress hover functionality#15214

Merged
adamdotdevin merged 4 commits intoanomalyco:devfrom
OpeOginni:feat/easier-sidebar-control
Feb 26, 2026
Merged

refactor(desktop): enhance project tile interaction with suppress hover functionality#15214
adamdotdevin merged 4 commits intoanomalyco:devfrom
OpeOginni:feat/easier-sidebar-control

Conversation

@OpeOginni
Copy link
Contributor

@OpeOginni OpeOginni commented Feb 26, 2026

Issue for this PR

Closes #15213

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Updated the Project Tile onMouseDown logic making sure that the sidebar gets toggled if the project tile being clicked is the current active one.
Added a suppressHover state to prevent the hover sidebar from triggering after your toggle off because your mouse does remain on the tile.
Refactored the store management for menu and open to one store for better style and state handling based on previous reviews given to me by @adamdotdevin

Also prevents duplicate infor for HoverCard showing when we already have the sidebar for that active project showing.

  • Introduced suppressHover state to manage hover behavior during project tile interactions.
  • Updated event handlers to conditionally suppress hover effects based on the sidebar's open state.
  • Refactored state management for project tile visibility and menu interactions using createStore for better state handling.

How did you verify your code works?

Tested on my local machine using the dev tauri instance

Screenshots / recordings

BEFORE:

Screen.Recording.2026-02-26.at.14.19.51.mov

AFTER:

Screen.Recording.2026-02-26.at.14.20.32.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

…er functionality

- Introduced `suppressHover` state to manage hover behavior during project tile interactions.
- Updated event handlers to conditionally suppress hover effects based on the sidebar's open state.
- Refactored state management for project tile visibility and menu interactions using `createStore` for better state handling.
@OpeOginni
Copy link
Contributor Author

Seems to be a double dialog showing, on hover on this new solution, looking into it

@OpeOginni
Copy link
Contributor Author

OpeOginni commented Feb 26, 2026

Smoother View after update

Screen.Recording.2026-02-26.at.14.42.43.mov

@adamdotdevin adamdotdevin merged commit 5745ee8 into anomalyco:dev Feb 26, 2026
11 checks passed
github-actions bot pushed a commit to chrn11/opencode that referenced this pull request Feb 26, 2026
figloalds pushed a commit to figloalds/opencode that referenced this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Toggling of Project Sidebar by clicking an already active Project

2 participants