Skip to content

Conversation

@jnarowski
Copy link
Owner

  • Added checkout button next to branch name in workflow run details tab
  • Button leverages existing git infrastructure (POST /api/git/branch/switch endpoint)
  • Auto-commits any uncommitted changes before switching branches
  • Displays loading spinner during checkout and success checkmark after completion

Key Files:

  • apps/app/src/client/pages/projects/workflows/components/detail-panel/DetailsTab.tsx

Implementation:

  • Reuses existing useSwitchBranch mutation hook
  • Matches copy button UI pattern (ghost variant, icon-sm size)
  • Proper guard clauses prevent errors when project data unavailable
  • Success feedback with 2s timeout provides good UX

@vercel
Copy link
Contributor

vercel bot commented Nov 30, 2025

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

Project Deployment Preview Comments Updated (UTC)
agentcmd-website Ready Ready Preview Comment Nov 30, 2025 5:40pm

@jnarowski jnarowski merged commit 80c4223 into main Nov 30, 2025
2 of 3 checks passed
@jnarowski jnarowski deleted the feature/add-branch-checkout-button branch December 1, 2025 15:57
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.

3 participants