fix(ui): connections copy states the field, not the model

Drop the sentence explaining that the credential is a reference and that an
identity with no entry is not granted: both lectured at the operator instead of
labelling the field. The external account needs no hint, the forge type keeps
one line saying where the value comes from, and the identity button reads the
way the credential-grants control already does.
This commit is contained in:
sam committed 2026-10-17 03:25:30 +11:00
1 parent 0c2033c94a
commit 0efd750dc1
3 files changed
+81 -88

No files matched your search

+9 -14
View File
@@ -52,7 +52,7 @@ const props = defineProps<{ connection: Connection; index: number }>();
v-model="props.connection.type"
class="max-w-56 font-mono"
/>
<span class="text-xs text-fg-subtle">An installed forge extension of this name.</span>
<span class="text-xs text-fg-subtle">An installed, enabled forge extension.</span>
</div>
</SettingRow>
<SettingRow label="Host" :for="`connection-${props.index}-host`">
@@ -67,17 +67,12 @@ const props = defineProps<{ connection: Connection; index: number }>();
</div>
</SettingRow>
<SettingRow label="External account">
<div class="flex flex-wrap items-center gap-3">
<Input
v-model="props.connection.account"
class="max-w-56 font-mono"
placeholder="acme-bot"
aria-label="External account"
/>
<span class="text-xs text-fg-subtle">
The account the credential belongs to. Commits may be authored as someone else.
</span>
</div>
<Input
v-model="props.connection.account"
class="max-w-56 font-mono"
placeholder="acme-bot"
aria-label="External account"
/>
</SettingRow>
<SettingRow label="Credential">
<SecretRefField v-model="props.connection.token" :id-prefix="`connection-${props.index}-token`" />
@@ -96,7 +91,7 @@ const props = defineProps<{ connection: Connection; index: number }>();
:model-value="identity"
class="max-w-72 font-mono"
list="connection-identities"
placeholder="execution identity"
placeholder="Identity"
:aria-label="`Permitted identity for ${props.connection.id}`"
@change="renamePermit(props.connection, identity, ($event.target as HTMLInputElement).value.trim())"
/>
@@ -117,7 +112,7 @@ const props = defineProps<{ connection: Connection; index: number }>();
</Button>
</div>
<Button variant="outline" size="sm" @click="addPermit(props.connection)">
<Plus data-icon="inline-start" />Permit an identity
<Plus data-icon="inline-start" />Add identity
</Button>
</div>
</SettingRow>
+1 -3
View File
@@ -78,9 +78,7 @@ function addConnection() {
<span v-if="unsaved" class="text-xs text-muted-foreground">Save the current changes first.</span>
</div>
<p v-if="!connections.length" class="text-sm text-fg-subtle">
No connections yet. Add one to clone a private repository.
</p>
<p v-if="!connections.length" class="text-sm text-fg-muted">No connections.</p>
<CardAccordion
v-model:open="open"