Skip to content

Fix a couple of UI bugs #8257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2025
Merged

Fix a couple of UI bugs #8257

merged 3 commits into from
Apr 24, 2025

Conversation

mtsgrd
Copy link
Contributor

@mtsgrd mtsgrd commented Apr 24, 2025


⧓ Review in Butler Review #0jjNM6pEA

Fix a couple of UI bugs

  • fixes broken context menu in header
  • fixes sticky highlight color from opening commit menu
  • simplifies opened state tracking

3 commit series (version 1)

Series Commit Title Status Reviewers
3/3 Fix a couple of UI bugs
2/3 Move some seleced state logic
1/3 Fix small type error

Please leave review feedback in the Butler Review

Copy link

vercel bot commented Apr 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 8:39pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gitbutler-web ⬜️ Skipped (Inspect) Apr 24, 2025 8:39pm

@vercel vercel bot temporarily deployed to Preview – gitbutler-web April 24, 2025 20:38 Inactive
@mtsgrd mtsgrd merged commit 4919dd0 into master Apr 24, 2025
19 checks passed
@mtsgrd mtsgrd deleted the selection-stuff branch April 24, 2025 20:41
{@const selected = selection?.current?.branchName === branchName}
{@const selected =
selection?.current?.branchName === branchName &&
selection?.current.commitId === undefined}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PavelLaptev just want to double check in case I made an incorrect change here. When a commit is selected, should the "branch" be selected or unselected?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, @mtsgrd!

A branch shouldn't be in the "selected" state if a commit is selected.
Branch selected while commit is selected

Only one thing should be selected within a branch card at a time.
Only one selection allowed

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.

2 participants