Skip to content

Conversation

estib-vega
Copy link
Contributor

Ability to move branch on top of each other in order to stack them

ezgif-1b9b0be8de06c6.gif

Add an API to move branches between stacks
Add some cool e2e tests to make sure this whole moving branch works
Copy link

vercel bot commented Sep 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
gitbutler-web Ignored Ignored Preview Sep 18, 2025 3:31pm

@github-actions github-actions bot added rust Pull requests that update Rust code @gitbutler/desktop @gitbutler/ui labels Sep 18, 2025
Comment on lines +250 to +254
function createBranchElement(label: string | undefined): HTMLDivElement {
const cardEl = createElement('div', ['draggable-branch-card', 'text-15', 'text-bold'], label);

return cardEl;
}
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 This is creating the basic branch header drag chip

Comment on lines +57 to +62
&:not(.hovered).advertize {
& .indicator {
background-color: var(--clr-theme-pop-soft-hover);
}
}
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 I also created this optional class that just lights up, so that it's easier to discover where you can drop a branch. But probably this could be prettier

@krlvi
Copy link
Member

krlvi commented Sep 18, 2025

oh exciting new func

@estib-vega estib-vega merged commit d577ad9 into master Sep 29, 2025
20 checks passed
@estib-vega estib-vega deleted the move-branch branch September 29, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@gitbutler/desktop @gitbutler/ui rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants