lint fix and formatted
linter / quality (push) Successful in 1m20s
tests / ci (8.4) (push) Successful in 1m20s

This commit is contained in:
2026-04-11 16:37:58 +02:00
parent 23a66852a6
commit e5d11c940b
38 changed files with 339 additions and 261 deletions
+45 -17
View File
@@ -41,7 +41,7 @@ const breadcrumbItems: BreadcrumbItem[] = [
title="Git connections"
description="Add your personal Git provider credentials here. Project repository links will use these connections to fetch repositories, branches, and pull requests you can access."
/>
<p class="text-sm text-muted-foreground">
<p class="text-muted-foreground text-sm">
Each user needs their own application key. Without a
matching personal connection, KanbanGit can only show
repository names and will link you back to this page.
@@ -71,7 +71,11 @@ const breadcrumbItems: BreadcrumbItem[] = [
class="space-y-4"
v-slot="{ errors, processing }"
>
<input name="provider" type="hidden" value="gitea" />
<input
name="provider"
type="hidden"
value="gitea"
/>
<div class="grid gap-2">
<Label for="base_url">Gitea base URL</Label>
@@ -87,7 +91,9 @@ const breadcrumbItems: BreadcrumbItem[] = [
</div>
<div class="grid gap-2">
<Label for="api_token">Application token</Label>
<Label for="api_token"
>Application token</Label
>
<Input
id="api_token"
name="api_token"
@@ -117,7 +123,7 @@ const breadcrumbItems: BreadcrumbItem[] = [
<CardContent class="space-y-4 p-6">
<div
v-if="gitConnections.length === 0"
class="rounded-xl border border-dashed border-border px-4 py-6 text-sm text-muted-foreground"
class="border-border text-muted-foreground rounded-xl border border-dashed px-4 py-6 text-sm"
>
No Git connections have been added yet.
</div>
@@ -125,30 +131,40 @@ const breadcrumbItems: BreadcrumbItem[] = [
<div
v-for="gitConnection in gitConnections"
:key="gitConnection.id"
class="rounded-xl border border-border p-4"
class="border-border rounded-xl border p-4"
>
<div
class="mb-4 flex flex-wrap items-start justify-between gap-3"
>
<div class="space-y-1">
<div class="flex flex-wrap items-center gap-2">
<Badge>{{ gitConnection.provider_label }}</Badge>
<div
class="flex flex-wrap items-center gap-2"
>
<Badge>{{
gitConnection.provider_label
}}</Badge>
<span class="text-sm font-medium">
{{ gitConnection.account_login }}
{{
gitConnection.account_login
}}
</span>
</div>
<p class="text-sm text-muted-foreground">
<p
class="text-muted-foreground text-sm"
>
{{
gitConnection.account_name ??
'Unnamed remote account'
}}
</p>
<p class="text-xs text-muted-foreground">
<p
class="text-muted-foreground text-xs"
>
{{ gitConnection.base_url }}
</p>
</div>
<p class="text-xs text-muted-foreground">
<p class="text-muted-foreground text-xs">
Remote user ID:
{{ gitConnection.provider_user_id }}
</p>
@@ -170,21 +186,29 @@ const breadcrumbItems: BreadcrumbItem[] = [
/>
<div class="grid gap-2">
<Label :for="`base-url-${gitConnection.id}`">
<Label
:for="`base-url-${gitConnection.id}`"
>
Gitea base URL
</Label>
<Input
:id="`base-url-${gitConnection.id}`"
name="base_url"
type="url"
:default-value="gitConnection.base_url"
:default-value="
gitConnection.base_url
"
required
/>
<InputError :message="errors.base_url" />
<InputError
:message="errors.base_url"
/>
</div>
<div class="grid gap-2">
<Label :for="`token-${gitConnection.id}`">
<Label
:for="`token-${gitConnection.id}`"
>
New application token
</Label>
<Input
@@ -194,10 +218,14 @@ const breadcrumbItems: BreadcrumbItem[] = [
required
placeholder="Paste a new token to verify and save"
/>
<InputError :message="errors.api_token" />
<InputError
:message="errors.api_token"
/>
</div>
<div class="flex flex-wrap justify-between gap-3">
<div
class="flex flex-wrap justify-between gap-3"
>
<Button
type="submit"
variant="outline"