rename Trunk to Target in the UI

As it is more descriptive what it is. Added a tooltip for a good measure
This commit is contained in:
Kiril Videlov 2024-07-27 19:26:45 +02:00
parent f064e31d3a
commit a7579915f7
No known key found for this signature in database
GPG Key ID: A4C733025427C471
4 changed files with 10 additions and 7 deletions

View File

@ -81,7 +81,7 @@
<div class="project-setup">
<div class="project-setup__info">
<ProjectNameLabel {projectName} />
<h3 class="text-base-body-14 text-bold">Target trunk branch</h3>
<h3 class="text-base-body-14 text-bold">Target branch</h3>
</div>
<div class="project-setup__fields">

View File

@ -21,7 +21,7 @@
</script>
<button
use:tooltip={isNavCollapsed ? 'Trunk' : ''}
use:tooltip={isNavCollapsed ? 'Target' : ''}
on:mousedown={async () => await goto(`/${project.id}/base`)}
class="base-branch-card"
class:selected
@ -39,7 +39,10 @@
{#if !isNavCollapsed}
<div class="content">
<div class="button-head">
<span class="text-base-14 text-semibold trunk-label">Trunk</span>
<span
use:tooltip={'The branch that your Workspace virtual branches are based on and will be merged into.'}
class="text-base-14 text-semibold trunk-label">Target</span
>
{#if ($base?.behind || 0) > 0}
<Badge count={$base?.behind || 0} help="Unmerged upstream commits" />
{/if}

View File

@ -228,8 +228,8 @@
<SectionCard orientation="row" labelFor="allowForcePush">
<svelte:fragment slot="title">Allow force pushing</svelte:fragment>
<svelte:fragment slot="caption">
Force pushing allows GitButler to override branches even if they were pushed to remote. We
will never force push to the trunk.
Force pushing allows GitButler to override branches even if they were pushed to remote.
GitButler will never force push to the target branch.
</svelte:fragment>
<svelte:fragment slot="actions">
<Toggle

View File

@ -15,8 +15,8 @@
<SectionCard labelFor="baseBranchSwitching" orientation="row">
<svelte:fragment slot="title">Switching the target branch</svelte:fragment>
<svelte:fragment slot="caption">
This allows changing of the target branch (trunk) after the initial project setup from within
the project settings. Not fully tested yet, use with caution.
This allows changing of the target branch after the initial project setup from within the
project settings. Not fully tested yet, use with caution.
</svelte:fragment>
<svelte:fragment slot="actions">
<Toggle