fix(web): use branch wording in commit dialogs (#11281)

This commit is contained in:
shivam authored and GitHub committed 2026-09-11 20:21:26 -03:00
1 parent 867eb9bffc
commit 50791a0530
1 file changed
+7 -9
@@ -303,7 +303,7 @@ function getMenuActionDisabledReason({
if (item.id === "push") {
if (!hasBranch) {
return "Detached HEAD: checkout a refName before pushing.";
return "Detached HEAD: check out a branch before pushing.";
}
if (hasChanges) {
return "Commit or stash local changes before pushing.";
@@ -324,7 +324,7 @@ function getMenuActionDisabledReason({
return `View ${terminology.singular} is currently unavailable.`;
}
if (!hasBranch) {
return `Detached HEAD: checkout a refName before creating a ${terminology.singular}.`;
return `Detached HEAD: check out a branch before creating a ${terminology.singular}.`;
}
if (hasChanges) {
return `Commit local changes before creating a ${terminology.singular}.`;
@@ -1754,7 +1754,7 @@ export default function GitActionsControl({
) : null}
{gitStatusForActions?.refName === null && (
<p className="px-2 py-1.5 text-xs text-warning">
Detached HEAD: create and checkout a refName to enable push and pull request
Detached HEAD: create and check out a branch to enable push and pull request
actions.
</p>
)}
@@ -1799,9 +1799,7 @@ export default function GitActionsControl({
<span className="font-medium">
{gitStatusForActions?.refName ?? "(detached HEAD)"}
</span>
{isDefaultRef && (
<span className="text-right text-warning">Warning: default refName</span>
)}
{isDefaultRef && <span className="text-right text-warning">Default branch</span>}
</span>
</div>
<div className="space-y-1">
@@ -1932,7 +1930,7 @@ export default function GitActionsControl({
disabled={noneSelected}
onClick={runDialogActionOnNewBranch}
>
Commit on new refName
Commit on new branch
</Button>
<Button size="sm" disabled={noneSelected} onClick={runDialogAction}>
Commit
@@ -1960,7 +1958,7 @@ export default function GitActionsControl({
<DialogPopup className="max-w-xl">
<DialogHeader>
<DialogTitle>
{pendingDefaultBranchActionCopy?.title ?? "Run action on default refName?"}
{pendingDefaultBranchActionCopy?.title ?? "Run action on default branch?"}
</DialogTitle>
<DialogDescription>{pendingDefaultBranchActionCopy?.description}</DialogDescription>
</DialogHeader>
@@ -1986,7 +1984,7 @@ export default function GitActionsControl({
size="sm"
onClick={checkoutFeatureBranchAndContinuePendingAction}
>
Checkout feature branch & continue
Check out feature branch & continue
</Button>
</DialogFooter>
</DialogPopup>