Skip to content

Commit 7ff83f7

Browse files
authored
Merge pull request #13243 from gitbutlerapp/pl-branch-8
feat(ui): Reword copy for commit staging behavior
2 parents 4d8fc18 + 04df2f5 commit 7ff83f7

1 file changed

Lines changed: 30 additions & 9 deletions

File tree

apps/desktop/src/components/settings/LanesAndBranchesSettings.svelte

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
type StagingBehavior,
77
} from "$lib/config/uiFeatureFlags";
88
import { persisted } from "@gitbutler/shared/persisted";
9-
import { CardGroup, RadioButton, Toggle } from "@gitbutler/ui";
9+
import { CardGroup, RadioButton, Toggle, Spacer } from "@gitbutler/ui";
1010
1111
const addToLeftmost = persisted<boolean>(false, "branch-placement-leftmost");
1212
function onStagingBehaviorFormChange(form: HTMLFormElement) {
@@ -69,15 +69,36 @@
6969
</CardGroup.Item>
7070
</CardGroup>
7171

72+
<Spacer />
73+
74+
<div class="stack-v gap-8">
75+
<h2 class="text-15 text-bold">Commit staging behavior</h2>
76+
<p class="text-12 text-body clr-text-2">
77+
Controls which files are pre-selected when opening the staging view.
78+
<br />
79+
You can always change the selection manually.
80+
</p>
81+
</div>
82+
7283
<CardGroup>
7384
<form class="stack-v" onchange={(e) => onStagingBehaviorFormChange(e.currentTarget)}>
85+
<!-- <CardGroup.Item>
86+
{#snippet title()}
87+
Commit staging behavior
88+
{/snippet}
89+
{#snippet caption()}
90+
Choose how files are pre-selected when you open the staging view for a branch. This only
91+
affects the default selection - you can always manually change which files are included in
92+
the commit.
93+
{/snippet}
94+
</CardGroup.Item> -->
7495
<CardGroup.Item labelFor="stage-all">
7596
{#snippet title()}
76-
All assigned files
97+
Auto-select all assigned files
7798
{/snippet}
7899
{#snippet caption()}
79-
Select all files assigned to this branch. If none are assigned, select all unassigned files
80-
instead.
100+
Pre-selects all files assigned to this branch. Falls back to unassigned files if none are
101+
assigned.
81102
{/snippet}
82103
{#snippet actions()}
83104
<RadioButton
@@ -91,11 +112,11 @@
91112

92113
<CardGroup.Item labelFor="stage-selection">
93114
{#snippet title()}
94-
Only selected files
115+
Auto-select only your picked files
95116
{/snippet}
96117
{#snippet caption()}
97-
Only include files you've already selected. If nothing is selected, falls back to all
98-
assigned files, then all unassigned files.
118+
Pre-selects only the files you have already picked. Falls back to assigned files, then
119+
unassigned, if nothing is picked.
99120
{/snippet}
100121
{#snippet actions()}
101122
<RadioButton
@@ -109,10 +130,10 @@
109130

110131
<CardGroup.Item labelFor="stage-none">
111132
{#snippet title()}
112-
Manual selection
133+
No auto-selection
113134
{/snippet}
114135
{#snippet caption()}
115-
Don't auto-select any files. You choose what to commit each time.
136+
Nothing is pre-selected. You manually pick what to include in each commit.
116137
{/snippet}
117138
{#snippet actions()}
118139
<RadioButton

0 commit comments

Comments
 (0)