refactor(desktop): enhance project tile interaction with suppress hover functionality#15214
Merged
adamdotdevin merged 4 commits intoanomalyco:devfrom Feb 26, 2026
Merged
Conversation
…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.
Contributor
Author
|
Seems to be a double dialog showing, on hover on this new solution, looking into it |
…ement for hover card and temp sidebar
Contributor
Author
|
Smoother View after update Screen.Recording.2026-02-26.at.14.42.43.mov |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #15213
Type of change
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
suppressHoverstate to prevent the hover sidebar from triggering after your toggle off because your mouse does remain on the tile.Refactored the store management for
menuandopento one store for better style and state handling based on previous reviews given to me by @adamdotdevinAlso prevents duplicate infor for HoverCard showing when we already have the sidebar for that active project showing.
suppressHoverstate to manage hover behavior during project tile interactions.createStorefor 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