Skip to content

fix(task-title-bar): show merge target branch in button tooltip#144

Merged
johannesjo merged 2 commits into
johannesjo:mainfrom
FourWindff:fix/merge-button-target-tooltip
May 26, 2026
Merged

fix(task-title-bar): show merge target branch in button tooltip#144
johannesjo merged 2 commits into
johannesjo:mainfrom
FourWindff:fix/merge-button-target-tooltip

Conversation

@FourWindff
Copy link
Copy Markdown
Contributor

@FourWindff FourWindff commented May 25, 2026

Summary

Show the actual merge target branch (from task.baseBranch) in the merge button tooltip, instead of hardcoding "main".

Changes

  • Extract getMergeButtonTitle() helper in TaskTitleBar.tsx
  • Tooltip now displays Merge into ${baseBranch} with fallback to "main"

FourWindff and others added 2 commits May 25, 2026 12:34
The merge button tooltip in TaskTitleBar previously hardcoded "Merge into
main" and the initial fix replaced it with a fallback to 'main' when
task.baseBranch was undefined — but MergeDialog resolves the target
differently (task.baseBranch ?? mergeStatus.base_branch ?? 'main'), so
the tooltip could silently disagree with the dialog. Instead, only name
the target when we actually know it.

ResultsScreen had the same hardcoded "Merge into main" label on the
arena merge button, but that flow calls MergeTask without baseBranch and
the handler auto-detects the project's main branch (could be master,
develop, etc.). Dropping the misleading suffix here too.

Also inline the helper — single call site, KISS.
@johannesjo
Copy link
Copy Markdown
Owner

Thank you very much! <3

@johannesjo johannesjo merged commit c276062 into johannesjo:main May 26, 2026
2 checks passed
@FourWindff FourWindff deleted the fix/merge-button-target-tooltip branch May 26, 2026 14:15
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.

2 participants