authorgravatar for 91240327+shivamhwp@users.noreply.github.comshivam <91240327+shivamhwp@users.noreply.github.com> 2026-09-12 04:51:26+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-11 20:21:26-03:00
log50791a0530a9c4eed7924dbfedf2fcf430d4ed98
tree812182d14c2c6f3c5d7368e022b792f41a57bc03
parent867eb9bffc1e46ce0f7493ae760f9eb9d9dec3a8
signature Signed by PGP key B5690EEEBB952194

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


1 files changed, 7 insertions(+), 9 deletions(-)

apps/web/src/components/GitActionsControl.tsx+7-9
......@@ -303,7 +303,7 @@ function getMenuActionDisabledReason({
303303
304304 if (item.id === "push") {
305305 if (!hasBranch) {
306 return "Detached HEAD: checkout a refName before pushing.";
306 return "Detached HEAD: check out a branch before pushing.";
307307 }
308308 if (hasChanges) {
309309 return "Commit or stash local changes before pushing.";
......@@ -324,7 +324,7 @@ function getMenuActionDisabledReason({
324324 return `View ${terminology.singular} is currently unavailable.`;
325325 }
326326 if (!hasBranch) {
327 return `Detached HEAD: checkout a refName before creating a ${terminology.singular}.`;
327 return `Detached HEAD: check out a branch before creating a ${terminology.singular}.`;
328328 }
329329 if (hasChanges) {
330330 return `Commit local changes before creating a ${terminology.singular}.`;
......@@ -1754,7 +1754,7 @@ export default function GitActionsControl({
17541754 ) : null}
17551755 {gitStatusForActions?.refName === null && (
17561756 <p className="px-2 py-1.5 text-xs text-warning">
1757 Detached HEAD: create and checkout a refName to enable push and pull request
1757 Detached HEAD: create and check out a branch to enable push and pull request
17581758 actions.
17591759 </p>
17601760 )}
......@@ -1799,9 +1799,7 @@ export default function GitActionsControl({
17991799 <span className="font-medium">
18001800 {gitStatusForActions?.refName ?? "(detached HEAD)"}
18011801 </span>
1802 {isDefaultRef && (
1803 <span className="text-right text-warning">Warning: default refName</span>
1804 )}
1802 {isDefaultRef && <span className="text-right text-warning">Default branch</span>}
18051803 </span>
18061804 </div>
18071805 <div className="space-y-1">
......@@ -1932,7 +1930,7 @@ export default function GitActionsControl({
19321930 disabled={noneSelected}
19331931 onClick={runDialogActionOnNewBranch}
19341932 >
1935 Commit on new refName
1933 Commit on new branch
19361934 </Button>
19371935 <Button size="sm" disabled={noneSelected} onClick={runDialogAction}>
19381936 Commit
......@@ -1960,7 +1958,7 @@ export default function GitActionsControl({
19601958 <DialogPopup className="max-w-xl">
19611959 <DialogHeader>
19621960 <DialogTitle>
1963 {pendingDefaultBranchActionCopy?.title ?? "Run action on default refName?"}
1961 {pendingDefaultBranchActionCopy?.title ?? "Run action on default branch?"}
19641962 </DialogTitle>
19651963 <DialogDescription>{pendingDefaultBranchActionCopy?.description}</DialogDescription>
19661964 </DialogHeader>
......@@ -1986,7 +1984,7 @@ export default function GitActionsControl({
19861984 size="sm"
19871985 onClick={checkoutFeatureBranchAndContinuePendingAction}
19881986 >
1989 Checkout feature branch & continue
1987 Check out feature branch & continue
19901988 </Button>
19911989 </DialogFooter>
19921990 </DialogPopup>