Skip to content

Modern Docker Management, Designed for Everyone

chore: add shadcn/lint (#4171)

Kyle Mendell09e786e5897e
diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js
new file mode 100644
index 000000000..f5ed903ba
--- /dev/null
+++ b/frontend/eslint.config.js
@@ -0,0 +1,43 @@
+import { plugin as shadcn } from '@shadcn/lint';
+import tsParser from '@typescript-eslint/parser';
+import { defineConfig } from 'eslint/config';
+import svelteParser from 'svelte-eslint-parser';
+
+const shadcnRules = {
+ 'shadcn/no-restyle': ['error', { allow: ['layout'] }],
+ 'shadcn/no-raw-colors': 'error',
+ 'shadcn/no-arbitrary-values': 'error',
+ 'shadcn/no-inline-styles': 'error',
+ 'shadcn/no-unknown-classes': 'error',
+ 'shadcn/require-static-classes': 'error'
+};
+
+export default defineConfig([
+ {
+ ignores: ['.svelte-kit/**', 'build/**', 'src/paraglide/**', 'src/lib/paraglide/**']
+ },
+ {
+ files: ['**/*.svelte'],
+ languageOptions: {
+ parser: svelteParser,
+ parserOptions: { parser: tsParser }
+ },
+ plugins: { shadcn },
+ rules: shadcnRules
+ },
+ {
+ files: ['**/*.ts'],
+ languageOptions: { parser: tsParser },
+ plugins: { shadcn },
+ rules: shadcnRules
+ },
+ {
+ // Components own their styles.
+ files: ['src/lib/components/ui/**'],
+ rules: {
+ 'shadcn/no-restyle': 'off',
+ 'shadcn/no-arbitrary-values': 'off',
+ 'shadcn/require-static-classes': 'off'
+ }
+ }
+]);
diff --git a/frontend/package.json b/frontend/package.json
index fc174d204..6e7065ad5 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -15,7 +15,8 @@
"format:check": "vp fmt --check ./src",
"check:watch": "svelte-kit sync && svelte-check --tsgo --incremental --tsconfig ./tsconfig.json --watch",
"paraglide:compile": "paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide --strategy cookie preferredLanguage baseLocale --silent",
- "fallow": "fallow"
+ "fallow": "fallow",
+ "lint": "eslint src"
},
"dependencies": {
"@codemirror/autocomplete": "^6.20.3",
@@ -67,17 +68,21 @@
"devDependencies": {
"@iconify/json": "^2.2.530",
"@inlang/paraglide-js": "2.25.4",
+ "@shadcn/lint": "^0.2.0",
"@sveltejs/adapter-static": "^4.0.0-next.4",
"@sveltejs/vite-plugin-svelte": "^7.3.0",
"@tailwindcss/vite": "^4.3.3",
"@tanstack/svelte-query-devtools": "^6.2.1",
"@types/node": "^26.6.2",
+ "@typescript-eslint/parser": "^8.70.1",
"@typescript/native": "npm:typescript@^7.0.2",
+ "eslint": "^10.11.0",
"fallow": "^3.27.0",
"isomorphic-dompurify": "^4.3.0",
"paneforge": "^1.0.2",
"shadcn-svelte": "^1.7.0",
"svelte-check": "^4.7.6",
+ "svelte-eslint-parser": "^1.8.1",
"svelte-toolbelt": "^0.10.6",
"sveltekit-superforms": "^2.30.2",
"tailwindcss": "^4.3.3",
diff --git a/frontend/src/lib/components/ComposeTemplateEditor.svelte b/frontend/src/lib/components/ComposeTemplateEditor.svelte
index bcd1f24a1..929d48307 100644
--- a/frontend/src/lib/components/ComposeTemplateEditor.svelte
+++ b/frontend/src/lib/components/ComposeTemplateEditor.svelte
@@ -53,7 +53,7 @@
envClass="contents"
>
{#snippet compose()}
- <Card.Root class="flex min-h-[360px] min-w-0 flex-1 flex-col lg:col-span-3 lg:min-h-0">
+ <Card.Root class="flex min-h-90 min-w-0 flex-1 flex-col lg:col-span-3 lg:min-h-0">
<Card.Header icon={CodeIcon} class="shrink-0">
<div class="flex flex-col space-y-1.5">
<Card.Title>
@@ -62,7 +62,7 @@
<Card.Description>{composeDescription}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="flex min-h-0 min-w-0 flex-1 flex-col p-0">
+ <div class="flex min-h-0 min-w-0 flex-1 flex-col">
<div class="min-h-0 min-w-0 flex-1 rounded-b-xl">
<CodeEditor
bind:value={composeValue}
@@ -81,9 +81,9 @@
}}
/>
</div>
- </Card.Content>
+ </div>
{#if composeError}
- <Card.Footer class="pt-0">
+ <Card.Footer>
<p class="text-xs font-medium text-destructive">{composeError}</p>
</Card.Footer>
{/if}
@@ -91,7 +91,7 @@
{/snippet}
{#snippet env()}
- <Card.Root class="flex min-h-[360px] min-w-0 flex-1 flex-col lg:col-span-2 lg:min-h-0">
+ <Card.Root class="flex min-h-90 min-w-0 flex-1 flex-col lg:col-span-2 lg:min-h-0">
<Card.Header icon={VariableIcon} class="shrink-0">
<div class="flex flex-col space-y-1.5">
<Card.Title>
@@ -100,7 +100,7 @@
<Card.Description>{envDescription}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="flex min-h-0 min-w-0 flex-1 flex-col p-0">
+ <div class="flex min-h-0 min-w-0 flex-1 flex-col">
<div class="min-h-0 min-w-0 flex-1 rounded-b-xl">
<CodeEditor
bind:value={envValue}
@@ -119,9 +119,9 @@
}}
/>
</div>
- </Card.Content>
+ </div>
{#if envError}
- <Card.Footer class="pt-0">
+ <Card.Footer>
<p class="text-xs font-medium text-destructive">{envError}</p>
</Card.Footer>
{/if}
diff --git a/frontend/src/lib/components/accent-color/accent-color-picker.svelte b/frontend/src/lib/components/accent-color/accent-color-picker.svelte
index 6c615c308..19f849a86 100644
--- a/frontend/src/lib/components/accent-color/accent-color-picker.svelte
+++ b/frontend/src/lib/components/accent-color/accent-color-picker.svelte
@@ -45,7 +45,7 @@
</script>
<RadioGroup.Root
- class="flex flex-wrap gap-3"
+ class="flex flex-wrap"
value={isCustomColor ? 'custom' : selectedColor}
onValueChange={(value) => {
if (value != 'custom') {
@@ -83,14 +83,14 @@
>
<div
class={{
- 'relative z-[var(--arcane-z-raised)] size-8 rounded-full border-2 transition-all duration-200 ease-out group-hover/item:z-[var(--arcane-z-sticky)] group-hover/item:scale-110': true
+ 'relative z-(--arcane-z-raised) size-8 rounded-full border-2 bg-(--swatch) transition-all duration-200 ease-out group-hover/item:z-(--arcane-z-sticky) group-hover/item:scale-110': true
}}
- style={`background-color: ${color === 'theme' ? themePrimary : color}`}
+ style={`--swatch: ${color === 'theme' ? themePrimary : color}`}
title={label}
>
{#if isCustomColorSelection}
<div
- class="absolute inset-0 flex items-center justify-center rounded-full border-2 border-dashed border-gray-300 bg-muted"
+ class="absolute inset-0 flex items-center justify-center rounded-full border-2 border-dashed border-border bg-muted"
>
<AddIcon class="size-4 text-muted-foreground" />
</div>
@@ -101,7 +101,7 @@
{/if}
</div>
<div
- class="absolute top-12 left-1/2 z-[var(--arcane-z-sticky)] max-w-0 -translate-x-1/2 transform overflow-hidden rounded-md border bg-background px-2 py-1 text-xs whitespace-nowrap text-muted-foreground opacity-0 shadow-sm transition-[max-width,opacity,color] duration-300 ease-out group-hover/item:max-w-[100px] group-hover/item:text-foreground group-hover/item:opacity-100"
+ class="absolute top-12 left-1/2 z-(--arcane-z-sticky) max-w-0 -translate-x-1/2 transform overflow-hidden rounded-md border bg-background px-2 py-1 text-xs whitespace-nowrap text-muted-foreground opacity-0 shadow-sm transition-all duration-300 ease-out group-hover/item:max-w-25 group-hover/item:text-foreground group-hover/item:opacity-100"
>
{label}
</div>
diff --git a/frontend/src/lib/components/accent-color/custom-color.svelte b/frontend/src/lib/components/accent-color/custom-color.svelte
index eb454c389..d031491e2 100644
--- a/frontend/src/lib/components/accent-color/custom-color.svelte
+++ b/frontend/src/lib/components/accent-color/custom-color.svelte
@@ -40,7 +40,7 @@
<Dialog.Root {open} {onOpenChange}>
<Dialog.Content class="max-w-md">
<Dialog.Header>
- <Dialog.Title class="flex items-center gap-2">{m.custom_accent_color()}</Dialog.Title>
+ <Dialog.Title><span class="flex items-center gap-2">{m.custom_accent_color()}</span></Dialog.Title>
<Dialog.Description>
{m.custom_accent_color_description()}
</Dialog.Description>
@@ -49,18 +49,18 @@
<form onsubmit={preventDefault(applyCustomColor)}>
<div class="space-y-4">
<div>
- <Label for="custom-color-input" class="text-sm font-medium">{m.color_value()}</Label>
+ <Label for="custom-color-input">{m.color_value()}</Label>
<div class="flex items-center gap-2">
<div class="w-full">
<Input id="custom-color-input" bind:value={customColorInput} placeholder="#3b82f6" class="mt-1 flex-1" />
</div>
<div
class={{
- 'mt-1 rounded-lg border-1 border-border transition-[height,width] duration-200 ease-in-out': true,
+ 'mt-1 rounded-lg border-1 border-border bg-(--swatch) transition-all duration-200 ease-in-out': true,
'h-9 w-9': isValidColor(customColorInput),
'h-0 w-0': !isValidColor(customColorInput)
}}
- style="background-color: {customColorInput}"
+ style="--swatch: {customColorInput}"
></div>
</div>
</div>
diff --git a/frontend/src/lib/components/action-button-group/action-button-group.svelte b/frontend/src/lib/components/action-button-group/action-button-group.svelte
index 41dbd4d22..5a5486056 100644
--- a/frontend/src/lib/components/action-button-group/action-button-group.svelte
+++ b/frontend/src/lib/components/action-button-group/action-button-group.svelte
@@ -144,7 +144,7 @@
<div class="flex w-full items-center justify-between gap-2">
<span>{button.loading ? button.loadingLabel || button.label : button.label}</span>
{#if button.badge !== undefined}
- <span class="text-[10px] text-muted-foreground">({button.badge})</span>
+ <span class="text-3xs text-muted-foreground">({button.badge})</span>
{/if}
</div>
{/snippet}
@@ -157,7 +157,7 @@
<DropdownMenu.SubTrigger disabled={button.disabled || button.loading}>
{@render menuButtonLabel(button)}
</DropdownMenu.SubTrigger>
- <DropdownMenu.SubContent class="min-w-[180px]">
+ <DropdownMenu.SubContent class="min-w-45">
<DropdownMenu.Item onclick={() => handleOverflowAction(button)} disabled={button.disabled || button.loading}>
{button.label}
</DropdownMenu.Item>
@@ -176,7 +176,7 @@
{#snippet buttonContent(button: ActionButton)}
{#if button.badge !== undefined}
- <span class="rounded-full border px-1 py-0.5 text-[10px] text-muted-foreground">
+ <span class="rounded-full border px-1 py-0.5 text-3xs text-muted-foreground">
{button.badge}
</span>
{/if}
@@ -205,17 +205,21 @@
</ArcaneButton>
{:else}
<DropdownMenu.Root>
- <DropdownMenu.Trigger
- class={cn(
- 'inline-flex items-center justify-center rounded-xl border border-border/80 bg-background/90 text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.34),0_1px_2px_rgba(15,23,42,0.05)] backdrop-blur-sm transition-[background-color,border-color,color,box-shadow,transform,filter] duration-200 ease-out outline-none hover:border-border hover:bg-accent/60 hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-[0.985] dark:bg-card/70 dark:hover:bg-accent/40',
- size === 'sm' ? 'size-8 rounded-lg' : 'size-9'
- )}
- aria-label={m.common_open_menu()}
- >
- <ArrowDownIcon class="size-4" />
+ <DropdownMenu.Trigger>
+ {#snippet child({ props })}
+ <ArcaneButton
+ {...props}
+ action="base"
+ tone="outline"
+ size="icon"
+ icon={ArrowDownIcon}
+ class={size === 'sm' ? 'size-8 rounded-lg' : undefined}
+ aria-label={m.common_open_menu()}
+ />
+ {/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content align="end" class="min-w-[180px]">
+ <DropdownMenu.Content align="end" class="min-w-45">
{@render menuItemsList(button.menuItems ?? [])}
</DropdownMenu.Content>
</DropdownMenu.Root>
@@ -279,7 +283,7 @@
<DropdownMenu.Root>
{@render ellipsisTrigger(m.common_more_actions())}
- <DropdownMenu.Content align="end" class="min-w-[160px]">
+ <DropdownMenu.Content align="end" class="min-w-40">
{@render menuButtons(overflowButtons)}
</DropdownMenu.Content>
</DropdownMenu.Root>
@@ -290,7 +294,7 @@
<DropdownMenu.Root>
{@render ellipsisTrigger('More actions')}
- <DropdownMenu.Content align="end" class="min-w-[160px]">
+ <DropdownMenu.Content align="end" class="min-w-40">
{@render menuButtons(buttons)}
</DropdownMenu.Content>
</DropdownMenu.Root>
diff --git a/frontend/src/lib/components/action-buttons.svelte b/frontend/src/lib/components/action-buttons.svelte
index 62f199aae..4cec95a2f 100644
--- a/frontend/src/lib/components/action-buttons.svelte
+++ b/frontend/src/lib/components/action-buttons.svelte
@@ -6,7 +6,7 @@
import { toast } from 'svelte-sonner';
import { tryCatch } from '#lib/utils/try-catch.js';
import { handleApiResultWithCallbacks } from '#lib/utils/api.js';
- import { ArcaneButton, arcaneButtonVariants, type ArcaneButtonSize } from '#lib/components/arcane-button/index.js';
+ import { ArcaneButton, type ArcaneButtonSize } from '#lib/components/arcane-button/index.js';
import DeploySplitButton from '#lib/components/deploy-split-button/deploy-split-button.svelte';
import DeployOptionsMenuItems from '#lib/components/deploy-split-button/deploy-options-menu-items.svelte';
import * as ButtonGroup from '#lib/components/ui/button-group/index.js';
@@ -575,13 +575,21 @@
{#snippet WatchDropdown(onWatch: () => void, disabled: boolean, size: 'default' | 'icon' = 'default', withDeployOptions = false)}
<DropdownMenu.Root>
<DropdownMenu.Trigger
- class={cn(arcaneButtonVariants({ tone: 'outline-primary', size: 'icon' }), size === 'icon' && 'size-9 rounded-md')}
- aria-label={m.common_open_menu()}
{disabled}
onclick={(event) => event.stopPropagation()}
onpointerdown={(event) => event.stopPropagation()}
>
- <ArrowDownIcon class="size-4" />
+ {#snippet child({ props })}
+ <ArcaneButton
+ {...props}
+ action="base"
+ tone="outline-primary"
+ size="icon"
+ icon={ArrowDownIcon}
+ class={cn(size === 'icon' && 'size-9 rounded-md')}
+ aria-label={m.common_open_menu()}
+ />
+ {/snippet}
</DropdownMenu.Trigger>
<DropdownMenu.Content align="end" class={cn(withDeployOptions && 'w-72')}>
{#if withDeployOptions}
@@ -759,15 +767,20 @@
{#snippet ActionsMenu()}
<DropdownMenu.Root>
- <DropdownMenu.Trigger class="inline-flex size-9 items-center justify-center rounded-lg border bg-background/70">
- <span class="sr-only">{m.common_open_menu()}</span>
- <EllipsisIcon />
+ <DropdownMenu.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="inline-flex size-9 items-center justify-center rounded-lg border bg-background/70"
+ >
+ <span class="sr-only">{m.common_open_menu()}</span>
+ <EllipsisIcon />
+ </button>
+ {/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content
- align="end"
- class="z-[var(--arcane-z-surface)] min-w-[180px] rounded-xl border bg-popover/20 p-1 shadow-lg backdrop-blur-md"
- >
+ <DropdownMenu.Content align="end" class="z-(--arcane-z-surface) min-w-45">
<DropdownMenu.Group>
{@render leadingMenuItems?.(isLifecycleActionPending)}
{#if !isRunning && canStart}
diff --git a/frontend/src/lib/components/activity/activity-batch-item.svelte b/frontend/src/lib/components/activity/activity-batch-item.svelte
index e56a7e03f..a3a469390 100644
--- a/frontend/src/lib/components/activity/activity-batch-item.svelte
+++ b/frontend/src/lib/components/activity/activity-batch-item.svelte
@@ -31,7 +31,7 @@
<div
class={cn(
- 'group relative grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 border-b border-border/40 px-4 py-3 text-left transition-colors last:border-b-0 hover:bg-muted/30',
+ 'group relative grid w-full grid-cols-icon-content-action items-start gap-3 border-b border-border/40 px-4 py-3 text-left transition-colors last:border-b-0 hover:bg-muted/30',
expanded && 'bg-muted/40'
)}
>
@@ -57,14 +57,14 @@
<div class="min-w-0 flex-1">
<div class="flex min-w-0 items-center gap-2">
<span class="truncate text-sm font-semibold text-foreground">{activityTypeLabel(leadActivity.type)}</span>
- <span class="shrink-0 text-[11px] text-muted-foreground/70">· {m.activity_batch_items({ count: group.total })}</span>
+ <span class="shrink-0 text-2xs text-muted-foreground/70">· {m.activity_batch_items({ count: group.total })}</span>
</div>
{#if jobActivity?.resourceName}<div class="truncate text-xs text-muted-foreground">{jobActivity.resourceName}</div>{/if}
<div class="flex min-w-0 flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
<span>{m.activity_batch_done_of_total({ done: group.done, total: group.total })}</span>
{#if group.failed > 0}
<span class="text-muted-foreground/50">·</span>
- <span class="text-red-500">{m.activity_batch_failed_count({ count: group.failed })}</span>
+ <span class="text-destructive">{m.activity_batch_failed_count({ count: group.failed })}</span>
{/if}
</div>
</div>
@@ -74,7 +74,7 @@
</div>
{#if isActive}
- <Progress value={100} indeterminate class="h-1.5 rounded-full" />
+ <Progress value={100} indeterminate class="h-1.5" />
{/if}
</div>
diff --git a/frontend/src/lib/components/activity/activity-center-trigger.svelte b/frontend/src/lib/components/activity/activity-center-trigger.svelte
index c19c95632..b6174680c 100644
--- a/frontend/src/lib/components/activity/activity-center-trigger.svelte
+++ b/frontend/src/lib/components/activity/activity-center-trigger.svelte
@@ -60,7 +60,7 @@
<span class="ml-2 min-w-0 flex-1 truncate text-left text-xs font-medium">{m.activity_center_title()}</span>
<span
class={cn(
- 'ml-2 inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-[10px] leading-none font-semibold tabular-nums',
+ 'ml-2 inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-3xs leading-none font-semibold tabular-nums',
isActive ? 'bg-primary text-primary-foreground' : 'bg-sidebar-accent text-sidebar-foreground/45'
)}
>
@@ -68,7 +68,7 @@
</span>
{:else if isActive}
<span
- class="absolute -top-0.5 -right-0.5 flex min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] leading-4 font-bold text-primary-foreground tabular-nums ring-2 ring-sidebar"
+ class="absolute -top-0.5 -right-0.5 flex min-w-4 items-center justify-center rounded-full bg-primary px-1 text-3xs leading-4 font-bold text-primary-foreground tabular-nums ring-2 ring-sidebar"
>
{activeCount > 9 ? m.activity_count_many() : activeCount}
</span>
@@ -96,7 +96,7 @@
<span
aria-live="polite"
aria-atomic="true"
- class="absolute -top-2 -right-2 flex min-w-4 items-center justify-center rounded-full bg-primary px-1 text-[10px] leading-4 font-bold text-primary-foreground tabular-nums"
+ class="absolute -top-2 -right-2 flex min-w-4 items-center justify-center rounded-full bg-primary px-1 text-3xs leading-4 font-bold text-primary-foreground tabular-nums"
>
{activeCount > 9 ? m.activity_count_many() : activeCount}
</span>
diff --git a/frontend/src/lib/components/activity/activity-center.svelte b/frontend/src/lib/components/activity/activity-center.svelte
index d2fde845d..e216fb9cb 100644
--- a/frontend/src/lib/components/activity/activity-center.svelte
+++ b/frontend/src/lib/components/activity/activity-center.svelte
@@ -5,7 +5,7 @@
import ResponsiveDialog from '#lib/components/ui/responsive-dialog/responsive-dialog.svelte';
import * as Collapsible from '#lib/components/ui/collapsible/index.js';
import * as DropdownMenu from '#lib/components/ui/dropdown-menu/index.js';
- import { Input } from '#lib/components/ui/input/index.js';
+ import * as InputGroup from '#lib/components/ui/input-group/index.js';
import ActivityListItem from './activity-list-item.svelte';
import ActivityBatchItem from './activity-batch-item.svelte';
import ActivityDetailPanel from './activity-detail-panel.svelte';
@@ -84,17 +84,22 @@
);
</script>
-{#snippet activityRow(activity: Activity, child: boolean)}
+{#snippet activityRow(activity: Activity, isChild: boolean)}
{@const expanded = activityStore.isExpanded(activity.id)}
{@const cancelable = activity.type !== 'job_run' && (activity.status === 'running' || activity.status === 'queued')}
<div class="group/activity relative">
<Collapsible.Root open={expanded} onOpenChange={(open) => activityStore.setActivityExpanded(activity.id, open)}>
<div class="relative">
- <Collapsible.Trigger
- class="block w-full cursor-pointer appearance-none border-0 bg-transparent p-0 text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden focus-visible:ring-inset"
- aria-label={m.activity_center_title()}
- >
- <ActivityListItem {activity} {expanded} {child} />
+ <Collapsible.Trigger aria-label={m.activity_center_title()}>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="block w-full cursor-pointer appearance-none border-0 bg-transparent p-0 text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden focus-visible:ring-inset"
+ >
+ <ActivityListItem {activity} {expanded} child={isChild} />
+ </button>
+ {/snippet}
</Collapsible.Trigger>
{#if cancelable}
<IfPermitted perm="activities:cancel">
@@ -104,16 +109,14 @@
disabled={activityStore.isCancelling(activity.id)}
title={m.activity_cancel()}
aria-label={m.activity_cancel()}
- class="absolute top-1/2 right-11 z-[var(--arcane-z-raised)] flex size-7 -translate-y-1/2 items-center justify-center rounded-md bg-background/70 text-muted-foreground opacity-0 backdrop-blur-sm transition-[opacity,color,background-color] group-hover/activity:opacity-100 hover:bg-destructive/10 hover:text-destructive focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-40"
+ class="absolute top-1/2 right-11 z-(--arcane-z-raised) flex size-7 -translate-y-1/2 items-center justify-center rounded-md bg-background/70 text-muted-foreground opacity-0 backdrop-blur-sm transition group-hover/activity:opacity-100 hover:bg-destructive/10 hover:text-destructive focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-40"
>
<CloseIcon class="size-4" aria-hidden="true" />
</button>
</IfPermitted>
{/if}
</div>
- <Collapsible.Content
- class="overflow-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-1 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-top-1"
- >
+ <Collapsible.Content class="overflow-hidden">
<ActivityDetailPanel {activity} />
</Collapsible.Content>
</Collapsible.Root>
@@ -127,15 +130,18 @@
{@const expanded = activityStore.isBatchExpanded(group.batchId)}
{@const summary = group.items.find((item) => item.type === 'job_run')}
<Collapsible.Root open={expanded} onOpenChange={(open) => activityStore.setBatchExpanded(group.batchId, open)}>
- <Collapsible.Trigger
- class="block w-full cursor-pointer appearance-none border-0 bg-transparent p-0 text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden focus-visible:ring-inset"
- aria-label={m.activity_center_title()}
- >
- <ActivityBatchItem {group} {expanded} />
+ <Collapsible.Trigger aria-label={m.activity_center_title()}>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="block w-full cursor-pointer appearance-none border-0 bg-transparent p-0 text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden focus-visible:ring-inset"
+ >
+ <ActivityBatchItem {group} {expanded} />
+ </button>
+ {/snippet}
</Collapsible.Trigger>
- <Collapsible.Content
- class="overflow-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-1 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-top-1"
- >
+ <Collapsible.Content class="overflow-hidden">
{#if summary}<ActivityDetailPanel activity={summary} />{/if}
<div class="ml-6 border-l border-border/40">
{#each group.items.filter((item) => item.type !== 'job_run') as activity (activity.id)}
@@ -149,8 +155,8 @@
{#snippet sectionHeader(title: string, count: number)}
<div class="flex items-center gap-2 border-b border-border/50 bg-muted/20 px-4 py-1.5">
- <span class="text-[11px] font-medium tracking-wide text-muted-foreground uppercase">{title}</span>
- <span class="text-[11px] text-muted-foreground/70 tabular-nums">{count}</span>
+ <span class="text-2xs font-medium tracking-wide text-muted-foreground uppercase">{title}</span>
+ <span class="text-2xs text-muted-foreground/70 tabular-nums">{count}</span>
</div>
{/snippet}
@@ -159,136 +165,141 @@
onOpenChange={handleOpenChangeInternal}
variant="sheet"
title={m.activity_center_title()}
- contentClass="w-[min(94vw,760px)] sm:max-w-[760px]"
- class="flex min-h-0 flex-1 flex-col pt-3 pb-0"
+ contentClass="w-(--width-panel) sm:max-w-190"
+ class="flex min-h-0 flex-1 flex-col"
>
- <div class="flex flex-wrap items-center gap-2 border-b border-border/60 px-4 py-3">
- <div class="relative min-w-40 flex-1">
- <SearchIcon
- class="pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground"
- aria-hidden="true"
- />
- <Input
- type="search"
- value={activityStore.searchTerm}
- oninput={(event) => activityStore.setSearchTerm(event.currentTarget.value)}
- placeholder={m.activity_search_placeholder()}
- class="h-8 pl-8 text-xs"
- />
- </div>
+ <div class="flex min-h-0 flex-1 flex-col pt-3">
+ <div class="flex flex-wrap items-center gap-2 border-b border-border/60 px-4 py-3">
+ <InputGroup.Root class="h-8 min-w-40 flex-1">
+ <InputGroup.Addon>
+ <SearchIcon aria-hidden="true" />
+ </InputGroup.Addon>
+ <InputGroup.Input
+ type="search"
+ value={activityStore.searchTerm}
+ oninput={(event) => activityStore.setSearchTerm(event.currentTarget.value)}
+ placeholder={m.activity_search_placeholder()}
+ size="sm"
+ />
+ </InputGroup.Root>
- <div class="flex items-center gap-2">
- {#if activityStore.activeCount > 0}
- <span class="rounded-md bg-primary/10 px-2 py-1 text-xs font-semibold text-primary tabular-nums">
- {m.activity_active_count({ count: activityStore.activeCount })}
- </span>
- {/if}
- <ActivityFilterPopover />
- <button
- type="button"
- onclick={() => activityStore.refresh()}
- title={m.common_refresh()}
- aria-label={m.common_refresh()}
- class="flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden"
- >
- <RefreshIcon class={cn('size-4', activityStore.loading && 'animate-spin')} aria-hidden="true" />
- </button>
- <DropdownMenu.Root>
- <DropdownMenu.Trigger
- title={m.activity_more_options()}
- aria-label={m.activity_more_options()}
+ <div class="flex items-center gap-2">
+ {#if activityStore.activeCount > 0}
+ <span class="rounded-md bg-primary/10 px-2 py-1 text-xs font-semibold text-primary tabular-nums">
+ {m.activity_active_count({ count: activityStore.activeCount })}
+ </span>
+ {/if}
+ <ActivityFilterPopover />
+ <button
+ type="button"
+ onclick={() => activityStore.refresh()}
+ title={m.common_refresh()}
+ aria-label={m.common_refresh()}
class="flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden"
>
- <EllipsisIcon class="size-4" aria-hidden="true" />
- </DropdownMenu.Trigger>
- <DropdownMenu.Content align="end" class="w-56">
- <DropdownMenu.CheckboxItem
- checked={activityCompletionToastsEnabled.current}
- onCheckedChange={(checked) => (activityCompletionToastsEnabled.current = checked)}
- closeOnSelect={false}
- >
- {m.activity_completion_toasts_label()}
- </DropdownMenu.CheckboxItem>
- <IfPermitted perm="activities:delete">
- <DropdownMenu.Separator />
- <DropdownMenu.Item onclick={clearHistoryInternal} class="text-destructive data-highlighted:text-destructive">
- <TrashIcon class="size-4" aria-hidden="true" />
- {m.activity_clear_history()}
- </DropdownMenu.Item>
- </IfPermitted>
- </DropdownMenu.Content>
- </DropdownMenu.Root>
+ <RefreshIcon class={cn('size-4', activityStore.loading && 'animate-spin')} aria-hidden="true" />
+ </button>
+ <DropdownMenu.Root>
+ <DropdownMenu.Trigger title={m.activity_more_options()} aria-label={m.activity_more_options()}>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden"
+ >
+ <EllipsisIcon class="size-4" aria-hidden="true" />
+ </button>
+ {/snippet}
+ </DropdownMenu.Trigger>
+ <DropdownMenu.Content align="end" class="w-56">
+ <DropdownMenu.CheckboxItem
+ checked={activityCompletionToastsEnabled.current}
+ onCheckedChange={(checked) => (activityCompletionToastsEnabled.current = checked)}
+ closeOnSelect={false}
+ >
+ {m.activity_completion_toasts_label()}
+ </DropdownMenu.CheckboxItem>
+ <IfPermitted perm="activities:delete">
+ <DropdownMenu.Separator />
+ <DropdownMenu.Item onclick={clearHistoryInternal} variant="destructive">
+ <TrashIcon class="size-4" aria-hidden="true" />
+ {m.activity_clear_history()}
+ </DropdownMenu.Item>
+ </IfPermitted>
+ </DropdownMenu.Content>
+ </DropdownMenu.Root>
+ </div>
</div>
- </div>
- <div class="min-h-[68vh] flex-1 overflow-y-auto">
- {#if activityStore.environmentFailures.length > 0}
- <div class="border-b border-border/60 bg-muted/25 px-4 py-3">
- <div class="flex items-start gap-2 text-xs text-muted-foreground">
- <AlertTriangleIcon class="mt-0.5 size-4 shrink-0 text-amber-500" aria-hidden="true" />
- <div class="min-w-0 flex-1 space-y-1">
- {#each activityStore.environmentFailures as failure (failure.environmentId)}
- <p class="leading-relaxed">
- {m.activity_environment_load_failed({ environment: failure.environmentName })}
- </p>
- {/each}
+ <div class="min-h-screen-70 flex-1 overflow-y-auto">
+ {#if activityStore.environmentFailures.length > 0}
+ <div class="border-b border-border/60 bg-muted/25 px-4 py-3">
+ <div class="flex items-start gap-2 text-xs text-muted-foreground">
+ <AlertTriangleIcon class="mt-0.5 size-4 shrink-0 text-warning" aria-hidden="true" />
+ <div class="min-w-0 flex-1 space-y-1">
+ {#each activityStore.environmentFailures as failure (failure.environmentId)}
+ <p class="leading-relaxed">
+ {m.activity_environment_load_failed({ environment: failure.environmentName })}
+ </p>
+ {/each}
+ </div>
+ <button
+ type="button"
+ onclick={() => activityStore.retryStream()}
+ class="shrink-0 text-xs font-medium text-primary underline hover:text-primary/80"
+ >
+ {m.common_retry()}
+ </button>
</div>
- <button
- type="button"
- onclick={() => activityStore.retryStream()}
- class="shrink-0 text-xs font-medium text-primary underline hover:text-primary/80"
- >
- {m.common_retry()}
- </button>
</div>
- </div>
- {/if}
+ {/if}
- {#if activityStore.loading && activityStore.activities.length === 0}
- <div class="flex min-h-96 items-center justify-center p-6 text-center">
- <div class="space-y-2">
- <ActivityIcon class="mx-auto size-8 animate-pulse text-muted-foreground" aria-hidden="true" />
- <p class="text-sm text-muted-foreground">{m.common_loading()}</p>
+ {#if activityStore.loading && activityStore.activities.length === 0}
+ <div class="flex min-h-96 items-center justify-center p-6 text-center">
+ <div class="space-y-2">
+ <ActivityIcon class="mx-auto size-8 animate-pulse text-muted-foreground" aria-hidden="true" />
+ <p class="text-sm text-muted-foreground">{m.common_loading()}</p>
+ </div>
</div>
- </div>
- {:else if activityStore.activities.length === 0}
- <div class="flex min-h-96 items-center justify-center p-6 text-center">
- <div class="max-w-56 space-y-2">
- <ActivityIcon class="mx-auto size-9 text-muted-foreground/50" aria-hidden="true" />
- <h3 class="text-sm font-semibold">{m.activity_empty_title()}</h3>
- <p class="text-xs leading-relaxed text-muted-foreground">{m.activity_empty_description()}</p>
+ {:else if activityStore.activities.length === 0}
+ <div class="flex min-h-96 items-center justify-center p-6 text-center">
+ <div class="max-w-56 space-y-2">
+ <ActivityIcon class="mx-auto size-9 text-muted-foreground/50" aria-hidden="true" />
+ <h3 class="text-sm font-semibold">{m.activity_empty_title()}</h3>
+ <p class="text-xs leading-relaxed text-muted-foreground">{m.activity_empty_description()}</p>
+ </div>
</div>
- </div>
- {:else if hasNoResults}
- <div class="flex min-h-96 items-center justify-center p-6 text-center">
- <div class="max-w-56 space-y-2">
- <SearchIcon class="mx-auto size-9 text-muted-foreground/50" aria-hidden="true" />
- <h3 class="text-sm font-semibold">{m.activity_no_results_title()}</h3>
- <p class="text-xs leading-relaxed text-muted-foreground">{m.activity_no_results_description()}</p>
- <button
- type="button"
- onclick={() => activityStore.clearFilters()}
- class="text-xs font-medium text-primary underline hover:text-primary/80"
- >
- {m.common_clear_filters()}
- </button>
+ {:else if hasNoResults}
+ <div class="flex min-h-96 items-center justify-center p-6 text-center">
+ <div class="max-w-56 space-y-2">
+ <SearchIcon class="mx-auto size-9 text-muted-foreground/50" aria-hidden="true" />
+ <h3 class="text-sm font-semibold">{m.activity_no_results_title()}</h3>
+ <p class="text-xs leading-relaxed text-muted-foreground">{m.activity_no_results_description()}</p>
+ <button
+ type="button"
+ onclick={() => activityStore.clearFilters()}
+ class="text-xs font-medium text-primary underline hover:text-primary/80"
+ >
+ {m.common_clear_filters()}
+ </button>
+ </div>
</div>
- </div>
- {:else}
- <div>
- {#if activityStore.runningGroups.length > 0}
- {@render sectionHeader(m.activity_section_running(), activityStore.runningGroups.length)}
- {#each activityStore.runningGroups as group (groupKeyInternal(group))}
- {@render groupRow(group)}
- {/each}
- {/if}
- {#if activityStore.historyGroups.length > 0}
- {@render sectionHeader(m.activity_section_history(), activityStore.historyGroups.length)}
- {#each activityStore.historyGroups as group (groupKeyInternal(group))}
- {@render groupRow(group)}
- {/each}
- {/if}
- </div>
- {/if}
+ {:else}
+ <div>
+ {#if activityStore.runningGroups.length > 0}
+ {@render sectionHeader(m.activity_section_running(), activityStore.runningGroups.length)}
+ {#each activityStore.runningGroups as group (groupKeyInternal(group))}
+ {@render groupRow(group)}
+ {/each}
+ {/if}
+ {#if activityStore.historyGroups.length > 0}
+ {@render sectionHeader(m.activity_section_history(), activityStore.historyGroups.length)}
+ {#each activityStore.historyGroups as group (groupKeyInternal(group))}
+ {@render groupRow(group)}
+ {/each}
+ {/if}
+ </div>
+ {/if}
+ </div>
</div>
</ResponsiveDialog>
diff --git a/frontend/src/lib/components/activity/activity-detail-panel.svelte b/frontend/src/lib/components/activity/activity-detail-panel.svelte
index 80e5a6c6f..4a6e55b92 100644
--- a/frontend/src/lib/components/activity/activity-detail-panel.svelte
+++ b/frontend/src/lib/components/activity/activity-detail-panel.svelte
@@ -47,14 +47,14 @@
<TerminalIcon class="size-4 text-muted-foreground" aria-hidden="true" />
<span class="text-sm font-semibold">{m.activity_output_title()}</span>
</div>
- <CopyButton text={outputText} variant="ghost" size="default" class="h-8 px-2 text-xs" tabindex={0}>
+ <CopyButton text={outputText} variant="ghost" size="sm" tabindex={0}>
<span class="text-xs">{m.activity_copy_output()}</span>
</CopyButton>
</div>
- <div class="bg-zinc-950 font-mono text-[12px] leading-relaxed text-zinc-100">
+ <div class="dark bg-background font-mono text-xs leading-relaxed text-foreground">
{#if isDetailError && messages.length === 0}
- <div class="flex min-h-32 flex-col items-center justify-center gap-2 text-zinc-500">
+ <div class="flex min-h-32 flex-col items-center justify-center gap-2 text-muted-foreground">
<span>{m.activity_output_load_failed()}</span>
<button
type="button"
@@ -65,12 +65,12 @@
</button>
</div>
{:else if isLoading && messages.length === 0}
- <div class="flex min-h-32 items-center justify-center text-zinc-500">
+ <div class="flex min-h-32 items-center justify-center text-muted-foreground">
<ActivityIcon class="mr-2 size-4 animate-pulse" aria-hidden="true" />
{m.activity_output_loading()}
</div>
{:else if messages.length === 0}
- <div class="flex min-h-32 items-center justify-center text-center text-zinc-500">
+ <div class="flex min-h-32 items-center justify-center text-center text-muted-foreground">
{m.activity_output_empty()}
</div>
{:else}
diff --git a/frontend/src/lib/components/activity/activity-filter-popover.svelte b/frontend/src/lib/components/activity/activity-filter-popover.svelte
index 5d2471fc9..32116ee06 100644
--- a/frontend/src/lib/components/activity/activity-filter-popover.svelte
+++ b/frontend/src/lib/components/activity/activity-filter-popover.svelte
@@ -51,25 +51,29 @@
{/snippet}
<Popover.Root>
- <Popover.Trigger
- title={m.activity_filters_label()}
- aria-label={m.activity_filters_label()}
- class={cn(
- 'relative flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden',
- activityStore.activeFilterCount > 0 && 'bg-primary/10 text-primary'
- )}
- >
- <FilterIcon class="size-4" aria-hidden="true" />
- {#if activityStore.activeFilterCount > 0}
- <span
- class="absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-primary text-[10px] font-semibold text-primary-foreground tabular-nums"
+ <Popover.Trigger title={m.activity_filters_label()} aria-label={m.activity_filters_label()}>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class={cn(
+ 'relative flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-hidden',
+ activityStore.activeFilterCount > 0 && 'bg-primary/10 text-primary'
+ )}
>
- {activityStore.activeFilterCount}
- </span>
- {/if}
+ <FilterIcon class="size-4" aria-hidden="true" />
+ {#if activityStore.activeFilterCount > 0}
+ <span
+ class="absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-primary text-3xs font-semibold text-primary-foreground tabular-nums"
+ >
+ {activityStore.activeFilterCount}
+ </span>
+ {/if}
+ </button>
+ {/snippet}
</Popover.Trigger>
- <Popover.Content class="max-h-[min(60vh,480px)] w-56 overflow-y-auto p-2" align="end">
- <p class="px-2 pt-1 pb-1.5 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
+ <Popover.Content size="sm" class="max-h-(--max-height-popover) w-56 overflow-y-auto" align="end">
+ <p class="px-2 pt-1 pb-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase">
{m.activity_filter_status()}
</p>
{#each statuses as status (status)}
@@ -77,7 +81,7 @@
activityStore.toggleStatusFilter(status)
)}
{/each}
- <p class="px-2 pt-3 pb-1.5 text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
+ <p class="px-2 pt-3 pb-1.5 text-2xs font-medium tracking-wide text-muted-foreground uppercase">
{m.activity_filter_type()}
</p>
{#each types as type (type)}
diff --git a/frontend/src/lib/components/activity/activity-labels.ts b/frontend/src/lib/components/activity/activity-labels.ts
index ef2838615..ec289d1b6 100644
--- a/frontend/src/lib/components/activity/activity-labels.ts
+++ b/frontend/src/lib/components/activity/activity-labels.ts
@@ -21,10 +21,10 @@ export type ActivityBadgeVariant = 'red' | 'green' | 'blue' | 'gray' | 'amber' |
const statusDisplay = new Map(
Object.entries({
- queued: { label: m.activity_status_queued, variant: 'amber', accentClass: 'bg-amber-500' },
- running: { label: m.common_running, variant: 'blue', accentClass: 'bg-blue-500' },
- success: { label: m.common_success, variant: 'green', accentClass: 'bg-emerald-500' },
- failed: { label: m.common_failed, variant: 'red', accentClass: 'bg-red-500' },
+ queued: { label: m.activity_status_queued, variant: 'amber', accentClass: 'bg-warning' },
+ running: { label: m.common_running, variant: 'blue', accentClass: 'bg-info' },
+ success: { label: m.common_success, variant: 'green', accentClass: 'bg-success' },
+ failed: { label: m.common_failed, variant: 'red', accentClass: 'bg-destructive' },
cancelled: { label: m.activity_status_cancelled, variant: 'gray', accentClass: 'bg-muted-foreground/40' }
} satisfies Record<ActivityStatus, { label: () => string; variant: ActivityBadgeVariant; accentClass: string }>)
);
diff --git a/frontend/src/lib/components/activity/activity-list-item.svelte b/frontend/src/lib/components/activity/activity-list-item.svelte
index 2cf896628..3c65ae56c 100644
--- a/frontend/src/lib/components/activity/activity-list-item.svelte
+++ b/frontend/src/lib/components/activity/activity-list-item.svelte
@@ -71,7 +71,7 @@
<div
class={cn(
- 'group relative grid w-full grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 border-b border-border/40 text-left transition-colors last:border-b-0 hover:bg-muted/30',
+ 'group relative grid w-full grid-cols-icon-content-action items-start gap-3 border-b border-border/40 text-left transition-colors last:border-b-0 hover:bg-muted/30',
child ? 'px-3 py-2' : 'px-4 py-3',
expanded && 'bg-muted/40'
)}
@@ -101,14 +101,14 @@
<div class="flex min-w-0 items-center gap-2">
<span class="truncate text-sm font-semibold text-foreground">{activityTypeLabel(activity.type)}</span>
{#if relativeTime}
- <span class="shrink-0 text-[11px] text-muted-foreground/70">· {relativeTime}</span>
+ <span class="shrink-0 text-2xs text-muted-foreground/70">· {relativeTime}</span>
{/if}
</div>
{#if resourceLabel}
<div class="truncate text-xs text-muted-foreground">{resourceLabel}</div>
{/if}
{#if !child || expanded}
- <div class="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-[11px] text-muted-foreground/80">
+ <div class="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-2xs text-muted-foreground/80">
{#if sourceEnvironmentName}
<span class="truncate">{sourceEnvironmentName}</span>
{/if}
@@ -123,7 +123,7 @@
</div>
{#if expanded}
- <div class="flex flex-wrap gap-x-4 gap-y-1 text-[11px] text-muted-foreground">
+ <div class="flex flex-wrap gap-x-4 gap-y-1 text-2xs text-muted-foreground">
<span
>{m.common_started()}
<span class="text-foreground tabular-nums">{formatDateTimeInternal(activity.startedAt)}</span></span
@@ -140,7 +140,7 @@
<div class="flex flex-col gap-1.5">
<div class="line-clamp-2 text-xs leading-relaxed text-muted-foreground">{subtitle}</div>
{#if isActive}
- <Progress value={100} indeterminate class="h-1.5 rounded-full" />
+ <Progress value={100} indeterminate class="h-1.5" />
{/if}
</div>
{/if}
diff --git a/frontend/src/lib/components/activity/activity-output.svelte b/frontend/src/lib/components/activity/activity-output.svelte
index 711d9e83a..bd02a3c1b 100644
--- a/frontend/src/lib/components/activity/activity-output.svelte
+++ b/frontend/src/lib/components/activity/activity-output.svelte
@@ -9,11 +9,11 @@
function lineClassInternal(level: ActivityMessage['level']): string {
switch (level) {
case 'error':
- return 'text-red-300';
+ return 'text-destructive';
case 'warning':
- return 'text-amber-300';
+ return 'text-warning';
default:
- return 'text-zinc-100';
+ return 'text-foreground';
}
}
</script>
diff --git a/frontend/src/lib/components/application-theme/application-theme-picker.svelte b/frontend/src/lib/components/application-theme/application-theme-picker.svelte
index c6754dfea..babb18528 100644
--- a/frontend/src/lib/components/application-theme/application-theme-picker.svelte
+++ b/frontend/src/lib/components/application-theme/application-theme-picker.svelte
@@ -1,4 +1,5 @@
<script lang="ts">
+ import { cn } from '#lib/utils.js';
import { onDestroy } from 'svelte';
import * as Card from '#lib/components/ui/card/index.js';
import * as Carousel from '#lib/components/ui/carousel/index.js';
@@ -126,92 +127,78 @@
}
</script>
-<RadioGroup.Root class="space-y-3" value={selectedTheme} onValueChange={handleThemeChange}>
- <div class="overflow-hidden rounded-xl border border-dashed bg-background/30 p-2 sm:p-3">
- <Carousel.Root class="w-full" opts={{ align: 'center', loop: true }} setApi={setCarouselApi}>
- <Carousel.Content>
- {#each APPLICATION_THEME_OPTIONS as theme (theme.value)}
- {@const option = themeCopy[theme.value]}
- {@const preview = isDarkMode ? theme.preview.dark : theme.preview.light}
- {@const previewAccentColor =
- accentColor.trim() === '' || accentColor.trim() === 'theme' ? preview.primary : accentColor}
- <Carousel.Item class="basis-[92%] sm:basis-[88%] lg:basis-[84%] xl:basis-[80%]">
- <div class="h-full p-1">
- <RadioGroup.Item id={`application-theme-${theme.value}`} value={theme.value} class="sr-only" {disabled} />
- <Label
- for={`application-theme-${theme.value}`}
- class={disabled ? 'cursor-not-allowed opacity-60' : 'cursor-pointer'}
- >
- <Card.Root
- variant="outlined"
- class={[
- 'h-full border-border/70 bg-card transition-[border-color,background-color,opacity,filter] duration-200',
- selectedTheme === theme.value
- ? 'border-primary bg-primary/5 shadow-sm'
- : 'opacity-85 saturate-75 hover:border-primary/40'
- ]}
- >
- <Card.Content class="flex h-full flex-col gap-4 p-4">
- <div
- class="rounded-md border p-3"
- style={`background-color: ${preview.background}; border-color: ${preview.border};`}
- >
- <div class="flex gap-3">
- <div class="h-16 w-4 rounded-sm" style={`background-color: ${preview.sidebar};`}></div>
- <div class="min-w-0 flex-1 space-y-3">
- <div class="flex items-center justify-between gap-3">
- <div
- class="h-2 w-18 rounded-full opacity-80"
- style={`background-color: ${preview.foreground};`}
- ></div>
- <div class="h-2 w-7 rounded-full" style={`background-color: ${previewAccentColor};`}></div>
+<RadioGroup.Root value={selectedTheme} onValueChange={handleThemeChange}>
+ <div class="grid gap-6">
+ <div class="overflow-hidden rounded-xl border border-dashed bg-background/30 p-2 sm:p-3">
+ <Carousel.Root class="w-full" opts={{ align: 'center', loop: true }} setApi={setCarouselApi}>
+ <Carousel.Content>
+ {#each APPLICATION_THEME_OPTIONS as theme (theme.value)}
+ {@const option = themeCopy[theme.value]}
+ {@const preview = isDarkMode ? theme.preview.dark : theme.preview.light}
+ {@const previewAccentColor =
+ accentColor.trim() === '' || accentColor.trim() === 'theme' ? preview.primary : accentColor}
+ <Carousel.Item class="basis-23/25 sm:basis-22/25 lg:basis-21/25 xl:basis-4/5">
+ <div class="h-full p-1">
+ <RadioGroup.Item id={`application-theme-${theme.value}`} value={theme.value} class="sr-only" {disabled} />
+ <Label for={`application-theme-${theme.value}`} class={disabled ? 'cursor-not-allowed' : 'cursor-pointer'}>
+ <div class={cn('h-full', selectedTheme !== theme.value && 'opacity-85 saturate-75', disabled && 'opacity-60')}>
+ <Card.Root variant="outlined" interactive selected={selectedTheme === theme.value} class="h-full">
+ <Card.Content class="h-full">
+ <div class="flex h-full flex-col gap-4">
+ <div
+ class="rounded-md border border-(color:--preview-border) bg-(--preview-bg) p-3"
+ style={`--preview-bg: ${preview.background}; --preview-border: ${preview.border}; --preview-sidebar: ${preview.sidebar}; --preview-fg: ${preview.foreground}; --preview-card: ${preview.card};`}
+ >
+ <div class="flex gap-3">
+ <div class="h-16 w-4 rounded-sm bg-(--preview-sidebar)"></div>
+ <div class="min-w-0 flex-1 space-y-3">
+ <div class="flex items-center justify-between gap-3">
+ <div class="h-2 w-18 rounded-full bg-(--preview-fg) opacity-80"></div>
+ <div
+ class="h-2 w-7 rounded-full bg-(--preview-accent)"
+ style={`--preview-accent: ${previewAccentColor}`}
+ ></div>
+ </div>
+ <div class="grid grid-cols-2 gap-2">
+ <div class="h-10 rounded-sm border border-(color:--preview-border) bg-(--preview-card)"></div>
+ <div class="h-10 rounded-sm border border-(color:--preview-border) bg-(--preview-card)"></div>
+ </div>
+ <div class="flex gap-2">
+ <div class="h-2 flex-1 rounded-full bg-(--preview-fg) opacity-60"></div>
+ <div class="h-2 w-10 rounded-full bg-(--preview-fg) opacity-70"></div>
+ </div>
+ </div>
+ </div>
</div>
- <div class="grid grid-cols-2 gap-2">
- <div
- class="h-10 rounded-sm border"
- style={`background-color: ${preview.card}; border-color: ${preview.border};`}
- ></div>
- <div
- class="h-10 rounded-sm border"
- style={`background-color: ${preview.card}; border-color: ${preview.border};`}
- ></div>
- </div>
- <div class="flex gap-2">
- <div
- class="h-2 flex-1 rounded-full opacity-60"
- style={`background-color: ${preview.foreground};`}
- ></div>
- <div
- class="h-2 w-10 rounded-full opacity-70"
- style={`background-color: ${preview.foreground};`}
- ></div>
+
+ <div class="space-y-1">
+ <div class="flex items-center gap-2">
+ <div
+ class="size-2 rounded-full bg-(--preview-accent)"
+ style={`--preview-accent: ${previewAccentColor}`}
+ ></div>
+ <div class="text-sm font-medium">{option.label}</div>
+ </div>
+ <p class="text-xs leading-5 text-muted-foreground">{option.description}</p>
</div>
</div>
- </div>
- </div>
-
- <div class="space-y-1">
- <div class="flex items-center gap-2">
- <div class="size-2 rounded-full" style={`background-color: ${previewAccentColor};`}></div>
- <div class="text-sm font-medium">{option.label}</div>
- </div>
- <p class="text-xs leading-5 text-muted-foreground">{option.description}</p>
- </div>
- </Card.Content>
- </Card.Root>
- </Label>
- </div>
- </Carousel.Item>
- {/each}
- </Carousel.Content>
- <div
- class="pointer-events-none absolute inset-y-2 start-0 z-[var(--arcane-z-raised)] w-10 bg-gradient-to-r from-background/95 via-background/55 to-transparent backdrop-blur-[2px] sm:w-14"
- ></div>
- <div
- class="pointer-events-none absolute inset-y-2 end-0 z-[var(--arcane-z-raised)] w-10 bg-gradient-to-l from-background/95 via-background/55 to-transparent backdrop-blur-[2px] sm:w-14"
- ></div>
- <Carousel.Previous class="start-3 z-[var(--arcane-z-sticky)] hidden md:inline-flex" />
- <Carousel.Next class="end-3 z-[var(--arcane-z-sticky)] hidden md:inline-flex" />
- </Carousel.Root>
+ </Card.Content>
+ </Card.Root>
+ </div>
+ </Label>
+ </div>
+ </Carousel.Item>
+ {/each}
+ </Carousel.Content>
+ <div
+ class="pointer-events-none absolute inset-y-2 start-0 z-(--arcane-z-raised) w-10 bg-gradient-to-r from-background/95 via-background/55 to-transparent backdrop-blur-2xs sm:w-14"
+ ></div>
+ <div
+ class="pointer-events-none absolute inset-y-2 end-0 z-(--arcane-z-raised) w-10 bg-gradient-to-l from-background/95 via-background/55 to-transparent backdrop-blur-2xs sm:w-14"
+ ></div>
+ <Carousel.Previous class="start-3 z-(--arcane-z-sticky) hidden md:inline-flex" />
+ <Carousel.Next class="end-3 z-(--arcane-z-sticky) hidden md:inline-flex" />
+ </Carousel.Root>
+ </div>
</div>
</RadioGroup.Root>
diff --git a/frontend/src/lib/components/arcane-button/arcane-button.svelte b/frontend/src/lib/components/arcane-button/arcane-button.svelte
index 76e541108..dc27e5d7b 100644
--- a/frontend/src/lib/components/arcane-button/arcane-button.svelte
+++ b/frontend/src/lib/components/arcane-button/arcane-button.svelte
@@ -105,7 +105,7 @@
>
{#if type !== undefined && loading}
<div
- class="absolute inset-0 flex items-center justify-center rounded-[inherit] bg-background/55 backdrop-blur-sm"
+ class="absolute inset-0 flex items-center justify-center rounded-inherit bg-background/55 backdrop-blur-sm"
aria-hidden="true"
>
<Spinner class="size-4" />
diff --git a/frontend/src/lib/components/arcane-button/variants.ts b/frontend/src/lib/components/arcane-button/variants.ts
index 7f470ec1b..4e1999758 100644
--- a/frontend/src/lib/components/arcane-button/variants.ts
+++ b/frontend/src/lib/components/arcane-button/variants.ts
@@ -37,8 +37,8 @@ import {
export const arcaneButtonVariants = tv({
base:
'inline-flex items-center justify-center gap-2 rounded-xl text-sm font-medium whitespace-nowrap select-none ' +
- 'border transition-[background-color,border-color,color,box-shadow,transform,filter] duration-200 ease-out ' +
- 'active:scale-[0.985] ' +
+ 'border transition duration-200 ease-out ' +
+ 'active:scale-98 ' +
'disabled:pointer-events-none disabled:opacity-55 disabled:saturate-[0.82] disabled:shadow-none ' +
'aria-disabled:pointer-events-none aria-disabled:opacity-55 aria-disabled:saturate-[0.82] aria-disabled:shadow-none ' +
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background ' +
@@ -46,70 +46,70 @@ export const arcaneButtonVariants = tv({
variants: {
tone: {
'outline-primary':
- 'border-primary/20 bg-primary/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-primary/40 hover:bg-primary/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-primary/30 dark:bg-primary/[0.12] dark:text-primary-foreground dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-primary/50 dark:hover:bg-primary/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-primary/20 bg-primary/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-primary/40 hover:bg-primary/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-primary/30 dark:bg-primary/[0.12] dark:text-primary-foreground ' +
+ 'dark:hover:border-primary/50 dark:hover:bg-primary/[0.18]',
'outline-primary-login':
- 'w-full border-primary/20 bg-primary/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-primary/40 hover:bg-primary/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-primary/30 dark:bg-primary/[0.12] dark:text-primary-foreground dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-primary/50 dark:hover:bg-primary/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'w-full border-primary/20 bg-primary/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-primary/40 hover:bg-primary/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-primary/30 dark:bg-primary/[0.12] dark:text-primary-foreground ' +
+ 'dark:hover:border-primary/50 dark:hover:bg-primary/[0.18]',
'outline-destructive':
- 'border-destructive/20 bg-destructive/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-destructive/40 hover:bg-destructive/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-destructive/30 dark:bg-destructive/[0.12] dark:text-destructive-foreground dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-destructive/50 dark:hover:bg-destructive/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-destructive/20 bg-destructive/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-destructive/40 hover:bg-destructive/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-destructive/30 dark:bg-destructive/[0.12] dark:text-destructive-foreground ' +
+ 'dark:hover:border-destructive/50 dark:hover:bg-destructive/[0.18]',
'outline-success':
- 'border-emerald-500/20 bg-emerald-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-emerald-500/40 hover:bg-emerald-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-emerald-500/30 dark:bg-emerald-500/[0.12] dark:text-emerald-300 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-emerald-500/50 dark:hover:bg-emerald-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-success/20 bg-success/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-success/40 hover:bg-success/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-success/30 dark:bg-success/[0.12] dark:text-success ' +
+ 'dark:hover:border-success/50 dark:hover:bg-success/[0.18]',
'outline-info':
- 'border-sky-500/20 bg-sky-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-sky-500/40 hover:bg-sky-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-sky-500/30 dark:bg-sky-500/[0.12] dark:text-sky-300 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-sky-500/50 dark:hover:bg-sky-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-info/20 bg-info/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-info/40 hover:bg-info/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-info/30 dark:bg-info/[0.12] dark:text-info ' +
+ 'dark:hover:border-info/50 dark:hover:bg-info/[0.18]',
'outline-warning':
- 'border-amber-500/20 bg-amber-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-amber-500/40 hover:bg-amber-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-amber-500/30 dark:bg-amber-500/[0.12] dark:text-amber-200 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-amber-500/50 dark:hover:bg-amber-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-warning/20 bg-warning/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-warning/40 hover:bg-warning/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-warning/30 dark:bg-warning/[0.12] dark:text-warning ' +
+ 'dark:hover:border-warning/50 dark:hover:bg-warning/[0.18]',
'outline-tag':
- 'border-teal-500/20 bg-teal-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-teal-500/40 hover:bg-teal-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-teal-500/30 dark:bg-teal-500/[0.12] dark:text-teal-200 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-teal-500/50 dark:hover:bg-teal-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-teal/20 bg-teal/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-teal/40 hover:bg-teal/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-teal/30 dark:bg-teal/[0.12] dark:text-teal ' +
+ 'dark:hover:border-teal/50 dark:hover:bg-teal/[0.18]',
'outline-scan':
- 'border-indigo-500/20 bg-indigo-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-indigo-500/40 hover:bg-indigo-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-indigo-500/30 dark:bg-indigo-500/[0.12] dark:text-indigo-200 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-indigo-500/50 dark:hover:bg-indigo-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-indigo/20 bg-indigo/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-indigo/40 hover:bg-indigo/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-indigo/30 dark:bg-indigo/[0.12] dark:text-indigo ' +
+ 'dark:hover:border-indigo/50 dark:hover:bg-indigo/[0.18]',
'outline-commit':
- 'border-cyan-500/20 bg-cyan-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-cyan-500/40 hover:bg-cyan-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-cyan-500/30 dark:bg-cyan-500/[0.12] dark:text-cyan-200 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-cyan-500/50 dark:hover:bg-cyan-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-cyan/20 bg-cyan/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-cyan/40 hover:bg-cyan/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-cyan/30 dark:bg-cyan/[0.12] dark:text-cyan ' +
+ 'dark:hover:border-cyan/50 dark:hover:bg-cyan/[0.18]',
'outline-build':
- 'border-violet-500/20 bg-violet-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-violet-500/40 hover:bg-violet-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-violet-500/30 dark:bg-violet-500/[0.12] dark:text-violet-200 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-violet-500/50 dark:hover:bg-violet-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-violet/20 bg-violet/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-violet/40 hover:bg-violet/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-violet/30 dark:bg-violet/[0.12] dark:text-violet ' +
+ 'dark:hover:border-violet/50 dark:hover:bg-violet/[0.18]',
'outline-sync':
- 'border-purple-500/20 bg-purple-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-purple-500/40 hover:bg-purple-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-purple-500/30 dark:bg-purple-500/[0.12] dark:text-purple-200 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-purple-500/50 dark:hover:bg-purple-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-purple/20 bg-purple/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-purple/40 hover:bg-purple/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-purple/30 dark:bg-purple/[0.12] dark:text-purple ' +
+ 'dark:hover:border-purple/50 dark:hover:bg-purple/[0.18]',
'outline-archive':
- 'border-slate-500/20 bg-slate-500/[0.06] text-foreground! shadow-[inset_0_1px_0_rgba(255,255,255,0.28),0_1px_2px_rgba(15,23,42,0.06)] ' +
- 'hover:border-slate-500/40 hover:bg-slate-500/[0.1] hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.28)] ' +
- 'dark:border-slate-500/30 dark:bg-slate-500/[0.12] dark:text-slate-200 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_1px_2px_rgba(0,0,0,0.18)] ' +
- 'dark:hover:border-slate-500/50 dark:hover:bg-slate-500/[0.18] dark:hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.08),0_10px_24px_-14px_rgba(0,0,0,0.5)]',
+ 'border-muted-foreground/20 bg-muted-foreground/[0.06] text-foreground! shadow-button ' +
+ 'hover:border-muted-foreground/40 hover:bg-muted-foreground/[0.1] hover:shadow-button-hover ' +
+ 'dark:border-muted-foreground/30 dark:bg-muted-foreground/[0.12] dark:text-muted-foreground ' +
+ 'dark:hover:border-muted-foreground/50 dark:hover:bg-muted-foreground/[0.18]',
outline:
- 'border-border/80 bg-background/90 text-foreground shadow-[inset_0_1px_0_rgba(255,255,255,0.34),0_1px_2px_rgba(15,23,42,0.05)] backdrop-blur-sm ' +
- 'hover:border-border hover:bg-accent/60 hover:text-accent-foreground hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.24),0_8px_20px_-12px_rgba(15,23,42,0.22)] ' +
- 'dark:bg-card/70 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.06),0_1px_2px_rgba(0,0,0,0.16)] dark:hover:bg-accent/40',
+ 'border-border/80 bg-background/90 text-foreground shadow-button backdrop-blur-sm ' +
+ 'hover:border-border hover:bg-accent/60 hover:text-accent-foreground hover:shadow-button-hover ' +
+ 'dark:bg-card/70 dark:hover:bg-accent/40',
ghost:
'border-transparent bg-transparent text-foreground! shadow-none ' +
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-cell.svelte b/frontend/src/lib/components/arcane-table/arcane-table-cell.svelte
index 6e8737a70..4647e6d0e 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-cell.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-cell.svelte
@@ -2,4 +2,4 @@
let { value }: { value: unknown } = $props();
</script>
-<span class="max-w-[500px] truncate">{value ?? ''}</span>
+<span class="max-w-125 truncate">{value ?? ''}</span>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte b/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte
index c96ef36cf..0dc458ca7 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte
@@ -9,8 +9,6 @@
import { cn } from '#lib/utils.js';
import {
shouldIgnoreTableRowClick,
- type ColumnWidth,
- type ColumnAlign,
type GroupedData,
type GroupSelectionState,
type SelectionModifiers
@@ -78,26 +76,6 @@
// concrete cells. Pin them with an instantiation expression — no cast involved.
const FlexRender = FlexRenderBase<ArcaneFeatures, TData, unknown>;
- // Get column width class from meta
- function getWidthClass(width?: ColumnWidth): string {
- if (!width || width === 'auto') return '';
- if (width === 'min') return 'w-0';
- if (width === 'max') return 'w-full';
- return '';
- }
-
- // Get column alignment class from meta
- function getAlignClass(align?: ColumnAlign): string {
- if (!align || align === 'left') return '';
- if (align === 'center') return 'text-center';
- if (align === 'right') return 'text-right';
- return '';
- }
-
- // Narrow, transparent select cell so the row's hover/selected highlight shows through it
- // uniformly (it carried an opaque background before, which broke the highlight at the edge).
- const selectCellClasses = 'w-0 pr-4!';
-
function handleRowClick(event: MouseEvent, rowId: string) {
if (shouldIgnoreTableRowClick(event)) return;
if (hasExpand) {
@@ -113,20 +91,6 @@
if (event.shiftKey && !hasExpand && !selectionDisabled && !shouldIgnoreTableRowClick(event)) event.preventDefault();
}
- // Get cell classes based on column metadata
- function getCellClasses(cell: ArcaneCell<TData>, isGrouped: boolean, isFirstCell: boolean): string {
- const meta = cell.column.columnDef.meta;
- return cn(
- cell.column.id === 'select' && selectCellClasses,
- cell.column.id === 'actions' && actionsCellClasses,
- getWidthClass(meta?.width),
- getAlignClass(meta?.align),
- meta?.truncate && !wrapText && 'max-w-0 truncate',
- wrapText && cell.column.id !== 'select' && cell.column.id !== 'actions' && 'break-words whitespace-normal',
- isGrouped && isFirstCell && cell.column.id !== 'select' && 'pl-10'
- );
- }
-
// Get rows for a specific group from the table model
const isGrouped = $derived(groupedRows !== null && groupedRows.length > 0);
@@ -195,24 +159,6 @@
};
});
- // Row actions are a real pinned column: sticky to the row's right edge with its own reserved
- // width, so the floating button never overlaps data columns and survives horizontal scroll.
- // The gutter must stay opaque to mask content scrolling beneath it, so it can't bg-inherit the
- // row's translucent tints (they'd stack with the row's own paint into a darker block). Instead it
- // mirrors the row states from ui/table table-row.svelte as pre-composited opaque colors. Under
- // the virtualized table-fixed layout an auto-sized (w-0 + nowrap) column would collapse, so it
- // gets an explicit width there instead.
- const actionsCellClasses = $derived(
- cn(
- 'sticky right-0 z-[var(--arcane-z-sticky)] p-0 whitespace-nowrap',
- shouldVirtualize ? 'w-24' : 'w-0',
- 'bg-background',
- 'group-hover/row:bg-[color-mix(in_oklab,var(--color-primary)_6%,var(--color-background))]',
- 'group-data-[state=selected]/row:bg-[color-mix(in_oklab,var(--color-primary)_12%,var(--color-background))]',
- 'group-data-[expanded]/row:bg-[color-mix(in_oklab,var(--color-muted)_30%,var(--color-background))]'
- )
- );
-
// Runes can't be created conditionally, so the virtualizer always exists but is `enabled` only
// when we actually virtualize; disabled, it stays cheap and reports an empty window.
const rowVirtualizer = createVirtualizer<HTMLElement, HTMLTableRowElement>(() => {
@@ -260,10 +206,10 @@
data-expanded={isExpanded ? true : undefined}
onclick={(event) => handleRowClick(event, rowId)}
onmousedown={handleRowMouseDown}
- class={cn('isolate', hasExpand && 'cursor-pointer', isExpanded && 'bg-muted/30')}
+ class={cn('isolate', hasExpand && 'cursor-pointer')}
>
{#if hasExpand}
- <Table.Cell class="w-8 px-2" data-row-select-ignore>
+ <Table.Cell variant="expander" data-row-select-ignore>
<button
class={cn(
'flex items-center justify-center text-muted-foreground transition-transform duration-200 hover:text-foreground',
@@ -281,18 +227,35 @@
{/if}
{#each row.getVisibleCells() as cell, cellIndex (cell.id)}
{@const isFirstDataCell = !selectionDisabled ? cellIndex === 1 : cellIndex === 0}
+ {@const meta = cell.column.columnDef.meta}
<Table.Cell
- style={typeof cell.column.columnDef.meta?.width === 'number' ? `width: ${cell.column.columnDef.meta.width}px` : undefined}
- class={getCellClasses(cell, isGroupedRow, isFirstDataCell)}
+ pinned={cell.column.id === 'actions'}
+ variant={cell.column.id === 'select' ? 'checkbox' : 'default'}
+ indent={isGroupedRow && isFirstDataCell && cell.column.id !== 'select'}
+ style={typeof meta?.width === 'number' ? `--col-width: ${meta.width}px` : undefined}
+ class={cn(
+ cell.column.id === 'actions' && (shouldVirtualize ? 'w-24' : 'w-0'),
+ meta?.width === 'min' && 'w-0',
+ meta?.width === 'max' && 'w-full',
+ meta?.align === 'center' && 'text-center',
+ meta?.align === 'right' && 'text-right',
+ meta?.truncate && !wrapText && 'max-w-0',
+ wrapText && cell.column.id !== 'select' && cell.column.id !== 'actions' && 'break-words whitespace-normal',
+ typeof meta?.width === 'number' && 'w-(--col-width)'
+ )}
>
- {@render cellContent(cell)}
+ {#if meta?.truncate && !wrapText}
+ <span class="block min-w-0 truncate">{@render cellContent(cell)}</span>
+ {:else}
+ {@render cellContent(cell)}
+ {/if}
</Table.Cell>
{/each}
</Table.Row>
{#if hasExpand && isExpanded && expandedRowContent}
- <Table.Row class="bg-muted/10 hover:bg-muted/10">
- <Table.Cell colspan={columnsCount} class="p-0">
+ <Table.Row variant="detail">
+ <Table.Cell colspan={columnsCount} variant="flush">
<div transition:slide={{ duration: 200 }}>
<div class="px-6 py-4">
{@render expandedRowContent({ row, item: row.original })}
@@ -306,17 +269,17 @@
{#snippet emptyState()}
<Table.Row>
<Table.Cell colspan={columnsCount} class="h-48">
- <TableEmpty class={cn('rounded-lg py-12', unstyled ? 'bg-transparent' : 'bg-card/30')} />
+ <TableEmpty {unstyled} />
</Table.Cell>
</Table.Row>
{/snippet}
{#snippet skeletonRows()}
{#each Array.from({ length: 8 }, (_, i) => i) as r (r)}
- <Table.Row class="hover:bg-transparent">
+ <Table.Row variant="static">
{#each Array.from({ length: columnsCount }, (_, i) => i) as c (c)}
<Table.Cell>
- <Skeleton class="h-4 w-full max-w-[140px]" />
+ <Skeleton class="h-4 w-full max-w-35" />
</Table.Cell>
{/each}
</Table.Row>
@@ -328,18 +291,20 @@
{#each table.getHeaderGroups() as headerGroup (headerGroup.id)}
<Table.Row>
{#if hasExpand}
- <Table.Head class="w-8 px-2"></Table.Head>
+ <Table.Head variant="expander"></Table.Head>
{/if}
{#each headerGroup.headers as header (header.id)}
+ {@const meta = header.column.columnDef.meta}
<Table.Head
colspan={header.colSpan}
- style={typeof header.column.columnDef.meta?.width === 'number'
- ? `width: ${header.column.columnDef.meta.width}px`
- : undefined}
+ pinned={header.column.id === 'actions'}
+ variant={header.column.id === 'select' ? 'checkbox' : 'default'}
+ style={typeof meta?.width === 'number' ? `--col-width: ${meta.width}px` : undefined}
class={cn(
- getWidthClass(header.column.columnDef.meta?.width),
- header.column.id === 'select' && selectCellClasses,
- header.column.id === 'actions' && cn(actionsCellClasses, 'z-[var(--arcane-z-page-floating)] bg-background')
+ meta?.width === 'min' && 'w-0',
+ meta?.width === 'max' && 'w-full',
+ header.column.id === 'actions' && (shouldVirtualize ? 'w-24' : 'w-0'),
+ typeof meta?.width === 'number' && 'w-(--col-width)'
)}
>
{#if !header.isPlaceholder}
@@ -359,14 +324,12 @@
{@const IconComponent = groupIcon?.(group.groupName)}
<Table.Row
- class={cn(
- 'cursor-pointer transition-colors',
- !unstyled && (hasSelection ? 'bg-primary/10 hover:bg-primary/15' : 'bg-background hover:bg-primary/15')
- )}
+ variant={unstyled ? 'static' : 'default'}
+ data-state={hasSelection ? 'selected' : undefined}
onclick={() => onGroupToggle?.(group.groupName)}
>
{#if !selectionDisabled}
- <Table.Cell class={selectCellClasses}>
+ <Table.Cell variant="checkbox">
<TableCheckbox
checked={selectionState === 'all'}
indeterminate={selectionState === 'some'}
@@ -376,8 +339,8 @@
/>
</Table.Cell>
{/if}
- <Table.Cell colspan={columnsCount - (selectionDisabled ? 0 : 1)} class="py-3 font-medium">
- <div class="flex items-center gap-2">
+ <Table.Cell colspan={columnsCount - (selectionDisabled ? 0 : 1)}>
+ <div class="flex items-center gap-2 font-medium">
{#if isCollapsed}
<ArrowRightIcon class="size-4 text-muted-foreground" />
{:else}
@@ -408,7 +371,7 @@
{@const padTop = first ? Math.max(0, first.start - scrollMargin) : 0}
{@const padBottom = last ? Math.max(0, rowVirtualizer.totalSize - (last.end - scrollMargin)) : 0}
{#if padTop > 0}
- <tr aria-hidden="true"><td colspan={columnsCount} class="border-0 p-0" style="height: {padTop}px"></td></tr>
+ <tr aria-hidden="true"><td colspan={columnsCount} class="h-(--pad) border-0 p-0" style="--pad: {padTop}px"></td></tr>
{/if}
{#each vItems as vItem (vItem.key)}
{@const row = flatRows[vItem.index]}
@@ -417,7 +380,7 @@
{/if}
{/each}
{#if padBottom > 0}
- <tr aria-hidden="true"><td colspan={columnsCount} class="border-0 p-0" style="height: {padBottom}px"></td></tr>
+ <tr aria-hidden="true"><td colspan={columnsCount} class="h-(--pad) border-0 p-0" style="--pad: {padBottom}px"></td></tr>
{/if}
{/snippet}
@@ -429,7 +392,7 @@
)}
>
{#if !unstyled}
- <div aria-hidden="true" class="sticky top-0 z-[var(--arcane-z-sticky)] -mb-10 h-10 backdrop-blur-sm"></div>
+ <div aria-hidden="true" class="sticky top-0 z-(--arcane-z-sticky) -mb-10 h-10 backdrop-blur-sm"></div>
{/if}
<Table.Root bind:ref={tableElement} class={shouldVirtualize ? 'table-fixed' : undefined}>
{@render tableHeader()}
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte b/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
index dc2fca512..2620c5420 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-filter.svelte
@@ -71,8 +71,8 @@
</ArcaneButton>
{/snippet}
</Popover.Trigger>
- <Popover.Content class="w-[240px] p-0" align="start" data-testid={`facet-${title.toLowerCase()}-content`}>
- <Command.Root class="rounded-none bg-transparent">
+ <Popover.Content class="w-60" align="start" data-testid={`facet-${title.toLowerCase()}-content`}>
+ <Command.Root>
<Command.Input placeholder={title} />
<Command.List>
<Command.Empty>{m.common_no_results_found()}</Command.Empty>
@@ -87,7 +87,6 @@
const filterValues = Array.from(selectedValues);
column?.setFilterValue(filterValues.length ? filterValues : undefined);
}}
- class="gap-2"
>
{#if showCheckboxes}
<div
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte b/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
index 55128b830..8d5785ab9 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
@@ -54,7 +54,7 @@
{#each Array.from({ length: 6 }, (_, i) => i) as r (r)}
<div class="px-3 py-2.5">
<div class="flex items-center gap-3">
- <Skeleton class="size-9 rounded-md" />
+ <Skeleton class="size-9" />
<div class="flex-1 space-y-1.5">
<Skeleton class="h-4 w-1/2" />
<Skeleton class="h-3 w-1/3" />
@@ -81,7 +81,7 @@
{#snippet emptyState()}
<div class="p-4">
- <TableEmpty class={cn('min-h-48 rounded-xl py-12', unstyled ? 'border-transparent bg-transparent' : 'bg-card/30')} />
+ <TableEmpty {unstyled} class="min-h-48" />
</div>
{/snippet}
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte b/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte
index f120fee65..1b21dc1f4 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-pagination.svelte
@@ -49,7 +49,7 @@
<div class="flex items-center justify-between space-x-2 sm:justify-start">
<p class="text-sm font-medium">{m.common_rows_per_page()}</p>
<Select.Root allowDeselect={false} type="single" value={selectValue} onValueChange={handlePageSizeChange}>
- <Select.Trigger class="h-11 w-[70px] sm:h-8">
+ <Select.Trigger class="h-11 w-17.5 sm:h-8">
{displayValue}
</Select.Trigger>
<Select.Content side="top">
@@ -65,7 +65,7 @@
</Select.Root>
</div>
<div class="flex items-center justify-between sm:justify-center">
- <div class="flex items-center justify-center text-sm font-medium sm:w-[100px]">
+ <div class="flex items-center justify-center text-sm font-medium sm:w-25">
{m.common_page_of({ page: currentPage, total: totalPages })}
</div>
<div class="flex items-center space-x-1 sm:space-x-2">
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-text-filter.svelte b/frontend/src/lib/components/arcane-table/arcane-table-text-filter.svelte
index 8de591b6e..b54b93381 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-text-filter.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-text-filter.svelte
@@ -61,7 +61,7 @@
</ArcaneButton>
{/snippet}
</Popover.Trigger>
- <Popover.Content class="w-[240px] p-2" align="start" data-testid={`facet-${title.toLowerCase()}-content`}>
+ <Popover.Content size="sm" class="w-60" align="start" data-testid={`facet-${title.toLowerCase()}-content`}>
<div class="flex flex-col gap-2">
<Input
{placeholder}
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
index b47a0db2e..4b60c1edc 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-toolbar.svelte
@@ -3,7 +3,7 @@
import DataTableFacetedFilter from './arcane-table-filter.svelte';
import DataTableTextFilter from './arcane-table-text-filter.svelte';
import DataTableViewOptions from './arcane-table-view-options.svelte';
- import { Input } from '#lib/components/ui/input/index.js';
+ import * as InputGroup from '#lib/components/ui/input-group/index.js';
import {
imageUpdateFilters,
usageFilters,
@@ -168,9 +168,11 @@
<div class={cn('flex flex-wrap items-center gap-2 px-4 py-3', className)}>
<div class="order-1 flex min-w-0 flex-1 items-center gap-2 md:flex-none">
- <div class="relative min-w-0 flex-1 md:w-64 md:flex-none">
- <SearchIcon class="pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground" />
- <Input
+ <InputGroup.Root class="min-w-0 flex-1 md:w-64 md:flex-none">
+ <InputGroup.Addon>
+ <SearchIcon aria-hidden="true" />
+ </InputGroup.Addon>
+ <InputGroup.Input
placeholder={m.common_search()}
value={(table.atoms.globalFilter.get() as string) ?? ''}
oninput={(e) => debouncedSetGlobal(e.currentTarget.value)}
@@ -178,9 +180,8 @@
onkeydown={(e) => {
if (e.key === 'Enter') table.setGlobalFilter((e.currentTarget as HTMLInputElement).value);
}}
- class="h-9 w-full pl-8"
/>
- </div>
+ </InputGroup.Root>
{#if hasFilterColumns}
<div class="hidden items-center gap-1.5 md:flex">
@@ -195,7 +196,7 @@
<FilterIcon class="size-4" />
{#if activeFilterCount > 0}
<span
- class="absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-primary text-[10px] font-medium text-primary-foreground"
+ class="absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-primary text-3xs font-medium text-primary-foreground"
>
{activeFilterCount}
</span>
@@ -203,7 +204,7 @@
</ArcaneButton>
{/snippet}
</Popover.Trigger>
- <Popover.Content align="end" class="w-56 p-2">
+ <Popover.Content align="end" size="sm" class="w-56">
<div class="flex flex-col gap-1.5">
{@render filterList()}
</div>
diff --git a/frontend/src/lib/components/arcane-table/arcane-table.svelte b/frontend/src/lib/components/arcane-table/arcane-table.svelte
index 1b4e2c362..dab6eb63a 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table.svelte
@@ -760,7 +760,7 @@
<div
{@attach (node) => restoreScroll(node, 'desktop')}
bind:this={desktopScrollEl}
- class="[isolation:isolate] h-full min-h-0 flex-1 overflow-auto bg-background"
+ class="isolate h-full min-h-0 flex-1 overflow-auto bg-background"
>
<ArcaneTableDesktopView
{rowIndex}
@@ -786,10 +786,7 @@
/>
</div>
{:else}
- <div
- {@attach (node) => restoreScroll(node, 'mobile')}
- class="[isolation:isolate] block flex-1 overflow-auto bg-background/80"
- >
+ <div {@attach (node) => restoreScroll(node, 'mobile')} class="isolate block flex-1 overflow-auto bg-background/80">
{#if unstyled}
<div class="divide-y divide-border/40">
{@render MobileViewSnippet()}
diff --git a/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte b/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte
index 613e5931f..665011d5e 100644
--- a/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte
+++ b/frontend/src/lib/components/arcane-table/cards/universal-mobile-card.svelte
@@ -68,7 +68,7 @@
const sizeClasses = $derived(
compact
- ? { iconContainer: 'size-10', image: 'size-5', icon: 'size-4', title: 'text-sm', subtitle: 'text-[10px]' }
+ ? { iconContainer: 'size-10', image: 'size-5', icon: 'size-4', title: 'text-sm', subtitle: 'text-3xs' }
: { iconContainer: 'size-11', image: 'size-6', icon: 'size-5', title: 'text-base', subtitle: 'text-xs' }
);
@@ -88,28 +88,28 @@
function getIconBgClass(variant: IconVariant): string {
const map: Record<IconVariant, string> = {
- emerald: 'bg-emerald-500/8',
- red: 'bg-red-500/8',
- amber: 'bg-amber-500/8',
- blue: 'bg-blue-500/8',
- purple: 'bg-purple-500/8',
+ emerald: 'bg-success/8',
+ red: 'bg-destructive/8',
+ amber: 'bg-warning/8',
+ blue: 'bg-info/8',
+ purple: 'bg-purple/8',
gray: 'bg-muted/40',
- sky: 'bg-sky-500/8',
- orange: 'bg-orange-500/8'
+ sky: 'bg-sky/8',
+ orange: 'bg-orange/8'
};
return map[variant];
}
function getIconTextClass(variant: IconVariant): string {
const map: Record<IconVariant, string> = {
- emerald: 'text-emerald-500',
- red: 'text-red-500',
- amber: 'text-amber-500',
- blue: 'text-blue-500',
- purple: 'text-purple-500',
+ emerald: 'text-success',
+ red: 'text-destructive',
+ amber: 'text-warning',
+ blue: 'text-info',
+ purple: 'text-purple',
gray: 'text-muted-foreground',
- sky: 'text-sky-500',
- orange: 'text-orange-500'
+ sky: 'text-sky',
+ orange: 'text-orange'
};
return map[variant];
}
@@ -184,7 +184,7 @@
{#snippet expandedField(field: FieldDefinition<T>)}
{@const value = field.getValue(item)}
{#if value !== null && value !== undefined}
- <div class="flex min-w-0 flex-1 basis-[140px] items-center gap-2.5">
+ <div class="flex min-w-0 flex-1 basis-35 items-center gap-2.5">
{#if field.icon}
{@const FieldIcon = field.icon}
<div
@@ -197,7 +197,7 @@
</div>
{/if}
<div class="min-w-0 flex-1">
- <div class="text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
+ <div class="text-2xs font-medium tracking-wide text-muted-foreground uppercase">
{field.label}
</div>
<div class="truncate text-sm leading-snug font-medium">
@@ -222,7 +222,7 @@
{@const value = field.getValue(item)}
{#if value !== null && value !== undefined}
<div class="flex items-baseline gap-2">
- <span class="text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">{field.label}:</span>
+ <span class="text-2xs font-semibold tracking-wide text-muted-foreground uppercase">{field.label}:</span>
{@render FieldValue(field, value, true)}
</div>
{/if}
@@ -234,44 +234,45 @@
<div class={cn('group relative w-full px-3 py-2', className)}>
<Card.Root
variant="subtle"
- class={cn(
- 'overflow-hidden text-left transition-all duration-200',
- onclick && 'cursor-pointer hover:border-white/20 hover:shadow-md'
- )}
+ size="sm"
+ interactive={!!onclick}
+ class="overflow-hidden text-left"
onclick={onclick ? () => onclick(item) : undefined}
>
- <Card.Content class={cn('flex flex-col text-left', compact ? 'gap-2.5 p-3' : 'gap-3 p-3.5')}>
- {@render cardHeader()}
+ <Card.Content>
+ <div class={compact ? 'flex flex-col gap-2.5 text-left' : 'flex flex-col gap-3 text-left'}>
+ {@render cardHeader()}
- {#if resolvedBadges.length > 0}
- <div class="flex flex-wrap items-center gap-1">
- {#each resolvedBadges as badge (`${badge.variant}:${badge.text}`)}
- <Badge variant={badge.variant} size="sm" minWidth="20">{badge.text}</Badge>
- {/each}
- </div>
- {/if}
+ {#if resolvedBadges.length > 0}
+ <div class="flex flex-wrap items-center gap-1">
+ {#each resolvedBadges as badge (`${badge.variant}:${badge.text}`)}
+ <Badge variant={badge.variant} size="sm" minWidth="20">{badge.text}</Badge>
+ {/each}
+ </div>
+ {/if}
- {@render additionalFields()}
+ {@render additionalFields()}
- <!-- Custom children content -->
- {#if children}
- {@render children()}
- {/if}
+ <!-- Custom children content -->
+ {#if children}
+ {@render children()}
+ {/if}
+ </div>
</Card.Content>
{#if !compact && footer}
{@const footerValue = footer.getValue(item)}
{#if footerValue}
{@const FooterIcon = footer.icon}
- <Card.Footer class="flex items-center gap-2.5 border-t border-border/40 bg-muted/30 px-3.5 py-2.5!">
+ <div class="flex items-center gap-2.5 border-t border-border/40 bg-muted/30 px-3.5 py-2.5">
<FooterIcon class="size-4 text-muted-foreground" />
- <span class="text-[11px] font-medium tracking-wide text-muted-foreground uppercase">
+ <span class="text-2xs font-medium tracking-wide text-muted-foreground uppercase">
{footer.label}
</span>
<span class="ml-auto font-mono text-xs font-medium text-foreground">
{footerValue}
</span>
- </Card.Footer>
+ </div>
{/if}
{/if}
</Card.Root>
diff --git a/frontend/src/lib/components/arcane-table/data.ts b/frontend/src/lib/components/arcane-table/data.ts
index 87623c6d3..02441ca02 100644
--- a/frontend/src/lib/components/arcane-table/data.ts
+++ b/frontend/src/lib/components/arcane-table/data.ts
@@ -76,27 +76,27 @@ export const vulnerabilitySeverityFilters: FilterOption[] = [
{
value: 'CRITICAL',
label: m.vuln_severity_critical(),
- dotClass: 'bg-red-500'
+ dotClass: 'bg-destructive'
},
{
value: 'HIGH',
label: m.vuln_severity_high(),
- dotClass: 'bg-orange-500'
+ dotClass: 'bg-orange'
},
{
value: 'MEDIUM',
label: m.vuln_severity_medium(),
- dotClass: 'bg-amber-500'
+ dotClass: 'bg-warning'
},
{
value: 'LOW',
label: m.vuln_severity_low(),
- dotClass: 'bg-emerald-500'
+ dotClass: 'bg-success'
},
{
value: 'UNKNOWN',
label: m.common_unknown(),
- dotClass: 'bg-slate-400'
+ dotClass: 'bg-muted-foreground'
}
];
diff --git a/frontend/src/lib/components/arcane-table/table-empty.svelte b/frontend/src/lib/components/arcane-table/table-empty.svelte
index 21356fb7f..89cf7057a 100644
--- a/frontend/src/lib/components/arcane-table/table-empty.svelte
+++ b/frontend/src/lib/components/arcane-table/table-empty.svelte
@@ -3,15 +3,15 @@
import { FolderXIcon } from '#lib/icons/index.js';
import { m } from '#lib/paraglide/messages.js';
- let { class: className }: { class?: string } = $props();
+ let { class: className, unstyled = false }: { class?: string; unstyled?: boolean } = $props();
</script>
-<Empty.Root class={className} role="status" aria-live="polite">
+<Empty.Root variant={unstyled ? 'plain' : 'card'} class={className} role="status" aria-live="polite">
<Empty.Header>
<Empty.Media variant="icon">
<FolderXIcon class="size-10 text-muted-foreground/60" />
</Empty.Media>
- <Empty.Title class="text-lg font-semibold">{m.common_no_results_found()}</Empty.Title>
- <Empty.Description class="text-sm text-muted-foreground">{m.common_no_results_hint()}</Empty.Description>
+ <Empty.Title><span class="font-semibold">{m.common_no_results_found()}</span></Empty.Title>
+ <Empty.Description>{m.common_no_results_hint()}</Empty.Description>
</Empty.Header>
</Empty.Root>
diff --git a/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte b/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte
index 8363f9a52..0823155f9 100644
--- a/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte
+++ b/frontend/src/lib/components/arcane-tooltip/arcane-tooltip-content.svelte
@@ -2,7 +2,7 @@
import * as Tooltip from '#lib/components/ui/tooltip/index.js';
import * as Popover from '#lib/components/ui/popover/index.js';
import { getArcaneTooltipContext } from './context.svelte.js';
- import { cn, type WithoutChildrenOrChild } from '#lib/utils.js';
+ import type { WithoutChildrenOrChild } from '#lib/utils.js';
import type { ComponentProps, Snippet } from 'svelte';
export type ArcaneTooltipContentProps = WithoutChildrenOrChild<ComponentProps<typeof Tooltip.Content>>;
@@ -15,9 +15,12 @@
side = 'top',
arrowClasses,
portalProps,
+ variant = 'default',
...restProps
}: ArcaneTooltipContentProps & {
children?: Snippet;
+ /** `panel` drops padding for rich content that brings its own layout. */
+ variant?: 'default' | 'panel';
} = $props();
const ctx = getArcaneTooltipContext();
@@ -28,16 +31,14 @@
bind:ref
{sideOffset}
{side}
- class={cn(
- 'w-fit max-w-[min(calc(100vw-2rem),320px)] border-border/50 bg-popover/90 px-3 py-1.5 text-xs text-balance shadow-lg backdrop-blur-md',
- className
- )}
+ variant={variant === 'panel' ? 'panel' : 'tooltip'}
+ class={className}
{...restProps}
>
{@render children?.()}
</Popover.Content>
{:else}
- <Tooltip.Content bind:ref {sideOffset} {side} class={className} {arrowClasses} {portalProps} {...restProps}>
+ <Tooltip.Content bind:ref {sideOffset} {side} {variant} class={className} {arrowClasses} {portalProps} {...restProps}>
{@render children?.()}
</Tooltip.Content>
{/if}
diff --git a/frontend/src/lib/components/auth/mfa-dialog.svelte b/frontend/src/lib/components/auth/mfa-dialog.svelte
index ca1f87fcd..1adf755fd 100644
--- a/frontend/src/lib/components/auth/mfa-dialog.svelte
+++ b/frontend/src/lib/components/auth/mfa-dialog.svelte
@@ -33,9 +33,11 @@
<Dialog.Root bind:open>
<Dialog.Content class="sm:max-w-md">
<Dialog.Header>
- <Dialog.Title class="flex items-center gap-2">
- <ShieldCheckIcon class="size-5 text-primary" />
- {enabled ? m.account_passkey_mfa_disable_title() : m.account_passkey_mfa_title()}
+ <Dialog.Title>
+ <span class="flex items-center gap-2">
+ <ShieldCheckIcon class="size-5 text-primary" />
+ {enabled ? m.account_passkey_mfa_disable_title() : m.account_passkey_mfa_title()}
+ </span>
</Dialog.Title>
<Dialog.Description>
{enabled ? m.account_passkey_mfa_disable_description() : m.account_passkey_mfa_description()}
diff --git a/frontend/src/lib/components/auth/passkey-settings.svelte b/frontend/src/lib/components/auth/passkey-settings.svelte
index 7d30c1ac5..e43738980 100644
--- a/frontend/src/lib/components/auth/passkey-settings.svelte
+++ b/frontend/src/lib/components/auth/passkey-settings.svelte
@@ -365,7 +365,7 @@
<div class="space-y-5">
{#if recoveryCodes.length > 0}
- <Alert.Root class="border-primary/30 bg-primary/5">
+ <Alert.Root variant="primary-subtle">
<AlertIcon class="size-4 text-primary" />
<Alert.Title>{m.account_passkey_mfa_recovery_codes()}</Alert.Title>
<Alert.Description>
@@ -401,15 +401,17 @@
<Alert.Root variant="destructive">
<AlertIcon class="size-4" />
<Alert.Title>{m.account_passkey_load_failed()}</Alert.Title>
- <Alert.Description class="space-y-3">
- <p>{loadError}</p>
- <ArcaneButton
- action="refresh"
- tone="outline"
- size="sm"
- customLabel={m.common_retry()}
- onclick={() => void loadAccountData()}
- />
+ <Alert.Description>
+ <div class="space-y-3">
+ <p>{loadError}</p>
+ <ArcaneButton
+ action="refresh"
+ tone="outline"
+ size="sm"
+ customLabel={m.common_retry()}
+ onclick={() => void loadAccountData()}
+ />
+ </div>
</Alert.Description>
</Alert.Root>
{/if}
diff --git a/frontend/src/lib/components/auth/step-up-dialog.svelte b/frontend/src/lib/components/auth/step-up-dialog.svelte
index b0f85f4c6..62c1c12a8 100644
--- a/frontend/src/lib/components/auth/step-up-dialog.svelte
+++ b/frontend/src/lib/components/auth/step-up-dialog.svelte
@@ -100,9 +100,11 @@
<Dialog.Root {open} onOpenChange={handleOpenChange}>
<Dialog.Content class="sm:max-w-md">
<Dialog.Header>
- <Dialog.Title class="flex items-center gap-2">
- <ApiKeyIcon class="size-5 text-primary" />
- {m.account_passkey_step_up_title()}
+ <Dialog.Title>
+ <span class="flex items-center gap-2">
+ <ApiKeyIcon class="size-5 text-primary" />
+ {m.account_passkey_step_up_title()}
+ </span>
</Dialog.Title>
<Dialog.Description>{m.account_passkey_step_up_description()}</Dialog.Description>
</Dialog.Header>
diff --git a/frontend/src/lib/components/backup-file-picker.svelte b/frontend/src/lib/components/backup-file-picker.svelte
index 493754802..7e278cd96 100644
--- a/frontend/src/lib/components/backup-file-picker.svelte
+++ b/frontend/src/lib/components/backup-file-picker.svelte
@@ -267,7 +267,7 @@
<div bind:this={scrollElement} class="h-64 overflow-auto rounded-md border p-1" data-backup-file-tree>
{#if rootLoading}
<div class="flex items-center justify-center py-8">
- <Spinner class="size-5 text-muted-foreground" />
+ <Spinner tone="muted" class="size-5" />
</div>
{:else if rootError !== null}
<div class="flex flex-col items-center justify-center gap-2 px-4 py-8 text-center text-sm" data-backup-file-root-error>
@@ -286,13 +286,13 @@
{m.volume_backup_no_files()}
</div>
{:else}
- <div class="relative min-w-max" style={`height: ${rowVirtualizer.totalSize}px`}>
+ <div class="relative h-(--total-height) min-w-max" style={`--total-height: ${rowVirtualizer.totalSize}px`}>
{#each rowVirtualizer.virtualItems as virtualItem (virtualItem.key)}
{@const row = rows[virtualItem.index]}
{#if row}
<div
- class="absolute top-0 left-0 w-full"
- style={`transform: translateY(${virtualItem.start}px)`}
+ class="absolute top-0 left-0 w-full translate-y-(--row-start)"
+ style={`--row-start: ${virtualItem.start}px`}
data-index={virtualItem.index}
{@attach rowVirtualizer.measureElement}
>
@@ -321,8 +321,8 @@
{:else}
{@const state = pages[row.folder]}
<div
- class="flex min-h-8 items-center gap-1.5 pr-2 text-xs text-muted-foreground"
- style={`padding-left: ${0.5 + row.depth * 1}rem`}
+ class="flex min-h-8 items-center gap-1.5 pr-2 pl-(--indent) text-xs text-muted-foreground"
+ style={`--indent: ${0.5 + row.depth * 1}rem`}
>
{#if state?.error}
<span>{m.backup_file_browser_load_remaining_failed()}</span>
diff --git a/frontend/src/lib/components/backup-policy-card.svelte b/frontend/src/lib/components/backup-policy-card.svelte
index 866bda59e..8516a0c27 100644
--- a/frontend/src/lib/components/backup-policy-card.svelte
+++ b/frontend/src/lib/components/backup-policy-card.svelte
@@ -31,7 +31,7 @@
</script>
<div
- class="grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-1.5 gap-y-0.5 rounded-md border px-2 py-1"
+ class="grid min-w-0 grid-cols-icon-content-action items-center gap-x-1.5 gap-y-0.5 rounded-md border px-2 py-1"
data-testid={resourceType ? `backup-policy-${resourceType}-${policy.id}` : undefined}
>
<Badge variant={policy.enabled ? 'green' : 'gray'}>{policy.enabled ? m.common_enabled() : m.common_disabled()}</Badge>
diff --git a/frontend/src/lib/components/backup-policy-dialog.svelte b/frontend/src/lib/components/backup-policy-dialog.svelte
index c79915df4..90e4cb4ce 100644
--- a/frontend/src/lib/components/backup-policy-dialog.svelte
+++ b/frontend/src/lib/components/backup-policy-dialog.svelte
@@ -37,7 +37,7 @@
updatePolicies,
messages,
onSaved,
- contentClass = 'sm:max-w-[720px]'
+ contentClass = 'sm:max-w-180'
}: {
open: boolean;
idPrefix: string;
diff --git a/frontend/src/lib/components/badges/port-badge.svelte b/frontend/src/lib/components/badges/port-badge.svelte
index 7eac003d6..0e871be74 100644
--- a/frontend/src/lib/components/badges/port-badge.svelte
+++ b/frontend/src/lib/components/badges/port-badge.svelte
@@ -105,7 +105,7 @@
{@const triggerProps = mergeProps(props, {
class: cn(
badgeVariants({ variant: 'sky', size: 'sm' }),
- 'hover:bg-sky-500/20 hover:border-sky-500/40 dark:hover:border-sky-500/50 focus-visible:outline-none'
+ 'hover:bg-info/20 hover:border-info/40 focus-visible:outline-none'
),
href: toPortHref(p.hostPort!, baseServerUrl),
target: '_blank',
diff --git a/frontend/src/lib/components/category-index-page.svelte b/frontend/src/lib/components/category-index-page.svelte
index a1a4867f8..4687e8a47 100644
--- a/frontend/src/lib/components/category-index-page.svelte
+++ b/frontend/src/lib/components/category-index-page.svelte
@@ -126,7 +126,7 @@
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 xl:grid-cols-3">
{#each categories as category (category.id)}
{@const Icon = category.icon}
- <Card class="hover-lift h-full hover:border-primary/30">
+ <Card interactive class="h-full">
<button
onclick={() => navigate(category.href)}
class="relative flex h-full w-full cursor-pointer items-center gap-3 p-4 text-left focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:outline-none focus-visible:ring-inset sm:gap-4 sm:p-5"
@@ -162,7 +162,7 @@
{#if categorySearch.isSearching}
<div class="py-8 text-center sm:py-12">
- <Spinner class="mx-auto mb-3 size-8 text-primary sm:mb-4 sm:size-12" />
+ <Spinner tone="primary" class="mx-auto mb-3 size-8 sm:mb-4 sm:size-12" />
<p class="text-sm text-muted-foreground sm:text-base">{searchingLabel}</p>
</div>
{:else if categorySearch.searchError}
@@ -209,7 +209,7 @@
<!-- Show matching items with descriptions -->
{#if result.matchingItems && result.matchingItems.length > 0}
<div class="space-y-2 p-4 sm:p-5">
- <h4 class="text-[11px] font-medium tracking-[0.08em] text-muted-foreground uppercase">
+ <h4 class="text-2xs font-medium tracking-widest text-muted-foreground uppercase">
{matchingItemsLabel}
</h4>
{#each result.matchingItems as item (item.key)}
@@ -236,7 +236,7 @@
{/if}
</div>
<span
- class="shrink-0 rounded-md bg-foreground/5 px-2 py-1 font-mono text-[11px] text-muted-foreground ring-1 ring-border/70 ring-inset"
+ class="shrink-0 rounded-md bg-foreground/5 px-2 py-1 font-mono text-2xs text-muted-foreground ring-1 ring-border/70 ring-inset"
>
{item.type}
</span>
diff --git a/frontend/src/lib/components/code-editor/editor.svelte b/frontend/src/lib/components/code-editor/editor.svelte
index 80b6325c5..d1293a9c3 100644
--- a/frontend/src/lib/components/code-editor/editor.svelte
+++ b/frontend/src/lib/components/code-editor/editor.svelte
@@ -796,11 +796,18 @@
{/if}
{#if outlineOpen && activeOutlineItems.length > 0}
- <div class="outline-panel">
- <div class="outline-title">Outline</div>
- <div class="outline-list">
+ <div
+ class="absolute top-2 right-2 z-(--arcane-z-sticky) max-h-full-inset w-64 overflow-hidden rounded-sm border bg-popover text-popover-foreground shadow-lg"
+ >
+ <div class="border-b px-3 py-2 text-xs font-bold">Outline</div>
+ <div class="max-h-80 overflow-auto p-1">
{#each activeOutlineItems as item (item.id)}
- <button type="button" class="outline-item level-{item.level}" onclick={() => jumpToOutlineItem(item)}>
+ <button
+ type="button"
+ class="w-full rounded-sm px-2 py-1 text-left text-xs hover:bg-primary/18"
+ class:pl-4={item.level === 1}
+ onclick={() => jumpToOutlineItem(item)}
+ >
{item.label}
</button>
{/each}
@@ -1017,43 +1024,6 @@
background-color: #f85149 !important;
color: #fff !important;
}
- .outline-panel {
- position: absolute;
- top: 0.5rem;
- right: 0.5rem;
- z-index: var(--arcane-z-sticky);
- width: 16rem;
- max-height: calc(100% - 1rem);
- overflow: hidden;
- border: 1px solid var(--border);
- border-radius: 0.5rem;
- background: color-mix(in oklab, var(--background) 95%, black 5%);
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
- }
- .outline-title {
- padding: 0.5rem 0.75rem;
- font-size: 0.75rem;
- font-weight: 700;
- border-bottom: 1px solid var(--border);
- }
- .outline-list {
- max-height: 20rem;
- overflow: auto;
- padding: 0.25rem;
- }
- .outline-item {
- width: 100%;
- text-align: left;
- padding: 0.25rem 0.5rem;
- font-size: 0.75rem;
- border-radius: 0.375rem;
- }
- .outline-item:hover {
- background: color-mix(in oklab, var(--primary) 18%, transparent);
- }
- .outline-item.level-1 {
- padding-left: 1rem;
- }
.editor-status {
display: flex;
gap: 0.75rem;
diff --git a/frontend/src/lib/components/code-panel.svelte b/frontend/src/lib/components/code-panel.svelte
index c8ecdadf5..e137629b0 100644
--- a/frontend/src/lib/components/code-panel.svelte
+++ b/frontend/src/lib/components/code-panel.svelte
@@ -127,7 +127,7 @@
{/snippet}
{#if variant === 'plain'}
- <div class="relative z-[var(--arcane-z-content)] flex min-h-0 {effectiveAutoHeight ? '' : 'flex-1'} flex-col" data-open={open}>
+ <div class="relative z-(--arcane-z-content) flex min-h-0 {effectiveAutoHeight ? '' : 'flex-1'} flex-col" data-open={open}>
{@render editorBody()}
</div>
{:else}
@@ -136,44 +136,42 @@
<Card.Title>
<h2>{title}</h2>
</Card.Title>
- <Card.Action class="flex items-center gap-1 pt-1">
- <ArcaneButton
- action="base"
- tone={outlineOpen ? 'outline-primary' : 'ghost'}
- size="icon"
- showLabel={false}
- icon={FileTextIcon}
- customLabel={m.compose_editor_toggle_outline()}
- onclick={() => (outlineOpen = !outlineOpen)}
- />
- {#if enableDiff && originalValue !== undefined}
+ <Card.Action>
+ <div class="flex items-center gap-1 pt-1">
<ArcaneButton
action="base"
- tone={diffOpen ? 'outline-primary' : 'ghost'}
+ tone={outlineOpen ? 'outline-primary' : 'ghost'}
size="icon"
showLabel={false}
- icon={ArrowsUpDownIcon}
- customLabel={m.compose_editor_toggle_diff()}
- onclick={() => (diffOpen = !diffOpen)}
+ icon={FileTextIcon}
+ customLabel={m.compose_editor_toggle_outline()}
+ onclick={() => (outlineOpen = !outlineOpen)}
/>
- {/if}
- <ArcaneButton
- action="base"
- tone="ghost"
- size="icon"
- showLabel={false}
- icon={SearchIcon}
- customLabel={m.compose_editor_command_palette()}
- onclick={() => (commandPaletteOpen = true)}
- />
+ {#if enableDiff && originalValue !== undefined}
+ <ArcaneButton
+ action="base"
+ tone={diffOpen ? 'outline-primary' : 'ghost'}
+ size="icon"
+ showLabel={false}
+ icon={ArrowsUpDownIcon}
+ customLabel={m.compose_editor_toggle_diff()}
+ onclick={() => (diffOpen = !diffOpen)}
+ />
+ {/if}
+ <ArcaneButton
+ action="base"
+ tone="ghost"
+ size="icon"
+ showLabel={false}
+ icon={SearchIcon}
+ customLabel={m.compose_editor_command_palette()}
+ onclick={() => (commandPaletteOpen = true)}
+ />
+ </div>
</Card.Action>
</Card.Header>
- <Card.Content
- class="relative z-[var(--arcane-z-content)] flex min-h-0 {effectiveAutoHeight
- ? ''
- : 'flex-1'} flex-col overflow-visible p-0"
- >
+ <div class="relative z-(--arcane-z-content) flex min-h-0 {effectiveAutoHeight ? '' : 'flex-1'} flex-col overflow-visible">
{@render editorBody()}
- </Card.Content>
+ </div>
</Card.Root>
{/if}
diff --git a/frontend/src/lib/components/compose-create-menu.svelte b/frontend/src/lib/components/compose-create-menu.svelte
index 68327c919..84a5234e6 100644
--- a/frontend/src/lib/components/compose-create-menu.svelte
+++ b/frontend/src/lib/components/compose-create-menu.svelte
@@ -15,7 +15,7 @@
import * as DropdownMenu from '#lib/components/ui/dropdown-menu/index.js';
import IfPermitted from '#lib/components/if-permitted.svelte';
import { TerminalIcon, TemplateIcon, AddIcon, ArrowDownIcon as ChevronDown, GitBranchIcon } from '#lib/icons/index.js';
- import { dropdownContentClass, dropdownItemClass, templateBtnClass } from '#lib/utils/compose-flow.js';
+ import { templateBtnClass } from '#lib/utils/compose-flow.js';
import { mergeProps } from 'bits-ui';
interface Props {
@@ -87,7 +87,7 @@
</script>
{#snippet createTemplateItem()}
- <DropdownMenu.Item class={dropdownItemClass} disabled={createTemplateDisabled} onclick={onCreateTemplate}>
+ <DropdownMenu.Item disabled={createTemplateDisabled} onclick={onCreateTemplate}>
{#if createTemplateLoading}
<Spinner class="size-4" />
{:else}
@@ -115,7 +115,7 @@
/>
{/snippet}
</ArcaneTooltip.Trigger>
- <ArcaneTooltip.Content class="arcane-tooltip-content max-w-[280px]">
+ <ArcaneTooltip.Content class="max-w-70">
{#if tooltipVisible}
<p class="mb-1 text-sm font-medium">{tooltipTitle}</p>
<p class="text-xs text-muted-foreground">{tooltipDescription}</p>
@@ -139,19 +139,19 @@
/>
{/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content align="end" class={dropdownContentClass}>
+ <DropdownMenu.Content align="end" class="min-w-55">
<DropdownMenu.Group>
{#if showUseTemplate}
- <DropdownMenu.Item class={dropdownItemClass} disabled={itemsDisabled} onclick={onUseTemplate}>
+ <DropdownMenu.Item disabled={itemsDisabled} onclick={onUseTemplate}>
<TemplateIcon class="size-4" />
{useTemplateLabel}
</DropdownMenu.Item>
{/if}
- <DropdownMenu.Item class={dropdownItemClass} onclick={onConvert}>
+ <DropdownMenu.Item onclick={onConvert}>
<TerminalIcon class="size-4" />
{convertLabel}
</DropdownMenu.Item>
- <DropdownMenu.Item class={dropdownItemClass} onclick={onFromGit}>
+ <DropdownMenu.Item onclick={onFromGit}>
<GitBranchIcon class="size-4" />
{fromGitLabel}
</DropdownMenu.Item>
diff --git a/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte b/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte
index 372767a89..a6f1937fb 100644
--- a/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte
+++ b/frontend/src/lib/components/compose/docker-run-converter-dialog.svelte
@@ -57,13 +57,13 @@
</script>
<Dialog.Root bind:open>
- <Dialog.Content class="max-h-[80vh] sm:max-w-[800px]">
+ <Dialog.Content class="max-h-(--max-height-screen-80) sm:max-w-200">
<Dialog.Header>
<Dialog.Title>{m.compose_converter_title()}</Dialog.Title>
<Dialog.Description>{m.compose_converter_description()}</Dialog.Description>
</Dialog.Header>
- <div class="max-h-[60vh] space-y-4 overflow-y-auto">
+ <div class="max-h-screen-60 space-y-4 overflow-y-auto">
<div class="space-y-2">
<Label for="dockerRunCommand">{m.docker_run_command()}</Label>
<Textarea
@@ -72,12 +72,12 @@
placeholder={m.compose_docker_run_placeholder()}
rows={3}
disabled={converting}
- class="font-mono text-sm"
+ mono
/>
</div>
<div class="space-y-2">
- <Label class="text-xs text-muted-foreground">{m.compose_example_commands_label()}</Label>
+ <Label variant="muted" size="xs">{m.compose_example_commands_label()}</Label>
<div class="space-y-1">
{#each exampleCommands as command (command)}
<ArcaneButton
diff --git a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
index dabf61341..79ef24a16 100644
--- a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
+++ b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
@@ -27,16 +27,20 @@
{#if dialog}
<Dialog.Root bind:open={dialog.open}>
<Dialog.Content
- class="z-[var(--arcane-z-critical-surface)] w-full max-w-md sm:max-w-lg"
- overlayClass="z-[var(--arcane-z-critical-surface)]"
+ class="z-(--arcane-z-critical-surface) w-full max-w-md sm:max-w-lg"
+ overlayClass="z-(--arcane-z-critical-surface)"
>
- <Dialog.Header class="space-y-3">
- <Dialog.Title class="flex items-start gap-3 text-lg leading-tight font-semibold">
- <AlertIcon class="mt-0.5 size-5 shrink-0 text-destructive" />
- <span class="min-w-0 break-words">
- {dialog.title}
- </span>
- </Dialog.Title>
+ <Dialog.Header>
+ <div class="space-y-3">
+ <Dialog.Title>
+ <span class="flex items-start gap-3 leading-tight">
+ <AlertIcon class="mt-0.5 size-5 shrink-0 text-destructive" />
+ <span class="min-w-0 break-words">
+ {dialog.title}
+ </span>
+ </span>
+ </Dialog.Title>
+ </div>
</Dialog.Header>
<div class="mt-4 min-w-0 text-sm leading-relaxed break-words whitespace-pre-wrap text-muted-foreground">
@@ -65,12 +69,10 @@
{/if}
<div class="min-w-0">
- <Label
- id={`${checkbox.id}-label`}
- for={checkbox.id}
- class="min-w-0 text-sm leading-relaxed font-medium break-words peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
- >
- {checkbox.label}
+ <Label id={`${checkbox.id}-label`} for={checkbox.id} class="min-w-0 break-words peer-disabled:cursor-not-allowed">
+ <span class="leading-relaxed">
+ {checkbox.label}
+ </span>
</Label>
{#if checkbox.id === 'files' && dialog.checkboxStates[checkbox.id]}
@@ -84,9 +86,9 @@
<Dialog.Footer class="mt-6">
<div class="flex w-full justify-end gap-3">
- <ArcaneButton class="min-w-[80px]" action="cancel" onclick={() => (dialog.open = false)} />
+ <ArcaneButton class="min-w-20" action="cancel" onclick={() => (dialog.open = false)} />
<ArcaneButton
- class="min-w-[80px]"
+ class="min-w-20"
action={dialog.confirm.button ?? (dialog.confirm.destructive ? 'remove' : 'confirm')}
customLabel={dialog.confirm.label}
onclick={handleConfirm}
diff --git a/frontend/src/lib/components/containers/container-form/container-form.svelte b/frontend/src/lib/components/containers/container-form/container-form.svelte
index 1f84ddd6d..305ca71cb 100644
--- a/frontend/src/lib/components/containers/container-form/container-form.svelte
+++ b/frontend/src/lib/components/containers/container-form/container-form.svelte
@@ -135,10 +135,10 @@
{#snippet capabilitySelector(label: string, field: 'capAdd' | 'capDrop', available: { label: string; value: string }[])}
<div class="space-y-2">
- <Label class="text-sm font-medium">{label}</Label>
+ <Label>{label}</Label>
<div class="flex flex-wrap gap-1.5">
{#each rows[field] as cap (cap)}
- <Badge variant="secondary" class="gap-1 font-mono text-xs">
+ <Badge variant="secondary" mono>
{cap}
<button type="button" onclick={() => (rows[field] = rows[field].filter((c) => c !== cap))} disabled={submitting}>
<CloseIcon class="size-3" />
@@ -174,244 +174,262 @@
<div class="flex-1 py-6">
<!-- General -->
- <Tabs.Content value="general" class="mt-0 space-y-6">
- <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
- <div class="space-y-2">
- <Label for="container-name" class="text-sm font-medium">
- {m.container_name_label()} <span class="text-destructive">*</span>
- </Label>
- <Input
- id="container-name"
+ <Tabs.Content value="general" class="mt-0">
+ <div class="space-y-6">
+ <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
+ <div class="space-y-2">
+ <Label for="container-name">
+ {m.container_name_label()} <span class="text-destructive">*</span>
+ </Label>
+ <Input
+ id="container-name"
+ type="text"
+ placeholder={m.container_name_placeholder()}
+ disabled={submitting}
+ bind:value={inputs.name.value}
+ aria-invalid={!!inputs.name.error}
+ />
+ {#if inputs.name.error}
+ <p class="text-xs text-destructive">{inputs.name.error}</p>
+ {/if}
+ </div>
+ <div class="relative space-y-2">
+ <Label for="container-image">
+ {m.common_image()} <span class="text-destructive">*</span>
+ </Label>
+ <Input
+ id="container-image"
+ type="text"
+ placeholder={m.nginx_latest_placeholder()}
+ disabled={submitting}
+ bind:value={inputs.image.value}
+ oninput={onImageInput}
+ aria-invalid={!!inputs.image.error}
+ autocomplete="off"
+ />
+ {#if imageSuggestions.length > 0}
+ <div class="absolute z-10 w-full rounded-md border bg-popover shadow-md">
+ {#each imageSuggestions as suggestion (suggestion.name)}
+ <button
+ type="button"
+ class="block w-full px-3 py-2 text-left text-sm hover:bg-accent"
+ onclick={() => applyImageSuggestion(suggestion.name)}
+ >
+ <span class="font-mono">{suggestion.name}</span>
+ {#if suggestion.official}
+ <Badge variant="secondary" size="xs" class="ml-2">official</Badge>
+ {/if}
+ </button>
+ {/each}
+ </div>
+ {/if}
+ {#if inputs.image.error}
+ <p class="text-xs text-destructive">{inputs.image.error}</p>
+ {/if}
+ {#if mode === 'edit'}
+ <p class="text-xs text-muted-foreground">{m.image_pull_if_missing_note()}</p>
+ {/if}
+ </div>
+ <FormInput
+ label={m.common_command()}
type="text"
- placeholder={m.container_name_placeholder()}
+ placeholder={m.container_command_placeholder()}
disabled={submitting}
- bind:value={inputs.name.value}
- class={inputs.name.error ? 'border-destructive' : ''}
+ bind:input={inputs.command}
/>
- {#if inputs.name.error}
- <p class="text-xs text-destructive">{inputs.name.error}</p>
- {/if}
- </div>
- <div class="relative space-y-2">
- <Label for="container-image" class="text-sm font-medium">
- {m.common_image()} <span class="text-destructive">*</span>
- </Label>
- <Input
- id="container-image"
+ <FormInput
+ label={m.common_entrypoint()}
type="text"
- placeholder={m.nginx_latest_placeholder()}
+ placeholder="/docker-entrypoint.sh"
disabled={submitting}
- bind:value={inputs.image.value}
- oninput={onImageInput}
- class={inputs.image.error ? 'border-destructive' : ''}
- autocomplete="off"
+ bind:input={inputs.entrypoint}
+ />
+ <FormInput
+ label={m.common_working_directory()}
+ type="text"
+ placeholder={m.app_placeholder()}
+ disabled={submitting}
+ bind:input={inputs.workingDir}
+ />
+ <FormInput
+ label={m.common_user()}
+ type="text"
+ placeholder={m.container_user_placeholder()}
+ disabled={submitting}
+ bind:input={inputs.user}
/>
- {#if imageSuggestions.length > 0}
- <div class="absolute z-10 w-full rounded-md border bg-popover shadow-md">
- {#each imageSuggestions as suggestion (suggestion.name)}
- <button
- type="button"
- class="block w-full px-3 py-2 text-left text-sm hover:bg-accent"
- onclick={() => applyImageSuggestion(suggestion.name)}
- >
- <span class="font-mono">{suggestion.name}</span>
- {#if suggestion.official}
- <Badge variant="secondary" class="ml-2 text-[10px]">official</Badge>
- {/if}
- </button>
- {/each}
- </div>
- {/if}
- {#if inputs.image.error}
- <p class="text-xs text-destructive">{inputs.image.error}</p>
- {/if}
- {#if mode === 'edit'}
- <p class="text-xs text-muted-foreground">{m.image_pull_if_missing_note()}</p>
- {/if}
</div>
- <FormInput
- label={m.common_command()}
- type="text"
- placeholder={m.container_command_placeholder()}
- disabled={submitting}
- bind:input={inputs.command}
- />
- <FormInput
- label={m.common_entrypoint()}
- type="text"
- placeholder="/docker-entrypoint.sh"
- disabled={submitting}
- bind:input={inputs.entrypoint}
- />
- <FormInput
- label={m.common_working_directory()}
- type="text"
- placeholder={m.app_placeholder()}
- disabled={submitting}
- bind:input={inputs.workingDir}
- />
- <FormInput
- label={m.common_user()}
- type="text"
- placeholder={m.container_user_placeholder()}
- disabled={submitting}
- bind:input={inputs.user}
- />
</div>
</Tabs.Content>
<!-- Environment (env vars + labels) -->
- <Tabs.Content value="environment" class="mt-0 space-y-8">
- <div class="space-y-4">
- {@render groupTitle(m.common_environment_variables())}
- <KeyValueEditor bind:rows={rows.env} disabled={submitting} />
- </div>
- <div class="space-y-4">
- {@render groupTitle(m.common_labels())}
- <KeyValueEditor
- bind:rows={rows.labels}
- disabled={submitting}
- keyPlaceholder="com.example.key"
- valuePlaceholder="value"
- />
+ <Tabs.Content value="environment" class="mt-0">
+ <div class="space-y-8">
+ <div class="space-y-4">
+ {@render groupTitle(m.common_environment_variables())}
+ <KeyValueEditor bind:rows={rows.env} disabled={submitting} />
+ </div>
+ <div class="space-y-4">
+ {@render groupTitle(m.common_labels())}
+ <KeyValueEditor
+ bind:rows={rows.labels}
+ disabled={submitting}
+ keyPlaceholder="com.example.key"
+ valuePlaceholder="value"
+ />
+ </div>
</div>
</Tabs.Content>
<!-- Ports -->
- <Tabs.Content value="ports" class="mt-0 space-y-4">
- {@render groupTitle(m.common_port_mappings())}
- <PortMappingEditor bind:rows={rows.ports} disabled={submitting} />
+ <Tabs.Content value="ports" class="mt-0">
+ <div class="space-y-4">
+ {@render groupTitle(m.common_port_mappings())}
+ <PortMappingEditor bind:rows={rows.ports} disabled={submitting} />
+ </div>
</Tabs.Content>
<!-- Volumes -->
- <Tabs.Content value="volumes" class="mt-0 space-y-4">
- {@render groupTitle(m.resource_volumes_cap(), mode === 'edit' ? m.mount_options_note() : undefined)}
- <VolumeMountEditor bind:rows={rows.volumes} volumes={volumeNames} disabled={submitting} />
+ <Tabs.Content value="volumes" class="mt-0">
+ <div class="space-y-4">
+ {@render groupTitle(m.resource_volumes_cap(), mode === 'edit' ? m.mount_options_note() : undefined)}
+ <VolumeMountEditor bind:rows={rows.volumes} volumes={volumeNames} disabled={submitting} />
+ </div>
</Tabs.Content>
<!-- Networks -->
- <Tabs.Content value="networks" class="mt-0 space-y-4">
- {@render groupTitle(m.resource_networks_cap(), m.aliases_note())}
- <NetworkAttachmentEditor bind:rows={rows.networks} networks={networkNames} disabled={submitting} />
+ <Tabs.Content value="networks" class="mt-0">
+ <div class="space-y-4">
+ {@render groupTitle(m.resource_networks_cap(), m.aliases_note())}
+ <NetworkAttachmentEditor bind:rows={rows.networks} networks={networkNames} disabled={submitting} />
+ </div>
</Tabs.Content>
<!-- Advanced (resources, security, healthcheck) -->
- <Tabs.Content value="advanced" class="mt-0 space-y-8">
- <div class="space-y-4">
- {@render groupTitle(m.common_resources())}
- <div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4">
- <FormInput
- label={m.memory_limit_mb()}
- type="number"
- placeholder="0"
- disabled={submitting}
- bind:input={inputs.memoryMb}
- />
- <FormInput
- label={m.memory_swap_mb()}
- type="number"
- placeholder="0"
- disabled={submitting}
- bind:input={inputs.memorySwapMb}
- />
- <FormInput label={m.common_cpus()} type="number" placeholder="0" disabled={submitting} bind:input={inputs.cpus} />
- <FormInput label={m.cpu_shares()} type="number" placeholder="0" disabled={submitting} bind:input={inputs.cpuShares} />
- </div>
- <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
- <SelectWithLabel
- id="restart-policy"
- bind:value={inputs.restartPolicy.value}
- label={m.restart_policy_label()}
- options={restartPolicies}
- placeholder={m.container_select_restart_policy()}
- disabled={submitting}
- />
- {#if inputs.restartPolicy.value === 'on-failure'}
+ <Tabs.Content value="advanced" class="mt-0">
+ <div class="space-y-8">
+ <div class="space-y-4">
+ {@render groupTitle(m.common_resources())}
+ <div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4">
<FormInput
- label={m.max_retry_label()}
+ label={m.memory_limit_mb()}
type="number"
- placeholder={m.max_retry_placeholder()}
- disabled={submitting}
- bind:input={inputs.restartMaxRetries}
- />
- {/if}
- </div>
- <div class="flex items-center space-x-2">
- <Checkbox id="auto-remove" bind:checked={inputs.autoRemove.value} disabled={submitting} />
- <Label for="auto-remove" class="text-sm font-normal">{m.auto_remove_label()}</Label>
- </div>
- </div>
-
- <div class="space-y-4 border-t border-border/50 pt-6">
- {@render groupTitle(m.common_security())}
- <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
- <div class="flex items-center space-x-2">
- <Checkbox id="privileged" bind:checked={inputs.privileged.value} disabled={submitting} />
- <Label for="privileged" class="text-sm font-normal">{m.privileged_label()}</Label>
- </div>
- <div class="flex items-center space-x-2">
- <Checkbox id="readonly-rootfs" bind:checked={inputs.readonlyRootfs.value} disabled={submitting} />
- <Label for="readonly-rootfs" class="text-sm font-normal">{m.readonly_rootfs_label()}</Label>
- </div>
- </div>
- <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
- {@render capabilitySelector(m.cap_add(), 'capAdd', availableCapAdd)}
- {@render capabilitySelector(m.cap_drop(), 'capDrop', availableCapDrop)}
- </div>
- </div>
-
- <div class="space-y-4 border-t border-border/50 pt-6">
- {@render groupTitle(m.health_configuration())}
- <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
- <SelectWithLabel
- id="health-mode"
- bind:value={inputs.healthMode.value}
- label={m.common_mode()}
- options={healthModes}
- disabled={submitting}
- />
- {#if inputs.healthMode.value === 'custom'}
- <FormInput
- label={m.health_test_command()}
- type="text"
- placeholder="curl -f http://localhost/ || exit 1"
+ placeholder="0"
disabled={submitting}
- bind:input={inputs.healthTest}
+ bind:input={inputs.memoryMb}
/>
- {/if}
- </div>
- {#if inputs.healthMode.value === 'custom'}
- <div class="grid grid-cols-2 gap-6 lg:grid-cols-4">
<FormInput
- label={`${m.health_interval()} (s)`}
+ label={m.memory_swap_mb()}
type="number"
- placeholder="30"
+ placeholder="0"
disabled={submitting}
- bind:input={inputs.healthInterval}
+ bind:input={inputs.memorySwapMb}
/>
+ <FormInput label={m.common_cpus()} type="number" placeholder="0" disabled={submitting} bind:input={inputs.cpus} />
<FormInput
- label={`${m.health_timeout()} (s)`}
+ label={m.cpu_shares()}
type="number"
- placeholder="30"
+ placeholder="0"
disabled={submitting}
- bind:input={inputs.healthTimeout}
+ bind:input={inputs.cpuShares}
/>
- <FormInput
- label={`${m.health_start_period()} (s)`}
- type="number"
- placeholder="0"
+ </div>
+ <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
+ <SelectWithLabel
+ id="restart-policy"
+ bind:value={inputs.restartPolicy.value}
+ label={m.restart_policy_label()}
+ options={restartPolicies}
+ placeholder={m.container_select_restart_policy()}
disabled={submitting}
- bind:input={inputs.healthStartPeriod}
/>
- <FormInput
- label={m.health_retries()}
- type="number"
- placeholder="3"
+ {#if inputs.restartPolicy.value === 'on-failure'}
+ <FormInput
+ label={m.max_retry_label()}
+ type="number"
+ placeholder={m.max_retry_placeholder()}
+ disabled={submitting}
+ bind:input={inputs.restartMaxRetries}
+ />
+ {/if}
+ </div>
+ <div class="flex items-center space-x-2">
+ <Checkbox id="auto-remove" bind:checked={inputs.autoRemove.value} disabled={submitting} />
+ <Label for="auto-remove" weight="normal">{m.auto_remove_label()}</Label>
+ </div>
+ </div>
+
+ <div class="space-y-4 border-t border-border/50 pt-6">
+ {@render groupTitle(m.common_security())}
+ <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
+ <div class="flex items-center space-x-2">
+ <Checkbox id="privileged" bind:checked={inputs.privileged.value} disabled={submitting} />
+ <Label for="privileged" weight="normal">{m.privileged_label()}</Label>
+ </div>
+ <div class="flex items-center space-x-2">
+ <Checkbox id="readonly-rootfs" bind:checked={inputs.readonlyRootfs.value} disabled={submitting} />
+ <Label for="readonly-rootfs" weight="normal">{m.readonly_rootfs_label()}</Label>
+ </div>
+ </div>
+ <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
+ {@render capabilitySelector(m.cap_add(), 'capAdd', availableCapAdd)}
+ {@render capabilitySelector(m.cap_drop(), 'capDrop', availableCapDrop)}
+ </div>
+ </div>
+
+ <div class="space-y-4 border-t border-border/50 pt-6">
+ {@render groupTitle(m.health_configuration())}
+ <div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
+ <SelectWithLabel
+ id="health-mode"
+ bind:value={inputs.healthMode.value}
+ label={m.common_mode()}
+ options={healthModes}
disabled={submitting}
- bind:input={inputs.healthRetries}
/>
+ {#if inputs.healthMode.value === 'custom'}
+ <FormInput
+ label={m.health_test_command()}
+ type="text"
+ placeholder="curl -f http://localhost/ || exit 1"
+ disabled={submitting}
+ bind:input={inputs.healthTest}
+ />
+ {/if}
</div>
- {/if}
+ {#if inputs.healthMode.value === 'custom'}
+ <div class="grid grid-cols-2 gap-6 lg:grid-cols-4">
+ <FormInput
+ label={`${m.health_interval()} (s)`}
+ type="number"
+ placeholder="30"
+ disabled={submitting}
+ bind:input={inputs.healthInterval}
+ />
+ <FormInput
+ label={`${m.health_timeout()} (s)`}
+ type="number"
+ placeholder="30"
+ disabled={submitting}
+ bind:input={inputs.healthTimeout}
+ />
+ <FormInput
+ label={`${m.health_start_period()} (s)`}
+ type="number"
+ placeholder="0"
+ disabled={submitting}
+ bind:input={inputs.healthStartPeriod}
+ />
+ <FormInput
+ label={m.health_retries()}
+ type="number"
+ placeholder="3"
+ disabled={submitting}
+ bind:input={inputs.healthRetries}
+ />
+ </div>
+ {/if}
+ </div>
</div>
</Tabs.Content>
</div>
diff --git a/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte b/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte
index 801061d57..2f558fb85 100644
--- a/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte
+++ b/frontend/src/lib/components/deploy-split-button/deploy-split-button.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { ArcaneButton, arcaneButtonVariants, type ArcaneButtonSize } from '#lib/components/arcane-button/index.js';
+ import { ArcaneButton, type ArcaneButtonSize } from '#lib/components/arcane-button/index.js';
import * as ButtonGroup from '#lib/components/ui/button-group/index.js';
import * as DropdownMenu from '#lib/components/ui/dropdown-menu/index.js';
import { ArrowDownIcon, TerminalIcon } from '#lib/icons/index.js';
@@ -31,17 +31,21 @@
<DropdownMenu.Root>
<DropdownMenu.Trigger
- class={cn(
- arcaneButtonVariants({ tone: 'outline-primary', size: 'icon' }),
- size === 'sm' && 'size-8 rounded-lg',
- size === 'lg' && 'size-10 rounded-xl'
- )}
- aria-label={m.common_open_menu()}
disabled={loading || disabled}
onclick={(event) => event.stopPropagation()}
onpointerdown={(event) => event.stopPropagation()}
>
- <ArrowDownIcon class="size-4" />
+ {#snippet child({ props })}
+ <ArcaneButton
+ {...props}
+ action="base"
+ tone="outline-primary"
+ size="icon"
+ icon={ArrowDownIcon}
+ class={cn(size === 'sm' && 'size-8 rounded-lg', size === 'lg' && 'size-10 rounded-xl')}
+ aria-label={m.common_open_menu()}
+ />
+ {/snippet}
</DropdownMenu.Trigger>
<DropdownMenu.Content align="end" class="w-72">
diff --git a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
index 7f8c2b3cc..921f6188b 100644
--- a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
@@ -44,7 +44,7 @@
onOpenChange={(nextOpen) => (open = nextOpen)}
title={m.docker_engine_title({ engine: dockerInfo?.Name ?? 'Docker Engine' })}
description={m.docker_info_dialog_description()}
- contentClass="sm:max-w-[1100px]"
+ contentClass="sm:max-w-275"
showCloseButton={false}
>
{#snippet children()}
@@ -105,13 +105,13 @@
{/snippet}
{#snippet warningsCard(warnings: string[])}
- <div class="space-y-0.5 border-l-2 border-amber-500/50 pl-2.5">
- <h3 class="text-[10px] font-semibold tracking-wider text-amber-600 uppercase dark:text-amber-400">
+ <div class="space-y-0.5 border-l-2 border-warning/50 pl-2.5">
+ <h3 class="text-3xs font-semibold tracking-wider text-warning uppercase">
{m.docker_info_warnings_section()}
</h3>
<ul class="space-y-0.5">
{#each withOccurrenceKeys(warnings) as { value: warning, key } (key)}
- <li class="text-xs [overflow-wrap:anywhere] text-amber-700 dark:text-amber-300">{warning}</li>
+ <li class="text-xs wrap-anywhere text-warning">{warning}</li>
{/each}
</ul>
</div>
@@ -119,10 +119,10 @@
{#snippet statStrip(info: DockerInfo)}
<div class="flex flex-wrap items-center gap-x-5 gap-y-1.5 border-b border-border/50 pb-2.5">
- {@render stat(m.common_running(), info.ContainersRunning ?? 0, 'bg-emerald-500')}
- {@render stat(m.paused(), info.ContainersPaused ?? 0, 'bg-amber-500')}
- {@render stat(m.common_stopped(), info.ContainersStopped ?? 0, 'bg-red-500')}
- {@render stat(m.images(), info.Images ?? 0, 'bg-blue-500')}
+ {@render stat(m.common_running(), info.ContainersRunning ?? 0, 'bg-success')}
+ {@render stat(m.paused(), info.ContainersPaused ?? 0, 'bg-warning')}
+ {@render stat(m.common_stopped(), info.ContainersStopped ?? 0, 'bg-destructive')}
+ {@render stat(m.images(), info.Images ?? 0, 'bg-info')}
<div class="hidden h-3 w-px bg-border/50 sm:block"></div>
{@render stat(m.common_cpus(), info.NCPU ?? 0)}
{@render stat(m.docker_info_memory_label(), (info.MemTotal ? bytes.format(info.MemTotal) : null) ?? '-')}
@@ -137,13 +137,13 @@
<span class="size-1.5 shrink-0 self-center rounded-full {dot}"></span>
{/if}
<span class="text-sm font-semibold tabular-nums">{value}</span>
- <span class="text-[10px] tracking-tight whitespace-nowrap text-muted-foreground uppercase">{label}</span>
+ <span class="text-3xs tracking-tight whitespace-nowrap text-muted-foreground uppercase">{label}</span>
</div>
{/snippet}
{#snippet systemSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_system_section()}
</h3>
<div class="space-y-0.5">
@@ -163,17 +163,15 @@
{#snippet versionSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_version_section()}
</h3>
<div class="space-y-0.5">
{@render infoRow(m.docker_info_server_version_label(), info.ServerVersion)}
{@render infoRow(m.docker_info_api_version_label(), info.apiVersion)}
{@render infoRow(m.go_version(), info.goVersion)}
- <div class="grid grid-cols-[minmax(104px,38%)_minmax(0,1fr)] items-baseline gap-x-3">
- <span class="text-[10px] leading-4 tracking-tight text-muted-foreground uppercase"
- >{m.docker_info_git_commit_label()}</span
- >
+ <div class="grid grid-cols-label-value items-baseline gap-x-3">
+ <span class="text-3xs leading-4 tracking-tight text-muted-foreground uppercase">{m.docker_info_git_commit_label()}</span>
<div class="flex items-center justify-end gap-1.5">
<code class="rounded bg-muted px-1.5 py-0.5 text-xs">{info.gitCommit?.slice(0, 8) ?? '-'}</code>
{#if info.gitCommit}
@@ -195,7 +193,7 @@
{#snippet configurationSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.common_configuration()}
</h3>
<div class="space-y-0.5">
@@ -215,7 +213,7 @@
{#snippet capabilitiesSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_capabilities_section()}
</h3>
<div class="grid grid-cols-2 gap-x-4 gap-y-0.5">
@@ -234,7 +232,7 @@
{#snippet storageDetailsSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_storage_details_section()}
</h3>
<div class="space-y-0.5">
@@ -247,7 +245,7 @@
{#snippet networkSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.resource_networks_cap()} & {m.docker_info_proxy_label()}
</h3>
<div class="space-y-0.5">
@@ -271,7 +269,7 @@
{#snippet securitySection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.security()} & {m.docker_info_runtimes()}
</h3>
<div class="space-y-1">
@@ -283,7 +281,7 @@
{#snippet pluginsSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_plugins_section()}
</h3>
<div class="space-y-1">
@@ -304,7 +302,7 @@
Nodes?: number;
}}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.swarm()}
</h3>
<div class="space-y-0.5">
@@ -319,20 +317,20 @@
{#snippet labelsSection(info: DockerInfo)}
<section class="space-y-1.5">
- <h3 class="border-b border-border/50 pb-1 text-[10px] font-semibold tracking-wider text-muted-foreground uppercase">
+ <h3 class="border-b border-border/50 pb-1 text-3xs font-semibold tracking-wider text-muted-foreground uppercase">
{m.docker_info_labels_section()}
</h3>
<div class="flex flex-wrap gap-1">
{#each withOccurrenceKeys(info.Labels) as { value: label, key } (key)}
- <Badge variant="outline" size="sm" class="font-mono">{label}</Badge>
+ <Badge variant="outline" size="sm" mono>{label}</Badge>
{/each}
</div>
</section>
{/snippet}
{#snippet tagGroup(label: string, items: string[] | undefined)}
- <div class="grid grid-cols-[minmax(96px,32%)_minmax(0,1fr)] items-baseline gap-x-3">
- <span class="text-[10px] leading-4 tracking-tight text-muted-foreground uppercase">{label}</span>
+ <div class="grid grid-cols-label-value items-baseline gap-x-3">
+ <span class="text-3xs leading-4 tracking-tight text-muted-foreground uppercase">{label}</span>
<div class="flex flex-wrap justify-end gap-1">
{#each withOccurrenceKeys(items) as { value: item, key } (key)}
<Badge variant="outline" size="sm">{item}</Badge>
@@ -345,9 +343,9 @@
{#snippet capRow(label: string, value: boolean | undefined)}
<div class="flex items-center justify-between gap-2">
- <span class="text-[10px] tracking-tight [overflow-wrap:anywhere] text-muted-foreground uppercase">{label}</span>
+ <span class="text-3xs tracking-tight wrap-anywhere text-muted-foreground uppercase">{label}</span>
{#if value}
- <CheckIcon class="size-3 shrink-0 text-emerald-600 dark:text-emerald-400" />
+ <CheckIcon class="size-3 shrink-0 text-success" />
<span class="sr-only">{m.common_yes()}</span>
{:else}
<CloseIcon class="size-3 shrink-0 text-muted-foreground/50" />
@@ -358,9 +356,9 @@
{#snippet blockRow(label: string, value: string)}
<div class="space-y-0.5 pt-0.5">
- <div class="text-[10px] tracking-tight text-muted-foreground uppercase">{label}</div>
+ <div class="text-3xs tracking-tight text-muted-foreground uppercase">{label}</div>
<div
- class="max-h-48 overflow-y-auto rounded-md bg-muted/30 px-2 py-1 font-mono text-[11px] leading-relaxed break-all text-foreground/80"
+ class="max-h-48 overflow-y-auto rounded-md bg-muted/30 px-2 py-1 font-mono text-2xs leading-relaxed break-all text-foreground/80"
>
{value}
</div>
@@ -368,9 +366,9 @@
{/snippet}
{#snippet infoRow(label: string, value: string | number | undefined | null, mono: boolean = true)}
- <div class="grid grid-cols-[minmax(104px,38%)_minmax(0,1fr)] items-baseline gap-x-3">
- <span class="text-[10px] leading-4 tracking-tight text-muted-foreground uppercase">{label}</span>
- <span class="text-right text-xs leading-4 [overflow-wrap:anywhere] {mono ? 'font-mono' : ''}">
+ <div class="grid grid-cols-label-value items-baseline gap-x-3">
+ <span class="text-3xs leading-4 tracking-tight text-muted-foreground uppercase">{label}</span>
+ <span class="text-right text-xs leading-4 wrap-anywhere {mono ? 'font-mono' : ''}">
{value === undefined || value === null || value === '' ? '-' : value}
</span>
</div>
diff --git a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
index e07790456..fdbc21310 100644
--- a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
@@ -3,7 +3,7 @@
import { ResponsiveDialog } from '#lib/components/ui/responsive-dialog/index.js';
import { ArcaneButton } from '#lib/components/arcane-button/index.js';
- import { Input } from '#lib/components/ui/input/index.js';
+ import * as InputGroup from '#lib/components/ui/input-group/index.js';
import { Spinner } from '#lib/components/ui/spinner/index.js';
import { environmentStore } from '#lib/stores/environment.store.svelte.js';
import { environmentManagementService } from '#lib/services/env-mgmt-service.js';
@@ -253,9 +253,11 @@
{#if open}
<div class="hidden" {@attach openSession} aria-hidden="true"></div>
{/if}
- <div class="relative">
- <SearchIcon class="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground" />
- <Input
+ <InputGroup.Root>
+ <InputGroup.Addon>
+ <SearchIcon aria-hidden="true" />
+ </InputGroup.Addon>
+ <InputGroup.Input
type="text"
placeholder={m.common_search()}
value={searchQuery}
@@ -263,21 +265,22 @@
searchQuery = (e.target as HTMLInputElement).value;
debouncedSearch(searchQuery);
}}
- class="h-9 pr-10 pl-10"
/>
{#if searchQuery}
- <button
- type="button"
- onclick={clearSearch}
- class="absolute top-1/2 right-3 -translate-y-1/2 rounded-sm p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
- title={m.common_clear_search()}
- >
- <CloseIcon class="size-4" />
- </button>
+ <InputGroup.Addon align="inline-end">
+ <InputGroup.Button
+ size="icon-xs"
+ onclick={clearSearch}
+ title={m.common_clear_search()}
+ aria-label={m.common_clear_search()}
+ >
+ <CloseIcon class="size-4" />
+ </InputGroup.Button>
+ </InputGroup.Addon>
{/if}
- </div>
+ </InputGroup.Root>
- <div bind:this={scrollContainer} onscroll={handleScroll} class="max-h-[50vh] min-h-[200px] overflow-y-auto">
+ <div bind:this={scrollContainer} onscroll={handleScroll} class="max-h-screen-50 min-h-50 overflow-y-auto">
{#if isLoading}
<div class="flex items-center justify-center py-10">
<Spinner class="size-6" />
diff --git a/frontend/src/lib/components/dialogs/file-browser-dialog.svelte b/frontend/src/lib/components/dialogs/file-browser-dialog.svelte
index ad26a454f..d06501b22 100644
--- a/frontend/src/lib/components/dialogs/file-browser-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/file-browser-dialog.svelte
@@ -118,56 +118,58 @@
<!-- Breadcrumb navigation. "Root" is the dialog's configured root (or the
repo root when no rootPath was passed). Navigation stops there. -->
<div class="flex items-center gap-2 text-sm">
- <Button variant="ghost" size="sm" onclick={() => (userPath = '')} disabled={atRoot} class="h-8 px-2">
+ <Button variant="ghost" size="sm" onclick={() => (userPath = '')} disabled={atRoot} class="h-8">
<FolderOpenIcon class="size-4" />
<span class="ml-1">{normalizedRoot || m.git_sync_browse_root()}</span>
</Button>
{#each pathSegments as segment, index (`${index}-${segment}`)}
<ArrowRightIcon class="size-4 text-muted-foreground" />
- <Button variant="ghost" size="sm" onclick={() => goToPath(index)} class="h-8 px-2">
+ <Button variant="ghost" size="sm" onclick={() => goToPath(index)} class="h-8">
{segment}
</Button>
{/each}
</div>
<!-- File list -->
- <ScrollArea class="h-96 rounded-md border">
- {#if loading}
- <div class="flex items-center justify-center py-8">
- <Spinner class="size-6" />
- </div>
- {:else if files.length === 0}
- <div class="flex items-center justify-center py-8 text-sm text-muted-foreground">{m.git_sync_browse_no_files()}</div>
- {:else}
- <div class="space-y-1 p-2">
- {#if !atRoot}
- <button
- onclick={goBack}
- class="flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors hover:bg-accent"
- >
- <FolderOpenIcon class="size-4 text-muted-foreground" />
- <span class="text-sm">..</span>
- </button>
- {/if}
- {#each files as file (file.path)}
- {@const canSelect = file.type === 'directory' || fileFilter(file)}
- <button
- onclick={() => handleFileClick(file)}
- disabled={!canSelect}
- class="flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50"
- >
- {#if file.type === 'directory'}
- <FolderOpenIcon class="size-4 text-blue-500" />
- {:else}
- <FileTextIcon class="size-4 text-muted-foreground" />
- {/if}
- <span class="text-sm">{file.name}</span>
- {@render fileBadge?.(file)}
- </button>
- {/each}
- </div>
- {/if}
- </ScrollArea>
+ <div class="h-96 overflow-hidden rounded-md border">
+ <ScrollArea class="h-full">
+ {#if loading}
+ <div class="flex items-center justify-center py-8">
+ <Spinner class="size-6" />
+ </div>
+ {:else if files.length === 0}
+ <div class="flex items-center justify-center py-8 text-sm text-muted-foreground">{m.git_sync_browse_no_files()}</div>
+ {:else}
+ <div class="space-y-1 p-2">
+ {#if !atRoot}
+ <button
+ onclick={goBack}
+ class="flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors hover:bg-accent"
+ >
+ <FolderOpenIcon class="size-4 text-muted-foreground" />
+ <span class="text-sm">..</span>
+ </button>
+ {/if}
+ {#each files as file (file.path)}
+ {@const canSelect = file.type === 'directory' || fileFilter(file)}
+ <button
+ onclick={() => handleFileClick(file)}
+ disabled={!canSelect}
+ class="flex w-full items-center gap-2 rounded-md px-3 py-2 text-left transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50"
+ >
+ {#if file.type === 'directory'}
+ <FolderOpenIcon class="size-4 text-info" />
+ {:else}
+ <FileTextIcon class="size-4 text-muted-foreground" />
+ {/if}
+ <span class="text-sm">{file.name}</span>
+ {@render fileBadge?.(file)}
+ </button>
+ {/each}
+ </div>
+ {/if}
+ </ScrollArea>
+ </div>
{@render footerHint?.()}
</div>
diff --git a/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte b/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte
index f7df54710..a9aaa6bc2 100644
--- a/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte
@@ -100,7 +100,7 @@
dismissible={false}
title={m.first_login_title()}
description={m.first_login_description()}
- contentClass="sm:max-w-[425px]"
+ contentClass="sm:max-w-106.25"
>
<form
onsubmit={(e) => {
diff --git a/frontend/src/lib/components/dialogs/gitops-dialog-footer.svelte b/frontend/src/lib/components/dialogs/gitops-dialog-footer.svelte
index 5213cb555..66345bdf1 100644
--- a/frontend/src/lib/components/dialogs/gitops-dialog-footer.svelte
+++ b/frontend/src/lib/components/dialogs/gitops-dialog-footer.svelte
@@ -12,7 +12,7 @@
let { cancelLabel, isLoading = false, onCancel, primary }: Props = $props();
</script>
-<Button type="button" class="arcane-button-cancel flex-1" variant="outline" onclick={onCancel} disabled={isLoading}>
+<Button type="button" class="flex-1" variant="outline" onclick={onCancel} disabled={isLoading}>
{cancelLabel}
</Button>
diff --git a/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte b/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
index 281ff527d..3ad746edd 100644
--- a/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
@@ -93,10 +93,12 @@
id="json-content"
bind:value={jsonContent}
placeholder={`[\n {\n "syncName": "example-sync",\n "gitRepo": "my-repo",\n "branch": "main",\n "dockerComposePath": "docker-compose.yml",\n "autoSync": true,\n "syncInterval": 10,\n "projectName": "example",\n "redeployAfterSync": true\n }\n]`}
- class="h-[300px] font-mono text-xs"
+ mono
+ size="sm"
+ class="h-75"
/>
{#if error}
- <p class="text-sm text-red-500">{error}</p>
+ <p class="text-sm text-destructive">{error}</p>
{/if}
</div>
</div>
@@ -105,7 +107,7 @@
{#snippet footer()}
<GitopsDialogFooter cancelLabel={m.common_cancel()} {isLoading} onCancel={() => (open = false)}>
{#snippet primary()}
- <Button onclick={handleSubmit} class="arcane-button-create flex-1" disabled={isLoading}>
+ <Button onclick={handleSubmit} class="flex-1" disabled={isLoading}>
{#if isLoading}
<Spinner class="mr-2 size-4" />
{/if}
diff --git a/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte b/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte
index 5de7d3802..1cceb9d9f 100644
--- a/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/gitops-sync-dialog.svelte
@@ -13,7 +13,6 @@
import FileBrowserDialog from '#lib/components/dialogs/file-browser-dialog.svelte';
import GitopsDialogFooter from '#lib/components/dialogs/gitops-dialog-footer.svelte';
import WorkspaceFileTreePanel from '#lib/components/workspace-file-tree-panel.svelte';
- import * as RadioGroup from '#lib/components/ui/radio-group/index.js';
import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';
import { SvelteMap, SvelteSet } from 'svelte/reactivity';
import type {
@@ -516,14 +515,14 @@
{#snippet envFileBadge(entry: WorkspaceDisplayEntry)}
{#if !entry.isDirectory && isEnvFileInternal(entry.name)}
- <span class="shrink-0 rounded bg-amber-500/10 px-1.5 py-0.5 text-[10px] text-amber-600 dark:text-amber-400">
+ <span class="shrink-0 rounded bg-warning/10 px-1.5 py-0.5 text-3xs text-warning">
{m.environment_file()}
</span>
{/if}
{/snippet}
{#snippet repositoryAndBranchFields()}
- <div class="grid gap-3 sm:grid-cols-[minmax(0,1fr)_12rem]">
+ <div class="grid gap-3 sm:grid-cols-content-aside-48">
<div class="space-y-2">
<Label for="repository">{m.git_sync_repository()}</Label>
<Select.Root
@@ -541,14 +540,14 @@
<Select.Trigger id="repository" class="w-full" aria-invalid={inputs.repositoryId.error ? 'true' : undefined}>
<span>{selectedRepository?.label ?? m.common_select_placeholder()}</span>
</Select.Trigger>
- <Select.Content style="width: var(--bits-select-anchor-width);">
+ <Select.Content class="w-(--bits-select-anchor-width)">
{#each repositories as repo (repo.id)}
- <Select.Item value={repo.id} class="truncate">{repo.name}</Select.Item>
+ <Select.Item value={repo.id}><span class="block min-w-0 truncate">{repo.name}</span></Select.Item>
{/each}
</Select.Content>
</Select.Root>
{#if inputs.repositoryId.error}
- <p class="mt-1 text-sm text-red-500">{inputs.repositoryId.error}</p>
+ <p class="mt-1 text-sm text-destructive">{inputs.repositoryId.error}</p>
{/if}
</div>
@@ -572,13 +571,15 @@
<Select.Trigger id="branch" class="w-full" aria-invalid={inputs.branch.error ? 'true' : undefined}>
<span>{selectedBranch || m.common_select_placeholder()}</span>
</Select.Trigger>
- <Select.Content style="width: var(--bits-select-anchor-width);">
+ <Select.Content class="w-(--bits-select-anchor-width)">
{#each branches as branch (branch.name)}
- <Select.Item value={branch.name} class="truncate">
- {branch.name}
- {#if branch.isDefault}
- <span class="ml-2 text-xs text-muted-foreground">({m.common_default()})</span>
- {/if}
+ <Select.Item value={branch.name}>
+ <span class="block min-w-0 truncate">
+ {branch.name}
+ {#if branch.isDefault}
+ <span class="ml-2 text-xs text-muted-foreground">({m.common_default()})</span>
+ {/if}
+ </span>
</Select.Item>
{/each}
</Select.Content>
@@ -587,7 +588,7 @@
<FormInput type="text" placeholder="main" bind:input={inputs.branch} />
{/if}
{#if inputs.branch.error}
- <p class="mt-1 text-sm text-red-500">{inputs.branch.error}</p>
+ <p class="mt-1 text-sm text-destructive">{inputs.branch.error}</p>
{/if}
</div>
</div>
@@ -613,7 +614,7 @@
</p>
{:else}
<div class="space-y-2">
- <RadioGroup.Root
+ <RadioGroupPrimitive.Root
class="inline-flex max-w-full flex-wrap items-center justify-start gap-1 rounded-lg border border-border/60 bg-muted/40 p-1 text-muted-foreground"
value={selectedMode}
onValueChange={(value) => (inputs.mode.value = value as GitOpsSyncMode)}
@@ -623,12 +624,12 @@
<RadioGroupPrimitive.Item
id={`sync-mode-${option.value}`}
value={option.value}
- class="inline-flex items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap text-muted-foreground ring-offset-background transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none data-[state=checked]:bg-primary/15 data-[state=checked]:text-primary data-[state=checked]:ring-1 data-[state=checked]:ring-primary/30 dark:data-[state=checked]:text-[color-mix(in_oklch,var(--primary)_55%,white)]"
+ class="inline-flex items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap text-muted-foreground ring-offset-background transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none data-[state=checked]:bg-primary/15 data-[state=checked]:text-primary data-[state=checked]:ring-1 data-[state=checked]:ring-primary/30 dark:data-[state=checked]:text-primary-tint"
>
{option.label}
</RadioGroupPrimitive.Item>
{/each}
- </RadioGroup.Root>
+ </RadioGroupPrimitive.Root>
<p class="text-xs text-muted-foreground">{selectedDirection?.description}</p>
</div>
{/if}
@@ -698,14 +699,14 @@
</div>
<p class="text-xs text-muted-foreground">{m.included_files_description()}</p>
{#if hasSelectedEnvFile}
- <p class="text-xs text-amber-600 dark:text-amber-400">{m.environment_file_warning()}</p>
+ <p class="text-xs text-warning">{m.environment_file_warning()}</p>
{/if}
</div>
<div class="divide-y divide-border/50 border-y border-border/50">
<div class="flex items-center justify-between gap-4 py-3">
<div class="min-w-0">
- <Label for="backupAutoSyncSwitch" class="mb-0 text-sm font-medium">{m.automatic_backup()}</Label>
+ <Label for="backupAutoSyncSwitch" class="mb-0">{m.automatic_backup()}</Label>
<p class="text-xs text-muted-foreground">{m.automatic_backup_description()}</p>
</div>
<div class="flex shrink-0 items-center gap-3">
@@ -732,7 +733,7 @@
<div class="flex items-center justify-between gap-4 py-3">
<div class="min-w-0">
- <Label for="backupOnSaveSwitch" class="mb-0 text-sm font-medium">{m.back_up_on_save()}</Label>
+ <Label for="backupOnSaveSwitch" class="mb-0">{m.back_up_on_save()}</Label>
<p class="text-xs text-muted-foreground">{m.back_up_on_save_description()}</p>
</div>
<Switch id="backupOnSaveSwitch" bind:checked={inputs.backupOnSave.value} disabled={!inputs.autoSync.value} />
@@ -741,13 +742,13 @@
<div class="py-3">
<div class="flex items-center justify-between gap-4">
<div class="min-w-0">
- <Label for="includeEnvFileSwitch" class="mb-0 text-sm font-medium">{m.include_environment_file()}</Label>
+ <Label for="includeEnvFileSwitch" class="mb-0">{m.include_environment_file()}</Label>
<p class="text-xs text-muted-foreground">{m.include_environment_file_description()}</p>
</div>
<Switch id="includeEnvFileSwitch" bind:checked={inputs.includeEnvFile.value} />
</div>
{#if inputs.includeEnvFile.value}
- <p class="mt-2 text-xs text-amber-600 dark:text-amber-400">{m.environment_file_warning()}</p>
+ <p class="mt-2 text-xs text-warning">{m.environment_file_warning()}</p>
{/if}
</div>
</div>
@@ -812,7 +813,7 @@
<div class="divide-y divide-border/50 border-y border-border/50">
<div class="flex items-center justify-between gap-4 py-3">
<div class="min-w-0">
- <Label for="autoSyncSwitch" class="mb-0 text-sm font-medium">{m.git_sync_auto_sync()}</Label>
+ <Label for="autoSyncSwitch" class="mb-0">{m.git_sync_auto_sync()}</Label>
<p class="text-xs text-muted-foreground">{m.common_auto_sync_description()}</p>
{#if inputs.autoSync.error}
<p class="text-xs font-medium text-destructive">{inputs.autoSync.error}</p>
@@ -842,7 +843,7 @@
<div class="flex items-center justify-between gap-4 py-3">
<div class="min-w-0">
- <Label for="syncDirectorySwitch" class="mb-0 text-sm font-medium">{m.git_sync_sync_files()}</Label>
+ <Label for="syncDirectorySwitch" class="mb-0">{m.git_sync_sync_files()}</Label>
<p class="text-xs text-muted-foreground">
{lockSyncDirectory ? m.git_sync_sync_files_locked_hint() : m.git_sync_sync_files_description()}
</p>
@@ -855,8 +856,7 @@
<div class="flex items-center justify-between gap-4 py-3">
<div class="min-w-0">
- <Label for="pullImageAfterSyncSwitch" class="mb-0 text-sm font-medium">{m.git_sync_pull_image_after_sync()}</Label
- >
+ <Label for="pullImageAfterSyncSwitch" class="mb-0">{m.git_sync_pull_image_after_sync()}</Label>
<p class="text-xs text-muted-foreground">
{inputs.redeployAfterSync.value
? m.git_sync_pull_image_after_sync_redundant_description()
@@ -875,7 +875,7 @@
<div class="flex items-center justify-between gap-4 py-3">
<div class="min-w-0">
- <Label for="redeployAfterSyncSwitch" class="mb-0 text-sm font-medium">{m.git_sync_redeploy_after_sync()}</Label>
+ <Label for="redeployAfterSyncSwitch" class="mb-0">{m.git_sync_redeploy_after_sync()}</Label>
<p class="text-xs text-muted-foreground">{m.git_sync_redeploy_after_sync_description()}</p>
{#if inputs.redeployAfterSync.error}
<p class="text-xs font-medium text-destructive">{inputs.redeployAfterSync.error}</p>
@@ -886,12 +886,17 @@
</div>
<Collapsible.Root class="group/collapsible">
- <Collapsible.Trigger
- type="button"
- class="flex w-full items-center justify-between gap-3 py-1 text-left text-sm font-medium text-muted-foreground transition-colors hover:text-foreground"
- >
- {m.git_sync_per_sync_file_limits_title()}
- <ArrowRightIcon class="size-4 shrink-0 transition-transform group-data-[state=open]/collapsible:rotate-90" />
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="flex w-full items-center justify-between gap-3 py-1 text-left text-sm font-medium text-muted-foreground transition-colors hover:text-foreground"
+ >
+ {m.git_sync_per_sync_file_limits_title()}
+ <ArrowRightIcon class="size-4 shrink-0 transition-transform group-data-[state=open]/collapsible:rotate-90" />
+ </button>
+ {/snippet}
</Collapsible.Trigger>
<Collapsible.Content>
<div class="space-y-3 pt-3">
@@ -925,20 +930,23 @@
{#if lifecycleEnabled && canManageLifecycle && selectedTargetType === 'project'}
<Collapsible.Root class="group/collapsible">
- <Collapsible.Trigger
- type="button"
- class="flex w-full items-center justify-between gap-3 py-1 text-left text-sm font-medium text-muted-foreground transition-colors hover:text-foreground"
- >
- {m.git_sync_pre_deploy_title()}
- <ArrowRightIcon class="size-4 shrink-0 transition-transform group-data-[state=open]/collapsible:rotate-90" />
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="flex w-full items-center justify-between gap-3 py-1 text-left text-sm font-medium text-muted-foreground transition-colors hover:text-foreground"
+ >
+ {m.git_sync_pre_deploy_title()}
+ <ArrowRightIcon class="size-4 shrink-0 transition-transform group-data-[state=open]/collapsible:rotate-90" />
+ </button>
+ {/snippet}
</Collapsible.Trigger>
<Collapsible.Content>
<div class="space-y-3 pt-3">
- <Alert.Root
- class="border-amber-500/30 bg-amber-500/5 text-amber-700 dark:text-amber-300 [&>svg]:top-1/2 [&>svg]:-translate-y-1/2"
- >
+ <Alert.Root variant="warning-subtle" size="sm" class="[&>svg]:top-1/2 [&>svg]:-translate-y-1/2">
<InfoIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.git_sync_pre_deploy_acknowledgement()}
</Alert.Description>
</Alert.Root>
@@ -946,7 +954,7 @@
<p class="text-xs text-muted-foreground">{m.git_sync_pre_deploy_description()}</p>
<div class="space-y-2">
- <Label for="preDeployScriptPath" class="text-sm font-medium">
+ <Label for="preDeployScriptPath">
{m.git_sync_pre_deploy_script_path_label()}
</Label>
<div class="flex gap-2">
@@ -1045,7 +1053,7 @@
{#snippet footer()}
<GitopsDialogFooter cancelLabel={m.common_cancel()} {isLoading} onCancel={() => (open = false)}>
{#snippet primary()}
- <Button type="submit" form="sync-form" class="arcane-button-create flex-1" disabled={isLoading}>
+ <Button type="submit" form="sync-form" class="flex-1" disabled={isLoading}>
{#if isLoading}
<Spinner class="mr-2 size-4" />
{/if}
diff --git a/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte b/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte
index 51ee671c8..6b70d0071 100644
--- a/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/image-registry-search-dialog.svelte
@@ -105,11 +105,11 @@
onOpenChange={handleOpenChange}
title={m.images_search_registry()}
description={m.images_search_registry_description()}
- contentClass="sm:max-w-[720px]"
+ contentClass="sm:max-w-180"
>
{#snippet children()}
<div class="grid gap-4 py-4">
- <div class="grid gap-3 sm:grid-cols-[1fr_9rem_auto]">
+ <div class="grid gap-3 sm:grid-cols-content-36-action">
<div class="space-y-2">
<Label for="image-registry-search-query">{m.images_search_query()}</Label>
<InputGroup.Root>
@@ -156,14 +156,14 @@
</div>
{#if results.length > 0}
- <div class="max-h-[420px] overflow-auto rounded-lg border border-border">
+ <div class="max-h-105 overflow-auto rounded-lg border border-border">
{#each results as result (result.name)}
- <div class="grid gap-3 border-b p-3 last:border-b-0 sm:grid-cols-[1fr_auto] sm:items-center">
+ <div class="grid gap-3 border-b p-3 last:border-b-0 sm:grid-cols-content-action sm:items-center">
<div class="min-w-0 space-y-1">
<div class="flex flex-wrap items-center gap-2">
<span class="font-mono text-sm font-medium break-all">{result.name}</span>
{#if result.official}
- <span class="text-emerald-400" title={m.common_verified()} aria-label={m.common_verified()}>
+ <span class="text-success" title={m.common_verified()} aria-label={m.common_verified()}>
<VerifiedCheckIcon class="size-3.5" aria-hidden="true" />
</span>
{/if}
diff --git a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
index 48a28ca7b..8d8282d33 100644
--- a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
@@ -27,7 +27,7 @@
onOpenChange={(isOpen) => !isOpen && handleCancelInternal()}
title={m.prune_confirm_system_title()}
description={m.prune_confirm_description()}
- contentClass="sm:max-w-[860px]"
+ contentClass="sm:max-w-215"
>
{#if open}
<PruneConfirmationDialogContent {defaults} {isPruning} {onConfirm} onCancel={handleCancelInternal} />
diff --git a/frontend/src/lib/components/dialogs/service-editor-dialog.svelte b/frontend/src/lib/components/dialogs/service-editor-dialog.svelte
index 01844371f..9ef86c02c 100644
--- a/frontend/src/lib/components/dialogs/service-editor-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/service-editor-dialog.svelte
@@ -378,7 +378,7 @@
}
</script>
-<ResponsiveDialog bind:open onOpenChange={handleOpenChange} variant="sheet" {title} {description} contentClass="sm:max-w-[600px]">
+<ResponsiveDialog bind:open onOpenChange={handleOpenChange} variant="sheet" {title} {description} contentClass="sm:max-w-150">
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="space-y-6 py-4">
{#if specParseError}
@@ -420,138 +420,158 @@
</div>
<!-- Advanced Options -->
- <Accordion.Root class="w-full space-y-5" type="multiple">
- <!-- Ports -->
- <Accordion.Item value="ports">
- <Accordion.Trigger class="text-sm font-medium">{m.common_ports()}</Accordion.Trigger>
- <Accordion.Content class="pt-6 pb-5">
- <div class="space-y-4">
- {#each form.ports as port, i (port)}
- <div class="flex items-center gap-4">
- <Input placeholder="8080" bind:value={port.target} disabled={isLoading} class="flex-1" />
- <span class="text-muted-foreground">:</span>
- <Input placeholder="80" bind:value={port.published} disabled={isLoading} class="flex-1" />
- <Select.Root type="single" bind:value={port.protocol} disabled={isLoading}>
- <Select.Trigger class="w-20">
- <span class="uppercase">{port.protocol}</span>
- </Select.Trigger>
- <Select.Content>
- <Select.Item value="tcp" label="TCP">TCP</Select.Item>
- <Select.Item value="udp" label="UDP">UDP</Select.Item>
- </Select.Content>
- </Select.Root>
- <ArcaneButton action="remove" size="sm" onclick={() => removePort(i)} disabled={isLoading} icon={TrashIcon} />
- </div>
- {/each}
- <ArcaneButton
- action="create"
- size="sm"
- onclick={addPort}
- disabled={isLoading}
- icon={AddIcon}
- customLabel={m.swarm_service_form_add_port()}
- />
- </div>
- </Accordion.Content>
- </Accordion.Item>
-
- <!-- Environment Variables -->
- <Accordion.Item value="env">
- <Accordion.Trigger class="text-sm font-medium">{m.common_environment_variables()}</Accordion.Trigger>
- <Accordion.Content class="pt-6 pb-5">
- <div class="space-y-4">
- {#each form.envVars as env, i (env)}
- <div class="flex items-center gap-4">
- <Input placeholder="KEY" bind:value={env.key} disabled={isLoading} class="flex-1" />
- <span class="text-muted-foreground">=</span>
- <Input placeholder="value" bind:value={env.value} disabled={isLoading} class="flex-1" />
- <ArcaneButton action="remove" size="sm" onclick={() => removeEnvVar(i)} disabled={isLoading} icon={TrashIcon} />
- </div>
- {/each}
- <ArcaneButton
- action="create"
- size="sm"
- onclick={addEnvVar}
- disabled={isLoading}
- icon={AddIcon}
- customLabel={m.swarm_service_form_add_variable()}
- />
- </div>
- </Accordion.Content>
- </Accordion.Item>
-
- <!-- Mounts -->
- <Accordion.Item value="mounts">
- <Accordion.Trigger class="text-sm font-medium">{m.swarm_service_form_mounts()}</Accordion.Trigger>
- <Accordion.Content class="pt-6 pb-5">
- <div class="space-y-4">
- {#each form.mounts as mount, i (mount)}
- <div class="flex items-center gap-4">
- <Select.Root type="single" bind:value={mount.type} disabled={isLoading}>
- <Select.Trigger class="w-24">
- <span class="capitalize">{mount.type}</span>
- </Select.Trigger>
- <Select.Content>
- <Select.Item value="volume" label="Volume">Volume</Select.Item>
- <Select.Item value="bind" label="Bind">Bind</Select.Item>
- </Select.Content>
- </Select.Root>
- <Input placeholder="source" bind:value={mount.source} disabled={isLoading} class="flex-1" />
- <span class="text-muted-foreground">→</span>
- <Input placeholder="/target" bind:value={mount.target} disabled={isLoading} class="flex-1" />
- <ArcaneButton action="remove" size="sm" onclick={() => removeMount(i)} disabled={isLoading} icon={TrashIcon} />
- </div>
- {/each}
- <ArcaneButton
- action="create"
- size="sm"
- onclick={addMount}
- disabled={isLoading}
- icon={AddIcon}
- customLabel={m.swarm_service_form_add_mount()}
- />
- </div>
- </Accordion.Content>
- </Accordion.Item>
-
- <!-- Labels -->
- <Accordion.Item value="labels">
- <Accordion.Trigger class="text-sm font-medium">{m.common_labels()}</Accordion.Trigger>
- <Accordion.Content class="pt-6 pb-5">
- <div class="space-y-4">
- {#each form.labels as label, i (label)}
- <div class="flex items-center gap-4">
- <Input placeholder="key" bind:value={label.key} disabled={isLoading} class="flex-1" />
- <span class="text-muted-foreground">=</span>
- <Input placeholder="value" bind:value={label.value} disabled={isLoading} class="flex-1" />
- <ArcaneButton action="remove" size="sm" onclick={() => removeLabel(i)} disabled={isLoading} icon={TrashIcon} />
- </div>
- {/each}
- <ArcaneButton
- action="create"
- size="sm"
- onclick={addLabel}
- disabled={isLoading}
- icon={AddIcon}
- customLabel={m.add_label()}
- />
- </div>
- </Accordion.Content>
- </Accordion.Item>
-
- <!-- Advanced Container Config -->
- <Accordion.Item value="advanced">
- <Accordion.Trigger class="text-sm font-medium">{m.swarm_service_form_advanced()}</Accordion.Trigger>
- <Accordion.Content class="pt-6 pb-5">
- <div class="space-y-5">
- <FormInput input={form.command} label={m.common_command()} placeholder="/bin/sh" disabled={isLoading} />
- <FormInput input={form.args} label={m.common_args()} placeholder="-c echo hello" disabled={isLoading} />
- <FormInput input={form.workingDir} label={m.common_working_directory()} placeholder="/app" disabled={isLoading} />
- <FormInput input={form.user} label={m.common_user()} placeholder="1000:1000" disabled={isLoading} />
- <FormInput input={form.hostname} label={m.hostname()} placeholder="my-service" disabled={isLoading} />
- </div>
- </Accordion.Content>
- </Accordion.Item>
+ <Accordion.Root class="w-full" type="multiple">
+ <div class="space-y-5">
+ <!-- Ports -->
+ <Accordion.Item value="ports">
+ <Accordion.Trigger>{m.common_ports()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-4 pt-6 pb-5">
+ {#each form.ports as port, i (port)}
+ <div class="flex items-center gap-4">
+ <Input placeholder="8080" bind:value={port.target} disabled={isLoading} class="flex-1" />
+ <span class="text-muted-foreground">:</span>
+ <Input placeholder="80" bind:value={port.published} disabled={isLoading} class="flex-1" />
+ <Select.Root type="single" bind:value={port.protocol} disabled={isLoading}>
+ <Select.Trigger class="w-20">
+ <span class="uppercase">{port.protocol}</span>
+ </Select.Trigger>
+ <Select.Content>
+ <Select.Item value="tcp" label="TCP">TCP</Select.Item>
+ <Select.Item value="udp" label="UDP">UDP</Select.Item>
+ </Select.Content>
+ </Select.Root>
+ <ArcaneButton action="remove" size="sm" onclick={() => removePort(i)} disabled={isLoading} icon={TrashIcon} />
+ </div>
+ {/each}
+ <ArcaneButton
+ action="create"
+ size="sm"
+ onclick={addPort}
+ disabled={isLoading}
+ icon={AddIcon}
+ customLabel={m.swarm_service_form_add_port()}
+ />
+ </div>
+ </Accordion.Content>
+ </Accordion.Item>
+
+ <!-- Environment Variables -->
+ <Accordion.Item value="env">
+ <Accordion.Trigger>{m.common_environment_variables()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-4 pt-6 pb-5">
+ {#each form.envVars as env, i (env)}
+ <div class="flex items-center gap-4">
+ <Input placeholder="KEY" bind:value={env.key} disabled={isLoading} class="flex-1" />
+ <span class="text-muted-foreground">=</span>
+ <Input placeholder="value" bind:value={env.value} disabled={isLoading} class="flex-1" />
+ <ArcaneButton
+ action="remove"
+ size="sm"
+ onclick={() => removeEnvVar(i)}
+ disabled={isLoading}
+ icon={TrashIcon}
+ />
+ </div>
+ {/each}
+ <ArcaneButton
+ action="create"
+ size="sm"
+ onclick={addEnvVar}
+ disabled={isLoading}
+ icon={AddIcon}
+ customLabel={m.swarm_service_form_add_variable()}
+ />
+ </div>
+ </Accordion.Content>
+ </Accordion.Item>
+
+ <!-- Mounts -->
+ <Accordion.Item value="mounts">
+ <Accordion.Trigger>{m.swarm_service_form_mounts()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-4 pt-6 pb-5">
+ {#each form.mounts as mount, i (mount)}
+ <div class="flex items-center gap-4">
+ <Select.Root type="single" bind:value={mount.type} disabled={isLoading}>
+ <Select.Trigger class="w-24">
+ <span class="capitalize">{mount.type}</span>
+ </Select.Trigger>
+ <Select.Content>
+ <Select.Item value="volume" label="Volume">Volume</Select.Item>
+ <Select.Item value="bind" label="Bind">Bind</Select.Item>
+ </Select.Content>
+ </Select.Root>
+ <Input placeholder="source" bind:value={mount.source} disabled={isLoading} class="flex-1" />
+ <span class="text-muted-foreground">→</span>
+ <Input placeholder="/target" bind:value={mount.target} disabled={isLoading} class="flex-1" />
+ <ArcaneButton
+ action="remove"
+ size="sm"
+ onclick={() => removeMount(i)}
+ disabled={isLoading}
+ icon={TrashIcon}
+ />
+ </div>
+ {/each}
+ <ArcaneButton
+ action="create"
+ size="sm"
+ onclick={addMount}
+ disabled={isLoading}
+ icon={AddIcon}
+ customLabel={m.swarm_service_form_add_mount()}
+ />
+ </div>
+ </Accordion.Content>
+ </Accordion.Item>
+
+ <!-- Labels -->
+ <Accordion.Item value="labels">
+ <Accordion.Trigger>{m.common_labels()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-4 pt-6 pb-5">
+ {#each form.labels as label, i (label)}
+ <div class="flex items-center gap-4">
+ <Input placeholder="key" bind:value={label.key} disabled={isLoading} class="flex-1" />
+ <span class="text-muted-foreground">=</span>
+ <Input placeholder="value" bind:value={label.value} disabled={isLoading} class="flex-1" />
+ <ArcaneButton
+ action="remove"
+ size="sm"
+ onclick={() => removeLabel(i)}
+ disabled={isLoading}
+ icon={TrashIcon}
+ />
+ </div>
+ {/each}
+ <ArcaneButton
+ action="create"
+ size="sm"
+ onclick={addLabel}
+ disabled={isLoading}
+ icon={AddIcon}
+ customLabel={m.add_label()}
+ />
+ </div>
+ </Accordion.Content>
+ </Accordion.Item>
+
+ <!-- Advanced Container Config -->
+ <Accordion.Item value="advanced">
+ <Accordion.Trigger>{m.swarm_service_form_advanced()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-5 pt-6 pb-5">
+ <FormInput input={form.command} label={m.common_command()} placeholder="/bin/sh" disabled={isLoading} />
+ <FormInput input={form.args} label={m.common_args()} placeholder="-c echo hello" disabled={isLoading} />
+ <FormInput input={form.workingDir} label={m.common_working_directory()} placeholder="/app" disabled={isLoading} />
+ <FormInput input={form.user} label={m.common_user()} placeholder="1000:1000" disabled={isLoading} />
+ <FormInput input={form.hostname} label={m.hostname()} placeholder="my-service" disabled={isLoading} />
+ </div>
+ </Accordion.Content>
+ </Accordion.Item>
+ </div>
</Accordion.Root>
</form>
{/snippet}
diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
index de0bf7935..55ef42a2e 100644
--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
@@ -172,7 +172,7 @@
</script>
{#snippet templateCard(template: Template, showRegistry: boolean = false)}
- <Card class="border transition-colors hover:border-primary/20 hover:bg-muted/50">
+ <Card interactive>
<div class="p-4">
<div class="mb-2 flex items-start justify-between gap-2">
<div class="flex min-w-0 items-start gap-3">
@@ -187,10 +187,10 @@
</div>
<div class="ml-2 flex flex-shrink-0 flex-wrap items-center gap-1">
{#if template.metadata?.version}
- <Badge variant="outline" class="text-xs">v{template.metadata.version}</Badge>
+ <Badge variant="outline">v{template.metadata.version}</Badge>
{/if}
{#if template.metadata?.envUrl || template.envContent}
- <Badge variant="secondary" class="text-xs">
+ <Badge variant="secondary">
<SettingsIcon class="mr-1 size-3" />
ENV
</Badge>
@@ -200,7 +200,7 @@
{#if showRegistry}
<div class="mb-2">
- <Badge variant="secondary" class="text-xs">
+ <Badge variant="secondary">
{#if template.isRemote}
<RegistryIcon class="size-3" />
{:else}
@@ -261,7 +261,7 @@
bind:open
title={m.templates_choose_title()}
description={m.templates_choose_description()}
- contentClass="sm:max-w-[900px]"
+ contentClass="sm:max-w-225"
>
{#snippet children()}
<div class="space-y-4">
@@ -275,9 +275,9 @@
/>
</div>
<div class="flex items-center gap-3">
- <Label for="sortBy" class="text-sm font-medium whitespace-nowrap">{m.common_sort_by()}</Label>
+ <Label for="sortBy" class="whitespace-nowrap">{m.common_sort_by()}</Label>
<Select.Root bind:value={sortBy} type="single">
- <Select.Trigger id="sortBy" class="h-9 rounded-md border bg-background px-2 text-sm">
+ <Select.Trigger id="sortBy" class="h-9">
{filters[sortBy]}
</Select.Trigger>
<Select.Content>
@@ -289,7 +289,7 @@
</div>
</div>
- <ScrollArea class="max-h-[65vh]">
+ <ScrollArea class="max-h-(--max-height-screen-70)">
{#if allTemplates.length === 0}
<div class="py-10 text-center text-muted-foreground">
<FileTextIcon class="mx-auto mb-4 size-12 opacity-50" />
@@ -304,14 +304,18 @@
<div class="space-y-3">
{#each groupedTemplates as group (group.name)}
<Collapsible.Root class="w-full">
- <Card class="border-2">
- <Collapsible.Trigger class="flex w-full items-center justify-between px-4 py-3 text-left">
- <div class="flex items-center gap-2">
- <ArrowDownIcon class="hidden size-4 data-[state=open]:block" />
- <ArrowRightIcon class="block size-4 data-[state=open]:hidden" />
- <span class="font-semibold">{group.name}</span>
- <Badge variant="secondary" class="ml-2">{group.items.length}</Badge>
- </div>
+ <Card>
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button {...props} type="button" class="flex w-full items-center justify-between px-4 py-3 text-left">
+ <div class="flex items-center gap-2">
+ <ArrowDownIcon class="hidden size-4 data-[state=open]:block" />
+ <ArrowRightIcon class="block size-4 data-[state=open]:hidden" />
+ <span class="font-semibold">{group.name}</span>
+ <Badge variant="secondary" class="ml-2">{group.items.length}</Badge>
+ </div>
+ </button>
+ {/snippet}
</Collapsible.Trigger>
<Collapsible.Content>
<div class="px-6 pb-6">
diff --git a/frontend/src/lib/components/dialogs/update-all-dialog.svelte b/frontend/src/lib/components/dialogs/update-all-dialog.svelte
index 5d3b993ef..219a1e469 100644
--- a/frontend/src/lib/components/dialogs/update-all-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/update-all-dialog.svelte
@@ -218,8 +218,8 @@
const failed = $derived(job?.status === 'failed');
const completedColors = {
- segment: 'bg-green-500',
- badge: 'border-green-500/40 bg-green-500/10 text-green-600 dark:text-green-400',
+ segment: 'bg-success',
+ badge: 'border-success/40 bg-success/10 text-success',
text: 'text-muted-foreground'
};
const pendingDisplay = {
@@ -242,9 +242,9 @@
triggered: { label: m.environments_update_all_status_triggered, ...completedColors },
skipped_offline: {
label: m.environments_update_all_status_skipped_offline,
- segment: 'bg-amber-500',
- badge: 'border-amber-500/40 bg-amber-500/10 text-amber-600 dark:text-amber-400',
- text: 'text-amber-600 dark:text-amber-400'
+ segment: 'bg-warning',
+ badge: 'border-warning/40 bg-warning/10 text-warning',
+ text: 'text-warning'
},
failed: {
label: m.common_failed,
@@ -338,8 +338,9 @@
}}
>
<Dialog.Content
+ sectioned
class={cn(
- 'flex max-h-[90dvh] flex-col gap-0 overflow-hidden p-0 sm:max-w-[520px]',
+ 'flex max-h-(--max-height-dscreen-90) flex-col overflow-hidden sm:max-w-130',
phase === 'running' && '[&>button]:hidden'
)}
onInteractOutside={(e: Event) => {
@@ -348,12 +349,14 @@
>
{#if phase === 'confirm'}
<div class="px-6 pt-6 pb-4">
- <Dialog.Header class="space-y-3">
- <Dialog.Title class="text-lg">{title}</Dialog.Title>
- <Dialog.Description>{m.environments_update_all_message()}</Dialog.Description>
- {#if versionInformation}
- <VersionUpdateSummary {versionInformation} {releasedAgo} />
- {/if}
+ <Dialog.Header>
+ <div class="space-y-3">
+ <Dialog.Title>{title}</Dialog.Title>
+ <Dialog.Description>{m.environments_update_all_message()}</Dialog.Description>
+ {#if versionInformation}
+ <VersionUpdateSummary {versionInformation} {releasedAgo} />
+ {/if}
+ </div>
</Dialog.Header>
</div>
@@ -391,10 +394,10 @@
{#if failed}
<AlertTriangleIcon class="size-4 shrink-0 text-destructive" />
{:else}
- <SuccessIcon class="size-4 shrink-0 text-green-600 dark:text-green-400" />
+ <SuccessIcon class="size-4 shrink-0 text-success" />
{/if}
{/if}
- <Dialog.Title class="truncate text-lg">{title}</Dialog.Title>
+ <Dialog.Title><span class="block min-w-0 truncate">{title}</span></Dialog.Title>
</div>
{#if totalCount > 0}
<span class="shrink-0 text-xs text-muted-foreground tabular-nums">
@@ -414,7 +417,7 @@
{#if reconnecting}
<div
- class="mt-4 flex items-center gap-2 rounded-lg border border-amber-500/20 bg-amber-500/5 px-3 py-2.5 text-sm text-amber-700 dark:text-amber-400"
+ class="mt-4 flex items-center gap-2 rounded-lg border border-warning/20 bg-warning/5 px-3 py-2.5 text-sm text-warning"
>
<Spinner class="size-4" />
<span>{m.environments_update_all_manager_restarting()}</span>
@@ -454,7 +457,7 @@
<div class="flex items-center gap-1.5">
<span class="truncate font-medium">{result.environmentName}</span>
{#if result.environmentId === MANAGER_ENVIRONMENT_ID}
- <span class="shrink-0 rounded border px-1 text-[10px] text-muted-foreground">{m.manager()}</span>
+ <span class="shrink-0 rounded border px-1 text-3xs text-muted-foreground">{m.manager()}</span>
{/if}
</div>
{#if result.status === 'failed' && result.error}
@@ -486,7 +489,7 @@
{/if}
{/if}
- <Dialog.Footer class="border-t border-border/60 px-6 py-4">
+ <Dialog.Footer>
{#if phase === 'confirm'}
<Button variant="outline" onclick={() => (open = false)}>{m.common_cancel()}</Button>
{#if canConfirm}
diff --git a/frontend/src/lib/components/dialogs/update-center-dialog.svelte b/frontend/src/lib/components/dialogs/update-center-dialog.svelte
index a710be112..07f27ae85 100644
--- a/frontend/src/lib/components/dialogs/update-center-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/update-center-dialog.svelte
@@ -478,7 +478,8 @@
<Dialog.Root {open} onOpenChange={(nextOpen) => (open = nextOpen)}>
<Dialog.Content
- class={cn('flex max-h-[90dvh] flex-col gap-0 overflow-hidden p-0 sm:max-w-[560px]', upgrading && '[&>button]:hidden')}
+ sectioned
+ class={cn('flex max-h-(--max-height-dscreen-90) flex-col overflow-hidden sm:max-w-140', upgrading && '[&>button]:hidden')}
onInteractOutside={(e: Event) => {
if (upgrading) e.preventDefault();
}}
@@ -486,7 +487,7 @@
{#if upgrading}
<div class="px-6 pt-6 pb-2">
<Dialog.Header>
- <Dialog.Title class="text-lg">{installingTitle}</Dialog.Title>
+ <Dialog.Title>{installingTitle}</Dialog.Title>
</Dialog.Header>
</div>
@@ -497,7 +498,7 @@
<span
class={cn(
'flex size-6 shrink-0 items-center justify-center rounded-full border transition-colors',
- step.state === 'done' && 'border-green-500/40 bg-green-500/10 text-green-600 dark:text-green-400',
+ step.state === 'done' && 'border-success/40 bg-success/10 text-success',
step.state === 'active' && 'border-primary/40 bg-primary/10 text-primary',
step.state === 'pending' && 'border-border bg-muted/40 text-muted-foreground/60'
)}
@@ -525,8 +526,8 @@
</ol>
{#if upgradeStatus === 'complete'}
- <div class="mt-4 flex items-center justify-between rounded-lg border border-green-500/20 bg-green-500/5 px-3 py-2.5">
- <p class="flex items-center gap-2 text-sm font-medium text-green-700 dark:text-green-400">
+ <div class="mt-4 flex items-center justify-between rounded-lg border border-success/20 bg-success/5 px-3 py-2.5">
+ <p class="flex items-center gap-2 text-sm font-medium text-success">
<SuccessIcon class="size-4" />
{m.update_center_complete()}
</p>
@@ -540,23 +541,25 @@
</div>
{:else}
<div class="px-6 pt-6 pb-4">
- <Dialog.Header class="space-y-3">
- <Dialog.Title class="text-lg">
- {#if isRemoteEnvironment && versionInformation?.newestVersion}
- {m.upgrade_remote_description({
- targetDescription: environmentName ?? '',
- version: versionInformation.newestVersion
- })}
- {:else if isRemoteEnvironment}
- {m.update_center_remote_title({ target: environmentName ?? '' })}
- {:else if !isSemver && trackingTag}
- {m.upgrade_update_tag({ tag: trackingTag })}
- {:else}
- {m.update_center_title()}
- {/if}
- </Dialog.Title>
-
- <VersionUpdateSummary {versionInformation} {newestVersion} {releasedAgo} />
+ <Dialog.Header>
+ <div class="space-y-3">
+ <Dialog.Title>
+ {#if isRemoteEnvironment && versionInformation?.newestVersion}
+ {m.upgrade_remote_description({
+ targetDescription: environmentName ?? '',
+ version: versionInformation.newestVersion
+ })}
+ {:else if isRemoteEnvironment}
+ {m.update_center_remote_title({ target: environmentName ?? '' })}
+ {:else if !isSemver && trackingTag}
+ {m.upgrade_update_tag({ tag: trackingTag })}
+ {:else}
+ {m.update_center_title()}
+ {/if}
+ </Dialog.Title>
+
+ <VersionUpdateSummary {versionInformation} {newestVersion} {releasedAgo} />
+ </div>
</Dialog.Header>
</div>
@@ -602,7 +605,7 @@
</p>
</div>
- <Dialog.Footer class="border-t border-border/60 px-6 py-4">
+ <Dialog.Footer>
<ArcaneButton action="cancel" customLabel={m.update_center_later()} onclick={() => (open = false)} />
{#if canInstall}
<ArcaneButton action="update" customLabel={installLabel} onclick={handleConfirm} />
diff --git a/frontend/src/lib/components/dialogs/version-update-summary.svelte b/frontend/src/lib/components/dialogs/version-update-summary.svelte
index 3810cb1f0..f88c07bdc 100644
--- a/frontend/src/lib/components/dialogs/version-update-summary.svelte
+++ b/frontend/src/lib/components/dialogs/version-update-summary.svelte
@@ -52,7 +52,7 @@
{#if currentDigest}
<div class="flex items-baseline gap-2">
<span class="w-16 shrink-0 tracking-wide text-muted-foreground/70 uppercase">{m.common_current()}</span>
- <code class="min-w-0 flex-1 rounded-md bg-muted/50 px-2 py-1 font-mono text-[11px] break-all text-muted-foreground">
+ <code class="min-w-0 flex-1 rounded-md bg-muted/50 px-2 py-1 font-mono text-2xs break-all text-muted-foreground">
{currentDigest}
</code>
</div>
@@ -60,7 +60,7 @@
{#if newDigest}
<div class="flex items-baseline gap-2">
<span class="w-16 shrink-0 tracking-wide text-primary/80 uppercase">{m.update_center_new_label()}</span>
- <code class="min-w-0 flex-1 rounded-md bg-primary/10 px-2 py-1 font-mono text-[11px] font-medium break-all text-primary">
+ <code class="min-w-0 flex-1 rounded-md bg-primary/10 px-2 py-1 font-mono text-2xs font-medium break-all text-primary">
{newDigest}
</code>
</div>
diff --git a/frontend/src/lib/components/dropdown-card.svelte b/frontend/src/lib/components/dropdown-card.svelte
index 91aeaf16c..a1bb31e6c 100644
--- a/frontend/src/lib/components/dropdown-card.svelte
+++ b/frontend/src/lib/components/dropdown-card.svelte
@@ -74,7 +74,8 @@
<Card.Header
{icon}
enableHover
- class="cursor-pointer border-b select-none"
+ divider
+ class="cursor-pointer select-none"
role="button"
tabindex={0}
onclick={onHeaderClick}
@@ -105,9 +106,9 @@
</Card.Header>
{#if expanded}
<div transition:slide={{ duration: 200 }}>
- <Card.Content class="p-0">
+ <div>
{@render children()}
- </Card.Content>
+ </div>
</div>
{/if}
</Card.Root>
diff --git a/frontend/src/lib/components/editor-tab-strip.svelte b/frontend/src/lib/components/editor-tab-strip.svelte
index dace072ca..9554eaae8 100644
--- a/frontend/src/lib/components/editor-tab-strip.svelte
+++ b/frontend/src/lib/components/editor-tab-strip.svelte
@@ -41,7 +41,7 @@
<button
type="button"
class={cn(
- 'flex h-full items-center gap-1.5 pr-1 pl-3 text-[13px]',
+ 'flex h-full items-center gap-1.5 pr-1 pl-3 text-xs-plus',
isActive ? 'text-foreground' : 'text-muted-foreground'
)}
title={tab.title}
diff --git a/frontend/src/lib/components/env-vars-list.svelte b/frontend/src/lib/components/env-vars-list.svelte
index a40694c62..46c359701 100644
--- a/frontend/src/lib/components/env-vars-list.svelte
+++ b/frontend/src/lib/components/env-vars-list.svelte
@@ -18,11 +18,7 @@
{@const value = valueParts.join('=')}
<KeyValueCard label={key ?? ''} {valueTitle}>{value}</KeyValueCard>
{:else}
- <KeyValueCard
- label={nameOnlyLabel}
- labelClass="text-muted-foreground text-xs font-semibold tracking-wide uppercase"
- {valueTitle}
- >
+ <KeyValueCard label={nameOnlyLabel} {valueTitle}>
{env}
</KeyValueCard>
{/if}
diff --git a/frontend/src/lib/components/events/event-detail-panel.svelte b/frontend/src/lib/components/events/event-detail-panel.svelte
index c25a4b876..0d5cf0344 100644
--- a/frontend/src/lib/components/events/event-detail-panel.svelte
+++ b/frontend/src/lib/components/events/event-detail-panel.svelte
@@ -51,13 +51,7 @@
<div class="flex flex-wrap items-center justify-between gap-2 py-2.5">
<span class="text-sm font-semibold">{m.events_metadata_title()}</span>
<div class="flex items-center gap-2">
- <CopyButton
- text={eventJson}
- variant="ghost"
- size="default"
- class="h-8 px-2 text-xs"
- title={m.events_copy_full_event_json_title()}
- >
+ <CopyButton text={eventJson} variant="ghost" size="sm" title={m.events_copy_full_event_json_title()}>
<span class="text-xs">{m.common_copy_json()}</span>
</CopyButton>
<ArcaneButton
@@ -77,7 +71,7 @@
<div class="max-h-80 overflow-auto border-t border-border/50">
{#each metadataEntries as entry (entry.key)}
<div
- class="grid grid-cols-[minmax(0,1fr)_minmax(0,2fr)] items-start gap-3 border-b border-border/50 py-2 last:border-b-0 sm:grid-cols-[minmax(0,260px)_minmax(0,1fr)]"
+ class="grid grid-cols-split-1-2 items-start gap-3 border-b border-border/50 py-2 last:border-b-0 sm:grid-cols-aside-65"
>
<div class="font-mono text-xs break-all text-muted-foreground">{entry.key}</div>
<pre class="font-mono text-xs leading-relaxed break-all whitespace-pre-wrap">{entry.value}</pre>
diff --git a/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte b/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte
index 823b9dc27..98dd54b37 100644
--- a/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte
+++ b/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte
@@ -48,7 +48,7 @@
</script>
<Dialog.Root {open} onOpenChange={(nextOpen) => (open = nextOpen)}>
- <Dialog.Content class="sm:max-w-[425px]">
+ <Dialog.Content class="sm:max-w-106.25">
<Dialog.Header>
<Dialog.Title>{m.new_folder()}</Dialog.Title>
<Dialog.Description>
diff --git a/frontend/src/lib/components/file-browser/FileBreadcrumb.svelte b/frontend/src/lib/components/file-browser/FileBreadcrumb.svelte
index 2522999ee..dcbf3c2b4 100644
--- a/frontend/src/lib/components/file-browser/FileBreadcrumb.svelte
+++ b/frontend/src/lib/components/file-browser/FileBreadcrumb.svelte
@@ -36,11 +36,11 @@
<Breadcrumb.Item>
{#if segments.length === 0}
<Breadcrumb.Page>
- <span class="block max-w-[28ch] truncate" title={rootLabel}>{rootLabel}</span>
+ <span class="block max-w-crumb truncate" title={rootLabel}>{rootLabel}</span>
</Breadcrumb.Page>
{:else}
<Breadcrumb.Link onclick={() => onNavigate('/')} class="cursor-pointer" title={rootLabel}>
- <span class="block max-w-[28ch] truncate">{rootLabel}</span>
+ <span class="block max-w-crumb truncate">{rootLabel}</span>
</Breadcrumb.Link>
{/if}
</Breadcrumb.Item>
@@ -53,11 +53,11 @@
<Breadcrumb.Item>
{#if i === segments.length - 1}
<Breadcrumb.Page>
- <span class="block max-w-[28ch] truncate" title={segment.name}>{segment.name}</span>
+ <span class="block max-w-crumb truncate" title={segment.name}>{segment.name}</span>
</Breadcrumb.Page>
{:else}
<Breadcrumb.Link onclick={() => onNavigate(segment.path)} class="cursor-pointer" title={segment.name}>
- <span class="block max-w-[28ch] truncate">{segment.name}</span>
+ <span class="block max-w-crumb truncate">{segment.name}</span>
</Breadcrumb.Link>
{/if}
</Breadcrumb.Item>
diff --git a/frontend/src/lib/components/file-browser/FileList.svelte b/frontend/src/lib/components/file-browser/FileList.svelte
index 52af6ccdd..e23afb4d5 100644
--- a/frontend/src/lib/components/file-browser/FileList.svelte
+++ b/frontend/src/lib/components/file-browser/FileList.svelte
@@ -158,7 +158,7 @@
{#snippet NameCell({ item }: { item: FileEntry })}
<div class="flex items-center gap-2">
{#if item.isDirectory}
- <FolderOpenIcon class={minimal ? 'size-4 text-muted-foreground' : 'size-4 text-blue-500'} />
+ <FolderOpenIcon class={minimal ? 'size-4 text-muted-foreground' : 'size-4 text-info'} />
<button class="text-left font-medium hover:underline" onclick={() => onNavigate(item.path)}>
{item.name}
</button>
@@ -171,9 +171,9 @@
<Tooltip.Root>
<Tooltip.Trigger>
<span class="inline-flex items-center gap-1 text-xs">
- <ExternalLinkIcon class="size-3 text-purple-500" />
+ <ExternalLinkIcon class="size-3 text-primary" />
{#if item.linkTarget === '(external)'}
- <span class="text-amber-500">(external)</span>
+ <span class="text-warning">(external)</span>
{/if}
</span>
</Tooltip.Trigger>
@@ -263,7 +263,7 @@
{/snippet}
<div
- class={`file-browser-table overflow-hidden ${
+ class={`overflow-hidden ${
minimal ? 'file-browser-table--minimal' : 'file-browser-table--card rounded-lg border bg-card shadow-sm'
}`}
>
diff --git a/frontend/src/lib/components/file-browser/FilePreview.svelte b/frontend/src/lib/components/file-browser/FilePreview.svelte
index 6b04e4de3..a33fb7c5a 100644
--- a/frontend/src/lib/components/file-browser/FilePreview.svelte
+++ b/frontend/src/lib/components/file-browser/FilePreview.svelte
@@ -52,7 +52,7 @@
<Sheet.Root open={!!file} onOpenChange={(open) => !open && onClose()}>
<Sheet.Content class="flex h-full flex-col sm:max-w-2xl">
<Sheet.Header>
- <Sheet.Title class="truncate">{file.name}</Sheet.Title>
+ <Sheet.Title><span class="block min-w-0 truncate">{file.name}</span></Sheet.Title>
<Sheet.Description class="break-all">{file.path}</Sheet.Description>
</Sheet.Header>
diff --git a/frontend/src/lib/components/file-browser/FileUploadDialog.svelte b/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
index e34045f41..41c4f972f 100644
--- a/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
+++ b/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
@@ -75,7 +75,7 @@
if (!isOpen) files = [];
}}
>
- <Dialog.Content class="sm:max-w-[500px]">
+ <Dialog.Content class="sm:max-w-125">
<Dialog.Header>
<Dialog.Title>{m.workspace_upload_files()}</Dialog.Title>
<Dialog.Description>
@@ -86,13 +86,13 @@
<FileDropZone {onUpload} {onFileRejected} multiple fileCount={files.length} disabled={uploading} />
{#if files.length > 0}
- <div class="flex max-h-[200px] flex-col gap-2 overflow-y-auto pr-1">
+ <div class="flex max-h-50 flex-col gap-2 overflow-y-auto pr-1">
{#each files as file, i (file.name + i)}
<div class="flex flex-col gap-1.5 rounded-lg border border-border bg-muted/50 p-2">
<div class="flex items-center justify-between gap-2">
<div class="flex flex-col overflow-hidden">
<span class="truncate text-xs font-medium">{file.name}</span>
- <span class="text-[10px] text-muted-foreground">{displaySize(file.size)}</span>
+ <span class="text-3xs text-muted-foreground">{displaySize(file.size)}</span>
</div>
<ArcaneButton
action="base"
@@ -105,7 +105,7 @@
/>
</div>
{#if uploadingFile === file.name && uploadProgress}
- <Progress value={(uploadProgress.bytesDone / uploadProgress.totalBytes) * 100} class="h-1 rounded-full" />
+ <Progress value={(uploadProgress.bytesDone / uploadProgress.totalBytes) * 100} class="h-1" />
{/if}
</div>
{/each}
diff --git a/frontend/src/lib/components/file-tree-row.svelte b/frontend/src/lib/components/file-tree-row.svelte
index 42ea8b06c..7dd8b87a5 100644
--- a/frontend/src/lib/components/file-tree-row.svelte
+++ b/frontend/src/lib/components/file-tree-row.svelte
@@ -56,10 +56,10 @@
<div
class={cn(
- 'group flex min-h-8 w-full items-center gap-1.5 rounded-md pr-2 text-[13px] hover:bg-accent',
+ 'group flex min-h-8 w-full items-center gap-1.5 rounded-md pr-2 pl-(--indent) text-xs-plus hover:bg-accent',
selected && 'bg-accent'
)}
- style={`padding-left: ${0.5 + depth * 1}rem`}
+ style={`--indent: ${0.5 + depth * 1}rem`}
data-path={path}
data-directory={isDirectory}
>
@@ -99,9 +99,9 @@
>
{#if isDirectory}
<span class="relative size-4 shrink-0">
- <FolderOpenIcon class={cn('size-4 text-amber-500', loading && 'opacity-40')} />
+ <FolderOpenIcon class={cn('size-4 text-warning', loading && 'opacity-40')} />
{#if loading}
- <Spinner aria-hidden="true" class="absolute inset-0 size-4 text-foreground" />
+ <Spinner aria-hidden="true" tone="foreground" class="absolute inset-0 size-4" />
{/if}
</span>
{:else}
diff --git a/frontend/src/lib/components/font-size-picker.svelte b/frontend/src/lib/components/font-size-picker.svelte
index 1f63bcaec..f62f73be7 100644
--- a/frontend/src/lib/components/font-size-picker.svelte
+++ b/frontend/src/lib/components/font-size-picker.svelte
@@ -43,7 +43,7 @@
}
</script>
-<div class={`font-size-picker flex items-center gap-3 ${className}`}>
+<div class={`flex items-center gap-3 ${className}`}>
<Slider.Root
type="single"
bind:value={currentSize}
diff --git a/frontend/src/lib/components/form/date-picker.svelte b/frontend/src/lib/components/form/date-picker.svelte
index e1548f473..bd1442b61 100644
--- a/frontend/src/lib/components/form/date-picker.svelte
+++ b/frontend/src/lib/components/form/date-picker.svelte
@@ -54,7 +54,7 @@
/>
{/snippet}
</Popover.Trigger>
- <Popover.Content class="w-auto p-0" align="start">
+ <Popover.Content class="w-auto" align="start">
<Calendar
type="single"
value={calendarDisplayDate}
diff --git a/frontend/src/lib/components/form/form-input.svelte b/frontend/src/lib/components/form/form-input.svelte
index 0aaeab7f9..91c51efda 100644
--- a/frontend/src/lib/components/form/form-input.svelte
+++ b/frontend/src/lib/components/form/form-input.svelte
@@ -62,7 +62,7 @@
{/if}
{/if}
{#if input?.error}
- <p class="mt-1 text-sm text-red-500">{input.error}</p>
+ <p class="mt-1 text-sm text-destructive">{input.error}</p>
{/if}
{#if helpText}
<p class="mt-1 text-xs text-muted-foreground">{helpText}</p>
diff --git a/frontend/src/lib/components/form/key-value-editor.svelte b/frontend/src/lib/components/form/key-value-editor.svelte
index cdfafe155..3ba54ca65 100644
--- a/frontend/src/lib/components/form/key-value-editor.svelte
+++ b/frontend/src/lib/components/form/key-value-editor.svelte
@@ -34,9 +34,9 @@
<div class="space-y-3">
{#each rows as row, index (row)}
<div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
- <Input type="text" placeholder={keyPlaceholder} bind:value={row.key} {disabled} class="flex-1 font-mono" />
+ <Input type="text" placeholder={keyPlaceholder} bind:value={row.key} {disabled} mono class="flex-1" />
<span class="hidden font-mono text-muted-foreground sm:inline">=</span>
- <Input type="text" placeholder={valuePlaceholder} bind:value={row.value} {disabled} class="flex-1 font-mono" />
+ <Input type="text" placeholder={valuePlaceholder} bind:value={row.value} {disabled} mono class="flex-1" />
<ArcaneButton
action="base"
tone="ghost"
diff --git a/frontend/src/lib/components/form/labeled-switch.svelte b/frontend/src/lib/components/form/labeled-switch.svelte
index d87e74923..c34c2bb7e 100644
--- a/frontend/src/lib/components/form/labeled-switch.svelte
+++ b/frontend/src/lib/components/form/labeled-switch.svelte
@@ -36,16 +36,16 @@
<div class="flex items-center space-x-2">
<Switch {...switchProps} bind:checked />
<div class="grid gap-1.5 leading-none">
- <Label for={id} class="mb-0 text-sm leading-none font-medium">
+ <Label for={id} class="mb-0">
{label}
</Label>
{#if error}
- <p class="text-[0.8rem] font-medium text-destructive">
+ <p class="text-xs font-medium text-destructive">
{error}
</p>
{/if}
{#if description}
- <p class="text-[0.8rem] text-muted-foreground">
+ <p class="text-xs text-muted-foreground">
{description}
</p>
{/if}
diff --git a/frontend/src/lib/components/form/mobile-floating-form-actions.svelte b/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
index 38e18973b..b1a0ad032 100644
--- a/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
+++ b/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
@@ -22,8 +22,8 @@
{#if isMobile.current}
<div
- class="fixed right-4 z-[var(--arcane-z-app-chrome)] flex flex-col gap-3 transition-[bottom] duration-300 ease-out"
- style="bottom: {scrollToHideEnabled && !navigation.visible
+ class="fixed right-4 bottom-(--fab-bottom) z-(--arcane-z-app-chrome) flex flex-col gap-3 transition-all duration-300 ease-out"
+ style="--fab-bottom: {scrollToHideEnabled && !navigation.visible
? '1rem'
: 'calc(var(--mobile-' +
navigationMode +
@@ -55,7 +55,7 @@
<!-- Status indicator for mobile -->
{#if hasChanges}
- <div class="absolute -top-2 -left-2 size-3 animate-pulse rounded-full bg-orange-500"></div>
+ <div class="absolute -top-2 -left-2 size-3 animate-pulse rounded-full bg-warning"></div>
{/if}
</div>
{/if}
diff --git a/frontend/src/lib/components/form/network-attachment-editor.svelte b/frontend/src/lib/components/form/network-attachment-editor.svelte
index 7284a17a0..7aafd9c3f 100644
--- a/frontend/src/lib/components/form/network-attachment-editor.svelte
+++ b/frontend/src/lib/components/form/network-attachment-editor.svelte
@@ -45,10 +45,11 @@
placeholder={m.containers_aliases()}
bind:value={row.aliases}
{disabled}
- class="flex-1 font-mono"
+ mono
+ class="flex-1"
title={m.aliases_note()}
/>
- <Input type="text" placeholder={m.static_ip()} bind:value={row.ipv4Address} {disabled} class="flex-1 font-mono" />
+ <Input type="text" placeholder={m.static_ip()} bind:value={row.ipv4Address} {disabled} mono class="flex-1" />
<ArcaneButton
action="base"
tone="ghost"
diff --git a/frontend/src/lib/components/form/port-mapping-editor.svelte b/frontend/src/lib/components/form/port-mapping-editor.svelte
index ee065500f..2cb7b0834 100644
--- a/frontend/src/lib/components/form/port-mapping-editor.svelte
+++ b/frontend/src/lib/components/form/port-mapping-editor.svelte
@@ -38,7 +38,8 @@
placeholder={m.host_ip_placeholder()}
bind:value={row.hostIp}
{disabled}
- class="flex-1 font-mono"
+ mono
+ class="flex-1"
title={m.host()}
/>
<Input
@@ -46,7 +47,8 @@
placeholder={m.notifications_signal_port_placeholder()}
bind:value={row.hostPort}
{disabled}
- class="flex-1 font-mono"
+ mono
+ class="flex-1"
/>
<span class="hidden text-muted-foreground sm:inline">→</span>
<Input
@@ -54,7 +56,8 @@
placeholder={m.container_port_placeholder()}
bind:value={row.containerPort}
{disabled}
- class="flex-1 font-mono"
+ mono
+ class="flex-1"
/>
<select bind:value={row.protocol} {disabled} class="min-w-16 rounded-md border bg-background px-3 py-2 text-sm">
<option value="tcp">{m.protocol_tcp()}</option>
diff --git a/frontend/src/lib/components/form/searchable-select.svelte b/frontend/src/lib/components/form/searchable-select.svelte
index ed36d7eb2..19a832c7f 100644
--- a/frontend/src/lib/components/form/searchable-select.svelte
+++ b/frontend/src/lib/components/form/searchable-select.svelte
@@ -36,11 +36,6 @@
tone,
variant = 'outline',
size = 'sm',
- contentClass,
- commandClass,
- inputClass,
- listClass,
- itemClass,
showCheckboxes = true,
class: className
}: {
@@ -61,11 +56,6 @@
tone?: ArcaneButtonTone;
variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
size?: ArcaneButtonSize;
- contentClass?: string;
- commandClass?: string;
- inputClass?: string;
- listClass?: string;
- itemClass?: string;
showCheckboxes?: boolean;
class?: string;
} = $props();
@@ -153,15 +143,10 @@
</ArcaneButton>
{/snippet}
</Popover.Trigger>
- <Popover.Content
- class={cn(
- 'backdrop-blur-0 w-[var(--bits-popover-anchor-width)] bg-popover p-0 text-popover-foreground backdrop-saturate-100',
- contentClass
- )}
- >
- <Command.Root shouldFilter={false} class={cn('rounded-none bg-transparent', commandClass)}>
+ <Popover.Content class="w-(--bits-popover-anchor-width)">
+ <Command.Root shouldFilter={false}>
{#if !disableSearch}
- <Command.Input placeholder={m.common_search()} class={cn(inputClass)} bind:value={searchText} {oninput} />
+ <Command.Input placeholder={m.common_search()} bind:value={searchText} {oninput} />
{/if}
<Command.Empty>
{#if isLoading}
@@ -172,14 +157,13 @@
{emptyText}
{/if}
</Command.Empty>
- <Command.List class={cn(listClass)}>
+ <Command.List>
<Command.Group>
{#each filteredItems as item (item.value)}
{@const isSelected = item.selected ?? item.value === value}
<Command.Item
value={item.value}
disabled={item.disabled}
- class={cn(itemClass)}
onSelect={() => {
if (item.disabled) return;
if (value !== undefined) value = item.value;
diff --git a/frontend/src/lib/components/form/select-with-label.svelte b/frontend/src/lib/components/form/select-with-label.svelte
index 1627564c1..d53105803 100644
--- a/frontend/src/lib/components/form/select-with-label.svelte
+++ b/frontend/src/lib/components/form/select-with-label.svelte
@@ -16,7 +16,7 @@
options = [],
groupLabel,
hideLabel = false,
- triggerClass = 'w-full',
+ compact = false,
triggerSize = 'default',
onValueChange
}: {
@@ -31,7 +31,7 @@
options: { label: string; value: string; description?: string; badge?: string }[];
groupLabel?: string;
hideLabel?: boolean;
- triggerClass?: string;
+ compact?: boolean;
triggerSize?: 'sm' | 'default';
onValueChange?: (value: string) => void;
} = $props();
@@ -46,7 +46,7 @@
<span class="flex items-center gap-2 font-medium">
{option.label}
{#if option.badge}
- <Badge variant="purple" size="sm" class="relative -top-px px-1.5 py-0 text-[10px] leading-4">{option.badge}</Badge>
+ <Badge variant="purple" size="xs" class="relative -top-px">{option.badge}</Badge>
{/if}
</span>
{#if option.description}
@@ -64,7 +64,7 @@
</Label>
{:else}
<div>
- <Label for={id} class="text-sm font-medium">
+ <Label for={id}>
{label}
</Label>
{#if description}
@@ -74,11 +74,11 @@
{/if}
<Select.Root type="single" bind:value {name} {disabled} onValueChange={(v) => onValueChange?.(v)}>
- <Select.Trigger size={triggerSize} class="{triggerClass} {error ? 'border-destructive' : ''}" {id}>
+ <Select.Trigger size={triggerSize} class={compact ? 'w-40' : 'w-full'} aria-invalid={!!error} {id}>
<span class="flex items-center gap-2">
{selected?.label ?? placeholder}
{#if selected?.badge}
- <Badge variant="purple" size="sm" class="relative -top-px px-1.5 py-0 text-[10px] leading-4">{selected.badge}</Badge>
+ <Badge variant="purple" size="xs" class="relative -top-px">{selected.badge}</Badge>
{/if}
</span>
</Select.Trigger>
diff --git a/frontend/src/lib/components/form/text-input-with-label.svelte b/frontend/src/lib/components/form/text-input-with-label.svelte
index 2ab381c7f..93eddc8d3 100644
--- a/frontend/src/lib/components/form/text-input-with-label.svelte
+++ b/frontend/src/lib/components/form/text-input-with-label.svelte
@@ -54,7 +54,7 @@
<div class="space-y-2.5">
<div>
- <Label for={id} class="text-sm font-medium">
+ <Label for={id}>
{label}{#if required}<span class="ml-0.5 text-destructive">*</span>{/if}
</Label>
{#if description}
@@ -74,13 +74,13 @@
{autocomplete}
{required}
oninput={handleInput}
- class={error ? 'border-destructive' : ''}
+ aria-invalid={!!error}
/>
{#if error}
<p class="text-xs font-medium text-destructive">{error}</p>
{/if}
{#if helpText || reserveHelpTextSpace}
- <p class="min-h-[1rem] text-xs text-muted-foreground">{helpText}</p>
+ <p class="min-h-4 text-xs text-muted-foreground">{helpText}</p>
{/if}
</div>
diff --git a/frontend/src/lib/components/form/url-input.svelte b/frontend/src/lib/components/form/url-input.svelte
index 5929781f2..c33611013 100644
--- a/frontend/src/lib/components/form/url-input.svelte
+++ b/frontend/src/lib/components/form/url-input.svelte
@@ -41,7 +41,7 @@
<div class="grid gap-2">
{#if label}
- <Label for={id} class="text-xs">{label}</Label>
+ <Label for={id} size="xs">{label}</Label>
{/if}
<ButtonGroup.Root class="w-full">
@@ -52,7 +52,7 @@
{...props}
action="base"
tone="outline"
- class="w-[5.5rem] shrink-0 justify-between gap-1 text-sm"
+ class="w-22 shrink-0 justify-between gap-1 text-sm"
{disabled}
customLabel="{protocol}://"
>
@@ -61,11 +61,11 @@
{/snippet}
</DropdownMenu.Trigger>
<DropdownMenu.Content align="center" class="min-w-0">
- <DropdownMenu.Item class="py-1.5" onclick={() => selectProtocol('https')}>https://</DropdownMenu.Item>
- <DropdownMenu.Item class="py-1.5" onclick={() => selectProtocol('http')}>http://</DropdownMenu.Item>
+ <DropdownMenu.Item onclick={() => selectProtocol('https')}>https://</DropdownMenu.Item>
+ <DropdownMenu.Item onclick={() => selectProtocol('http')}>http://</DropdownMenu.Item>
</DropdownMenu.Content>
</DropdownMenu.Root>
- <InputGroup.Root class={['flex-1', error ? 'border-destructive' : ''].filter(Boolean).join(' ')}>
+ <InputGroup.Root class="flex-1">
<InputGroup.Input {id} {value} oninput={handleInput} {placeholder} {disabled} {required} aria-invalid={!!error} />
</InputGroup.Root>
</ButtonGroup.Root>
diff --git a/frontend/src/lib/components/form/volume-mount-editor.svelte b/frontend/src/lib/components/form/volume-mount-editor.svelte
index 2f9116f0a..f989666e7 100644
--- a/frontend/src/lib/components/form/volume-mount-editor.svelte
+++ b/frontend/src/lib/components/form/volume-mount-editor.svelte
@@ -46,7 +46,7 @@
{#each rows as row, index (row)}
<div class="space-y-2 rounded-lg border border-border/50 p-3">
<div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
- <Badge variant="outline" class="w-fit shrink-0 font-mono text-xs">
+ <Badge variant="outline" mono class="w-fit shrink-0">
{row.kind === 'mount'
? (row.mountType ?? m.common_mount())
: row.kind === 'bind'
@@ -61,7 +61,8 @@
placeholder={m.container_source_path_or_volume()}
bind:value={row.source}
disabled={disabled || row.kind === 'mount'}
- class="flex-1 font-mono"
+ mono
+ class="flex-1"
/>
{/if}
<span class="hidden text-muted-foreground sm:inline">:</span>
@@ -70,7 +71,8 @@
placeholder={m.container_path()}
bind:value={row.target}
disabled={disabled || row.kind === 'mount'}
- class="flex-1 font-mono"
+ mono
+ class="flex-1"
/>
<ArcaneButton
action="base"
@@ -85,10 +87,10 @@
<div class="flex items-center gap-4">
<div class="flex items-center space-x-2">
<Checkbox bind:checked={row.readOnly} {disabled} />
- <Label class="text-sm font-normal">{m.read_only_label()}</Label>
+ <Label weight="normal">{m.read_only_label()}</Label>
</div>
{#if row.rawOptions}
- <Badge variant="secondary" class="font-mono text-xs" title={m.mount_options_note()}>
+ <Badge variant="secondary" mono title={m.mount_options_note()}>
{row.rawOptions}
</Badge>
{/if}
diff --git a/frontend/src/lib/components/forms/role-assignments-editor.svelte b/frontend/src/lib/components/forms/role-assignments-editor.svelte
index e2005f9a1..f4eba8235 100644
--- a/frontend/src/lib/components/forms/role-assignments-editor.svelte
+++ b/frontend/src/lib/components/forms/role-assignments-editor.svelte
@@ -137,7 +137,7 @@
{#each assignments as assignment, index (`${assignment.roleId}-${assignment.environmentId ?? 'global'}`)}
{@const envValue = envIdToSelectValue(assignment.environmentId)}
- <div class="grid grid-cols-1 gap-2 rounded-md border bg-card/50 p-3 sm:grid-cols-[1fr_1fr_auto] sm:items-center">
+ <div class="grid grid-cols-1 gap-2 rounded-md border bg-card/50 p-3 sm:grid-cols-halves-action sm:items-center">
<Select.Root
type="single"
value={envValue}
diff --git a/frontend/src/lib/components/gitops/backup-history-dialog.svelte b/frontend/src/lib/components/gitops/backup-history-dialog.svelte
index f67309787..af882bd86 100644
--- a/frontend/src/lib/components/gitops/backup-history-dialog.svelte
+++ b/frontend/src/lib/components/gitops/backup-history-dialog.svelte
@@ -50,66 +50,66 @@
title={m.backup_history()}
description={sync?.name}
contentClass="sm:max-w-3xl"
- class="pb-6"
>
- {#if history.isPending}
- <div class="flex items-center gap-2 py-8 text-sm text-muted-foreground">
- <Spinner class="size-4" />
- {m.common_loading()}
- </div>
- {:else if history.isError}
- <p class="py-8 text-sm text-destructive">{m.backup_history_load_failed()}</p>
- {:else if entries.length === 0}
- <p class="py-8 text-sm text-muted-foreground">{m.backup_history_empty()}</p>
- {:else}
- <ul class="divide-y divide-border/50 rounded-lg border border-border/50">
- {#each entries as entry (entry.commit)}
- {@const isSelected = selectedCommit === entry.commit}
- <li>
- <button
- type="button"
- class="flex w-full flex-col gap-1 px-3 py-2.5 text-left hover:bg-muted/40 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring"
- aria-expanded={isSelected}
- onclick={() => (selectedCommit = isSelected ? null : entry.commit)}
- >
- <span class="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground">
- <code class="rounded bg-muted px-1.5 py-0.5 font-mono">{entry.commit.slice(0, 7)}</code>
- <span>{formatDateTimeShort(entry.date)}</span>
- <span>{entry.author}</span>
- <span>{m.changed_files_count({ count: entry.files.length })}</span>
- </span>
- <span class="text-sm font-medium break-words">{firstLine(entry.message)}</span>
- </button>
-
- {#if isSelected}
- <div class="border-t border-border/50 bg-muted/20 px-3 py-3">
- {#if revision.isPending}
- <div class="flex items-center gap-2 text-sm text-muted-foreground">
- <Spinner class="size-4" />
- {m.common_loading()}
- </div>
- {:else if revision.isError}
- <p class="text-sm text-destructive">{m.backup_revision_load_failed()}</p>
- {:else if (revision.data?.diffs ?? []).length === 0}
- <p class="text-sm text-muted-foreground">{m.no_file_changes()}</p>
- {:else}
- <div class="space-y-3">
- {#each revision.data?.diffs ?? [] as diff (diff.path)}
- <div class="space-y-1">
- <p class="font-mono text-xs font-medium break-all">{diff.path}</p>
- <pre
- class="overflow-x-auto rounded-md border border-border/50 bg-background p-3 font-mono text-xs leading-relaxed whitespace-pre">{diff.patch}</pre>
- </div>
- {/each}
- </div>
- {/if}
- </div>
- {/if}
- </li>
- {/each}
- </ul>
- {/if}
+ <div class="pb-6">
+ {#if history.isPending}
+ <div class="flex items-center gap-2 py-8 text-sm text-muted-foreground">
+ <Spinner class="size-4" />
+ {m.common_loading()}
+ </div>
+ {:else if history.isError}
+ <p class="py-8 text-sm text-destructive">{m.backup_history_load_failed()}</p>
+ {:else if entries.length === 0}
+ <p class="py-8 text-sm text-muted-foreground">{m.backup_history_empty()}</p>
+ {:else}
+ <ul class="divide-y divide-border/50 rounded-lg border border-border/50">
+ {#each entries as entry (entry.commit)}
+ {@const isSelected = selectedCommit === entry.commit}
+ <li>
+ <button
+ type="button"
+ class="flex w-full flex-col gap-1 px-3 py-2.5 text-left hover:bg-muted/40 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring"
+ aria-expanded={isSelected}
+ onclick={() => (selectedCommit = isSelected ? null : entry.commit)}
+ >
+ <span class="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground">
+ <code class="rounded bg-muted px-1.5 py-0.5 font-mono">{entry.commit.slice(0, 7)}</code>
+ <span>{formatDateTimeShort(entry.date)}</span>
+ <span>{entry.author}</span>
+ <span>{m.changed_files_count({ count: entry.files.length })}</span>
+ </span>
+ <span class="text-sm font-medium break-words">{firstLine(entry.message)}</span>
+ </button>
+ {#if isSelected}
+ <div class="border-t border-border/50 bg-muted/20 px-3 py-3">
+ {#if revision.isPending}
+ <div class="flex items-center gap-2 text-sm text-muted-foreground">
+ <Spinner class="size-4" />
+ {m.common_loading()}
+ </div>
+ {:else if revision.isError}
+ <p class="text-sm text-destructive">{m.backup_revision_load_failed()}</p>
+ {:else if (revision.data?.diffs ?? []).length === 0}
+ <p class="text-sm text-muted-foreground">{m.no_file_changes()}</p>
+ {:else}
+ <div class="space-y-3">
+ {#each revision.data?.diffs ?? [] as diff (diff.path)}
+ <div class="space-y-1">
+ <p class="font-mono text-xs font-medium break-all">{diff.path}</p>
+ <pre
+ class="overflow-x-auto rounded-md border border-border/50 bg-background p-3 font-mono text-xs leading-relaxed whitespace-pre">{diff.patch}</pre>
+ </div>
+ {/each}
+ </div>
+ {/if}
+ </div>
+ {/if}
+ </li>
+ {/each}
+ </ul>
+ {/if}
+ </div>
{#snippet footer()}
<ArcaneButton action="base" tone="outline" customLabel={m.common_close()} icon={null} onclick={() => (open = false)} />
{/snippet}
diff --git a/frontend/src/lib/components/gitops/backup-resolve-dialog.svelte b/frontend/src/lib/components/gitops/backup-resolve-dialog.svelte
index 4cd1ef55d..7b3138ca7 100644
--- a/frontend/src/lib/components/gitops/backup-resolve-dialog.svelte
+++ b/frontend/src/lib/components/gitops/backup-resolve-dialog.svelte
@@ -92,31 +92,32 @@
</div>
{/snippet}
-<ResponsiveDialog bind:open title={m.resolve_backup()} description={sync?.name} contentClass="sm:max-w-xl" class="pb-6">
- {#if preview.isPending}
- <div class="flex items-center gap-2 py-8 text-sm text-muted-foreground">
- <Spinner class="size-4" />
- {m.common_loading()}
- </div>
- {:else if preview.isError}
- <p class="py-8 text-sm text-destructive">{m.backup_preview_load_failed()}</p>
- {:else}
- <div class="space-y-4">
- <p class="text-sm font-medium">{stateLabel}</p>
- <p class="text-sm text-muted-foreground">{m.use_arcane_files_description()}</p>
+<ResponsiveDialog bind:open title={m.resolve_backup()} description={sync?.name} contentClass="sm:max-w-xl">
+ <div class="pb-6">
+ {#if preview.isPending}
+ <div class="flex items-center gap-2 py-8 text-sm text-muted-foreground">
+ <Spinner class="size-4" />
+ {m.common_loading()}
+ </div>
+ {:else if preview.isError}
+ <p class="py-8 text-sm text-destructive">{m.backup_preview_load_failed()}</p>
+ {:else}
+ <div class="space-y-4">
+ <p class="text-sm font-medium">{stateLabel}</p>
+ <p class="text-sm text-muted-foreground">{m.use_arcane_files_description()}</p>
- {#if (preview.data?.conflicts ?? []).length > 0}
- {@render fileList(m.conflicts(), preview.data?.conflicts ?? [])}
- {/if}
-
- {#if (preview.data?.changes ?? []).length > 0}
- {@render fileList(m.changes(), preview.data?.changes ?? [])}
- {:else}
- <p class="text-sm text-muted-foreground">{m.no_pending_changes()}</p>
- {/if}
- </div>
- {/if}
+ {#if (preview.data?.conflicts ?? []).length > 0}
+ {@render fileList(m.conflicts(), preview.data?.conflicts ?? [])}
+ {/if}
+ {#if (preview.data?.changes ?? []).length > 0}
+ {@render fileList(m.changes(), preview.data?.changes ?? [])}
+ {:else}
+ <p class="text-sm text-muted-foreground">{m.no_pending_changes()}</p>
+ {/if}
+ </div>
+ {/if}
+ </div>
{#snippet footer()}
<ArcaneButton action="base" tone="outline" customLabel={m.common_cancel()} icon={null} onclick={() => (open = false)} />
<ArcaneButton
diff --git a/frontend/src/lib/components/image-update-item.svelte b/frontend/src/lib/components/image-update-item.svelte
index f84cc7469..c0198bdf7 100644
--- a/frontend/src/lib/components/image-update-item.svelte
+++ b/frontend/src/lib/components/image-update-item.svelte
@@ -254,30 +254,30 @@
const updatePriority = $derived.by(() => {
if (!effectiveUpdateInfo) return null;
if (effectiveUpdateInfo.error)
- return { level: 'Error', color: 'text-red-500', description: m.image_update_could_not_query_registry() };
+ return { level: 'Error', color: 'text-destructive', description: m.image_update_could_not_query_registry() };
if (effectiveUpdateInfo.updateType === 'local')
- return { level: m.image_update_local_title(), color: 'text-slate-500', description: m.image_update_local_desc() };
+ return { level: m.image_update_local_title(), color: 'text-muted-foreground', description: m.image_update_local_desc() };
if (effectiveUpdateInfo.updateType === 'not_pulled')
return {
level: m.image_update_not_pulled_title(),
- color: 'text-blue-500',
+ color: 'text-info',
description: m.image_update_not_pulled_desc()
};
if (!effectiveUpdateInfo.hasUpdate)
- return { level: 'None', color: 'text-green-500', description: m.image_update_up_to_date_desc() };
+ return { level: 'None', color: 'text-success', description: m.image_update_up_to_date_desc() };
if (effectiveUpdateInfo.updateType === 'digest')
return {
level: m.image_update_digest_title(),
- color: 'text-blue-500',
+ color: 'text-info',
description: m.image_update_digest_desc()
};
if (effectiveUpdateInfo.updateType === 'tag') {
const desc = effectiveUpdateInfo.latestVersion
? m.image_update_tag_description_new({ version: effectiveUpdateInfo.latestVersion })
: m.image_update_tag_description();
- return { level: m.image_update_version_title(), color: 'text-yellow-500', description: desc };
+ return { level: m.image_update_version_title(), color: 'text-warning', description: desc };
}
- return { level: m.common_unknown(), color: 'text-gray-500', description: m.image_update_unknown_type() };
+ return { level: m.common_unknown(), color: 'text-muted-foreground', description: m.image_update_unknown_type() };
});
</script>
@@ -302,7 +302,7 @@
{#snippet versionDisplay(label: string, version: string, bgClass: string, textClass: string = '')}
<div class="flex items-center justify-between">
- <div class="flex items-center gap-1.5 text-gray-500 dark:text-gray-400">
+ <div class="flex items-center gap-1.5 text-muted-foreground">
{#if label === m.common_current()}
<BoxIcon class="size-3" />
{:else}
@@ -347,24 +347,24 @@
{/snippet}
{#snippet errorState()}
- <div class="bg-linear-to-br from-rose-50 to-red-50/40 p-4 dark:from-rose-950/20 dark:to-red-950/10">
+ <div class="bg-linear-to-br from-destructive/10 to-destructive/5 p-4">
<div class="flex items-start gap-3">
- {@render iconCircle(AlertIcon, 'from-rose-500', 'to-red-500', 'shadow-red-500/25')}
+ {@render iconCircle(AlertIcon, 'from-rose', 'to-destructive', 'shadow-destructive/25')}
<div class="flex-1">
- <div class="text-sm font-semibold text-red-950 dark:text-red-100">{m.image_update_check_failed_title()}</div>
- <div class="text-xs text-red-900/80 dark:text-red-300/80">{m.image_update_could_not_query_registry()}</div>
+ <div class="text-sm font-semibold text-destructive">{m.image_update_check_failed_title()}</div>
+ <div class="text-xs text-destructive/80">{m.image_update_could_not_query_registry()}</div>
{@render authBadgeDisplay()}
</div>
</div>
</div>
<div class="bg-transparent p-4">
<div class="space-y-3">
- <div class="text-xs text-gray-600 dark:text-gray-300">
+ <div class="text-xs text-muted-foreground">
<span class="font-medium">{m.image_update_error_label()}</span>
<span class="ml-1 wrap-break-word">{effectiveUpdateInfo?.error}</span>
</div>
{#if repo && tag}
- <div class="text-xs text-gray-500 dark:text-gray-400">
+ <div class="text-xs text-muted-foreground">
{m.image_update_image_label()} <span class="font-mono">{repo}:{tag}</span>
</div>
{/if}
@@ -374,14 +374,14 @@
{/snippet}
{#snippet successState()}
- <div class="bg-linear-to-br from-emerald-50 to-green-50/30 p-4 dark:from-emerald-950/20 dark:to-green-950/10">
+ <div class="bg-linear-to-br from-success/10 to-success/5 p-4">
<div class="flex items-start gap-3">
- {@render iconCircle(VerifiedCheckIcon, 'from-emerald-500', 'to-green-500', 'shadow-emerald-500/25')}
+ {@render iconCircle(VerifiedCheckIcon, 'from-success', 'to-success', 'shadow-success/25')}
<div class="flex-1">
- <div class="text-sm font-semibold text-emerald-950 dark:text-emerald-100">
+ <div class="text-sm font-semibold text-success">
{m.image_update_up_to_date_title()}
</div>
- <div class="text-xs text-emerald-900/80 dark:text-emerald-300/80">{m.image_update_up_to_date_desc()}</div>
+ <div class="text-xs text-success/80">{m.image_update_up_to_date_desc()}</div>
{@render authBadgeDisplay()}
</div>
</div>
@@ -421,54 +421,42 @@
{/snippet}
{#snippet digestState(title: string, description: string, icon: Component)}
- <div class="bg-linear-to-br from-blue-50 to-cyan-50/30 p-4 dark:from-blue-950/20 dark:to-cyan-950/10">
+ <div class="bg-linear-to-br from-info/10 to-info/5 p-4">
<div class="flex items-start gap-3">
- {@render iconCircle(icon, 'from-blue-500', 'to-cyan-500', 'shadow-blue-500/25')}
+ {@render iconCircle(icon, 'from-info', 'to-cyan', 'shadow-info/25')}
<div class="flex-1">
- <div class="text-sm font-semibold text-blue-950 dark:text-blue-100">{title}</div>
- <div class="text-xs text-blue-900/80 dark:text-blue-300/80">{description}</div>
+ <div class="text-sm font-semibold text-info">{title}</div>
+ <div class="text-xs text-info/80">{description}</div>
{@render authBadgeDisplay()}
</div>
</div>
</div>
- {@render updateDetails(
- m.image_update_latest_digest_label(),
- 'bg-blue-100 dark:bg-blue-900/30',
- 'text-blue-800 dark:text-blue-300',
- 'bg-blue-50 dark:bg-blue-950/30',
- 'text-blue-800 dark:text-blue-300'
- )}
+ {@render updateDetails(m.image_update_latest_digest_label(), 'bg-info/10', 'text-info', 'bg-info/10', 'text-info')}
{@render recheckButton()}
{/snippet}
{#snippet versionUpdateState()}
- <div class="bg-linear-to-br from-amber-50 to-yellow-50/30 p-4 dark:from-amber-950/20 dark:to-yellow-950/10">
+ <div class="bg-linear-to-br from-warning/10 to-warning/5 p-4">
<div class="flex items-start gap-3">
- {@render iconCircle(CircleArrowUpIcon, 'from-amber-500', 'to-yellow-500', 'shadow-amber-500/25')}
+ {@render iconCircle(CircleArrowUpIcon, 'from-warning', 'to-warning', 'shadow-warning/25')}
<div class="flex-1">
- <div class="text-sm font-semibold text-amber-950 dark:text-amber-100">{m.image_update_version_title()}</div>
- <div class="text-xs text-amber-900/80 dark:text-amber-300/80">{m.image_update_version_desc()}</div>
+ <div class="text-sm font-semibold text-warning">{m.image_update_version_title()}</div>
+ <div class="text-xs text-warning/80">{m.image_update_version_desc()}</div>
{@render authBadgeDisplay()}
</div>
</div>
</div>
- {@render updateDetails(
- m.image_update_latest_label(),
- 'bg-amber-100 dark:bg-amber-900/30',
- 'text-amber-800 dark:text-amber-300',
- 'bg-amber-50 dark:bg-amber-950/30',
- 'text-amber-800 dark:text-amber-300'
- )}
+ {@render updateDetails(m.image_update_latest_label(), 'bg-warning/10', 'text-warning', 'bg-warning/10', 'text-warning')}
{@render recheckButton()}
{/snippet}
{#snippet localState()}
- <div class="bg-linear-to-br from-slate-50 to-slate-100/40 p-4 dark:from-slate-950/20 dark:to-slate-900/20">
+ <div class="bg-linear-to-br from-muted/50 to-muted/20 p-4">
<div class="flex items-start gap-3">
- {@render iconCircle(BoxIcon, 'from-slate-500', 'to-gray-500', 'shadow-slate-500/25')}
+ {@render iconCircle(BoxIcon, 'from-muted-foreground', 'to-muted-foreground', 'shadow-muted-foreground/25')}
<div class="flex-1">
- <div class="text-sm font-semibold text-slate-950 dark:text-slate-100">{m.image_update_local_title()}</div>
- <div class="text-xs text-slate-900/80 dark:text-slate-300/80">{m.image_update_local_desc()}</div>
+ <div class="text-sm font-semibold text-foreground">{m.image_update_local_title()}</div>
+ <div class="text-xs text-muted-foreground">{m.image_update_local_desc()}</div>
</div>
</div>
</div>
@@ -477,24 +465,24 @@
{#snippet loadingState()}
<UpdateStatusBanner
icon={Spinner}
- wrapperClass="bg-linear-to-br from-blue-50 to-cyan-50/30 p-4 dark:from-blue-950/20 dark:to-cyan-950/10"
- gradientFrom="from-blue-500"
- gradientTo="to-cyan-500"
- shadowColor="shadow-blue-500/25"
- titleClass="text-blue-950 dark:text-blue-100"
- descriptionClass="text-blue-900/80 dark:text-blue-300/80"
+ wrapperClass="bg-linear-to-br from-info/10 to-info/5 p-4"
+ gradientFrom="from-info"
+ gradientTo="to-cyan"
+ shadowColor="shadow-info/25"
+ titleClass="text-info"
+ descriptionClass="text-info/80"
title={m.image_update_checking_title()}
description={m.image_update_querying_registry()}
/>
{/snippet}
{#snippet unknownState()}
- <div class="bg-linear-to-br from-gray-50 to-slate-50/30 p-4 dark:from-gray-900/20 dark:to-slate-900/10">
+ <div class="bg-linear-to-br from-muted/50 to-muted/20 p-4">
<div class="flex items-center gap-3">
- {@render iconCircle(AlertIcon, 'from-gray-400', 'to-slate-500', 'shadow-gray-400/25')}
+ {@render iconCircle(AlertIcon, 'from-muted-foreground', 'to-muted-foreground', 'shadow-muted-foreground/25')}
<div>
- <div class="text-sm font-semibold text-gray-950 dark:text-gray-100">{m.image_update_status_unknown()}</div>
- <div class="text-xs text-gray-800 dark:text-gray-300/80">
+ <div class="text-sm font-semibold text-foreground">{m.image_update_status_unknown()}</div>
+ <div class="text-xs text-muted-foreground">
{#if canCheckUpdate}
{m.image_update_click_to_check()}
{:else}
@@ -507,14 +495,14 @@
{/snippet}
{#if isLocalImage}
- <UpdateStatusPopover bind:open={isOpen} contentClass="max-w-[280px] p-0">
+ <UpdateStatusPopover bind:open={isOpen}>
{#snippet trigger({ props })}
<span
{...props}
class="mr-2 inline-flex size-4 items-center justify-center align-middle"
data-testid="image-update-trigger"
>
- <BoxIcon class="size-4 text-slate-500" />
+ <BoxIcon class="size-4 text-muted-foreground" />
</span>
{/snippet}
@@ -525,7 +513,7 @@
{/snippet}
</UpdateStatusPopover>
{:else if effectiveUpdateInfo}
- <UpdateStatusPopover bind:open={isOpen} contentClass="max-w-[280px] p-0">
+ <UpdateStatusPopover bind:open={isOpen}>
{#snippet trigger({ props })}
<span
{...props}
@@ -533,15 +521,15 @@
data-testid="image-update-trigger"
>
{#if hasError}
- <AlertIcon class="size-4 text-red-500" />
+ <AlertIcon class="size-4 text-destructive" />
{:else if effectiveUpdateInfo?.updateType === 'not_pulled'}
- <DownloadIcon class="size-4 text-blue-500" />
+ <DownloadIcon class="size-4 text-info" />
{:else if !effectiveUpdateInfo?.hasUpdate}
- <VerifiedCheckIcon class="size-4 text-green-500" />
+ <VerifiedCheckIcon class="size-4 text-success" />
{:else if effectiveUpdateInfo?.updateType === 'digest'}
- <CircleArrowUpIcon class="size-4 text-blue-500" />
+ <CircleArrowUpIcon class="size-4 text-info" />
{:else}
- <CircleArrowUpIcon class="size-4 text-yellow-500" />
+ <CircleArrowUpIcon class="size-4 text-warning" />
{/if}
</span>
{/snippet}
@@ -563,10 +551,10 @@
{/snippet}
</UpdateStatusPopover>
{:else if isLoadingInBackground || isChecking}
- <UpdateStatusPopover contentClass="max-w-[220px] p-0">
+ <UpdateStatusPopover contentWidth="sm">
{#snippet trigger({ props })}
<span {...props} class="mr-2 inline-flex size-4 items-center justify-center" data-testid="image-update-trigger">
- <Spinner class="size-4 text-blue-400" />
+ <Spinner tone="info" class="size-4" />
</span>
{/snippet}
@@ -577,24 +565,24 @@
{/snippet}
</UpdateStatusPopover>
{:else}
- <UpdateStatusPopover interactive directTrigger={canCheckUpdate} contentClass="max-w-[240px] p-0">
+ <UpdateStatusPopover interactive directTrigger={canCheckUpdate} contentWidth="md">
{#snippet trigger({ props })}
{#if canCheckUpdate}
{@const triggerProps = mergeProps(props, {
onclick: checkImageUpdate,
class:
- 'mr-2 inline-flex size-4 items-center justify-center rounded-full text-gray-400 transition-colors hover:text-blue-400 disabled:cursor-not-allowed'
+ 'mr-2 inline-flex size-4 items-center justify-center rounded-full text-muted-foreground transition-colors hover:text-info disabled:cursor-not-allowed'
})}
<button {...triggerProps} disabled={isChecking} data-testid="image-update-trigger">
{#if isChecking}
- <Spinner class="size-3 text-blue-400" />
+ <Spinner tone="info" class="size-3" />
{:else}
<UncheckedRingIcon />
{/if}
</button>
{:else}
<span {...props} class="mr-2 inline-flex size-4 items-center justify-center" data-testid="image-update-trigger">
- <div class="flex size-4 items-center justify-center text-gray-400 opacity-30">
+ <div class="flex size-4 items-center justify-center text-muted-foreground opacity-30">
<UncheckedRingIcon />
</div>
</span>
diff --git a/frontend/src/lib/components/job-card/job-card.svelte b/frontend/src/lib/components/job-card/job-card.svelte
index 4e243819f..cefe72771 100644
--- a/frontend/src/lib/components/job-card/job-card.svelte
+++ b/frontend/src/lib/components/job-card/job-card.svelte
@@ -136,7 +136,7 @@
<article class="flex min-w-0 flex-col gap-3 py-5">
<div class="flex min-w-0 flex-wrap items-start justify-between gap-x-6 gap-y-3">
- <div class="flex min-w-0 flex-[1_1_20rem] flex-col gap-1.5">
+ <div class="flex min-w-0 grow basis-80 flex-col gap-1.5">
<div class="flex min-h-9 flex-wrap items-center gap-2">
{@render headerAccessory?.()}
<h4 class="text-base font-semibold">{jobNameLabel(job)}</h4>
diff --git a/frontend/src/lib/components/job-card/job-run-history.svelte b/frontend/src/lib/components/job-card/job-run-history.svelte
index 9d7738821..f6fd79a73 100644
--- a/frontend/src/lib/components/job-card/job-run-history.svelte
+++ b/frontend/src/lib/components/job-card/job-run-history.svelte
@@ -123,7 +123,7 @@
}}>{m.jobs_run_history()}</Button
>
<Dialog.Root bind:open>
- <Dialog.Content class="max-h-[85vh] overflow-y-auto sm:max-w-2xl">
+ <Dialog.Content class="max-h-(--max-height-screen-85) overflow-y-auto sm:max-w-2xl">
<Dialog.Header
><Dialog.Title>{m.jobs_run_history()}</Dialog.Title><Dialog.Description>{jobId}</Dialog.Description></Dialog.Header
>
@@ -131,7 +131,7 @@
{#each runs.data?.runs ?? [] as run (run.id)}
<Button
variant="outline"
- class="h-auto w-full justify-between gap-2 text-left"
+ class="h-auto w-full justify-between text-left"
onclick={() => {
selected = run.id;
}}
diff --git a/frontend/src/lib/components/job-card/job-schedule-dialog.svelte b/frontend/src/lib/components/job-card/job-schedule-dialog.svelte
index e8f36c70b..fb7f9fc97 100644
--- a/frontend/src/lib/components/job-card/job-schedule-dialog.svelte
+++ b/frontend/src/lib/components/job-card/job-schedule-dialog.svelte
@@ -92,12 +92,12 @@
onOpenChange={handleOpenChange}
title={m.jobs_edit_schedule()}
description={job.name}
- contentClass="sm:max-w-[500px]"
+ contentClass="sm:max-w-125"
>
<div class="space-y-4 py-4">
<div class="space-y-2">
<Label for="schedule">{m.jobs_cron_expression()}</Label>
- <Input id="schedule" bind:value={scheduleValue} placeholder="0 */15 * * * *" class={error ? 'border-destructive' : ''} />
+ <Input id="schedule" bind:value={scheduleValue} placeholder="0 */15 * * * *" aria-invalid={!!error} />
{#if error}
<p class="text-sm text-destructive">{error}</p>
{:else}
@@ -112,7 +112,7 @@
<Button
variant="outline"
onclick={() => useCronExample(example.value)}
- class="min-h-12 items-start justify-start px-3 py-2 whitespace-normal"
+ class="min-h-12 items-start justify-start whitespace-normal"
>
<div class="text-left">
<div class="text-xs leading-4 font-medium">{example.label}</div>
diff --git a/frontend/src/lib/components/loading-indicator.svelte b/frontend/src/lib/components/loading-indicator.svelte
index 4879c84a4..002cd607c 100644
--- a/frontend/src/lib/components/loading-indicator.svelte
+++ b/frontend/src/lib/components/loading-indicator.svelte
@@ -39,7 +39,7 @@
{#if visible}
<div
- class={`pointer-events-none fixed inset-x-0 top-0 z-[var(--arcane-z-loading)] ${thickness} ${className}`}
+ class={`pointer-events-none fixed inset-x-0 top-0 z-(--arcane-z-loading) ${thickness} ${className}`}
role="progressbar"
aria-busy="true"
aria-label={m.common_loading()}
@@ -51,7 +51,7 @@
<div class="peg absolute top-0 right-0 h-full w-3"></div>
</div>
- <div class="bar absolute inset-y-0 left-0 w-1/3" style="animation-delay: -1s;">
+ <div class="bar bar-offset absolute inset-y-0 left-0 w-1/3">
<div class="peg absolute top-0 right-0 h-full w-3"></div>
</div>
@@ -61,24 +61,24 @@
{/if}
<style>
- :root {
- --arcane-primary: hsl(var(--primary));
- }
-
.bar {
- background: var(--arcane-primary);
+ background: var(--primary);
animation: arcane-slide 2s linear infinite;
box-shadow:
- 0 0 12px var(--arcane-primary),
- 0 0 2px var(--arcane-primary);
+ 0 0 12px var(--primary),
+ 0 0 2px var(--primary);
opacity: 0.95;
}
+ .bar-offset {
+ animation-delay: -1s;
+ }
+
.peg {
background: linear-gradient(
to right,
- color-mix(in oklab, var(--arcane-primary) 0%, transparent),
- color-mix(in oklab, var(--arcane-primary) 90%, transparent)
+ color-mix(in oklab, var(--primary) 0%, transparent),
+ color-mix(in oklab, var(--primary) 90%, transparent)
);
filter: blur(2px);
}
diff --git a/frontend/src/lib/components/locale-picker.svelte b/frontend/src/lib/components/locale-picker.svelte
index 49d1942ba..c21bb0f94 100644
--- a/frontend/src/lib/components/locale-picker.svelte
+++ b/frontend/src/lib/components/locale-picker.svelte
@@ -80,7 +80,7 @@
}
</script>
-{#snippet localeSelect(triggerClass: string, ariaLabel?: string, contentClass?: string, itemClass?: string)}
+{#snippet localeSelect(compact: boolean, ariaLabel?: string)}
<Select.Root
type="single"
value={currentLocale}
@@ -91,27 +91,27 @@
onOpenChange?.(open);
}}
>
- <Select.Trigger {id} class={triggerClass} aria-label={ariaLabel}>
+ <Select.Trigger {id} class={compact ? 'h-9 w-32' : 'w-full'} aria-label={ariaLabel}>
<span class="truncate">{locales[currentLocale]}</span>
</Select.Trigger>
- <Select.Content class={contentClass}>
+ <Select.Content class={compact ? 'max-w-70 min-w-40' : undefined}>
{#each Object.entries(locales) as [value, label] (value)}
- <Select.Item class={itemClass} {value}>{label}</Select.Item>
+ <Select.Item {value}>{label}</Select.Item>
{/each}
</Select.Content>
</Select.Root>
{/snippet}
-<div class={`locale-picker ${className}`}>
+<div class={className}>
{#if inline}
- {@render localeSelect('h-9 w-32 text-sm font-medium', undefined, 'max-w-70 min-w-40', 'text-sm')}
+ {@render localeSelect(true)}
{:else}
<div class="px-3 py-2">
<div class="grid gap-2">
- <Label for={id} class="text-sm leading-none font-medium">
+ <Label for={id}>
{m.language()}
</Label>
- {@render localeSelect('w-full', m.common_select_locale())}
+ {@render localeSelect(false, m.common_select_locale())}
</div>
</div>
{/if}
diff --git a/frontend/src/lib/components/logs/log-controls.svelte b/frontend/src/lib/components/logs/log-controls.svelte
index 5eb831e6a..d1062edec 100644
--- a/frontend/src/lib/components/logs/log-controls.svelte
+++ b/frontend/src/lib/components/logs/log-controls.svelte
@@ -306,7 +306,7 @@
</div>
<div class="flex shrink-0 items-center gap-3">
- <Input type="search" placeholder={m.common_search()} bind:value={searchTerm} class="h-9 w-44 text-xs" />
+ <Input type="search" placeholder={m.common_search()} bind:value={searchTerm} size="sm" class="h-9 w-44" />
<Select.Root
type="single"
@@ -314,7 +314,7 @@
disabled={isStreaming}
onValueChange={(v: string) => (preferences.selectedTail.current = v)}
>
- <Select.Trigger class="h-9 w-32 text-xs">
+ <Select.Trigger class="h-9 w-32">
<span>{selectedLabel}</span>
</Select.Trigger>
<Select.Content>
diff --git a/frontend/src/lib/components/logs/log-panel-title.svelte b/frontend/src/lib/components/logs/log-panel-title.svelte
index f06c720b0..3751bb514 100644
--- a/frontend/src/lib/components/logs/log-panel-title.svelte
+++ b/frontend/src/lib/components/logs/log-panel-title.svelte
@@ -16,8 +16,8 @@
</Card.Title>
{#if live}
<div class="flex items-center gap-2">
- <div class="size-2 animate-pulse rounded-full bg-green-500"></div>
- <span class="text-xs font-semibold text-green-600 sm:text-sm">{m.common_live()}</span>
+ <div class="size-2 animate-pulse rounded-full bg-success"></div>
+ <span class="text-xs font-semibold text-success sm:text-sm">{m.common_live()}</span>
</div>
{/if}
</div>
diff --git a/frontend/src/lib/components/logs/log-viewer.svelte b/frontend/src/lib/components/logs/log-viewer.svelte
index cab43479a..c6f489c1e 100644
--- a/frontend/src/lib/components/logs/log-viewer.svelte
+++ b/frontend/src/lib/components/logs/log-viewer.svelte
@@ -170,7 +170,6 @@
const humanType = $derived(type === 'project' ? m.project() : type === 'service' ? m.swarm_service() : m.container());
const fillParent = $derived(height === '100%');
const minHeight = $derived(height === '100%' ? '0' : '300px');
- const viewportStyle = $derived(fillParent ? 'min-height: 0;' : `height: ${height}; min-height: ${minHeight};`);
function buildWebSocketEndpoint(path: string): string {
const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws';
@@ -373,30 +372,30 @@
switch (level) {
case 'stderr':
case 'error':
- return 'text-red-400';
+ return 'text-destructive';
case 'stdout':
case 'info':
- return 'text-green-400';
+ return 'text-success';
default:
- return 'text-gray-300';
+ return 'text-foreground/80';
}
}
// Generate consistent color for service names (similar to docker compose)
function getServiceColor(service: string): string {
const colors = [
- 'text-cyan-400',
- 'text-yellow-400',
- 'text-green-400',
- 'text-blue-400',
- 'text-purple-400',
- 'text-pink-400',
- 'text-orange-400',
- 'text-teal-400',
- 'text-lime-400',
- 'text-indigo-400',
- 'text-fuchsia-400',
- 'text-rose-400'
+ 'text-cyan',
+ 'text-warning',
+ 'text-success',
+ 'text-info',
+ 'text-purple',
+ 'text-pink',
+ 'text-orange',
+ 'text-teal',
+ 'text-lime',
+ 'text-indigo',
+ 'text-fuchsia',
+ 'text-rose'
];
// Simple hash function to consistently map service names to colors
@@ -404,7 +403,7 @@
for (let i = 0; i < service.length; i++) {
hash = service.charCodeAt(i) + ((hash << 5) - hash);
}
- return colors[Math.abs(hash) % colors.length] ?? 'text-gray-300';
+ return colors[Math.abs(hash) % colors.length] ?? 'text-foreground/80';
}
function isStructuredLogData(value: unknown): value is Record<string, unknown> {
@@ -509,22 +508,28 @@
title={level.toUpperCase()}
data-stream={level}
>
- <span class={cn('size-2 bg-current', level === 'stdout' ? 'rounded-full' : 'rounded-[2px]')}></span>
+ <span class={cn('size-2 bg-current', level === 'stdout' ? 'rounded-full' : 'rounded-xs')}></span>
</span>
{/if}
{/snippet}
{#snippet renderGroupedSummary(displayEntry: LogViewerDisplayEntry, contentClass: string)}
<div class="flex min-w-0 items-start gap-2">
- <Collapsible.Trigger
- class="inline-flex shrink-0 items-center gap-1 rounded border border-transparent px-1 py-0.5 text-zinc-500 outline-none hover:bg-white/4 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50"
- >
- {#if isGroupExpanded(displayEntry)}
- <ArrowDownIcon class="size-4" />
- {:else}
- <ArrowRightIcon class="size-4" />
- {/if}
- <span class="text-[11px] font-medium">+{getGroupedSummaryCount(displayEntry)}</span>
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="inline-flex shrink-0 items-center gap-1 rounded border border-transparent px-1 py-0.5 text-muted-foreground outline-none hover:bg-white/4 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50"
+ >
+ {#if isGroupExpanded(displayEntry)}
+ <ArrowDownIcon class="size-4" />
+ {:else}
+ <ArrowRightIcon class="size-4" />
+ {/if}
+ <span class="text-2xs font-medium">+{getGroupedSummaryCount(displayEntry)}</span>
+ </button>
+ {/snippet}
</Collapsible.Trigger>
{@render renderLogMessage(displayEntry.entries[0]!, contentClass)}
@@ -533,13 +538,13 @@
<div
class={cn(
- 'log-viewer rounded-t-none rounded-b-xl border bg-black text-white',
+ 'dark rounded-t-none rounded-b-xl border bg-black text-white',
fillParent && 'flex h-full min-h-0 flex-col',
className
)}
>
{#if error}
- <div class="border-b border-red-700 bg-red-900/20 p-3 text-sm text-red-200">
+ <div class="border-b border-destructive bg-destructive/10 p-3 text-sm text-destructive">
{error}
</div>
{/if}
@@ -547,10 +552,10 @@
<div
bind:this={logContainer}
class={cn(
- 'log-viewer overflow-y-auto rounded-t-none rounded-b-xl border bg-black font-mono text-xs text-white sm:text-sm',
- fillParent && 'min-h-0 flex-1'
+ 'overflow-y-auto rounded-t-none rounded-b-xl border bg-black font-mono text-xs text-white sm:text-sm',
+ fillParent ? 'min-h-0 flex-1' : 'h-(--log-height) min-h-(--log-min-height)'
)}
- style={viewportStyle}
+ style={fillParent ? undefined : `--log-height: ${height}; --log-min-height: ${minHeight}`}
role="log"
aria-live={isStreaming ? 'polite' : 'off'}
aria-relevant="additions"
@@ -560,7 +565,7 @@
data-is-streaming={isStreaming}
>
{#if displayLogs.length === 0}
- <div class="p-4 text-center text-gray-500">
+ <div class="p-4 text-center text-muted-foreground">
{#if !(containerId || projectId || serviceId)}
{m.log_viewer_no_selection({ type: humanType })}
{:else if !isStreaming}
@@ -574,14 +579,14 @@
<!-- Mobile view -->
<div
class={cn(
- 'border-l-2 border-transparent px-3 py-2 transition-colors hover:border-blue-500 hover:bg-gray-900/50 sm:hidden',
- index % 2 === 1 && 'bg-zinc-900/60'
+ 'border-l-2 border-transparent px-3 py-2 transition-colors hover:border-info hover:bg-card/50 sm:hidden',
+ index % 2 === 1 && 'bg-card/60'
)}
>
<div class="mb-1 flex flex-wrap items-center gap-2 text-xs">
{#if showTimestamps && getDisplayEntryTimestamp(displayLog)}
<span
- class="inline-flex shrink-0 self-start rounded-md border border-sky-500/15 bg-zinc-900 px-2 py-1 font-semibold text-sky-400 tabular-nums"
+ class="inline-flex shrink-0 self-start rounded-md border border-info/15 bg-card px-2 py-1 font-semibold text-info tabular-nums"
title={getDisplayEntryTimestamp(displayLog)}
>
{formatLogTimestamp(getDisplayEntryTimestamp(displayLog))}
@@ -602,11 +607,11 @@
open={isGroupExpanded(displayLog)}
onOpenChange={(open: boolean) => setGroupExpanded(displayLog, open)}
>
- {@render renderGroupedSummary(displayLog, 'text-sm break-words whitespace-pre-wrap text-gray-300')}
+ {@render renderGroupedSummary(displayLog, 'text-sm break-words whitespace-pre-wrap text-foreground/80')}
<Collapsible.Content>
- <div class="mt-2 space-y-1.5 border-l border-zinc-800 pl-4">
+ <div class="mt-2 space-y-1.5 border-l border-border pl-4">
{#each displayLog.entries.slice(1) as entry (entry.id)}
- {@render renderLogMessage(entry, 'text-sm break-words whitespace-pre-wrap text-gray-300')}
+ {@render renderLogMessage(entry, 'text-sm break-words whitespace-pre-wrap text-foreground/80')}
{/each}
</div>
</Collapsible.Content>
@@ -614,7 +619,7 @@
{:else}
<div class="flex flex-col gap-1.5">
{#each displayLog.entries as entry (entry.id)}
- {@render renderLogMessage(entry, 'text-sm break-words whitespace-pre-wrap text-gray-300')}
+ {@render renderLogMessage(entry, 'text-sm break-words whitespace-pre-wrap text-foreground/80')}
{/each}
</div>
{/if}
@@ -623,13 +628,13 @@
<!-- Desktop view -->
<div
class={cn(
- 'hidden items-start border-l-2 border-transparent px-3 py-1.5 transition-colors hover:border-blue-500 hover:bg-gray-900/50 sm:flex',
- index % 2 === 1 && 'bg-zinc-900/60'
+ 'hidden items-start border-l-2 border-transparent px-3 py-1.5 transition-colors hover:border-info hover:bg-card/50 sm:flex',
+ index % 2 === 1 && 'bg-card/60'
)}
>
{#if showTimestamps && getDisplayEntryTimestamp(displayLog)}
<span
- class="mr-3 inline-flex min-w-[178px] shrink-0 self-start rounded-md border border-sky-500/15 bg-zinc-900 px-2.5 py-1 text-[11px] font-semibold text-sky-400 tabular-nums"
+ class="mr-3 inline-flex min-w-44.5 shrink-0 self-start rounded-md border border-info/15 bg-card px-2.5 py-1 text-2xs font-semibold text-info tabular-nums"
title={getDisplayEntryTimestamp(displayLog)}
>
{formatLogTimestamp(getDisplayEntryTimestamp(displayLog))}
@@ -637,7 +642,7 @@
{/if}
{#if type === 'project' && getDisplayEntryService(displayLog)}
<span
- class="mr-3 max-w-[120px] min-w-[120px] shrink-0 truncate text-xs font-semibold {getServiceColor(
+ class="mr-3 max-w-30 min-w-30 shrink-0 truncate text-xs font-semibold {getServiceColor(
getDisplayEntryService(displayLog)!
)}"
title={getDisplayEntryService(displayLog)}
@@ -652,11 +657,11 @@
open={isGroupExpanded(displayLog)}
onOpenChange={(open: boolean) => setGroupExpanded(displayLog, open)}
>
- {@render renderGroupedSummary(displayLog, 'break-words whitespace-pre-wrap text-gray-300')}
+ {@render renderGroupedSummary(displayLog, 'break-words whitespace-pre-wrap text-foreground/80')}
<Collapsible.Content>
- <div class="mt-2 space-y-1 border-l border-zinc-800 pl-4">
+ <div class="mt-2 space-y-1 border-l border-border pl-4">
{#each displayLog.entries.slice(1) as entry (entry.id)}
- {@render renderLogMessage(entry, 'break-words whitespace-pre-wrap text-gray-300')}
+ {@render renderLogMessage(entry, 'break-words whitespace-pre-wrap text-foreground/80')}
{/each}
</div>
</Collapsible.Content>
@@ -664,7 +669,7 @@
{:else}
<div class="flex flex-1 flex-col gap-1">
{#each displayLog.entries as entry (entry.id)}
- {@render renderLogMessage(entry, 'break-words whitespace-pre-wrap text-gray-300')}
+ {@render renderLogMessage(entry, 'break-words whitespace-pre-wrap text-foreground/80')}
{/each}
</div>
{/if}
diff --git a/frontend/src/lib/components/logs/structured-log-entry.svelte b/frontend/src/lib/components/logs/structured-log-entry.svelte
index 69d54b997..0d36eeff2 100644
--- a/frontend/src/lib/components/logs/structured-log-entry.svelte
+++ b/frontend/src/lib/components/logs/structured-log-entry.svelte
@@ -126,7 +126,7 @@
}
function getLevelDotClass(level: string | undefined): string {
- if (!level) return 'bg-zinc-500';
+ if (!level) return 'bg-muted-foreground';
const normalizedLevel = level.toLowerCase();
if (
normalizedLevel === 'error' ||
@@ -136,21 +136,21 @@
normalizedLevel === 'panic' ||
normalizedLevel === 'emergency'
) {
- return 'bg-red-400';
+ return 'bg-destructive';
}
if (normalizedLevel === 'warn' || normalizedLevel === 'warning' || normalizedLevel === 'alert') {
- return 'bg-orange-400';
+ return 'bg-orange';
}
if (normalizedLevel === 'info' || normalizedLevel === 'information' || normalizedLevel === 'notice') {
- return 'bg-emerald-400';
+ return 'bg-success';
}
if (normalizedLevel === 'debug' || normalizedLevel === 'dbg') {
- return 'bg-sky-400';
+ return 'bg-sky';
}
if (normalizedLevel === 'trace' || normalizedLevel === 'verbose' || normalizedLevel === 'finest') {
- return 'bg-violet-400';
+ return 'bg-violet';
}
- return 'bg-zinc-500';
+ return 'bg-muted-foreground';
}
function safeStringify(value: unknown, indent = 0): string {
@@ -251,28 +251,28 @@
<div class="min-w-0 flex-1">
<div class="flex flex-wrap items-center gap-x-4 gap-y-1">
{#if extracted.target}
- <span class="truncate text-[11px] font-medium text-cyan-400" title={extracted.target}>
+ <span class="truncate text-2xs font-medium text-info" title={extracted.target}>
{extracted.target}
</span>
{/if}
{#if extracted.message}
- <span class="min-w-0 text-gray-100">{extracted.message}</span>
+ <span class="min-w-0 text-foreground">{extracted.message}</span>
{:else if !extracted.hasStructure}
- <span class="min-w-0 text-gray-300">{safeStringify(data)}</span>
+ <span class="min-w-0 text-foreground/80">{safeStringify(data)}</span>
{/if}
{#each visibleSummaryFields as field (field.path)}
- <span class="inline-flex max-w-full min-w-0 items-baseline gap-0.5 text-gray-300">
- <span class="shrink-0 text-zinc-500">{field.label}=</span>
- <span class="truncate font-semibold text-zinc-100" title={safeStringify(field.value)}>
+ <span class="inline-flex max-w-full min-w-0 items-baseline gap-0.5 text-foreground/80">
+ <span class="shrink-0 text-muted-foreground">{field.label}=</span>
+ <span class="truncate font-semibold text-foreground" title={safeStringify(field.value)}>
{formatInlineValue(field.value)}
</span>
</span>
{/each}
{#if showOverflowCount && hiddenSummaryCount > 0}
- <span class="text-[11px] font-medium text-zinc-500">+{hiddenSummaryCount}</span>
+ <span class="text-2xs font-medium text-muted-foreground">+{hiddenSummaryCount}</span>
{/if}
</div>
</div>
@@ -281,16 +281,22 @@
<Collapsible.Root bind:open={showDetails}>
<div class="flex min-w-0 items-start gap-2">
{#if hasDetails}
- <Collapsible.Trigger
- class="flex min-w-0 flex-1 items-start gap-3 rounded-md border border-transparent px-1 py-0.5 text-left outline-none hover:bg-white/3 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50"
- >
- {@render entrySummary(true)}
-
- {#if showDetails}
- <ArrowDownIcon class="mt-0.5 size-4 shrink-0 text-zinc-500" />
- {:else}
- <ArrowRightIcon class="mt-0.5 size-4 shrink-0 text-zinc-500" />
- {/if}
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="flex min-w-0 flex-1 items-start gap-3 rounded-md border border-transparent px-1 py-0.5 text-left outline-none hover:bg-white/3 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50"
+ >
+ {@render entrySummary(true)}
+
+ {#if showDetails}
+ <ArrowDownIcon class="mt-0.5 size-4 shrink-0 text-muted-foreground" />
+ {:else}
+ <ArrowRightIcon class="mt-0.5 size-4 shrink-0 text-muted-foreground" />
+ {/if}
+ </button>
+ {/snippet}
</Collapsible.Trigger>
{:else}
<div class="flex min-w-0 flex-1 items-start gap-3 px-1 py-0.5">
@@ -301,11 +307,11 @@
<button
type="button"
onclick={copyToClipboard}
- class="shrink-0 rounded p-1 text-zinc-500 transition-colors hover:bg-white/5 hover:text-zinc-100"
+ class="shrink-0 rounded p-1 text-muted-foreground transition-colors hover:bg-white/5 hover:text-foreground"
title={copied ? 'Copied' : 'Copy JSON'}
>
{#if copied}
- <CheckIcon class="size-3.5 text-green-400" />
+ <CheckIcon class="size-3.5 text-success" />
{:else}
<CopyIcon class="size-3.5" />
{/if}
@@ -314,12 +320,12 @@
{#if hasDetails}
<Collapsible.Content>
- <div class="mt-2 rounded-md border border-zinc-800 bg-zinc-950/75 p-3">
+ <div class="mt-2 rounded-md border border-border bg-background/75 p-3">
{#if summaryFields.length > 0}
- <div class="grid gap-x-4 gap-y-2 md:grid-cols-[minmax(140px,180px)_1fr]">
+ <div class="grid gap-x-4 gap-y-2 md:grid-cols-key-value">
{#each summaryFields as field (field.path)}
- <div class="font-mono text-[11px] text-zinc-500">{field.path}</div>
- <pre class="overflow-x-auto text-xs break-all whitespace-pre-wrap text-zinc-100">{safeStringify(
+ <div class="font-mono text-2xs text-muted-foreground">{field.path}</div>
+ <pre class="overflow-x-auto text-xs break-all whitespace-pre-wrap text-foreground">{safeStringify(
field.value,
2
)}</pre>
@@ -327,8 +333,8 @@
</div>
{/if}
- <div class="mt-3 border-t border-zinc-800 pt-3">
- <pre class="overflow-x-auto text-xs break-all whitespace-pre-wrap text-zinc-300">{jsonString}</pre>
+ <div class="mt-3 border-t border-border pt-3">
+ <pre class="overflow-x-auto text-xs break-all whitespace-pre-wrap text-foreground/80">{jsonString}</pre>
</div>
</div>
</Collapsible.Content>
diff --git a/frontend/src/lib/components/metric-ring.svelte b/frontend/src/lib/components/metric-ring.svelte
index ec3dd7dd0..1fed57279 100644
--- a/frontend/src/lib/components/metric-ring.svelte
+++ b/frontend/src/lib/components/metric-ring.svelte
@@ -52,6 +52,6 @@
stroke-linecap="round"
stroke-dasharray={circumference}
stroke-dashoffset={dashOffset}
- style="transition: stroke-dashoffset 300ms ease-out;"
+ class="transition-all duration-300 ease-out"
/>
</svg>
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
index dd952cb35..91c10e04e 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-item.svelte
@@ -1,7 +1,6 @@
<script lang="ts">
import type { NavigationItem } from '#lib/config/navigation-config.js';
import { cn } from '#lib/utils.js';
- import { Button } from '#lib/components/ui/button/index.js';
let {
item,
@@ -14,33 +13,32 @@
showLabels?: boolean;
class?: string;
} = $props();
+
+ const IconComponent = $derived(item.icon);
</script>
-<Button
- variant="ghost"
- size={showLabels ? 'sm' : 'icon'}
+<a
href={item.url}
aria-label={`${item.title}${active ? ' (current page)' : ''}`}
aria-current={active ? 'page' : undefined}
class={cn(
- 'min-w-0 flex-1 transition-all duration-200 ease-out',
- 'hover:scale-[1.02] hover:bg-muted/50 hover:text-foreground',
- 'focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1',
- 'focus-visible:scale-[1.02] focus-visible:ring-offset-transparent',
- 'active:scale-[0.98]',
+ "inline-flex min-w-0 flex-1 shrink-0 items-center justify-center border border-transparent bg-transparent text-sm font-medium whitespace-nowrap text-foreground outline-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ 'transition-all duration-200 ease-out',
+ 'hover:scale-102 hover:bg-muted/50 hover:text-foreground',
+ 'focus-visible:scale-102 focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
+ 'active:scale-98',
showLabels
- ? 'h-11 flex-col gap-0.5 overflow-hidden rounded-2xl px-2 py-1 sm:h-12 sm:min-w-[60px] sm:px-3 sm:py-1.5'
- : 'h-11 w-11 rounded-2xl',
- active && 'bg-muted text-foreground shadow-sm hover:bg-muted/70',
+ ? 'h-11 flex-col gap-0.5 overflow-hidden rounded-2xl px-2.5 py-1 sm:h-12 sm:min-w-15 sm:px-3 sm:py-1.5'
+ : 'size-11 gap-2 rounded-2xl',
+ active && 'bg-muted shadow-sm hover:bg-muted/70',
className
)}
data-testid="mobile-nav-item"
>
- {@const IconComponent = item.icon}
<IconComponent size={showLabels ? 20 : 24} aria-hidden="true" />
{#if showLabels}
- <span class="w-full truncate text-center text-[10px] leading-none font-normal text-muted-foreground">{item.title}</span>
+ <span class="w-full truncate text-center text-3xs leading-none font-normal text-muted-foreground">{item.title}</span>
{:else}
<span class="sr-only">{item.title}</span>
{/if}
-</Button>
+</a>
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
index b486e7be3..ad30c2b03 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
@@ -19,7 +19,7 @@
'flex-shrink-0 rounded-full transition-all duration-200 ease-out active:scale-95',
'flex items-center justify-center',
// Keep a large tap target but allow a slightly smaller footprint on the smallest screens.
- showLabels ? 'size-[52px] sm:size-14' : 'size-12 sm:size-[52px]'
+ showLabels ? 'size-13 sm:size-14' : 'size-12 sm:size-13'
)}
aria-label={m.mobile_navigation()}
{onclick}
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
index 1ce4815ee..9af9cdd5a 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
@@ -68,7 +68,7 @@
class={cn(
'flex items-center gap-3 rounded-2xl px-4 py-3 text-sm font-medium transition-all duration-200 ease-out',
focusStyles &&
- 'hover:scale-[1.01] focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
+ 'hover:scale-101 focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
isActiveItem(item) ? 'bg-muted text-foreground shadow-sm hover:bg-muted/70' : 'text-foreground hover:bg-muted/50'
)}
aria-current={focusStyles && isActiveItem(item) ? 'page' : undefined}
@@ -87,7 +87,7 @@
onclick={handleItemClick}
class={cn(
'flex items-center gap-3 rounded-xl px-4 py-2 text-sm transition-all duration-200 ease-out',
- 'hover:scale-[1.01] focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
+ 'hover:scale-101 focus-visible:ring-1 focus-visible:ring-muted-foreground/50 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent',
isActiveItem(subItem)
? 'bg-muted/70 text-foreground shadow-sm'
: 'text-muted-foreground hover:bg-muted/40 hover:text-foreground'
@@ -117,14 +117,8 @@
{/snippet}
<Drawer.Root {open} onOpenChange={(nextOpen) => (open = nextOpen)} shouldScaleBackground direction="bottom" modal={true}>
- <Drawer.Overlay class="fixed inset-0 z-[var(--arcane-z-overlay)] bg-black/40 backdrop-blur-xl" />
- <Drawer.Content
- data-testid="mobile-nav-sheet"
- class={cn(
- 'rounded-t-3xl border border-t bg-background/95 shadow-sm backdrop-blur-md',
- 'z-[var(--arcane-z-surface)] flex max-h-[85vh] flex-col'
- )}
- >
+ <Drawer.Overlay />
+ <Drawer.Content data-testid="mobile-nav-sheet" class="flex max-h-(--max-height-screen-85) flex-col">
<div class="px-6 pt-4">
{#if memoizedUser}
<MobileUserCard user={memoizedUser} class="mb-6" />
@@ -135,14 +129,14 @@
<div class="scrollbar-hide flex-1 overflow-y-auto px-6">
<div class="space-y-8">
<section>
- <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
+ <h4 class="mb-4 px-3 text-2xs font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.sidebar_management()}
</h4>
{@render navItems(managementItems, true)}
</section>
<section>
- <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
+ <h4 class="mb-4 px-3 text-2xs font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.resources()}
</h4>
{@render navItems(resourceItems, true)}
@@ -150,7 +144,7 @@
{#if swarmItems.length > 0}
<section>
- <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
+ <h4 class="mb-4 px-3 text-2xs font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.swarm()}
</h4>
<div class="space-y-2">
@@ -163,7 +157,7 @@
{#if settingsItems.length > 0}
<section>
- <h4 class="mb-4 px-3 text-[11px] font-semibold tracking-widest text-muted-foreground/70 uppercase">
+ <h4 class="mb-4 px-3 text-2xs font-semibold tracking-widest text-muted-foreground/70 uppercase">
{m.sidebar_administration()}
</h4>
{@render navItems(settingsItems, false)}
@@ -200,14 +194,3 @@
canConfirm={upgradeCheck.shouldShowUpgrade}
debugDemo={debug}
/>
-
-<style>
- :global(.scrollbar-hide) {
- -ms-overflow-style: none; /* IE and Edge */
- scrollbar-width: none; /* Firefox */
- }
-
- :global(.scrollbar-hide::-webkit-scrollbar) {
- display: none; /* Chrome, Safari and Opera */
- }
-</style>
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav.svelte
index 4d8a68d66..03cee2c61 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav.svelte
@@ -8,7 +8,6 @@
import MobileNavSheet from './mobile-nav-sheet.svelte';
import { m } from '#lib/paraglide/messages.js';
import { MobileNavGestures } from './gestures.svelte';
- import './styles.css';
import type { AppVersionInformation } from '#lib/types/settings.js';
import type { PermissionsManifest, User } from '#lib/types/auth.js';
import { environmentStore } from '#lib/stores/environment.store.svelte.js';
@@ -120,13 +119,15 @@
// Mode-specific styles
const navClasses = $derived(
cn(
- 'mobile-nav-base',
- mode === 'floating' ? 'mobile-nav-floating' : 'mobile-nav-docked',
+ // Capture vertical gestures so opening the sheet doesn't scroll the page; keep items tappable above the gesture layer.
+ 'pointer-events-auto isolate w-49/50 max-w-md origin-bottom transform-gpu touch-pan-x touch-pinch-zoom overscroll-contain subpixel-antialiased will-change-transform contain-layout contain-paint contain-style backface-hidden',
+ '[&_:is(button,a)]:pointer-events-auto [&_:is(button,a)]:relative [&_:is(button,a)]:isolate [&_:is(button,a)]:z-(--arcane-z-raised) [&_:is(button,a)]:touch-manipulation pointer-fine:[&_:is(button,a)]:cursor-pointer',
+ 'motion-reduce:transition-none motion-reduce:[&_button]:transform-none!',
mode === 'floating'
- ? 'fixed left-1/2 z-[var(--arcane-z-app-chrome)] -translate-x-1/2 transform'
- : 'fixed right-0 bottom-0 left-0 z-[var(--arcane-z-app-chrome)] gap-2',
+ ? 'fixed bottom-floating-nav left-1/2 z-(--arcane-z-app-chrome) -translate-x-1/2 pointer-fine:hover:border-muted pointer-fine:hover:shadow-lg pointer-fine:hover:backdrop-blur-xl'
+ : 'fixed right-0 bottom-0 left-0 z-(--arcane-z-app-chrome) gap-2',
'border-border/30 bg-background/60 backdrop-blur-xl',
- 'shadow-sm transition-[translate,scale,opacity] duration-300 ease-out select-none',
+ 'shadow-sm transition duration-300 ease-out select-none',
'flex items-center',
mode === 'floating'
? cn(
@@ -134,7 +135,10 @@
// On very small screens, tighten spacing so labeled items + center action fit.
showLabels ? 'gap-1.5 px-2.5 py-1.5 sm:gap-2 sm:px-3 sm:py-2' : 'gap-2.5 px-3.5 py-2 sm:gap-3 sm:px-4 sm:py-2.5'
)
- : cn('justify-around border-t border-border/50', showLabels ? 'px-4 pt-2 pb-4' : 'px-4 pt-2.5 pb-4'),
+ : cn(
+ 'justify-around border-t border-border/50',
+ showLabels ? 'px-4 pt-2 pb-(--safe-area-bottom)' : 'px-4 pt-2.5 pb-(--safe-area-bottom)'
+ ),
visible
? mode === 'floating'
? 'translate-y-0 scale-100 opacity-100'
diff --git a/frontend/src/lib/components/mobile-nav/styles.css b/frontend/src/lib/components/mobile-nav/styles.css
deleted file mode 100644
index 056ad003e..000000000
--- a/frontend/src/lib/components/mobile-nav/styles.css
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Shared navigation styles for both floating and docked navigation */
-
-/* Base navigation styles */
-.mobile-nav-base {
- pointer-events: auto;
- /* Capture vertical gestures so opening the sheet doesn't scroll the page while still allowing horizontal swipes and pinch zoom */
- touch-action: pan-x pinch-zoom;
- overscroll-behavior: contain;
- /* Isolate touch interactions */
- isolation: isolate;
- /* Hardware acceleration for smooth animations */
- will-change: transform, opacity;
- /* Prevent layout shifts during animation */
- transform-origin: center bottom;
- /* Proper cross-platform font rendering */
- -webkit-font-smoothing: auto;
- -moz-osx-font-smoothing: auto;
- text-rendering: optimizeLegibility;
- /* Ensure it stays fixed to viewport, not page content */
- position: fixed;
- /* Prevent the nav from being affected by virtual keyboard */
- transform: translate3d(0, 0, 0);
- backface-visibility: hidden;
- /* Prevent body scroll leak */
- contain: layout style paint;
- /* Constrain width on small screens */
- width: 98%;
- max-width: 28rem;
-}
-
-/* Floating navigation specific positioning */
-.mobile-nav-floating {
- /* Safe area handling for floating navigation */
- /* Use safe area inset if it's greater than 1.5rem, otherwise use 1.5rem */
- bottom: max(1.5rem, env(safe-area-inset-bottom));
-}
-
-/* Docked navigation specific positioning */
-.mobile-nav-docked {
- /* Safe area handling for devices with home indicators */
- padding-bottom: env(safe-area-inset-bottom);
- /* Keep it anchored to bottom */
- bottom: 0;
-}
-
-/* Shared button/link styles */
-.mobile-nav-base button,
-.mobile-nav-base a {
- pointer-events: auto;
- touch-action: manipulation; /* Allow taps and prevent interfering gestures */
- position: relative;
- z-index: var(--arcane-z-raised); /* Ensure buttons are above gesture detection */
- /* Isolate button touches from parent's touch handling */
- isolation: isolate;
-}
-
-/* Cursor device visual hints */
-@media (hover: hover) and (pointer: fine) {
- .mobile-nav-floating:hover {
- /* Subtle visual hint that scrolling up will open menu without moving the bar */
- box-shadow:
- 0 4px 20px rgba(0, 0, 0, 0.08),
- 0 1px 4px rgba(0, 0, 0, 0.04);
- backdrop-filter: blur(24px);
- border-color: var(--muted);
- }
-
- .mobile-nav-base button,
- .mobile-nav-base a {
- cursor: pointer;
- }
-}
-
-/* Reduced motion support */
-@media (prefers-reduced-motion: reduce) {
- .mobile-nav-base {
- transition: none;
- }
-
- /* Disable scale and complex animations for reduced motion */
- .mobile-nav-base button {
- transition: none;
- transform: none !important;
- }
-
- .mobile-nav-base button:hover,
- .mobile-nav-base button:focus-visible,
- .mobile-nav-base button:active {
- transform: none !important;
- }
-}
diff --git a/frontend/src/lib/components/network-diagram/network-diagram.svelte b/frontend/src/lib/components/network-diagram/network-diagram.svelte
index e416e98bb..dc00259ed 100644
--- a/frontend/src/lib/components/network-diagram/network-diagram.svelte
+++ b/frontend/src/lib/components/network-diagram/network-diagram.svelte
@@ -513,7 +513,7 @@
</div>
{:else if browser && isReady}
<div
- class="network-diagram-shell overflow-hidden rounded-[28px] border"
+ class="network-diagram-shell overflow-hidden rounded-3xl border"
style:--diagram-shell-background={canvasTheme.shellBackground}
style:--diagram-shell-border={canvasTheme.shellBorder}
style:--diagram-shell-shadow={canvasTheme.shellShadow}
diff --git a/frontend/src/lib/components/operation-watch-dialog.svelte b/frontend/src/lib/components/operation-watch-dialog.svelte
index 8d6721fde..4aba76ebb 100644
--- a/frontend/src/lib/components/operation-watch-dialog.svelte
+++ b/frontend/src/lib/components/operation-watch-dialog.svelte
@@ -27,13 +27,13 @@
<ResponsiveDialog
bind:open={operationWatchStore.open}
title={operationWatchStore.title}
- contentClass="sm:max-w-[1100px]"
+ contentClass="sm:max-w-275"
class="min-h-0"
>
<div class="space-y-3 pb-4">
<PinnedScrollRegion
itemCount={operationWatchStore.lines.length}
- class="max-h-[70vh] min-h-[280px] overflow-auto rounded-lg border border-border/50 bg-zinc-950 p-4 font-mono text-[12px] leading-relaxed text-zinc-100"
+ class="dark max-h-screen-70 min-h-70 overflow-auto rounded-lg border border-border/50 bg-background p-4 font-mono text-xs leading-relaxed text-foreground"
>
<!-- Lines only append within a session, so their positions are stable identities. -->
{#each operationWatchStore.lines as line, idx (idx)}
@@ -41,7 +41,7 @@
<div class="break-words whitespace-pre-wrap">{@html ansiToHtml(line)}</div>
{/each}
{#if operationWatchStore.lines.length === 0}
- <div class="flex min-h-[240px] items-center justify-center text-zinc-500">
+ <div class="flex min-h-60 items-center justify-center text-muted-foreground">
{m.activity_output_loading()}
</div>
{/if}
diff --git a/frontend/src/lib/components/project-tag-editor.svelte b/frontend/src/lib/components/project-tag-editor.svelte
index 8cc26d098..a673b7c01 100644
--- a/frontend/src/lib/components/project-tag-editor.svelte
+++ b/frontend/src/lib/components/project-tag-editor.svelte
@@ -78,21 +78,21 @@
function tagColorClassInternal(color: ProjectTagColor | undefined): string {
switch (color) {
case 'purple':
- return 'bg-violet-500';
+ return 'bg-violet';
case 'blue':
- return 'bg-blue-500';
+ return 'bg-info';
case 'green':
- return 'bg-emerald-500';
+ return 'bg-success';
case 'yellow':
- return 'bg-amber-400';
+ return 'bg-warning';
case 'orange':
- return 'bg-orange-500';
+ return 'bg-orange';
case 'red':
- return 'bg-red-500';
+ return 'bg-destructive';
case 'pink':
- return 'bg-pink-500';
+ return 'bg-pink';
default:
- return 'bg-zinc-400';
+ return 'bg-muted-foreground';
}
}
@@ -155,20 +155,20 @@
</button>
{/snippet}
</Popover.Trigger>
- <Popover.Content class="w-72 p-0" align="start" onclick={(event) => event.stopPropagation()}>
- <Command.Root class="rounded-none bg-transparent">
+ <Popover.Content class="w-72" align="start" onclick={(event) => event.stopPropagation()}>
+ <Command.Root>
<Command.Input bind:value={search} placeholder={m.project_tags_search()} />
<Command.List>
- <Command.Empty class={canCreate ? 'px-4 py-5' : undefined}>
+ <Command.Empty>
{#if canCreate}
- <div class="flex flex-col items-center gap-4">
+ <div class="flex flex-col items-center gap-4 px-4">
<p class="leading-snug">
{m.project_tags_create_prompt()}<br />
<span class="font-medium">“{normalizedSearch}”</span>
</p>
<div class="flex items-center gap-2">
<Select.Root type="single" bind:value={selectedColor}>
- <Select.Trigger class="h-9 min-w-28 bg-background">
+ <Select.Trigger class="h-9 min-w-28">
<span class="block size-2.5 shrink-0 rounded-full {tagColorClassInternal(selectedColor)}"></span>
{colorOptions.find((option) => option.value === selectedColor)?.label}
</Select.Trigger>
diff --git a/frontend/src/lib/components/project-update-item.svelte b/frontend/src/lib/components/project-update-item.svelte
index cdb0a7525..cf1fbdac6 100644
--- a/frontend/src/lib/components/project-update-item.svelte
+++ b/frontend/src/lib/components/project-update-item.svelte
@@ -85,60 +85,60 @@
case 'has_update':
return {
icon: CircleArrowUpIcon,
- gradientFrom: 'from-blue-500',
- gradientTo: 'to-cyan-500',
- shadowColor: 'shadow-blue-500/25',
- headerClass: 'bg-linear-to-br from-blue-50 to-cyan-50/30 dark:from-blue-950/20 dark:to-cyan-950/10',
- titleClass: 'text-blue-950 dark:text-blue-100',
- descriptionClass: 'text-blue-900/80 dark:text-blue-300/80',
+ gradientFrom: 'from-info',
+ gradientTo: 'to-cyan',
+ shadowColor: 'shadow-info/25',
+ headerClass: 'bg-linear-to-br from-info/10 to-cyan/5',
+ titleClass: 'text-info',
+ descriptionClass: 'text-info/80',
title: m.images_has_updates(),
description: updatedSummaryText ?? m.images_has_updates()
};
case 'not_pulled':
return {
icon: DownloadIcon,
- gradientFrom: 'from-blue-500',
- gradientTo: 'to-cyan-500',
- shadowColor: 'shadow-blue-500/25',
- headerClass: 'bg-linear-to-br from-blue-50 to-cyan-50/30 dark:from-blue-950/20 dark:to-cyan-950/10',
- titleClass: 'text-blue-950 dark:text-blue-100',
- descriptionClass: 'text-blue-900/80 dark:text-blue-300/80',
+ gradientFrom: 'from-info',
+ gradientTo: 'to-cyan',
+ shadowColor: 'shadow-info/25',
+ headerClass: 'bg-linear-to-br from-info/10 to-cyan/5',
+ titleClass: 'text-info',
+ descriptionClass: 'text-info/80',
title: m.image_update_not_pulled_title(),
description: notPulledSummaryText ?? m.image_update_not_pulled_desc()
};
case 'up_to_date':
return {
icon: VerifiedCheckIcon,
- gradientFrom: 'from-emerald-500',
- gradientTo: 'to-green-500',
- shadowColor: 'shadow-emerald-500/25',
- headerClass: 'bg-linear-to-br from-emerald-50 to-green-50/30 dark:from-emerald-950/20 dark:to-green-950/10',
- titleClass: 'text-emerald-950 dark:text-emerald-100',
- descriptionClass: 'text-emerald-900/80 dark:text-emerald-300/80',
+ gradientFrom: 'from-success',
+ gradientTo: 'to-success',
+ shadowColor: 'shadow-success/25',
+ headerClass: 'bg-linear-to-br from-success/10 to-success/5',
+ titleClass: 'text-success',
+ descriptionClass: 'text-success/80',
title: m.image_update_up_to_date_title(),
description: m.image_update_up_to_date_desc()
};
case 'error':
return {
icon: AlertIcon,
- gradientFrom: 'from-rose-500',
- gradientTo: 'to-red-500',
- shadowColor: 'shadow-red-500/25',
- headerClass: 'bg-linear-to-br from-rose-50 to-red-50/40 dark:from-rose-950/20 dark:to-red-950/10',
- titleClass: 'text-red-950 dark:text-red-100',
- descriptionClass: 'text-red-900/80 dark:text-red-300/80',
+ gradientFrom: 'from-rose',
+ gradientTo: 'to-destructive',
+ shadowColor: 'shadow-destructive/25',
+ headerClass: 'bg-linear-to-br from-rose/10 to-destructive/5',
+ titleClass: 'text-destructive',
+ descriptionClass: 'text-destructive/80',
title: m.image_update_check_failed_title(),
description: errorMessage || m.image_update_could_not_query_registry()
};
default:
return {
icon: AlertIcon,
- gradientFrom: 'from-gray-400',
- gradientTo: 'to-slate-500',
- shadowColor: 'shadow-gray-400/25',
- headerClass: 'bg-linear-to-br from-gray-50 to-slate-50/30 dark:from-gray-900/20 dark:to-slate-900/10',
- titleClass: 'text-gray-950 dark:text-gray-100',
- descriptionClass: 'text-gray-800 dark:text-gray-300/80',
+ gradientFrom: 'from-muted-foreground',
+ gradientTo: 'to-muted-foreground',
+ shadowColor: 'shadow-muted-foreground/25',
+ headerClass: 'bg-linear-to-br from-muted/50 to-muted/20',
+ titleClass: 'text-foreground',
+ descriptionClass: 'text-muted-foreground',
title: m.image_update_status_unknown(),
description: m.image_update_click_to_check()
};
@@ -194,12 +194,7 @@
{/if}
{/snippet}
-<UpdateStatusPopover
- bind:open={isOpen}
- interactive={canCheck}
- directTrigger={directCheckFromTrigger}
- contentClass="max-w-[320px] p-0"
->
+<UpdateStatusPopover bind:open={isOpen} interactive={canCheck} directTrigger={directCheckFromTrigger} contentWidth="xl">
{#snippet trigger({ props })}
{#if checking}
<span
@@ -208,12 +203,12 @@
aria-label={indicatorLabel}
data-testid="project-update-trigger"
>
- <Spinner class="size-4 text-blue-400" />
+ <Spinner tone="info" class="size-4" />
</span>
{:else if directCheckFromTrigger}
{@const triggerProps = mergeProps(props, {
onclick: handleCheckClick,
- class: `group inline-flex size-4 items-center justify-center align-middle transition-colors disabled:cursor-not-allowed dark:hover:bg-blue-950 ${className}`
+ class: `group inline-flex size-4 items-center justify-center align-middle transition-colors disabled:cursor-not-allowed dark:hover:bg-info/10 ${className}`
})}
<button
{...triggerProps}
@@ -223,9 +218,9 @@
data-testid="project-update-trigger"
>
{#if status === 'error'}
- <AlertIcon class="size-4 text-red-500 transition-colors group-hover:text-blue-400" />
+ <AlertIcon class="size-4 text-destructive transition-colors group-hover:text-info" />
{:else}
- <span class="flex size-4 items-center justify-center text-gray-400 transition-colors group-hover:text-blue-400">
+ <span class="flex size-4 items-center justify-center text-muted-foreground transition-colors group-hover:text-info">
<UncheckedRingIcon />
</span>
{/if}
@@ -238,15 +233,15 @@
data-testid="project-update-trigger"
>
{#if status === 'error'}
- <AlertIcon class="size-4 text-red-500" />
+ <AlertIcon class="size-4 text-destructive" />
{:else if status === 'up_to_date'}
- <VerifiedCheckIcon class="size-4 text-green-500" />
+ <VerifiedCheckIcon class="size-4 text-success" />
{:else if status === 'has_update'}
- <CircleArrowUpIcon class="size-4 text-blue-500" />
+ <CircleArrowUpIcon class="size-4 text-info" />
{:else if status === 'not_pulled'}
- <DownloadIcon class="size-4 text-blue-500" />
+ <DownloadIcon class="size-4 text-info" />
{:else}
- <div class="flex size-4 items-center justify-center text-gray-400 opacity-60">
+ <div class="flex size-4 items-center justify-center text-muted-foreground opacity-60">
<UncheckedRingIcon />
</div>
{/if}
@@ -259,12 +254,12 @@
{#if checking}
<UpdateStatusBanner
icon={Spinner}
- wrapperClass="bg-linear-to-br from-blue-50 to-cyan-50/30 p-4 dark:from-blue-950/20 dark:to-cyan-950/10"
- gradientFrom="from-blue-500"
- gradientTo="to-cyan-500"
- shadowColor="shadow-blue-500/25"
- titleClass="text-blue-950 dark:text-blue-100"
- descriptionClass="text-blue-900/80 dark:text-blue-300/80"
+ wrapperClass="bg-linear-to-br from-info/10 to-info/5 p-4"
+ gradientFrom="from-info"
+ gradientTo="to-cyan"
+ shadowColor="shadow-info/25"
+ titleClass="text-info"
+ descriptionClass="text-info/80"
title={m.image_update_checking_title()}
description={m.image_update_querying_registry()}
/>
@@ -289,7 +284,7 @@
{#if serviceUpdates.length > 0}
<div class="space-y-2">
- <div class="text-[11px] font-medium tracking-wide text-foreground uppercase">{m.services()}</div>
+ <div class="text-2xs font-medium tracking-wide text-foreground uppercase">{m.services()}</div>
<div class="max-h-60 space-y-1 overflow-auto">
{#each serviceUpdates as [serviceName, service] (serviceName)}
{@const parsed = parseImageRef(service.imageRef)}
@@ -298,7 +293,7 @@
<ImageUpdateItem updateInfo={service.updateInfo ?? undefined} repo={parsed.repo} tag={parsed.tag} />
<span class="min-w-0 flex-1 text-xs font-medium break-all">{serviceName}</span>
</div>
- <div class="mt-1 font-mono text-[11px] break-all text-muted-foreground">{service.imageRef}</div>
+ <div class="mt-1 font-mono text-2xs break-all text-muted-foreground">{service.imageRef}</div>
{#if service.updateInfo?.hasUpdate && service.updateInfo.updateType === 'tag' && service.updateInfo.latestVersion}
<div class="mt-1 flex flex-wrap items-center gap-1 font-mono text-xs break-all">
<span>{parsed.tag}</span>
@@ -314,7 +309,7 @@
{#if status === 'has_update' && fallbackUpdatedImageRefs.length > 0}
<div class="space-y-2">
- <div class="text-[11px] font-medium tracking-wide text-foreground uppercase">{m.images_has_updates()}</div>
+ <div class="text-2xs font-medium tracking-wide text-foreground uppercase">{m.images_has_updates()}</div>
<div class="max-h-40 space-y-1 overflow-auto">
{#each fallbackUpdatedImageRefs as imageRef (imageRef)}
{@render refRow(imageRef)}
@@ -341,7 +336,7 @@
{#if notPulledImageRefs.length > 0 && (status === 'not_pulled' || status === 'has_update')}
<div class="space-y-2">
- <div class="text-[11px] font-medium tracking-wide text-foreground uppercase">
+ <div class="text-2xs font-medium tracking-wide text-foreground uppercase">
{m.image_update_not_pulled_title()}
</div>
<div class="max-h-40 space-y-1 overflow-auto">
@@ -354,7 +349,7 @@
{#if errorCount > 0 && status !== 'error'}
<div class="flex items-center gap-2 text-xs text-muted-foreground">
- <AlertIcon class="size-3.5 text-red-500" />
+ <AlertIcon class="size-3.5 text-destructive" />
<span>{errorCount} {m.common_error()}</span>
</div>
{/if}
diff --git a/frontend/src/lib/components/prune/prune-mode-card.svelte b/frontend/src/lib/components/prune/prune-mode-card.svelte
index 0e6df3037..6607c57af 100644
--- a/frontend/src/lib/components/prune/prune-mode-card.svelte
+++ b/frontend/src/lib/components/prune/prune-mode-card.svelte
@@ -1,7 +1,6 @@
<script lang="ts">
import { Input } from '#lib/components/ui/input/index.js';
import * as Tabs from '#lib/components/ui/tabs/index.js';
- import { cn } from '#lib/utils.js';
import { m } from '#lib/paraglide/messages.js';
export type PruneModeOption = {
@@ -133,7 +132,7 @@
<div class="flex h-full flex-col gap-2.5 rounded-lg bg-muted/20 p-3 ring-1 ring-border/20">
<div class="space-y-0.5">
<p class="text-xs font-medium">{title}</p>
- <p class="text-[11px] leading-tight text-muted-foreground">{description}</p>
+ <p class="text-2xs leading-tight text-muted-foreground">{description}</p>
</div>
<Tabs.Root {value} onValueChange={handleModeChange}>
@@ -142,10 +141,9 @@
<Tabs.Trigger
value={option.value}
{disabled}
- class={cn(
- 'h-6 flex-1 text-xs',
- option.destructive && value === option.value && 'bg-destructive/15 text-destructive shadow-sm hover:bg-destructive/10'
- )}
+ size="sm"
+ variant={option.destructive ? 'destructive' : 'default'}
+ class="h-6 flex-1"
>
{option.label}
</Tabs.Trigger>
@@ -154,14 +152,15 @@
</Tabs.Root>
{#if hasOlderThanInternal() && value === olderThanMode}
- <div class="grid gap-1.5 sm:grid-cols-[minmax(0,1fr)_auto]">
+ <div class="grid gap-1.5 sm:grid-cols-content-action">
<Input
type="number"
min="1"
value={durationAmountInternal}
oninput={handleDurationAmountInputInternal}
{disabled}
- class="h-8 text-xs"
+ size="sm"
+ class="h-8"
placeholder={m.prune_duration_placeholder()}
/>
<select
@@ -179,7 +178,7 @@
{/if}
{#if warningDescription && getSelectedOptionInternal()?.destructive}
- <div class="mt-auto rounded-md border border-amber-500/30 bg-amber-500/10 p-2 text-xs text-amber-900 dark:text-amber-200">
+ <div class="mt-auto rounded-md border border-warning/30 bg-warning/10 p-2 text-xs text-warning">
{#if warningTitle}
<p class="font-medium">{warningTitle}</p>
{/if}
diff --git a/frontend/src/lib/components/resizable-split.svelte b/frontend/src/lib/components/resizable-split.svelte
index 970600e88..04769ed60 100644
--- a/frontend/src/lib/components/resizable-split.svelte
+++ b/frontend/src/lib/components/resizable-split.svelte
@@ -199,8 +199,8 @@
class={['flex min-h-0 min-w-0', isStacked && (variant === 'flush' ? 'flex-col' : 'flex-col gap-4'), className]}
>
<div
- class={['min-h-0 min-w-0 overflow-hidden', isStacked ? 'flex-1' : 'flex-none', firstClass]}
- style={isStacked ? '' : `width: ${layout.size}px;`}
+ class={['min-h-0 min-w-0 overflow-hidden', isStacked ? 'flex-1' : 'w-(--first-size) flex-none', firstClass]}
+ style={isStacked ? undefined : `--first-size: ${layout.size}px`}
aria-hidden={!isStacked && collapsedSide === 'first'}
>
{#if isStacked || collapsedSide !== 'first'}
@@ -214,10 +214,11 @@
aria-orientation="vertical"
aria-label={ariaLabel ?? m.common_resize_panels()}
class={[
- 'group relative z-[var(--arcane-z-sticky)] flex shrink-0 cursor-col-resize items-stretch justify-center overflow-visible',
+ 'group relative z-(--arcane-z-sticky) flex shrink-0 cursor-col-resize items-stretch justify-center overflow-visible',
+ 'w-(--handle-size)',
handleClass
]}
- style={`width: ${layoutHandleSize}px;`}
+ style={`--handle-size: ${layoutHandleSize}px`}
onpointerdown={startResize}
>
{#if variant === 'flush'}
@@ -228,7 +229,7 @@
{/if}
{#if collapsedSide}
<button
- class="absolute inset-0 z-[var(--arcane-z-raised)] m-auto flex size-6 items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-sm hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
+ class="absolute inset-0 z-(--arcane-z-raised) m-auto flex size-6 items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-sm hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
onclick={(event) => {
event.stopPropagation();
restoreCollapsed();
@@ -249,8 +250,11 @@
{/if}
<div
- class={['min-h-0 min-w-0 flex-1 overflow-hidden', secondClass]}
- style={!isStacked && collapsedSide === 'second' ? 'flex: 0 0 0px; width: 0px;' : ''}
+ class={[
+ 'min-h-0 min-w-0 overflow-hidden',
+ !isStacked && collapsedSide === 'second' ? 'w-0 shrink-0 grow-0 basis-0' : 'flex-1',
+ secondClass
+ ]}
aria-hidden={!isStacked && collapsedSide === 'second'}
>
{#if isStacked || collapsedSide !== 'second'}
diff --git a/frontend/src/lib/components/resource-detail/key-value-card.svelte b/frontend/src/lib/components/resource-detail/key-value-card.svelte
index 15d6d7139..d5b5e3480 100644
--- a/frontend/src/lib/components/resource-detail/key-value-card.svelte
+++ b/frontend/src/lib/components/resource-detail/key-value-card.svelte
@@ -1,39 +1,60 @@
<script lang="ts">
import * as Card from '#lib/components/ui/card/index.js';
import type { Snippet } from 'svelte';
+ import { cn } from '#lib/utils.js';
interface Props {
label: string;
children: Snippet;
- labelClass?: string;
- valueClass?: string;
+ /** `code` renders a selectable monospace value; `text` renders plain text. */
+ valueFormat?: 'code' | 'text';
+ /** Stacks multiple value children vertically. */
+ stacked?: boolean;
valueTitle?: string;
- cardClass?: string;
- contentClass?: string;
+ class?: string;
+ compact?: boolean;
variant?: 'default' | 'subtle' | 'outlined';
}
let {
label,
children,
- labelClass = 'text-muted-foreground text-xs font-semibold tracking-wide break-all uppercase',
- valueClass = 'text-foreground cursor-pointer font-mono text-sm font-medium break-all select-all',
+ valueFormat = 'code',
+ stacked = false,
valueTitle,
- cardClass,
- contentClass,
+ class: className,
+ compact = false,
variant = 'subtle'
}: Props = $props();
</script>
{#snippet content()}
- <Card.Content class={contentClass ?? 'flex flex-col gap-2 p-4'}>
- <div class={labelClass}>{label}</div>
- <div class={valueClass} title={valueTitle}>
- {@render children()}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div
+ class={compact
+ ? 'text-3xs font-semibold tracking-widest text-muted-foreground uppercase'
+ : 'text-xs font-semibold tracking-wide break-all text-muted-foreground uppercase'}
+ >
+ {label}
+ </div>
+ <div
+ class={cn(
+ valueFormat === 'text' && 'text-sm font-medium text-foreground',
+ valueFormat === 'code' && compact && 'text-xs break-all whitespace-pre-wrap',
+ valueFormat === 'code' &&
+ !compact &&
+ 'cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all',
+ stacked && 'flex flex-col gap-2'
+ )}
+ title={valueTitle}
+ >
+ {@render children()}
+ </div>
</div>
</Card.Content>
{/snippet}
-<Card.Root {variant} class={cardClass}>
+<Card.Root {variant} size={compact ? 'sm' : 'default'} class={className}>
{@render content()}
</Card.Root>
diff --git a/frontend/src/lib/components/resource-error-page.svelte b/frontend/src/lib/components/resource-error-page.svelte
index 07bbb67aa..843a8e9a3 100644
--- a/frontend/src/lib/components/resource-error-page.svelte
+++ b/frontend/src/lib/components/resource-error-page.svelte
@@ -19,7 +19,7 @@
</script>
<div class="flex h-full flex-1 flex-col items-center justify-center p-8">
- <Empty.Root>
+ <Empty.Root class="flex-none">
<Empty.Header>
<Empty.Media variant="icon">
<AlertIcon class="size-16 text-destructive" aria-hidden="true" />
diff --git a/frontend/src/lib/components/role-editor/permission-picker.svelte b/frontend/src/lib/components/role-editor/permission-picker.svelte
index ac4303061..bac936fd5 100644
--- a/frontend/src/lib/components/role-editor/permission-picker.svelte
+++ b/frontend/src/lib/components/role-editor/permission-picker.svelte
@@ -143,7 +143,7 @@
onCheckedChange={(checked) => toggleGroup(group.resource, checked === true)}
aria-label={m.common_select_all()}
/>
- <Accordion.Trigger class="flex-1 py-2 text-left text-sm font-medium">
+ <Accordion.Trigger size="sm" class="flex-1 text-left">
<div class="flex flex-1 items-center justify-between gap-2 pr-2">
<span>
{m.permissions_group_label({
diff --git a/frontend/src/lib/components/role-editor/role-editor.svelte b/frontend/src/lib/components/role-editor/role-editor.svelte
index efdb7dc46..0514e4b63 100644
--- a/frontend/src/lib/components/role-editor/role-editor.svelte
+++ b/frontend/src/lib/components/role-editor/role-editor.svelte
@@ -54,72 +54,74 @@
}
</script>
-<form onsubmit={preventDefault(handleSubmit)} novalidate class="grid grid-cols-1 gap-6 lg:grid-cols-[320px_1fr]">
+<form onsubmit={preventDefault(handleSubmit)} novalidate class="grid grid-cols-1 gap-6 lg:grid-cols-aside-80">
<div class="space-y-4">
<Card.Root>
<Card.Header>
- <Card.Title class="text-base">
- {role ? m.roles_edit_title() : m.roles_create_title()}
+ <Card.Title>
+ <span class="text-base">{role ? m.roles_edit_title() : m.roles_create_title()}</span>
</Card.Title>
</Card.Header>
- <Card.Content class="space-y-4 p-6 pt-2">
- <div class="flex items-center gap-2">
- <Badge variant={isBuiltIn ? 'blue' : 'green'} size="sm">{isBuiltIn ? m.roles_built_in() : m.custom()}</Badge>
- </div>
-
- <FormInput
- label={m.common_name()}
- type="text"
- placeholder={m.roles_name_placeholder()}
- disabled={isBuiltIn || isLoading}
- bind:input={inputs.name}
- />
-
- <FormInput
- label={m.common_description()}
- type="text"
- placeholder={m.roles_description_placeholder()}
- disabled={isBuiltIn || isLoading}
- bind:input={inputs.description}
- />
-
- <div>
- <div class="text-xs text-muted-foreground">
- {m.roles_permissions_count({ count: selectedCount, total: totalPermissions })}
+ <Card.Content>
+ <div class="flex flex-col gap-4">
+ <div class="flex items-center gap-2">
+ <Badge variant={isBuiltIn ? 'blue' : 'green'} size="sm">{isBuiltIn ? m.roles_built_in() : m.custom()}</Badge>
</div>
- {#if inputs.permissions?.error}
- <p class="mt-1 text-sm text-red-500">{inputs.permissions.error}</p>
- {/if}
- </div>
- {#if isBuiltIn}
- <p class="text-xs text-muted-foreground">{m.roles_built_in_note()}</p>
- {/if}
-
- {#if isBuiltIn && onClone}
- <ArcaneButton
- action="base"
- tone="outline"
- type="button"
- class="w-full"
- icon={CopyIcon}
- onclick={onClone}
- customLabel={m.roles_clone_button()}
- disabled={isLoading}
+ <FormInput
+ label={m.common_name()}
+ type="text"
+ placeholder={m.roles_name_placeholder()}
+ disabled={isBuiltIn || isLoading}
+ bind:input={inputs.name}
/>
- {/if}
-
- {#if !isBuiltIn}
- <ArcaneButton
- action="save"
- type="submit"
- class="w-full"
- disabled={isLoading}
- loading={isLoading}
- onclick={handleSubmit}
- customLabel={role ? m.roles_save_changes() : m.common_create_button({ resource: m.roles_title() })}
+
+ <FormInput
+ label={m.common_description()}
+ type="text"
+ placeholder={m.roles_description_placeholder()}
+ disabled={isBuiltIn || isLoading}
+ bind:input={inputs.description}
/>
- {/if}
+
+ <div>
+ <div class="text-xs text-muted-foreground">
+ {m.roles_permissions_count({ count: selectedCount, total: totalPermissions })}
+ </div>
+ {#if inputs.permissions?.error}
+ <p class="mt-1 text-sm text-destructive">{inputs.permissions.error}</p>
+ {/if}
+ </div>
+
+ {#if isBuiltIn}
+ <p class="text-xs text-muted-foreground">{m.roles_built_in_note()}</p>
+ {/if}
+
+ {#if isBuiltIn && onClone}
+ <ArcaneButton
+ action="base"
+ tone="outline"
+ type="button"
+ class="w-full"
+ icon={CopyIcon}
+ onclick={onClone}
+ customLabel={m.roles_clone_button()}
+ disabled={isLoading}
+ />
+ {/if}
+
+ {#if !isBuiltIn}
+ <ArcaneButton
+ action="save"
+ type="submit"
+ class="w-full"
+ disabled={isLoading}
+ loading={isLoading}
+ onclick={handleSubmit}
+ customLabel={role ? m.roles_save_changes() : m.common_create_button({ resource: m.roles_title() })}
+ />
+ {/if}
+ </div>
</Card.Content>
</Card.Root>
</div>
diff --git a/frontend/src/lib/components/section-card.svelte b/frontend/src/lib/components/section-card.svelte
index 7d8b4515e..038902e05 100644
--- a/frontend/src/lib/components/section-card.svelte
+++ b/frontend/src/lib/components/section-card.svelte
@@ -11,8 +11,8 @@
icon?: IconType;
iconVariant?: 'primary' | 'emerald' | 'red' | 'amber' | 'blue' | 'purple' | 'cyan' | 'orange' | 'indigo' | 'pink';
class?: string;
- headerClass?: string;
- contentClass?: string;
+ /** Stacks children as a divided list of setting rows. */
+ divided?: boolean;
actions?: Snippet;
children: Snippet;
}
@@ -24,15 +24,14 @@
icon,
iconVariant = 'primary',
class: className,
- headerClass,
- contentClass = 'p-4',
+ divided = false,
actions,
children
}: Props = $props();
</script>
<Card.Root {variant} class={className}>
- <Card.Header {icon} {iconVariant} class={headerClass}>
+ <Card.Header {icon} {iconVariant}>
<div class="flex min-w-0 flex-1 flex-col space-y-1.5">
<Card.Title>
<h2>{title}</h2>
@@ -47,7 +46,13 @@
</Card.Action>
{/if}
</Card.Header>
- <Card.Content class={contentClass}>
- {@render children()}
- </Card.Content>
+ {#if divided}
+ <div class="divide-y divide-border/40 px-6 lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0">
+ {@render children()}
+ </div>
+ {:else}
+ <Card.Content>
+ {@render children()}
+ </Card.Content>
+ {/if}
</Card.Root>
diff --git a/frontend/src/lib/components/settings/image-patch-settings.svelte b/frontend/src/lib/components/settings/image-patch-settings.svelte
index af1668a6c..e9d67b3b1 100644
--- a/frontend/src/lib/components/settings/image-patch-settings.svelte
+++ b/frontend/src/lib/components/settings/image-patch-settings.svelte
@@ -30,13 +30,7 @@
const vulnerabilityManagementEnabled = $derived(featureStore.isEnabled('vulnerabilityManagement', targetEnvironmentId));
</script>
-<SectionCard
- variant="transparent"
- title={m.security_image_patching_heading()}
- icon={SecurityIcon}
- class="flex flex-col"
- contentClass="divide-y divide-border/40 lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0"
->
+<SectionCard variant="transparent" title={m.security_image_patching_heading()} icon={SecurityIcon} class="flex flex-col" divided>
<SettingsRow
label={m.security_image_auto_patch_enabled_label()}
description={m.security_image_auto_patch_enabled_description()}
diff --git a/frontend/src/lib/components/settings/lifecycle-security-settings.svelte b/frontend/src/lib/components/settings/lifecycle-security-settings.svelte
index 2b35f586f..9fd605dcb 100644
--- a/frontend/src/lib/components/settings/lifecycle-security-settings.svelte
+++ b/frontend/src/lib/components/settings/lifecycle-security-settings.svelte
@@ -26,13 +26,7 @@
let { formInputs = $bindable() }: { formInputs: LifecycleSecurityFormInputs } = $props();
</script>
-<SectionCard
- variant="transparent"
- title={m.security_lifecycle_hooks_heading()}
- icon={CodeIcon}
- class="flex flex-col"
- contentClass="divide-y divide-border/40 lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0"
->
+<SectionCard variant="transparent" title={m.security_lifecycle_hooks_heading()} icon={CodeIcon} class="flex flex-col" divided>
<SettingsRow
label={m.security_lifecycle_enabled_label()}
description={m.security_lifecycle_enabled_description()}
@@ -65,9 +59,9 @@
</div>
<div>
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="warning" size="sm">
<AlertIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.security_lifecycle_hooks_note()}
</Alert.Description>
</Alert.Root>
diff --git a/frontend/src/lib/components/settings/settings-row.svelte b/frontend/src/lib/components/settings/settings-row.svelte
index 9d161c613..f8abfae9c 100644
--- a/frontend/src/lib/components/settings/settings-row.svelte
+++ b/frontend/src/lib/components/settings/settings-row.svelte
@@ -18,7 +18,7 @@
{#snippet labelBlock(wrapperClass: string)}
<div class={wrapperClass}>
- <Label class="text-sm font-medium">{label}</Label>
+ <Label>{label}</Label>
{#if description}
<p class="mt-0.5 text-xs text-muted-foreground">{description}</p>
{/if}
diff --git a/frontend/src/lib/components/settings/trivy-security-settings.svelte b/frontend/src/lib/components/settings/trivy-security-settings.svelte
index 7717f3156..ca1c68eed 100644
--- a/frontend/src/lib/components/settings/trivy-security-settings.svelte
+++ b/frontend/src/lib/components/settings/trivy-security-settings.svelte
@@ -160,7 +160,7 @@
title={m.security_vulnerability_scanning_heading()}
icon={SecurityIcon}
class="flex flex-col"
- contentClass="divide-y divide-border/40 lg:p-6 lg:pt-0 [&>*]:py-5 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0"
+ divided
>
<div class="max-w-xl">
<SelectWithLabel
@@ -263,9 +263,9 @@
description={m.security_trivy_server_token_description()}
type="password"
/>
- <Alert.Root variant="default" class="border-amber-200 bg-amber-50 dark:border-amber-800 dark:bg-amber-950">
- <InfoIcon class="h-4 w-4 text-amber-900 dark:text-amber-100" />
- <Alert.Description class="text-amber-800 dark:text-amber-200">
+ <Alert.Root variant="warning-subtle">
+ <InfoIcon class="h-4 w-4 text-warning" />
+ <Alert.Description>
{m.security_trivy_server_note()}
</Alert.Description>
</Alert.Root>
@@ -281,7 +281,8 @@
<Textarea
bind:value={formInputs.trivySecurityOpts.value}
aria-label={m.security_trivy_security_opts_label()}
- class="min-h-28 font-mono text-sm"
+ mono
+ class="min-h-28"
placeholder={m.security_trivy_security_opts_placeholder()}
rows={4}
/>
@@ -298,9 +299,9 @@
<Switch id="trivyPrivilegedSwitch" bind:checked={formInputs.trivyPrivileged.value} />
</SettingsRow>
{#if formInputs.trivyPrivileged.value}
- <Alert.Root variant="default" class="border-amber-200 bg-amber-50 dark:border-amber-800 dark:bg-amber-950">
- <InfoIcon class="h-4 w-4 text-amber-900 dark:text-amber-100" />
- <Alert.Description class="text-amber-800 dark:text-amber-200">
+ <Alert.Root variant="warning-subtle">
+ <InfoIcon class="h-4 w-4 text-warning" />
+ <Alert.Description>
{m.security_trivy_privileged_note()}
</Alert.Description>
</Alert.Root>
diff --git a/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte b/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
index d33d9b700..5811eb210 100644
--- a/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
+++ b/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
@@ -77,7 +77,7 @@
variant="sheet"
title={m.templates_add_registry_title()}
description={m.templates_add_registry_description()}
- contentClass="sm:max-w-[500px]"
+ contentClass="sm:max-w-125"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
@@ -97,10 +97,10 @@
/>
{#if submitError}
- <Alert.Root class="border-red-200 bg-red-50 dark:border-red-800 dark:bg-red-950">
+ <Alert.Root variant="destructive-subtle">
<AlertIcon class="size-4" />
<Alert.Title>{m.templates_registry_validation_error_title()}</Alert.Title>
- <Alert.Description class="text-sm">{submitError}</Alert.Description>
+ <Alert.Description>{submitError}</Alert.Description>
</Alert.Root>
{/if}
</form>
diff --git a/frontend/src/lib/components/sheets/api-key-form-sheet.svelte b/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
index b53f65528..d5603ed89 100644
--- a/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
@@ -120,7 +120,7 @@
? m.api_key_bootstrap_description()
: m.api_key_edit_description({ name: apiKeyToEdit?.name ?? m.common_unknown() })
: m.api_key_create_description()}
- contentClass="sm:max-w-[500px]"
+ contentClass="sm:max-w-125"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
diff --git a/frontend/src/lib/components/sheets/container-registry-sheet.svelte b/frontend/src/lib/components/sheets/container-registry-sheet.svelte
index 38ff90462..f684ad8c4 100644
--- a/frontend/src/lib/components/sheets/container-registry-sheet.svelte
+++ b/frontend/src/lib/components/sheets/container-registry-sheet.svelte
@@ -126,7 +126,7 @@
variant="sheet"
title={isEditMode ? m.registries_edit_title() : m.common_add_button({ resource: m.common_registry() })}
description={isEditMode ? m.registries_edit_description() : m.registries_add_description()}
- contentClass="sm:max-w-[500px]"
+ contentClass="sm:max-w-125"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
diff --git a/frontend/src/lib/components/sheets/create-network-sheet.svelte b/frontend/src/lib/components/sheets/create-network-sheet.svelte
index be12e60a7..f5772938f 100644
--- a/frontend/src/lib/components/sheets/create-network-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-network-sheet.svelte
@@ -149,19 +149,19 @@
variant="sheet"
title={m.create_network_title()}
description={m.create_network_description()}
- contentClass="sm:max-w-[600px]"
+ contentClass="sm:max-w-150"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
<div class="space-y-2">
- <Label for="network-name" class="text-sm font-medium">{m.network_name_label()}</Label>
+ <Label for="network-name">{m.network_name_label()}</Label>
<Input
id="network-name"
type="text"
placeholder={m.network_name_placeholder()}
disabled={isLoading}
bind:value={inputs.networkName.value}
- class={inputs.networkName.error ? 'border-destructive' : ''}
+ aria-invalid={!!inputs.networkName.error}
/>
{#if inputs.networkName.error}
<p class="text-xs text-destructive">{inputs.networkName.error}</p>
@@ -182,22 +182,22 @@
<div class="flex items-center space-x-4">
<div class="flex items-center space-x-2">
<Checkbox id="check-duplicate" bind:checked={inputs.checkDuplicate.value} disabled={isLoading} />
- <Label for="check-duplicate" class="text-sm font-normal">{m.network_check_duplicate_label()}</Label>
+ <Label for="check-duplicate" weight="normal">{m.network_check_duplicate_label()}</Label>
</div>
<div class="flex items-center space-x-2">
<Checkbox id="internal" bind:checked={inputs.internal.value} disabled={isLoading} />
- <Label for="internal" class="text-sm font-normal">{m.network_internal_label()}</Label>
+ <Label for="internal" weight="normal">{m.network_internal_label()}</Label>
</div>
</div>
</div>
<Accordion.Root type="single" class="w-full">
<Accordion.Item value="labels">
- <Accordion.Trigger class="text-sm font-medium">{m.common_labels()}</Accordion.Trigger>
- <Accordion.Content class="pt-4">
- <div class="space-y-4">
+ <Accordion.Trigger>{m.common_labels()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-4 pt-4">
<div class="space-y-2">
- <Label class="text-sm font-medium">{m.labels_key_value_label()}</Label>
+ <Label>{m.labels_key_value_label()}</Label>
{#each labels as label, index (label)}
<div class="flex items-center gap-2">
<Input type="text" placeholder="Key" bind:value={label.key} disabled={isLoading} class="flex-1" />
@@ -225,14 +225,14 @@
</div>
<div class="space-y-2">
- <Label for="network-labels" class="text-sm font-medium">{m.network_labels_text_label()}</Label>
+ <Label for="network-labels">{m.network_labels_text_label()}</Label>
<Textarea
id="network-labels"
placeholder={m.network_labels_placeholder()}
disabled={isLoading}
rows={3}
bind:value={inputs.networkLabels.value}
- class={inputs.networkLabels.error ? 'border-destructive' : ''}
+ aria-invalid={!!inputs.networkLabels.error}
/>
{#if inputs.networkLabels.error}
<p class="text-xs text-destructive">{inputs.networkLabels.error}</p>
@@ -244,17 +244,17 @@
</Accordion.Item>
<Accordion.Item value="options">
- <Accordion.Trigger class="text-sm font-medium">{m.common_driver_options()}</Accordion.Trigger>
- <Accordion.Content class="pt-4">
- <div class="space-y-2">
- <Label for="driver-options" class="text-sm font-medium">{m.common_driver_options()}</Label>
+ <Accordion.Trigger>{m.common_driver_options()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-2 pt-4">
+ <Label for="driver-options">{m.common_driver_options()}</Label>
<Textarea
id="driver-options"
placeholder={m.network_driver_options_placeholder()}
disabled={isLoading}
rows={3}
bind:value={inputs.driverOptions.value}
- class={inputs.driverOptions.error ? 'border-destructive' : ''}
+ aria-invalid={!!inputs.driverOptions.error}
/>
{#if inputs.driverOptions.error}
<p class="text-xs text-destructive">{inputs.driverOptions.error}</p>
@@ -265,25 +265,25 @@
</Accordion.Item>
<Accordion.Item value="ipam">
- <Accordion.Trigger class="text-sm font-medium">{m.networks_ipam_title()}</Accordion.Trigger>
- <Accordion.Content class="pt-4">
- <div class="space-y-4">
+ <Accordion.Trigger>{m.networks_ipam_title()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-4 pt-4">
<div class="flex items-center space-x-2">
<Checkbox id="enable-ipam" bind:checked={inputs.enableIpam.value} disabled={isLoading} />
- <Label for="enable-ipam" class="text-sm font-medium">{m.network_enable_ipam_label()}</Label>
+ <Label for="enable-ipam">{m.network_enable_ipam_label()}</Label>
</div>
{#if inputs.enableIpam.value}
<div class="space-y-4 border-l-2 border-muted pl-6">
<div class="space-y-2">
- <Label for="subnet" class="text-sm font-medium">{m.common_subnet()}</Label>
+ <Label for="subnet">{m.common_subnet()}</Label>
<Input
id="subnet"
type="text"
placeholder={m.network_example_subnet()}
disabled={isLoading}
bind:value={inputs.subnet.value}
- class={inputs.subnet.error ? 'border-destructive' : ''}
+ aria-invalid={!!inputs.subnet.error}
/>
{#if inputs.subnet.error}
<p class="text-xs text-destructive">{inputs.subnet.error}</p>
@@ -292,14 +292,14 @@
</div>
<div class="space-y-2">
- <Label for="ip-range" class="text-sm font-medium">{m.networks_ipam_iprange_label()}</Label>
+ <Label for="ip-range">{m.networks_ipam_iprange_label()}</Label>
<Input
id="ip-range"
type="text"
placeholder={m.network_example_ip_range()}
disabled={isLoading}
bind:value={inputs.ipRange.value}
- class={inputs.ipRange.error ? 'border-destructive' : ''}
+ aria-invalid={!!inputs.ipRange.error}
/>
{#if inputs.ipRange.error}
<p class="text-xs text-destructive">{inputs.ipRange.error}</p>
@@ -308,14 +308,14 @@
</div>
<div class="space-y-2">
- <Label for="gateway" class="text-sm font-medium">{m.common_gateway()}</Label>
+ <Label for="gateway">{m.common_gateway()}</Label>
<Input
id="gateway"
type="text"
placeholder={m.network_example_gateway()}
disabled={isLoading}
bind:value={inputs.gateway.value}
- class={inputs.gateway.error ? 'border-destructive' : ''}
+ aria-invalid={!!inputs.gateway.error}
/>
{#if inputs.gateway.error}
<p class="text-xs text-destructive">{inputs.gateway.error}</p>
diff --git a/frontend/src/lib/components/sheets/create-volume-sheet.svelte b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
index 24a5a1c4c..430a1e524 100644
--- a/frontend/src/lib/components/sheets/create-volume-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
@@ -78,7 +78,7 @@
variant="sheet"
title={m.create_volume_title()}
description={m.create_volume_description()}
- contentClass="sm:max-w-[600px]"
+ contentClass="sm:max-w-150"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
@@ -103,9 +103,9 @@
<Accordion.Root type="single" class="w-full">
<Accordion.Item value="advanced">
- <Accordion.Trigger class="text-sm font-medium">{m.volume_advanced_settings()}</Accordion.Trigger>
- <Accordion.Content class="pt-4">
- <div class="space-y-4">
+ <Accordion.Trigger>{m.volume_advanced_settings()}</Accordion.Trigger>
+ <Accordion.Content>
+ <div class="space-y-4 pt-4">
<FormInput
label={m.common_driver_options()}
type="textarea"
diff --git a/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte b/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte
index 5c66a4922..f9498c4d2 100644
--- a/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/federated-credential-form-sheet.svelte
@@ -144,7 +144,7 @@
description={isEditMode
? m.federated_credential_edit_description({ name: credentialToEdit?.name ?? m.common_unknown() })
: m.federated_credential_create_description()}
- contentClass="sm:max-w-[560px]"
+ contentClass="sm:max-w-140"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} novalidate class="grid gap-4 py-6">
@@ -212,10 +212,10 @@
disabled={isLoading}
/>
{#if hasWildcardWarning}
- <Alert.Root variant="default" class="border-amber-200 bg-amber-50 dark:border-amber-800 dark:bg-amber-950">
- <InfoIcon class="h-4 w-4 text-amber-600 dark:text-amber-500" />
- <Alert.Title class="text-amber-900 dark:text-amber-100">{m.federated_credential_wildcard_warning_title()}</Alert.Title>
- <Alert.Description class="text-amber-800 dark:text-amber-200">
+ <Alert.Root variant="warning-subtle">
+ <InfoIcon class="h-4 w-4 text-warning" />
+ <Alert.Title>{m.federated_credential_wildcard_warning_title()}</Alert.Title>
+ <Alert.Description>
{m.federated_credential_wildcard_warning_description()}
</Alert.Description>
</Alert.Root>
@@ -253,10 +253,10 @@
<div class="flex items-center space-x-2">
<Switch id="federated-enabled" bind:checked={inputs.enabled.value} disabled={isLoading} />
<div class="grid gap-1.5 leading-none">
- <Label for="federated-enabled" class="mb-0 text-sm leading-none font-medium">
+ <Label for="federated-enabled" class="mb-0">
{m.common_enabled()}
</Label>
- <p class="text-[0.8rem] text-muted-foreground">
+ <p class="text-xs text-muted-foreground">
{m.federated_credential_enabled_description()}
</p>
</div>
diff --git a/frontend/src/lib/components/sheets/image-pull-sheet.svelte b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
index 740e9a3ff..c65c9b518 100644
--- a/frontend/src/lib/components/sheets/image-pull-sheet.svelte
+++ b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
@@ -85,7 +85,7 @@
variant="sheet"
title={m.images_pull_image()}
description={m.images_pull_description()}
- contentClass="sm:max-w-[600px]"
+ contentClass="sm:max-w-150"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
diff --git a/frontend/src/lib/components/sheets/new-environment-sheet.svelte b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
index b2c100dd4..cddda1868 100644
--- a/frontend/src/lib/components/sheets/new-environment-sheet.svelte
+++ b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
@@ -247,7 +247,7 @@
</div>
{#if createdEnvironment.mtlsEnabled}
- <div class="space-y-3 rounded-lg border border-sky-500/25 bg-sky-500/8 p-4">
+ <div class="space-y-3 rounded-lg border border-info/25 bg-info/8 p-4">
<div class="space-y-1">
<p class="text-sm font-medium">{m.environments_new_agent_mtls_enabled()}</p>
<p class="text-xs text-muted-foreground">
@@ -295,11 +295,11 @@
{:else}
<Tabs.Root bind:value={connectionMode} class="w-full">
<Tabs.List class="grid w-full grid-cols-2">
- <Tabs.Trigger value="direct" class="flex items-center gap-2">
+ <Tabs.Trigger value="direct" class="flex items-center">
<RemoteEnvironmentIcon class="size-4" />
Direct
</Tabs.Trigger>
- <Tabs.Trigger value="edge" class="flex items-center gap-2">
+ <Tabs.Trigger value="edge" class="flex items-center">
<EdgeConnectionIcon class="size-4" />
Edge
</Tabs.Trigger>
diff --git a/frontend/src/lib/components/sheets/oidc-mapping-form-sheet.svelte b/frontend/src/lib/components/sheets/oidc-mapping-form-sheet.svelte
index 52d9b78ef..06846d58d 100644
--- a/frontend/src/lib/components/sheets/oidc-mapping-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/oidc-mapping-form-sheet.svelte
@@ -67,7 +67,7 @@
variant="sheet"
title={isEditMode ? m.oidc_mappings_edit_title() : m.oidc_mappings_create_title()}
description={m.oidc_mappings_subtitle()}
- contentClass="sm:max-w-[500px]"
+ contentClass="sm:max-w-125"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} novalidate class="grid gap-4 py-6">
diff --git a/frontend/src/lib/components/sheets/role-scope-selects.svelte b/frontend/src/lib/components/sheets/role-scope-selects.svelte
index 3a7d9eafb..ba597fdce 100644
--- a/frontend/src/lib/components/sheets/role-scope-selects.svelte
+++ b/frontend/src/lib/components/sheets/role-scope-selects.svelte
@@ -48,7 +48,7 @@
<div class="space-y-2">
<Label for="{idPrefix}-role" class="mb-0">{roleLabel}</Label>
<Select.Root type="single" bind:value={roleValue} {disabled}>
- <Select.Trigger id="{idPrefix}-role" class="w-full {roleError ? 'border-destructive' : ''}">
+ <Select.Trigger id="{idPrefix}-role" class="w-full" aria-invalid={!!roleError}>
<span>{roleSelectedLabel(roleValue)}</span>
</Select.Trigger>
<Select.Content>
diff --git a/frontend/src/lib/components/sheets/user-form-sheet.svelte b/frontend/src/lib/components/sheets/user-form-sheet.svelte
index 7af8dedc4..ad83df437 100644
--- a/frontend/src/lib/components/sheets/user-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/user-form-sheet.svelte
@@ -162,7 +162,7 @@
description={isEditMode
? m.users_edit_description({ username: userToEdit?.username ?? m.common_unknown() })
: m.users_create_description()}
- contentClass="sm:max-w-[640px]"
+ contentClass="sm:max-w-160"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} novalidate class="grid gap-4 py-6">
diff --git a/frontend/src/lib/components/sheets/variable-form-sheet.svelte b/frontend/src/lib/components/sheets/variable-form-sheet.svelte
index ab4113447..8105d22f2 100644
--- a/frontend/src/lib/components/sheets/variable-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/variable-form-sheet.svelte
@@ -169,7 +169,7 @@
variant="sheet"
title={isEditMode ? m.edit_variable() : m.create_variable()}
description={isEditMode ? (variableToEdit?.key ?? '') : m.common_add_description()}
- contentClass="sm:max-w-[540px]"
+ contentClass="sm:max-w-135"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
@@ -202,7 +202,8 @@
<Textarea
id="variable-bulk-text"
rows={10}
- class="mt-2 font-mono text-sm"
+ mono
+ class="mt-2"
placeholder={m.paste_env_placeholder()}
bind:value={bulkText}
/>
@@ -254,7 +255,8 @@
<Input
id="variable-key"
type="text"
- class="mt-2 font-mono"
+ mono
+ class="mt-2"
placeholder={m.key_placeholder()}
bind:value={inputs.key.value}
oninput={(e) => normalizeVariableKeyInput(e, (value) => (inputs.key.value = value))}
@@ -269,7 +271,8 @@
<Textarea
id="variable-value"
rows={3}
- class="mt-2 font-mono"
+ mono
+ class="mt-2"
placeholder={variableToEdit?.isSecret ? m.secret_value_placeholder() : m.value_placeholder()}
bind:value={inputs.value.value}
/>
@@ -307,27 +310,29 @@
<div>
<Label class="mb-0">{m.common_scope()}</Label>
<RadioGroup.Root
- class="mt-2 gap-2"
+ class="mt-2"
value={scope}
onValueChange={(value) => {
scope = value as 'all' | 'specific';
scopeError = null;
}}
>
- <label class="flex cursor-pointer items-start gap-3 rounded-md border border-border/50 p-3 hover:bg-accent/40">
- <RadioGroup.Item value="all" class="mt-0.5" />
- <div class="grid gap-1 leading-none">
- <span class="text-sm font-medium">{m.all_environments()}</span>
- <span class="text-xs text-muted-foreground">{m.all_environments_description()}</span>
- </div>
- </label>
- <label class="flex cursor-pointer items-start gap-3 rounded-md border border-border/50 p-3 hover:bg-accent/40">
- <RadioGroup.Item value="specific" class="mt-0.5" />
- <div class="grid gap-1 leading-none">
- <span class="text-sm font-medium">{m.specific_environments()}</span>
- <span class="text-xs text-muted-foreground">{m.specific_environments_description()}</span>
- </div>
- </label>
+ <div class="grid gap-2">
+ <label class="flex cursor-pointer items-start gap-3 rounded-md border border-border/50 p-3 hover:bg-accent/40">
+ <RadioGroup.Item value="all" class="mt-0.5" />
+ <div class="grid gap-1 leading-none">
+ <span class="text-sm font-medium">{m.all_environments()}</span>
+ <span class="text-xs text-muted-foreground">{m.all_environments_description()}</span>
+ </div>
+ </label>
+ <label class="flex cursor-pointer items-start gap-3 rounded-md border border-border/50 p-3 hover:bg-accent/40">
+ <RadioGroup.Item value="specific" class="mt-0.5" />
+ <div class="grid gap-1 leading-none">
+ <span class="text-sm font-medium">{m.specific_environments()}</span>
+ <span class="text-xs text-muted-foreground">{m.specific_environments_description()}</span>
+ </div>
+ </label>
+ </div>
</RadioGroup.Root>
{#if scope === 'specific'}
<div class="mt-2">
diff --git a/frontend/src/lib/components/sheets/webhook-form-sheet.svelte b/frontend/src/lib/components/sheets/webhook-form-sheet.svelte
index 4f9b8f231..9f7e1b97f 100644
--- a/frontend/src/lib/components/sheets/webhook-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/webhook-form-sheet.svelte
@@ -180,7 +180,7 @@
variant="sheet"
title={m.create_webhook()}
description={m.webhook_create_description()}
- contentClass="sm:max-w-[500px]"
+ contentClass="sm:max-w-125"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
diff --git a/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte b/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
index 63e9b9d70..119cdd796 100644
--- a/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
@@ -53,7 +53,7 @@
</Sidebar.MenuButton>
<Collapsible.Trigger>
{#snippet child({ props })}
- <Sidebar.MenuAction {...props} aria-label={m.sidebar_toggle_submenu()} class="data-[state=open]:bg-sidebar-accent">
+ <Sidebar.MenuAction {...props} aria-label={m.sidebar_toggle_submenu()}>
<ArrowRightIcon class="transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" />
</Sidebar.MenuAction>
{/snippet}
diff --git a/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte b/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
index 8b8121a55..788e801e4 100644
--- a/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-env-switcher.svelte
@@ -28,7 +28,6 @@
<Sidebar.MenuButton
size="lg"
tooltipContent={environmentStore.selected ? environmentStore.selected.name : m.sidebar_no_environment()}
- class="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
onclick={() => onOpenDialog?.()}
>
{#if environmentStore.selected}
diff --git a/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte b/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte
index 5b322d9da..2f503aaab 100644
--- a/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-item-tooltip-content.svelte
@@ -22,16 +22,14 @@
{/if}
{#if showShortcut && shortcut?.length}
{@const displayKeys = formatShortcutKeys(shortcut)}
- <Kbd.Group class="inline-flex items-center gap-1 text-muted-foreground">
+ <Kbd.Group>
<!-- Shortcut sequences may repeat keys; these keycaps have no local state. -->
{#each displayKeys as key, index}
- <Kbd.Root
- class="text-popover-foreground! in-data-[slot=tooltip-content]:text-popover-foreground! dark:in-data-[slot=tooltip-content]:text-popover-foreground!"
- >
+ <Kbd.Root>
{key}
</Kbd.Root>
{#if index < displayKeys.length - 1}
- <span class="text-[10px] text-muted-foreground/70">+</span>
+ <span class="text-3xs text-muted-foreground/70">+</span>
{/if}
{/each}
</Kbd.Group>
diff --git a/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte b/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
index 61243a6b6..9f49e295e 100644
--- a/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
@@ -98,9 +98,9 @@
</Sidebar.MenuItem>
{/snippet}
-<Sidebar.Group class="p-1.5">
- <Sidebar.GroupLabel class="h-7 px-1.5 group-data-[collapsible=icon]:-mt-7">{label}</Sidebar.GroupLabel>
- <Sidebar.Menu class="gap-0.5">
+<Sidebar.Group>
+ <Sidebar.GroupLabel class="group-data-[collapsible=icon]:-mt-7">{label}</Sidebar.GroupLabel>
+ <Sidebar.Menu>
{#each enhancedItems as item (item.url)}
{#if (item.items?.length ?? 0) > 0}
{#if sidebar.state === 'collapsed' && !sidebar.hoverExpansionEnabled}
diff --git a/frontend/src/lib/components/sidebar/sidebar-logo.svelte b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
index 5cfa9abaf..6fcda6ac6 100644
--- a/frontend/src/lib/components/sidebar/sidebar-logo.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
@@ -15,7 +15,7 @@
<div
class={cn(
- 'flex border-b border-border/30 transition-[height,padding] duration-300',
+ 'flex border-b border-border/30 transition-all duration-300',
isCollapsed ? 'h-16 items-center justify-center px-2' : 'h-14 items-center justify-center px-4'
)}
>
@@ -23,7 +23,7 @@
<img
src={logoUrl}
alt={m.layout_title()}
- class={cn('drop-shadow-sm transition-[height,width] duration-300', isCollapsed ? 'h-6 w-6' : 'h-9 w-auto max-w-[160px]')}
+ class={cn('drop-shadow-sm transition-all duration-300', isCollapsed ? 'h-6 w-6' : 'h-9 w-auto max-w-40')}
width={isCollapsed ? '24' : '160'}
height={isCollapsed ? '24' : '72'}
/>
diff --git a/frontend/src/lib/components/sidebar/sidebar-user.svelte b/frontend/src/lib/components/sidebar/sidebar-user.svelte
index 303903f9c..a05a7b143 100644
--- a/frontend/src/lib/components/sidebar/sidebar-user.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-user.svelte
@@ -37,13 +37,9 @@
<DropdownMenu.Root>
<DropdownMenu.Trigger>
{#snippet child({ props })}
- <Sidebar.MenuButton
- size="lg"
- class="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
- {...props}
- >
+ <Sidebar.MenuButton size="lg" {...props}>
{#key user?.updatedAt}
- <Avatar.Root class="size-8 rounded-lg">
+ <Avatar.Root>
{#if user?.avatarUrl}
<Avatar.Image src={`${user.avatarUrl}?t=${user.updatedAt}`} alt={displayLabel} />
{:else if settingsStore.current?.enableGravatar}
@@ -55,7 +51,7 @@
<!-- Gravatar failed, show fallback -->
{/await}
{/if}
- <Avatar.Fallback class="rounded-lg bg-primary text-sm font-semibold text-primary-foreground">
+ <Avatar.Fallback>
{displayLabel.charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
@@ -70,12 +66,7 @@
</Sidebar.MenuButton>
{/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content
- class="min-w-60 rounded-xl border border-border/30 p-1.5 shadow-lg backdrop-blur-2xl backdrop-saturate-150"
- side="right"
- align="end"
- sideOffset={12}
- >
+ <DropdownMenu.Content class="min-w-60" side="right" align="end" sideOffset={12}>
<div
role="group"
tabindex="-1"
@@ -90,7 +81,7 @@
>
<div class="flex items-center gap-2.5 px-2 py-2">
{#key user?.updatedAt}
- <Avatar.Root class="size-8 shrink-0 rounded-lg">
+ <Avatar.Root>
{#if user?.avatarUrl}
<Avatar.Image src={`${user.avatarUrl}?t=${user.updatedAt}`} alt={displayLabel} />
{:else if settingsStore.current?.enableGravatar}
@@ -102,7 +93,7 @@
<!-- Gravatar failed, show fallback -->
{/await}
{/if}
- <Avatar.Fallback class="rounded-lg bg-primary text-xs font-semibold text-primary-foreground">
+ <Avatar.Fallback>
{displayLabel.charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
@@ -116,7 +107,6 @@
<DropdownMenu.Separator class="my-1" />
<DropdownMenu.Item
- class="flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm text-foreground transition-colors hover:bg-muted/60"
onSelect={() => {
goto('/account');
}}
@@ -126,7 +116,6 @@
</DropdownMenu.Item>
<DropdownMenu.Item
- class="flex w-full items-center gap-2.5 rounded-lg px-2 py-2 text-sm text-foreground transition-colors hover:bg-muted/60"
onSelect={() => {
goto('/account?tab=preferences');
}}
diff --git a/frontend/src/lib/components/sidebar/sidebar.svelte b/frontend/src/lib/components/sidebar/sidebar.svelte
index 8ea109e78..4ad4c467f 100644
--- a/frontend/src/lib/components/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar.svelte
@@ -81,7 +81,7 @@
<EnvironmentSwitcherDialog bind:open={envSwitcherOpen} />
<Sidebar.Root {collapsible} {variant} {...restProps}>
- <Sidebar.Header class={isCollapsed ? 'gap-0 p-1 pb-2' : ''}>
+ <Sidebar.Header collapsed={isCollapsed}>
{#if isCollapsed}
<div class="flex justify-center">
<SidebarPinButton />
@@ -107,11 +107,13 @@
<ActivityCenterTrigger collapsed compact />
</div>
{:else}
- <Sidebar.Menu class="pt-1">
- <Sidebar.MenuItem>
- <ActivityCenterTrigger compact />
- </Sidebar.MenuItem>
- </Sidebar.Menu>
+ <div class="pt-1">
+ <Sidebar.Menu>
+ <Sidebar.MenuItem>
+ <ActivityCenterTrigger compact />
+ </Sidebar.MenuItem>
+ </Sidebar.Menu>
+ </div>
{/if}
</Sidebar.Header>
<Sidebar.Content class={!isCollapsed ? '-mt-2' : ''}>
diff --git a/frontend/src/lib/components/sidebar/update-available-banner.svelte b/frontend/src/lib/components/sidebar/update-available-banner.svelte
index 040e9ddb7..8fbb4c320 100644
--- a/frontend/src/lib/components/sidebar/update-available-banner.svelte
+++ b/frontend/src/lib/components/sidebar/update-available-banner.svelte
@@ -32,7 +32,7 @@
<span class="grid min-w-0 flex-1 leading-tight">
<span class="truncate text-xs font-medium">{label}</span>
{#if versionChip}
- <span class="truncate text-[11px] text-muted-foreground tabular-nums">{versionChip}</span>
+ <span class="truncate text-2xs text-muted-foreground tabular-nums">{versionChip}</span>
{/if}
</span>
<ArrowRightIcon
diff --git a/frontend/src/lib/components/stat-card.svelte b/frontend/src/lib/components/stat-card.svelte
index 50acef4e3..7cec35a18 100644
--- a/frontend/src/lib/components/stat-card.svelte
+++ b/frontend/src/lib/components/stat-card.svelte
@@ -38,7 +38,7 @@
<span class="text-sm leading-none font-semibold tabular-nums">
{value}
</span>
- <span class="text-[11px] leading-none font-medium tracking-[0.08em] whitespace-nowrap text-muted-foreground uppercase">
+ <span class="text-2xs leading-none font-medium tracking-widest whitespace-nowrap text-muted-foreground uppercase">
{title}
</span>
</div>
diff --git a/frontend/src/lib/components/swarm/swarm-kv-page.svelte b/frontend/src/lib/components/swarm/swarm-kv-page.svelte
index 42fc9bfa8..55fb3ca3a 100644
--- a/frontend/src/lib/components/swarm/swarm-kv-page.svelte
+++ b/frontend/src/lib/components/swarm/swarm-kv-page.svelte
@@ -186,94 +186,99 @@
title: messages.statTitle,
value: items.length,
icon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
}
]);
</script>
<ResourcePageLayout title={messages.pageTitle} subtitle={messages.pageSubtitle} {icon} {actionButtons} {statCards}>
{#snippet mainContent()}
- <div class={canManage ? 'grid gap-4 lg:grid-cols-[1fr,1.1fr]' : 'grid gap-4'}>
+ <div class={canManage ? 'grid gap-4 lg:grid-cols-2' : 'grid gap-4'}>
{#if canManage}
- <Card.Root class="pt-0">
+ <Card.Root>
<Card.Header>
<Card.Title>{messages.createTitle}</Card.Title>
<Card.Description>{messages.createSubtitle}</Card.Description>
</Card.Header>
- <Card.Content class="space-y-3 pb-6">
- <Input placeholder={messages.namePlaceholder} bind:value={createName} />
- <Textarea rows={10} bind:value={createData} placeholder={messages.dataPlaceholder} class="font-mono text-xs" />
- <IfPermitted perm={permission}>
- <ArcaneButton
- action="create"
- customLabel={messages.createButton}
- onclick={handleCreate}
- disabled={isLoading.create}
- loading={isLoading.create}
- />
- </IfPermitted>
+ <Card.Content>
+ <div class="flex flex-col gap-3">
+ <Input placeholder={messages.namePlaceholder} bind:value={createName} />
+ <Textarea rows={10} bind:value={createData} placeholder={messages.dataPlaceholder} mono size="sm" />
+ <IfPermitted perm={permission}>
+ <ArcaneButton
+ action="create"
+ customLabel={messages.createButton}
+ onclick={handleCreate}
+ disabled={isLoading.create}
+ loading={isLoading.create}
+ />
+ </IfPermitted>
+ </div>
</Card.Content>
</Card.Root>
{/if}
<div class="space-y-4">
- <Card.Root class="pt-0">
+ <Card.Root>
<Card.Header>
<Card.Title>{messages.listTitle}</Card.Title>
<Card.Description>{messages.listSubtitle}</Card.Description>
</Card.Header>
- <Card.Content class="space-y-3 pb-6">
- {#if items.length === 0}
- <div class="py-8 text-center text-sm text-muted-foreground">{messages.empty}</div>
- {:else}
- {#each items as item (item.id)}
- <Card.Root class="overflow-hidden border py-0">
- <button
- type="button"
- class={`w-full px-4 py-3 text-left transition-colors ${selectedId === item.id ? 'bg-muted/50' : 'hover:bg-muted/40'}`}
- onclick={() => toggleItem(item)}
- >
- <div class="flex items-center justify-between gap-2">
- <div class="min-w-0">
- <div class="truncate font-medium">{getSwarmSpecName(item.spec, item.id)}</div>
- <div class="font-mono text-xs text-muted-foreground">{item.id}</div>
+ <Card.Content>
+ <div class="flex flex-col gap-3">
+ {#if items.length === 0}
+ <div class="py-8 text-center text-sm text-muted-foreground">{messages.empty}</div>
+ {:else}
+ {#each items as item (item.id)}
+ <Card.Root class="overflow-hidden">
+ <button
+ type="button"
+ class={`w-full px-4 py-3 text-left transition-colors ${selectedId === item.id ? 'bg-muted/50' : 'hover:bg-muted/40'}`}
+ onclick={() => toggleItem(item)}
+ >
+ <div class="flex items-center justify-between gap-2">
+ <div class="min-w-0">
+ <div class="truncate font-medium">{getSwarmSpecName(item.spec, item.id)}</div>
+ <div class="font-mono text-xs text-muted-foreground">{item.id}</div>
+ </div>
+ <div class="shrink-0 text-xs text-muted-foreground">{formatSwarmTimestamp(item.updatedAt)}</div>
</div>
- <div class="shrink-0 text-xs text-muted-foreground">{formatSwarmTimestamp(item.updatedAt)}</div>
- </div>
- </button>
+ </button>
- {#if selectedId === item.id}
- <div class="space-y-3 border-t px-4 pt-4 pb-5">
- <div class="flex items-center gap-2">
- <div class="font-mono text-xs text-muted-foreground">{item.id}</div>
- <CopyButton text={item.id} />
- </div>
- <p class="text-sm text-muted-foreground">{messages.immutableNotice}</p>
- <Input placeholder={messages.namePlaceholder} bind:value={editName} readonly />
- <Textarea
- rows={12}
- bind:value={editData}
- placeholder={messages.dataPlaceholder}
- class="font-mono text-xs"
- readonly
- />
- {#if canManage}
- <div class="flex flex-wrap items-center gap-2 pt-1">
- <ArcaneButton
- action="remove"
- customLabel={messages.deleteButton}
- icon={TrashIcon}
- onclick={() => handleRemove(item)}
- disabled={isLoading.delete}
- loading={isLoading.delete}
- />
+ {#if selectedId === item.id}
+ <div class="space-y-3 border-t px-4 pt-4 pb-5">
+ <div class="flex items-center gap-2">
+ <div class="font-mono text-xs text-muted-foreground">{item.id}</div>
+ <CopyButton text={item.id} />
</div>
- {/if}
- </div>
- {/if}
- </Card.Root>
- {/each}
- {/if}
+ <p class="text-sm text-muted-foreground">{messages.immutableNotice}</p>
+ <Input placeholder={messages.namePlaceholder} bind:value={editName} readonly />
+ <Textarea
+ rows={12}
+ bind:value={editData}
+ placeholder={messages.dataPlaceholder}
+ mono
+ size="sm"
+ readonly
+ />
+ {#if canManage}
+ <div class="flex flex-wrap items-center gap-2 pt-1">
+ <ArcaneButton
+ action="remove"
+ customLabel={messages.deleteButton}
+ icon={TrashIcon}
+ onclick={() => handleRemove(item)}
+ disabled={isLoading.delete}
+ loading={isLoading.delete}
+ />
+ </div>
+ {/if}
+ </div>
+ {/if}
+ </Card.Root>
+ {/each}
+ {/if}
+ </div>
</Card.Content>
</Card.Root>
</div>
diff --git a/frontend/src/lib/components/tab-bar/tab-bar.svelte b/frontend/src/lib/components/tab-bar/tab-bar.svelte
index 17388130a..47dad8429 100644
--- a/frontend/src/lib/components/tab-bar/tab-bar.svelte
+++ b/frontend/src/lib/components/tab-bar/tab-bar.svelte
@@ -13,12 +13,12 @@
let { items, onValueChange, class: className }: Props = $props();
</script>
-<Tabs.List class={cn('scrollbar-hide inline-flex max-w-full justify-start gap-1 overflow-x-auto', className)}>
+<Tabs.List scrollable class={cn('inline-flex max-w-full justify-start', className)}>
{#each items as item (item.value)}
{@const IconComponent = item.icon}
<Tabs.Trigger
value={item.value}
- class={cn('flex-shrink-0 gap-2 whitespace-nowrap', item.class)}
+ class="flex-shrink-0 whitespace-nowrap"
disabled={item.disabled}
onclick={() => onValueChange(item.value)}
>
@@ -28,7 +28,7 @@
{item.label}
{#if item.badge !== undefined}
<span
- class="ml-1 inline-flex min-w-[18px] items-center justify-center rounded-full bg-primary/20 px-1 text-[11px] font-semibold text-primary dark:bg-primary/25 dark:text-[color-mix(in_oklch,var(--primary)_55%,white)]"
+ class="ml-1 inline-flex min-w-4.5 items-center justify-center rounded-full bg-primary/20 px-1 text-2xs font-semibold text-primary dark:bg-primary/25 dark:text-primary-tint"
>
{item.badge}
</span>
@@ -36,14 +36,3 @@
</Tabs.Trigger>
{/each}
</Tabs.List>
-
-<style>
- :global(.scrollbar-hide) {
- -ms-overflow-style: none; /* IE and Edge */
- scrollbar-width: none; /* Firefox */
- }
-
- :global(.scrollbar-hide::-webkit-scrollbar) {
- display: none; /* Chrome, Safari and Opera */
- }
-</style>
diff --git a/frontend/src/lib/components/tab-bar/types.ts b/frontend/src/lib/components/tab-bar/types.ts
index e0a0b0d83..323c873f3 100644
--- a/frontend/src/lib/components/tab-bar/types.ts
+++ b/frontend/src/lib/components/tab-bar/types.ts
@@ -4,5 +4,4 @@ export interface TabItem {
icon?: any;
badge?: string | number;
disabled?: boolean;
- class?: string;
}
diff --git a/frontend/src/lib/components/terminal/terminal-controls.svelte b/frontend/src/lib/components/terminal/terminal-controls.svelte
index 07a0fb8fb..fefb99175 100644
--- a/frontend/src/lib/components/terminal/terminal-controls.svelte
+++ b/frontend/src/lib/components/terminal/terminal-controls.svelte
@@ -58,7 +58,7 @@
<div class="flex items-center gap-2">
<Select.Root value={selectedShell} type="single" onValueChange={handleShellChange}>
- <Select.Trigger class="h-8 w-[140px]">
+ <Select.Trigger class="h-8 w-35">
{shellLabels[selectedShell] ?? m.select_shell_placeholder()}
</Select.Trigger>
<Select.Content>
@@ -75,7 +75,7 @@
type="text"
bind:value={customShell}
placeholder={m.shell_custom_placeholder()}
- class="h-8 w-[180px]"
+ class="h-8 w-45"
onkeydown={(e) => {
if (e.key === 'Enter') {
handleCustomShellSubmit();
diff --git a/frontend/src/lib/components/terminal/terminal.svelte b/frontend/src/lib/components/terminal/terminal.svelte
index 6fe5fcabb..72abd11fc 100644
--- a/frontend/src/lib/components/terminal/terminal.svelte
+++ b/frontend/src/lib/components/terminal/terminal.svelte
@@ -215,7 +215,7 @@
<svelte:window onresize={handleResize} />
-<div {@attach attachTerminal} class="terminal-container h-full w-full" style="height: {height}"></div>
+<div {@attach attachTerminal} class="terminal-container h-(--terminal-height) w-full" style="--terminal-height: {height}"></div>
<style>
:global(.terminal-container .xterm) {
diff --git a/frontend/src/lib/components/time-format-picker.svelte b/frontend/src/lib/components/time-format-picker.svelte
index d4a510e4f..88547f45c 100644
--- a/frontend/src/lib/components/time-format-picker.svelte
+++ b/frontend/src/lib/components/time-format-picker.svelte
@@ -44,18 +44,18 @@
}));
</script>
-<div class={`time-format-picker ${className}`}>
+<div class={className}>
<Select.Root
type="single"
value={timeFormatStore.current}
onValueChange={(value) => updateTimeFormatMutation.mutate(value as TimeFormat)}
>
- <Select.Trigger {id} class="h-9 w-32 text-sm font-medium" aria-label={m.time_format_select()}>
+ <Select.Trigger {id} class="h-9 w-32" aria-label={m.time_format_select()}>
<span class="truncate">{currentLabel}</span>
</Select.Trigger>
<Select.Content class="max-w-70 min-w-40">
{#each options as option (option.value)}
- <Select.Item class="text-sm" value={option.value}>{option.label}</Select.Item>
+ <Select.Item value={option.value}>{option.label}</Select.Item>
{/each}
</Select.Content>
</Select.Root>
diff --git a/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte b/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte
index 50a742f86..cb58834d8 100644
--- a/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte
+++ b/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte
@@ -7,10 +7,12 @@
ref = $bindable(null),
class: className,
level = 3,
+ size = 'default',
children,
...restProps
}: WithoutChild<AccordionPrimitive.TriggerProps> & {
level?: AccordionPrimitive.HeaderProps['level'];
+ size?: 'default' | 'sm';
} = $props();
</script>
@@ -18,7 +20,8 @@
<AccordionPrimitive.Trigger
bind:ref
class={cn(
- 'flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',
+ 'flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',
+ size === 'sm' && 'py-2',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
index abac28f1f..ffabddf3b 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
@@ -19,7 +19,7 @@
bind:ref
data-slot="alert-dialog-content"
class={cn(
- 'fixed top-[50%] left-[50%] z-[var(--arcane-z-surface)] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg animation-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg',
+ 'fixed top-[50%] left-[50%] z-(--arcane-z-surface) grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg animation-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte
index 17ae3d282..16154e13e 100644
--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte
+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="alert-dialog-overlay"
class={cn(
- 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0',
+ 'fixed inset-0 z-(--arcane-z-overlay) bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/alert/alert-description.svelte b/frontend/src/lib/components/ui/alert/alert-description.svelte
index 2c1ccaabf..cd0b8269e 100644
--- a/frontend/src/lib/components/ui/alert/alert-description.svelte
+++ b/frontend/src/lib/components/ui/alert/alert-description.svelte
@@ -11,6 +11,6 @@
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
-<div bind:this={ref} class={cn('text-sm [&_p]:leading-relaxed', className)} {...restProps}>
+<div bind:this={ref} class={cn('text-sm group-data-[size=sm]/alert:text-xs [&_p]:leading-relaxed', className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/alert/alert.svelte b/frontend/src/lib/components/ui/alert/alert.svelte
index fd471a302..cc576eea3 100644
--- a/frontend/src/lib/components/ui/alert/alert.svelte
+++ b/frontend/src/lib/components/ui/alert/alert.svelte
@@ -2,21 +2,30 @@
import { type VariantProps, tv } from 'tailwind-variants';
export const alertVariants = tv({
- base: '[&>svg]:text-foreground relative w-full rounded-xl border p-4 backdrop-blur-sm bg-card/80 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',
+ base: 'group/alert [&>svg]:text-foreground relative w-full rounded-xl border p-4 backdrop-blur-sm bg-card/80 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',
variants: {
variant: {
default: 'text-foreground',
- warning:
- 'border-amber-600/50 text-amber-600 dark:border-amber-600 dark:text-amber-400 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400',
- destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive'
+ warning: 'border-warning/50 text-warning [&>svg]:text-warning',
+ destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive',
+ info: 'border-info/30 bg-info/10 text-info [&>svg]:text-info',
+ 'warning-subtle': 'border-warning/30 bg-warning/10',
+ 'destructive-subtle': 'border-destructive/30 bg-destructive/10',
+ 'primary-subtle': 'border-primary/20 bg-primary/5 dark:border-primary/30 dark:bg-primary/10'
+ },
+ size: {
+ default: '',
+ sm: 'py-2 [&>svg]:top-2'
}
},
defaultVariants: {
- variant: 'default'
+ variant: 'default',
+ size: 'default'
}
});
export type AlertVariant = VariantProps<typeof alertVariants>['variant'];
+ export type AlertSize = VariantProps<typeof alertVariants>['size'];
</script>
<script lang="ts">
@@ -28,13 +37,15 @@
ref = $bindable(null),
class: className,
variant = 'default',
+ size = 'default',
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
variant?: AlertVariant;
+ size?: AlertSize;
} = $props();
</script>
-<div bind:this={ref} class={cn(alertVariants({ variant }), className)} {...restProps} role="alert">
+<div bind:this={ref} class={cn(alertVariants({ variant, size }), className)} data-size={size} {...restProps} role="alert">
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte b/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
index 863bab82f..cc00fa1ca 100644
--- a/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
+++ b/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
@@ -8,6 +8,9 @@
<AvatarPrimitive.Fallback
bind:ref
data-slot="avatar-fallback"
- class={cn('flex size-full items-center justify-center rounded-full bg-muted', className)}
+ class={cn(
+ 'flex size-full items-center justify-center rounded-inherit bg-primary text-sm font-semibold text-primary-foreground [[data-slot=avatar][data-size=lg]>&]:text-xl',
+ className
+ )}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/avatar/avatar.svelte b/frontend/src/lib/components/ui/avatar/avatar.svelte
index bf8b29763..0f3f68553 100644
--- a/frontend/src/lib/components/ui/avatar/avatar.svelte
+++ b/frontend/src/lib/components/ui/avatar/avatar.svelte
@@ -2,12 +2,18 @@
import { Avatar as AvatarPrimitive } from 'bits-ui';
import { cn } from '#lib/utils.js';
- let { ref = $bindable(null), class: className, ...restProps }: AvatarPrimitive.RootProps = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ size = 'default',
+ ...restProps
+ }: AvatarPrimitive.RootProps & { size?: 'default' | 'lg' } = $props();
</script>
<AvatarPrimitive.Root
bind:ref
data-slot="avatar"
- class={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}
+ data-size={size}
+ class={cn('relative flex shrink-0 overflow-hidden rounded-lg', size === 'lg' ? 'size-16 rounded-xl' : 'size-8', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/badge/badge.svelte b/frontend/src/lib/components/ui/badge/badge.svelte
index 388540040..5960e12a0 100644
--- a/frontend/src/lib/components/ui/badge/badge.svelte
+++ b/frontend/src/lib/components/ui/badge/badge.svelte
@@ -2,7 +2,7 @@
import { type VariantProps, tv } from 'tailwind-variants';
export const badgeVariants = tv({
- base: 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-lg border text-xs font-medium transition-colors focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3',
+ base: 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-lg border text-xs font-medium transition-colors focus-visible:ring-3 [&>svg]:pointer-events-none [&>svg]:size-3',
variants: {
variant: {
default: 'bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent',
@@ -11,38 +11,34 @@
'bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white',
outline:
'backdrop-blur-sm bg-card/60 text-foreground [a&]:hover:backdrop-blur-sm [a&]:hover:bg-card/90 [a&]:hover:text-accent-foreground',
- primary:
- 'text-primary bg-primary/10 border-primary/20 dark:text-[color-mix(in_oklch,var(--primary)_55%,white)] dark:bg-primary/15 dark:border-primary/30',
- red: 'text-red-600 bg-red-500/10 border-red-500/20 dark:text-red-400 dark:bg-red-500/10 dark:border-red-500/30',
- orange:
- 'text-orange-600 bg-orange-500/10 border-orange-500/20 dark:text-orange-400 dark:bg-orange-500/10 dark:border-orange-500/30',
- amber:
- 'text-amber-600 bg-amber-500/10 border-amber-500/20 dark:text-amber-400 dark:bg-amber-500/10 dark:border-amber-500/30',
- lime: 'text-lime-600 bg-lime-500/10 border-lime-500/20 dark:text-lime-400 dark:bg-lime-500/10 dark:border-lime-500/30',
- green:
- 'text-emerald-600 bg-emerald-500/10 border-emerald-500/20 dark:text-emerald-400 dark:bg-emerald-500/10 dark:border-emerald-500/30',
- emerald:
- 'text-emerald-600 bg-emerald-500/10 border-emerald-500/20 dark:text-emerald-400 dark:bg-emerald-500/10 dark:border-emerald-500/30',
- teal: 'text-teal-600 bg-teal-500/10 border-teal-500/20 dark:text-teal-400 dark:bg-teal-500/10 dark:border-teal-500/30',
- cyan: 'text-cyan-600 bg-cyan-500/10 border-cyan-500/20 dark:text-cyan-400 dark:bg-cyan-500/10 dark:border-cyan-500/30',
- sky: 'text-sky-600 bg-sky-500/10 border-sky-500/20 dark:text-sky-400 dark:bg-sky-500/10 dark:border-sky-500/30',
- blue: 'text-blue-600 bg-blue-500/10 border-blue-500/20 dark:text-blue-400 dark:bg-blue-500/10 dark:border-blue-500/30',
- indigo:
- 'text-indigo-600 bg-indigo-500/10 border-indigo-500/20 dark:text-indigo-400 dark:bg-indigo-500/10 dark:border-indigo-500/30',
- violet:
- 'text-violet-600 bg-violet-500/10 border-violet-500/20 dark:text-violet-400 dark:bg-violet-500/10 dark:border-violet-500/30',
- purple:
- 'text-purple-600 bg-purple-500/10 border-purple-500/20 dark:text-purple-400 dark:bg-purple-500/10 dark:border-purple-500/30',
- fuchsia:
- 'text-fuchsia-600 bg-fuchsia-500/10 border-fuchsia-500/20 dark:text-fuchsia-400 dark:bg-fuchsia-500/10 dark:border-fuchsia-500/30',
- pink: 'text-pink-600 bg-pink-500/10 border-pink-500/20 dark:text-pink-400 dark:bg-pink-500/10 dark:border-pink-500/30',
- rose: 'text-rose-600 bg-rose-500/10 border-rose-500/20 dark:text-rose-400 dark:bg-rose-500/10 dark:border-rose-500/30',
+ primary: 'text-primary bg-primary/10 border-primary/20 dark:text-primary-tint dark:bg-primary/15 dark:border-primary/30',
+ red: 'text-destructive bg-destructive/10 border-destructive/20 dark:border-destructive/30',
+ orange: 'text-orange bg-orange/10 border-orange/20 dark:border-orange/30',
+ amber: 'text-warning bg-warning/10 border-warning/20 dark:border-warning/30',
+ lime: 'text-lime bg-lime/10 border-lime/20 dark:border-lime/30',
+ green: 'text-success bg-success/10 border-success/20 dark:border-success/30',
+ emerald: 'text-success bg-success/10 border-success/20 dark:border-success/30',
+ teal: 'text-teal bg-teal/10 border-teal/20 dark:border-teal/30',
+ cyan: 'text-cyan bg-cyan/10 border-cyan/20 dark:border-cyan/30',
+ sky: 'text-sky bg-sky/10 border-sky/20 dark:border-sky/30',
+ blue: 'text-info bg-info/10 border-info/20 dark:border-info/30',
+ indigo: 'text-indigo bg-indigo/10 border-indigo/20 dark:border-indigo/30',
+ violet: 'text-violet bg-violet/10 border-violet/20 dark:border-violet/30',
+ purple: 'text-purple bg-purple/10 border-purple/20 dark:border-purple/30',
+ fuchsia: 'text-fuchsia bg-fuchsia/10 border-fuchsia/20 dark:border-fuchsia/30',
+ pink: 'text-pink bg-pink/10 border-pink/20 dark:border-pink/30',
+ rose: 'text-rose bg-rose/10 border-rose/20 dark:border-rose/30',
gray: 'text-muted-foreground bg-muted/50 border-border/50 dark:bg-muted/20 dark:border-border/20'
},
size: {
- sm: 'px-2 py-0.5 text-[11px] [&>svg]:size-2.5',
+ xs: 'px-1.5 py-0 text-3xs leading-4 [&>svg]:size-2.5',
+ sm: 'px-2 py-0.5 text-2xs [&>svg]:size-2.5',
default: 'px-2.5 py-1',
- lg: 'px-3 py-1.5 text-[13px]'
+ lg: 'px-3 py-1.5 text-xs-plus'
+ },
+ mono: {
+ true: 'font-mono',
+ false: ''
},
minWidth: {
none: '',
@@ -60,7 +56,8 @@
variant: 'default',
size: 'default',
minWidth: 'none',
- hoverEffect: 'lift'
+ hoverEffect: 'lift',
+ mono: false
}
});
@@ -82,6 +79,7 @@
size = 'default',
minWidth = 'none',
hoverEffect = 'lift',
+ mono = false,
children,
...restProps
}: WithElementRef<HTMLAnchorAttributes> & {
@@ -89,6 +87,8 @@
size?: BadgeSize;
minWidth?: BadgeMinWidth;
hoverEffect?: BadgeHoverEffect;
+ /** Monospace text for code-like values. */
+ mono?: boolean;
} = $props();
void cn;
</script>
@@ -98,7 +98,7 @@
bind:this={ref}
data-slot="badge"
{href}
- class={cn(badgeVariants({ variant, size, minWidth, hoverEffect }), className)}
+ class={cn(badgeVariants({ variant, size, minWidth, hoverEffect, mono }), className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/button-group/button-group.svelte b/frontend/src/lib/components/ui/button-group/button-group.svelte
index cf3c8d5d8..28b24563c 100644
--- a/frontend/src/lib/components/ui/button-group/button-group.svelte
+++ b/frontend/src/lib/components/ui/button-group/button-group.svelte
@@ -2,7 +2,7 @@
import { tv, type VariantProps } from 'tailwind-variants';
const buttonGroupVariants = tv({
- base: "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-[var(--arcane-z-raised)] has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-xl [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
+ base: "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-(--arcane-z-raised) has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-xl [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
variants: {
orientation: {
horizontal:
diff --git a/frontend/src/lib/components/ui/button/button.svelte b/frontend/src/lib/components/ui/button/button.svelte
index 1bec4c218..15f097092 100644
--- a/frontend/src/lib/components/ui/button/button.svelte
+++ b/frontend/src/lib/components/ui/button/button.svelte
@@ -5,7 +5,7 @@
import { type VariantProps, tv } from 'tailwind-variants';
export const buttonVariants = tv({
- base: "inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-xl border text-sm font-medium outline-none transition-[background-color,border-color,color,box-shadow,transform,filter] duration-200 ease-out focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-[0.985] disabled:pointer-events-none disabled:opacity-55 disabled:saturate-[0.82] disabled:shadow-none aria-disabled:pointer-events-none aria-disabled:opacity-55 aria-disabled:saturate-[0.82] aria-disabled:shadow-none aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ base: "inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-xl border text-sm font-medium outline-none transition duration-200 ease-out focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background active:scale-98 disabled:pointer-events-none disabled:opacity-55 disabled:saturate-[0.82] disabled:shadow-none aria-disabled:pointer-events-none aria-disabled:opacity-55 aria-disabled:saturate-[0.82] aria-disabled:shadow-none aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
variants: {
variant: {
default:
@@ -24,7 +24,8 @@
default: 'h-9 px-4 py-2 has-[svg]:px-3',
sm: 'h-8 gap-1.5 rounded-lg px-3 has-[svg]:px-2.5',
lg: 'h-10 rounded-xl px-6 has-[svg]:px-4',
- icon: 'size-9 p-0'
+ icon: 'size-9 p-0',
+ inline: 'h-auto p-0'
},
hoverEffect: {
none: '',
diff --git a/frontend/src/lib/components/ui/calendar/calendar-cell.svelte b/frontend/src/lib/components/ui/calendar/calendar-cell.svelte
index e8fbdae08..54ee45e1c 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-cell.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-cell.svelte
@@ -8,7 +8,7 @@
<CalendarPrimitive.Cell
bind:ref
class={cn(
- 'relative size-(--cell-size) p-0 text-center text-sm focus-within:z-[var(--arcane-z-sticky)] [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md',
+ 'relative size-(--cell-size) p-0 text-center text-sm focus-within:z-(--arcane-z-sticky) [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte b/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte
index 0b69b06c1..73f2e1bbb 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte
@@ -7,6 +7,6 @@
<CalendarPrimitive.HeadCell
bind:ref
- class={cn('w-(--cell-size) rounded-md text-[0.8rem] font-normal text-muted-foreground', className)}
+ class={cn('w-(--cell-size) rounded-md text-xs font-normal text-muted-foreground', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte b/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte
index 2a6952d4c..2b9517690 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-month-select.svelte
@@ -14,7 +14,7 @@
<span
class={cn(
- 'relative flex rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50',
+ 'relative flex rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-3 has-focus:ring-ring/50',
className
)}
>
diff --git a/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte b/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte
index a92d2b519..3d3fa4306 100644
--- a/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar-year-select.svelte
@@ -13,7 +13,7 @@
<span
class={cn(
- 'relative flex rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50',
+ 'relative flex rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-3 has-focus:ring-ring/50',
className
)}
>
diff --git a/frontend/src/lib/components/ui/calendar/calendar.svelte b/frontend/src/lib/components/ui/calendar/calendar.svelte
index 12ed665db..a23676e3f 100644
--- a/frontend/src/lib/components/ui/calendar/calendar.svelte
+++ b/frontend/src/lib/components/ui/calendar/calendar.svelte
@@ -57,6 +57,7 @@ Discriminated Unions + Destructing (required for bindable) do not
get along, so we shut typescript up by casting `value` to `never`.
-->
<CalendarPrimitive.Root
+ data-slot="calendar"
bind:value={value as never}
bind:ref
bind:placeholder
diff --git a/frontend/src/lib/components/ui/card/card-content.svelte b/frontend/src/lib/components/ui/card/card-content.svelte
index def311491..38b783de9 100644
--- a/frontend/src/lib/components/ui/card/card-content.svelte
+++ b/frontend/src/lib/components/ui/card/card-content.svelte
@@ -10,6 +10,16 @@
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
-<div bind:this={ref} data-slot="card-content" class={cn('px-6', className)} {...restProps}>
+<!-- Padding follows the card: compact in `size="sm"` cards, and lined up with a plain (icon-less) header above it. -->
+<div
+ bind:this={ref}
+ data-slot="card-content"
+ class={cn(
+ 'p-4 [[data-slot=card][data-size=sm]>&]:p-3',
+ '[[data-slot=card-header][data-variant=plain]~&]:px-6 [[data-slot=card-header][data-variant=plain]~&]:pt-0 [[data-slot=card-header][data-variant=plain]~&]:pb-6',
+ className
+ )}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/card/card-header.svelte b/frontend/src/lib/components/ui/card/card-header.svelte
index 1f1c893b4..0678c3a73 100644
--- a/frontend/src/lib/components/ui/card/card-header.svelte
+++ b/frontend/src/lib/components/ui/card/card-header.svelte
@@ -10,6 +10,7 @@
iconVariant = 'primary',
compact = false,
enableHover = false,
+ divider = false,
loading = false,
children,
...restProps
@@ -19,31 +20,35 @@
iconVariant?: 'primary' | 'emerald' | 'red' | 'amber' | 'blue' | 'purple' | 'cyan' | 'orange' | 'indigo' | 'pink';
compact?: boolean;
enableHover?: boolean;
+ /** Rule between the header and the content below. */
+ divider?: boolean;
loading?: boolean;
}
> = $props();
const iconVariantClasses = {
primary: 'bg-primary/10 text-primary ring-1 ring-primary/20',
- emerald: 'bg-emerald-500/10 text-emerald-600 ring-1 ring-emerald-500/20 dark:text-emerald-400',
- red: 'bg-red-500/10 text-red-600 ring-1 ring-red-500/20 dark:text-red-400',
- amber: 'bg-amber-500/10 text-amber-600 ring-1 ring-amber-500/20 dark:text-amber-400',
- blue: 'bg-blue-500/10 text-blue-600 ring-1 ring-blue-500/20 dark:text-blue-400',
- purple: 'bg-purple-500/10 text-purple-600 ring-1 ring-purple-500/20 dark:text-purple-400',
- cyan: 'bg-cyan-500/10 text-cyan-600 ring-1 ring-cyan-500/20 dark:text-cyan-400',
- orange: 'bg-orange-500/10 text-orange-600 ring-1 ring-orange-500/20 dark:text-orange-400',
- indigo: 'bg-indigo-500/10 text-indigo-600 ring-1 ring-indigo-500/20 dark:text-indigo-400',
- pink: 'bg-pink-500/10 text-pink-600 ring-1 ring-pink-500/20 dark:text-pink-400'
+ emerald: 'bg-success/10 text-success ring-1 ring-success/20',
+ red: 'bg-destructive/10 text-destructive ring-1 ring-destructive/20',
+ amber: 'bg-warning/10 text-warning ring-1 ring-warning/20',
+ blue: 'bg-info/10 text-info ring-1 ring-info/20',
+ purple: 'bg-purple/10 text-purple ring-1 ring-purple/20',
+ cyan: 'bg-cyan/10 text-cyan ring-1 ring-cyan/20',
+ orange: 'bg-orange/10 text-orange ring-1 ring-orange/20',
+ indigo: 'bg-indigo/10 text-indigo ring-1 ring-indigo/20',
+ pink: 'bg-pink/10 text-pink ring-1 ring-pink/20'
};
</script>
<div
bind:this={ref}
data-slot="card-header"
+ data-variant={icon ? (compact ? 'compact' : 'icon') : 'plain'}
class={cn(
- '@container/card-header relative grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]',
+ '@container/card-header relative grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-content-action',
icon && 'flex flex-row items-center space-y-0',
icon && compact ? 'gap-2 p-2' : icon ? 'gap-3 p-4' : 'py-5',
+ divider && 'border-b',
icon && enableHover && 'transition-colors group-[&:not(:has(button:hover,a:hover,[role=button]:hover))]:hover:bg-muted/30',
className
)}
diff --git a/frontend/src/lib/components/ui/card/card.svelte b/frontend/src/lib/components/ui/card/card.svelte
index 4efa202d0..5f617a3ab 100644
--- a/frontend/src/lib/components/ui/card/card.svelte
+++ b/frontend/src/lib/components/ui/card/card.svelte
@@ -6,12 +6,21 @@
ref = $bindable(null),
class: className,
variant = 'default',
+ size = 'default',
+ interactive = false,
+ selected = false,
onclick,
children,
...restProps
}: WithElementRef<
HTMLAttributes<HTMLDivElement> & {
variant?: 'default' | 'subtle' | 'outlined' | 'transparent';
+ /** `sm` tightens the content padding for dense tiles. */
+ size?: 'default' | 'sm';
+ /** Hover affordance for cards that act as links or choices. */
+ interactive?: boolean;
+ /** Highlights the current or chosen card. */
+ selected?: boolean;
onclick?: (e: MouseEvent) => void;
}
> = $props();
@@ -47,12 +56,15 @@
<div
bind:this={ref}
data-slot="card"
+ data-size={size}
class={cn(
'group relative isolate gap-0 overflow-hidden rounded-xl border border-border/70 p-0 text-card-foreground transition-colors duration-200',
getVariantClasses(variant),
onclick
? 'cursor-pointer [&:not(:has(button:hover,a:hover,[role=button]:hover))]:hover:bg-muted/60 [&:not(:has(button:hover,a:hover,[role=button]:hover))]:hover:shadow-sm'
: '',
+ interactive && 'transition hover:border-primary/30 hover:shadow-md',
+ selected && 'border-primary/40 bg-primary/5',
className
)}
onclick={onclick ? handleClick : undefined}
diff --git a/frontend/src/lib/components/ui/checkbox/checkbox.svelte b/frontend/src/lib/components/ui/checkbox/checkbox.svelte
index b77d34c08..afeb0cecf 100644
--- a/frontend/src/lib/components/ui/checkbox/checkbox.svelte
+++ b/frontend/src/lib/components/ui/checkbox/checkbox.svelte
@@ -15,7 +15,7 @@
bind:ref
data-slot="checkbox"
class={cn(
- 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:aria-invalid:ring-destructive/40',
+ 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input bg-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:aria-invalid:ring-destructive/40',
className
)}
bind:checked
@@ -43,7 +43,7 @@
/>
</svg>
{:else if indeterminate}
- <span class="absolute top-1/2 left-1/2 h-[2px] w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-current"></span>
+ <span class="absolute top-1/2 left-1/2 h-0.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-current"></span>
{/if}
</div>
{/snippet}
diff --git a/frontend/src/lib/components/ui/command/command-list.svelte b/frontend/src/lib/components/ui/command/command-list.svelte
index 007013364..51df6bf45 100644
--- a/frontend/src/lib/components/ui/command/command-list.svelte
+++ b/frontend/src/lib/components/ui/command/command-list.svelte
@@ -8,6 +8,6 @@
<CommandPrimitive.List
bind:ref
data-slot="command-list"
- class={cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', className)}
+ class={cn('max-h-75 scroll-py-1 overflow-x-hidden overflow-y-auto', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/command/command.svelte b/frontend/src/lib/components/ui/command/command.svelte
index 8ae741c18..db9b9a2bd 100644
--- a/frontend/src/lib/components/ui/command/command.svelte
+++ b/frontend/src/lib/components/ui/command/command.svelte
@@ -9,6 +9,9 @@
bind:value
bind:ref
data-slot="command"
- class={cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground', className)}
+ class={cn(
+ 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground [[data-slot=popover-content]_&]:rounded-none [[data-slot=popover-content]_&]:bg-transparent',
+ className
+ )}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/copy-button/types.ts b/frontend/src/lib/components/ui/copy-button/types.ts
index 3829c6f13..02db8173e 100644
--- a/frontend/src/lib/components/ui/copy-button/types.ts
+++ b/frontend/src/lib/components/ui/copy-button/types.ts
@@ -9,7 +9,8 @@ import type { HTMLAttributes } from 'svelte/elements';
import type { WithChildren, WithoutChildren } from 'bits-ui';
export type CopyButtonPropsWithoutHTML = WithChildren<
- Pick<ButtonPropsWithoutHTML, 'size' | 'variant'> & {
+ Pick<ButtonPropsWithoutHTML, 'variant'> & {
+ size?: Exclude<ButtonPropsWithoutHTML['size'], 'inline'>;
ref?: HTMLButtonElement | null;
text: string;
icon?: Snippet<[]>;
diff --git a/frontend/src/lib/components/ui/dialog/dialog-content.svelte b/frontend/src/lib/components/ui/dialog/dialog-content.svelte
index 0e80238c8..26e634919 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-content.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-content.svelte
@@ -13,12 +13,15 @@
children,
showCloseButton = true,
overlayClass,
+ sectioned = false,
...restProps
}: WithoutChildrenOrChild<DialogPrimitive.ContentProps> & {
portalProps?: DialogPrimitive.PortalProps;
children: Snippet;
showCloseButton?: boolean;
overlayClass?: string;
+ /** Flush layout for dialogs built from full-bleed sections; the footer becomes a ruled section. */
+ sectioned?: boolean;
} = $props();
</script>
@@ -26,9 +29,11 @@
<Overlay class={overlayClass} />
<DialogPrimitive.Content
bind:ref
+ data-sectioned={sectioned || undefined}
data-slot="dialog-content"
class={cn(
- 'fixed top-[50%] left-[50%] z-[var(--arcane-z-surface)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] grid-cols-[minmax(0,1fr)] gap-4 rounded-2xl border border-border/30 bg-white p-6 text-foreground shadow-lg backdrop-blur-md animation-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-2xl dark:border-border/80 dark:bg-surface/10',
+ 'fixed top-[50%] left-[50%] z-(--arcane-z-surface) grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] grid-cols-[minmax(0,1fr)] gap-4 rounded-2xl border border-border/30 bg-white p-6 text-foreground shadow-lg backdrop-blur-md animation-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-2xl dark:border-border/80 dark:bg-surface/10',
+ sectioned && 'gap-0 p-0',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dialog/dialog-footer.svelte b/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
index a049eea70..9c63e9827 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
@@ -13,7 +13,11 @@
<div
bind:this={ref}
data-slot="dialog-footer"
- class={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}
+ class={cn(
+ 'flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',
+ '[[data-sectioned]>&]:border-t [[data-sectioned]>&]:border-border/60 [[data-sectioned]>&]:px-6 [[data-sectioned]>&]:py-4',
+ className
+ )}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte b/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
index a01a01d48..197429de6 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="dialog-overlay"
class={cn(
- 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
+ 'fixed inset-0 z-(--arcane-z-overlay) bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/drawer/drawer-content.svelte b/frontend/src/lib/components/ui/drawer/drawer-content.svelte
index b8b8d6bbd..d4b045ba2 100644
--- a/frontend/src/lib/components/ui/drawer/drawer-content.svelte
+++ b/frontend/src/lib/components/ui/drawer/drawer-content.svelte
@@ -20,9 +20,9 @@
bind:ref
data-slot="drawer-content"
class={cn(
- 'group/drawer-content fixed z-[var(--arcane-z-surface)] flex h-auto flex-col border-border/70 bg-white/10 text-foreground backdrop-blur-md dark:bg-surface/10',
- 'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b',
- 'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t',
+ 'group/drawer-content fixed z-(--arcane-z-surface) flex h-auto flex-col border bg-background/95 text-foreground shadow-sm backdrop-blur-md dark:bg-surface/10',
+ 'data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-screen-80 data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b',
+ 'data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-screen-80 data-[vaul-drawer-direction=bottom]:rounded-t-3xl data-[vaul-drawer-direction=bottom]:border-t',
'data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm',
'data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm',
className
@@ -30,7 +30,7 @@
{...restProps}
>
<div
- class="mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-foreground/25 group-data-[vaul-drawer-direction=bottom]/drawer-content:block dark:bg-surface/60"
+ class="mx-auto mt-4 hidden h-2 w-25 shrink-0 rounded-full bg-foreground/25 group-data-[vaul-drawer-direction=bottom]/drawer-content:block dark:bg-surface/60"
></div>
{@render children?.()}
</DrawerPrimitive.Content>
diff --git a/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte b/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte
index 7bd7b02f9..46dcd978d 100644
--- a/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte
+++ b/frontend/src/lib/components/ui/drawer/drawer-overlay.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="drawer-overlay"
class={cn(
- 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
+ 'fixed inset-0 z-(--arcane-z-overlay) bg-black/40 backdrop-blur-xl data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
index 3c8bb9407..bdb6ca3b1 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
@@ -20,7 +20,7 @@
preventScroll={false}
{sideOffset}
class={cn(
- 'z-[var(--arcane-z-surface)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl border bg-background/95 p-1 text-popover-foreground shadow-md backdrop-blur-2xl backdrop-saturate-150 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:bg-popover/20',
+ 'z-(--arcane-z-surface) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl border bg-background/95 p-1 text-popover-foreground shadow-md backdrop-blur-2xl backdrop-saturate-150 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:bg-popover/20',
'max-h-(--radix-dropdown-menu-content-available-height) max-w-[calc(100vw-2rem)]',
'max-[768px]:max-w-[calc(100vw-1rem)]',
className
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
index dadad376c..468602c69 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="dropdown-menu-sub-content"
class={cn(
- 'z-[var(--arcane-z-surface)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-xl border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
+ 'z-(--arcane-z-surface) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-xl border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/empty/empty-description.svelte b/frontend/src/lib/components/ui/empty/empty-description.svelte
index 3d90c0c98..6440b6918 100644
--- a/frontend/src/lib/components/ui/empty/empty-description.svelte
+++ b/frontend/src/lib/components/ui/empty/empty-description.svelte
@@ -7,7 +7,10 @@
<div
data-slot="empty-description"
- class={cn('text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary', className)}
+ class={cn(
+ 'text-sm/relaxed wrap-break-word text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',
+ className
+ )}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/empty/empty.svelte b/frontend/src/lib/components/ui/empty/empty.svelte
index f46b99585..4345391bf 100644
--- a/frontend/src/lib/components/ui/empty/empty.svelte
+++ b/frontend/src/lib/components/ui/empty/empty.svelte
@@ -2,13 +2,23 @@
import { cn } from '#lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { class: className, children, ...restProps }: HTMLAttributes<HTMLDivElement> = $props();
+ let {
+ class: className,
+ variant = 'default',
+ children,
+ ...restProps
+ }: HTMLAttributes<HTMLDivElement> & {
+ /** `card` sits on a card surface; `plain` drops the frame for embedded lists. */
+ variant?: 'default' | 'card' | 'plain';
+ } = $props();
</script>
<div
data-slot="empty"
class={cn(
'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border border-dashed border-border/50 bg-muted/20 p-6 text-center text-balance md:p-12',
+ variant === 'card' && 'bg-card/30 py-12',
+ variant === 'plain' && 'border-transparent bg-transparent py-12',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/image-cropper/image-cropper-upload-trigger.svelte b/frontend/src/lib/components/ui/image-cropper/image-cropper-upload-trigger.svelte
index dfa856fe0..a210c13b9 100644
--- a/frontend/src/lib/components/ui/image-cropper/image-cropper-upload-trigger.svelte
+++ b/frontend/src/lib/components/ui/image-cropper/image-cropper-upload-trigger.svelte
@@ -24,7 +24,10 @@
if (event.defaultPrevented) return;
document.getElementById(triggerState.rootState.id)?.click();
}}
- class={cn('hover:cursor-pointer', className)}
+ class={cn(
+ 'group/avatar relative overflow-hidden rounded-xl hover:cursor-pointer focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-70',
+ className
+ )}
>
{@render children?.()}
</button>
diff --git a/frontend/src/lib/components/ui/image-cropper/image-cropper.svelte b/frontend/src/lib/components/ui/image-cropper/image-cropper.svelte
index e4a2b75d2..2460a1a8d 100644
--- a/frontend/src/lib/components/ui/image-cropper/image-cropper.svelte
+++ b/frontend/src/lib/components/ui/image-cropper/image-cropper.svelte
@@ -41,5 +41,5 @@
}}
type="file"
{id}
- style="display: none;"
+ class="hidden"
/>
diff --git a/frontend/src/lib/components/ui/input-group/input-group-input.svelte b/frontend/src/lib/components/ui/input-group/input-group-input.svelte
index 5097425b9..29b0647db 100644
--- a/frontend/src/lib/components/ui/input-group/input-group-input.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group-input.svelte
@@ -2,13 +2,21 @@
import { cn } from '#lib/utils.js';
import type { HTMLInputAttributes } from 'svelte/elements';
- let { value = $bindable(), class: className, ...props }: HTMLInputAttributes & { value?: string } = $props();
+ let {
+ value = $bindable(),
+ size = 'default',
+ mono = false,
+ class: className,
+ ...props
+ }: Omit<HTMLInputAttributes, 'size'> & { value?: string; size?: 'default' | 'sm'; mono?: boolean } = $props();
</script>
<input
data-slot="input-group-control"
class={cn(
'flex h-full w-full min-w-0 flex-1 bg-transparent px-3 py-1 text-base transition-all outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ size === 'sm' && 'text-xs md:text-xs',
+ mono && 'font-mono',
className
)}
bind:value
diff --git a/frontend/src/lib/components/ui/input-group/input-group.svelte b/frontend/src/lib/components/ui/input-group/input-group.svelte
index 754ccda2f..72abdcb3b 100644
--- a/frontend/src/lib/components/ui/input-group/input-group.svelte
+++ b/frontend/src/lib/components/ui/input-group/input-group.svelte
@@ -19,7 +19,7 @@
'has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3',
// Focus state.
- 'has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:bg-input/90 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:backdrop-blur-md',
+ 'has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:bg-input/90 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:backdrop-blur-md',
// Error state.
'has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40',
diff --git a/frontend/src/lib/components/ui/input/input.svelte b/frontend/src/lib/components/ui/input/input.svelte
index 9eccd22fa..776549bdc 100644
--- a/frontend/src/lib/components/ui/input/input.svelte
+++ b/frontend/src/lib/components/ui/input/input.svelte
@@ -5,10 +5,23 @@
type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
type Props = WithElementRef<
- Omit<HTMLInputAttributes, 'type'> & ({ type: 'file'; files?: FileList } | { type?: InputType; files?: undefined })
- >;
+ Omit<HTMLInputAttributes, 'type' | 'size'> & ({ type: 'file'; files?: FileList } | { type?: InputType; files?: undefined })
+ > & {
+ size?: 'default' | 'sm' | 'lg';
+ /** Monospace text for code-like values (paths, IDs, env vars). */
+ mono?: boolean;
+ };
- let { ref = $bindable(null), value = $bindable(), type, files = $bindable(), class: className, ...restProps }: Props = $props();
+ let {
+ ref = $bindable(null),
+ value = $bindable(),
+ type,
+ files = $bindable(),
+ size = 'default',
+ mono = false,
+ class: className,
+ ...restProps
+ }: Props = $props();
</script>
{#if type === 'file'}
@@ -17,6 +30,9 @@
data-slot="input"
class={cn(
'flex h-10 w-full rounded-lg border bg-input/80 px-3 py-2 text-base ring-offset-background backdrop-blur-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:bg-input/90 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:backdrop-blur-md focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ size === 'sm' && 'text-xs md:text-xs',
+ size === 'lg' && 'text-lg font-semibold md:text-lg',
+ mono && 'font-mono',
className
)}
type="file"
@@ -30,8 +46,11 @@
data-slot="input"
class={cn(
'flex h-9 w-full min-w-0 rounded-lg bg-input/80 px-3 py-1 text-base ring-offset-background backdrop-blur-sm transition-all outline-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
- 'focus-visible:border-ring focus-visible:bg-input/90 focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:backdrop-blur-md',
+ 'focus-visible:border-ring focus-visible:bg-input/90 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:backdrop-blur-md',
'aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
+ size === 'sm' && 'text-xs md:text-xs',
+ size === 'lg' && 'text-lg font-semibold md:text-lg',
+ mono && 'font-mono',
className
)}
{type}
diff --git a/frontend/src/lib/components/ui/item/item.svelte b/frontend/src/lib/components/ui/item/item.svelte
index 4b11d260f..67dbb5887 100644
--- a/frontend/src/lib/components/ui/item/item.svelte
+++ b/frontend/src/lib/components/ui/item/item.svelte
@@ -2,7 +2,7 @@
import { tv, type VariantProps } from 'tailwind-variants';
export const itemVariants = tv({
- base: 'group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]',
+ base: 'group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-3',
variants: {
variant: {
default: 'bg-transparent',
diff --git a/frontend/src/lib/components/ui/kbd/kbd.svelte b/frontend/src/lib/components/ui/kbd/kbd.svelte
index d9006b464..643e4b394 100644
--- a/frontend/src/lib/components/ui/kbd/kbd.svelte
+++ b/frontend/src/lib/components/ui/kbd/kbd.svelte
@@ -11,7 +11,7 @@
class={cn(
'pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none',
"[&_svg:not([class*='size-'])]:size-3",
- '[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10',
+ '[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-popover-foreground dark:[[data-slot=tooltip-content]_&]:bg-background/10',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/label/label.svelte b/frontend/src/lib/components/ui/label/label.svelte
index a0c2e0b45..aa9d4318a 100644
--- a/frontend/src/lib/components/ui/label/label.svelte
+++ b/frontend/src/lib/components/ui/label/label.svelte
@@ -1,12 +1,48 @@
+<script lang="ts" module>
+ import { type VariantProps, tv } from 'tailwind-variants';
+
+ export const labelVariants = tv({
+ base: 'text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
+ variants: {
+ variant: {
+ default: '',
+ muted: 'text-muted-foreground',
+ destructive: 'text-destructive'
+ },
+ size: {
+ default: '',
+ xs: 'text-xs',
+ base: 'text-base'
+ },
+ weight: {
+ medium: '',
+ normal: 'font-normal'
+ }
+ },
+ defaultVariants: {
+ variant: 'default',
+ size: 'default',
+ weight: 'medium'
+ }
+ });
+
+ export type LabelVariant = VariantProps<typeof labelVariants>['variant'];
+ export type LabelSize = VariantProps<typeof labelVariants>['size'];
+ export type LabelWeight = VariantProps<typeof labelVariants>['weight'];
+</script>
+
<script lang="ts">
import { Label as LabelPrimitive } from 'bits-ui';
import { cn } from '#lib/utils.js';
- let { ref = $bindable(null), class: className, ...restProps }: LabelPrimitive.RootProps = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ variant = 'default',
+ size = 'default',
+ weight = 'medium',
+ ...restProps
+ }: LabelPrimitive.RootProps & { variant?: LabelVariant; size?: LabelSize; weight?: LabelWeight } = $props();
</script>
-<LabelPrimitive.Root
- bind:ref
- class={cn('text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className)}
- {...restProps}
-/>
+<LabelPrimitive.Root bind:ref class={cn(labelVariants({ variant, size, weight }), className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/popover/popover-content.svelte b/frontend/src/lib/components/ui/popover/popover-content.svelte
index 5b4510611..0e2683f29 100644
--- a/frontend/src/lib/components/ui/popover/popover-content.svelte
+++ b/frontend/src/lib/components/ui/popover/popover-content.svelte
@@ -6,12 +6,18 @@
ref = $bindable(null),
class: className,
sideOffset = 4,
+ size = 'default',
+ variant = 'default',
align = 'center',
portalProps,
children,
...restProps
}: PopoverPrimitive.ContentProps & {
portalProps?: PopoverPrimitive.PortalProps;
+ /** `sm` tightens padding for dense option lists. */
+ size?: 'default' | 'sm';
+ /** `tooltip` matches Tooltip.Content (touch fallback); `panel` drops padding for rich content. */
+ variant?: 'default' | 'tooltip' | 'panel';
} = $props();
</script>
@@ -22,7 +28,13 @@
{sideOffset}
{align}
class={cn(
- 'z-[var(--arcane-z-surface)] w-72 origin-(--bits-popover-content-transform-origin) overflow-hidden rounded-xl border bg-background/95 p-4 text-popover-foreground shadow-md outline-hidden backdrop-blur-2xl backdrop-saturate-150 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-popover/20',
+ 'z-(--arcane-z-surface) w-72 origin-(--bits-popover-content-transform-origin) overflow-hidden rounded-xl border bg-background/95 p-4 text-popover-foreground shadow-md outline-hidden backdrop-blur-2xl backdrop-saturate-150 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-popover/20',
+ size === 'sm' && 'p-2',
+ variant === 'tooltip' &&
+ 'w-fit max-w-(--max-width-tooltip) border-border/50 bg-popover/90 px-3 py-1.5 text-xs text-balance shadow-lg backdrop-blur-md',
+ variant === 'panel' && 'p-0',
+ // Command lists and calendars bring their own padding.
+ 'has-[>[data-slot=calendar]]:p-0 has-[>[data-slot=command]]:p-0',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/progress/progress.svelte b/frontend/src/lib/components/ui/progress/progress.svelte
index 0a464ffcb..44fcc3f34 100644
--- a/frontend/src/lib/components/ui/progress/progress.svelte
+++ b/frontend/src/lib/components/ui/progress/progress.svelte
@@ -8,8 +8,12 @@
max = 100,
value,
indeterminate = false,
+ tone = 'default',
...restProps
- }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> & { indeterminate?: boolean } = $props();
+ }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> & {
+ indeterminate?: boolean;
+ tone?: 'default' | 'warning' | 'destructive';
+ } = $props();
</script>
<ProgressPrimitive.Root
@@ -25,8 +29,13 @@
</div>
{:else}
<div
- class="h-full w-full flex-1 bg-primary transition-all"
- style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}
+ class={cn(
+ 'h-full w-full flex-1 translate-x-(--progress-offset) transition-all',
+ tone === 'default' && 'bg-primary',
+ tone === 'warning' && 'bg-warning',
+ tone === 'destructive' && 'bg-destructive'
+ )}
+ style={`--progress-offset: -${100 - (100 * (value ?? 0)) / (max ?? 1)}%`}
></div>
{/if}
</ProgressPrimitive.Root>
diff --git a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
index c8960d136..eaf696a71 100644
--- a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
+++ b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="radio-group-item"
class={cn(
- 'aspect-square size-4 shrink-0 rounded-full border border-input bg-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
+ 'aspect-square size-4 shrink-0 rounded-full border border-input bg-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
index dc8780878..072c6c518 100644
--- a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
+++ b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
@@ -85,8 +85,8 @@
{/if}
<Dialog.Content
class={cn(
- 'max-h-[calc(100vh-2rem)] grid-rows-[auto_minmax(0,1fr)_auto]! overflow-hidden p-0!',
- contentClass ?? 'sm:max-w-[425px]'
+ 'max-h-screen-inset-2 grid-rows-[auto_minmax(0,1fr)_auto]! overflow-hidden p-0!',
+ contentClass ?? 'sm:max-w-106.25'
)}
showCloseButton={showCloseButton && dismissible}
interactOutsideBehavior={dismissible ? 'close' : 'ignore'}
@@ -120,7 +120,7 @@
{@render trigger()}
</Drawer.Trigger>
{/if}
- <Drawer.Content class="flex max-h-[85vh] flex-col overflow-hidden">
+ <Drawer.Content class="flex max-h-screen-85 flex-col overflow-hidden">
{#if title || description}
<Drawer.Header class="shrink-0 text-left">
{#if title}
diff --git a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.type.ts b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.type.ts
index c3e80fac6..750c03bfa 100644
--- a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.type.ts
+++ b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.type.ts
@@ -48,7 +48,7 @@ export interface ResponsiveDialogProps {
/**
* CSS class for the dialog content container
- * @default 'sm:max-w-[425px]'
+ * @default 'sm:max-w-106.25'
*/
contentClass?: string;
diff --git a/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte b/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
index bcb63fe16..2a117d534 100644
--- a/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
+++ b/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
@@ -21,7 +21,7 @@
<ScrollAreaPrimitive.Root bind:ref data-slot="scroll-area" class={cn('relative', className)} {...restProps}>
<ScrollAreaPrimitive.Viewport
data-slot="scroll-area-viewport"
- class="size-full rounded-[inherit] ring-ring/10 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 dark:ring-ring/20 dark:outline-ring/40"
+ class="size-full rounded-inherit ring-ring/10 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1 dark:ring-ring/20 dark:outline-ring/40"
>
{@render children?.()}
</ScrollAreaPrimitive.Viewport>
diff --git a/frontend/src/lib/components/ui/select/select-content.svelte b/frontend/src/lib/components/ui/select/select-content.svelte
index e870edc26..af42de5b1 100644
--- a/frontend/src/lib/components/ui/select/select-content.svelte
+++ b/frontend/src/lib/components/ui/select/select-content.svelte
@@ -24,7 +24,7 @@
{align}
data-slot="select-content"
class={cn(
- 'relative z-[var(--arcane-z-surface)] min-w-32 overflow-x-hidden overflow-y-auto rounded-xl border bg-background/95 text-popover-foreground shadow-md backdrop-blur-2xl backdrop-saturate-150 data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-left-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:bg-popover/20',
+ 'relative z-(--arcane-z-surface) min-w-32 overflow-x-hidden overflow-y-auto rounded-xl border bg-background/95 text-popover-foreground shadow-md backdrop-blur-2xl backdrop-saturate-150 data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-left-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:bg-popover/20',
'max-h-(--bits-select-content-available-height) origin-(--bits-select-content-transform-origin)',
'w-(--radix-popper-anchor-width) max-w-[calc(100vw-2rem)] min-w-(--radix-popper-anchor-width)',
'max-[768px]:max-w-[calc(100vw-1rem)]',
diff --git a/frontend/src/lib/components/ui/select/select-trigger.svelte b/frontend/src/lib/components/ui/select/select-trigger.svelte
index 670b744cd..410cc89ec 100644
--- a/frontend/src/lib/components/ui/select/select-trigger.svelte
+++ b/frontend/src/lib/components/ui/select/select-trigger.svelte
@@ -19,7 +19,7 @@
data-slot="select-trigger"
data-size={size}
class={cn(
- "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-input/30 px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none hover:bg-input/50 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
+ "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-input/30 px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none hover:bg-input/50 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/sheet/sheet-content.svelte b/frontend/src/lib/components/ui/sheet/sheet-content.svelte
index 903652f82..1eea61cc0 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-content.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-content.svelte
@@ -1,7 +1,7 @@
<script lang="ts" module>
import { tv, type VariantProps } from 'tailwind-variants';
export const sheetVariants = tv({
- base: 'text-foreground bg-white dark:bg-surface/10 backdrop-blur-md border border-border/70 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards fixed z-[var(--arcane-z-surface)] flex flex-col gap-4 ease-in-out data-[state=closed]:animation-duration-300 data-[state=open]:animation-duration-500',
+ base: 'text-foreground bg-white dark:bg-surface/10 backdrop-blur-md border border-border/70 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards fixed z-(--arcane-z-surface) flex flex-col gap-4 ease-in-out data-[state=closed]:animation-duration-300 data-[state=open]:animation-duration-500',
variants: {
side: {
top: 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto rounded-b-2xl',
diff --git a/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte b/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
index 845bd289d..d1c84093a 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
@@ -9,7 +9,7 @@
bind:ref
data-slot="sheet-overlay"
class={cn(
- 'fixed inset-0 z-[var(--arcane-z-overlay)] bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
+ 'fixed inset-0 z-(--arcane-z-overlay) bg-white/10 backdrop-blur-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte
index 558ede9b2..773653e4c 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-group-label.svelte
@@ -18,7 +18,7 @@
const mergedProps = $derived({
class: cn(
- 'flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'flex h-7 shrink-0 items-center rounded-md px-1.5 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
sidebar.hoverExpansionEnabled
? 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:group-data-[hovered=true]:mt-0 group-data-[collapsible=icon]:group-data-[hovered=true]:opacity-100'
: 'group-data-[collapsible=icon]:hidden',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
index 727846ead..f6a17d1b3 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
@@ -9,7 +9,7 @@
bind:this={ref}
data-slot="sidebar-group"
data-sidebar="group"
- class={cn('relative flex w-full min-w-0 shrink-0 flex-col px-2 py-1', className)}
+ class={cn('relative flex w-full min-w-0 shrink-0 flex-col p-1.5', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte
index 1ff162191..2c512a52d 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte
@@ -2,14 +2,20 @@
import type { HTMLAttributes } from 'svelte/elements';
import { cn, type WithElementRef } from '#lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ collapsed = false,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLElement>> & { collapsed?: boolean } = $props();
</script>
<div
bind:this={ref}
data-slot="sidebar-header"
data-sidebar="header"
- class={cn('flex flex-col gap-2 p-2', className)}
+ class={cn('flex flex-col gap-2 p-2', collapsed && 'gap-0 p-1 pb-2', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
index 91ca4ad68..4291ce632 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
@@ -20,7 +20,7 @@
const mergedProps = $derived({
class: cn(
- 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
+ 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 data-[state=open]:bg-sidebar-accent [&>svg]:size-4 [&>svg]:shrink-0',
// Increases the hit area of the button on mobile.
'after:absolute after:-inset-2 md:after:hidden',
'peer-data-[size=sm]/menu-button:top-1',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte
index 7f650780f..c22d4a070 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte
@@ -2,7 +2,7 @@
import { tv, type VariantProps } from 'tailwind-variants';
export const sidebarMenuButtonVariants = tv({
- base: 'peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-0 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:flex-shrink-0 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>svg.ml-auto]:hidden group-data-[collapsible=icon]:[&>div.grid]:hidden [&>a]:flex [&>a]:w-full [&>a]:items-center [&>a]:gap-2 [&>button]:flex [&>button]:w-full [&>button]:items-center [&>button]:gap-2 group-data-[collapsible=icon]:[&>a]:w-auto group-data-[collapsible=icon]:[&>button]:w-auto',
+ base: 'peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-0 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:flex-shrink-0 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>svg.ml-auto]:hidden group-data-[collapsible=icon]:[&>div.grid]:hidden [&>a]:flex [&>a]:w-full [&>a]:items-center [&>a]:gap-2 [&>button]:flex [&>button]:w-full [&>button]:items-center [&>button]:gap-2 group-data-[collapsible=icon]:[&>a]:w-auto group-data-[collapsible=icon]:[&>button]:w-auto',
variants: {
variant: {
default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
@@ -101,7 +101,7 @@
{@render Button({ props })}
{/snippet}
</ArcaneTooltip.Trigger>
- <ArcaneTooltip.Content side="right" align="center" class="z-[var(--arcane-z-surface)]" {...tooltipContentProps}>
+ <ArcaneTooltip.Content side="right" align="center" class="z-(--arcane-z-surface)" {...tooltipContentProps}>
{#if typeof tooltipContent === 'string'}
{tooltipContent}
{:else if tooltipContent}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte
index ea4559a90..094b7a385 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte
@@ -14,7 +14,7 @@
bind:this={ref}
data-slot="sidebar-menu"
data-sidebar="menu"
- class={cn('flex w-full min-w-0 flex-col gap-1', className)}
+ class={cn('flex w-full min-w-0 flex-col gap-0.5', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
index 79ffa3006..df8eb6452 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
@@ -27,7 +27,7 @@
}}
title={sidebar.isTablet ? '' : 'Toggle Sidebar'}
class={cn(
- 'absolute inset-y-0 z-[var(--arcane-z-sticky)] hidden w-4 -translate-x-1/2 transition-transform ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] desktop-layout:flex',
+ 'absolute inset-y-0 z-(--arcane-z-sticky) hidden w-4 -translate-x-1/2 transition-transform ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 desktop-layout:flex',
// Only show hover and cursor effects when not in tablet mode
!sidebar.isTablet && [
'hover:after:bg-sidebar-border',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar.svelte b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
index cec1d4d1f..124c3c282 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
@@ -43,7 +43,7 @@
<div
data-slot="sidebar-gap"
class={cn(
- 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-out',
+ 'relative w-(--sidebar-width) bg-transparent transition-all duration-200 ease-out',
'group-data-[collapsible=offcanvas]:w-0',
'group-data-[side=right]:rotate-180',
variant === 'floating' || variant === 'inset'
@@ -54,7 +54,7 @@
<div
data-slot="sidebar-container"
class={cn(
- 'fixed inset-y-0 z-[var(--arcane-z-app-chrome)] hidden h-dvh w-(--sidebar-width) overflow-x-hidden transition-[left,right,width] duration-200 ease-out desktop-layout:flex',
+ 'fixed inset-y-0 z-(--arcane-z-app-chrome) hidden h-dvh w-(--sidebar-width) overflow-x-hidden transition-[left,right,width] duration-200 ease-out desktop-layout:flex',
side === 'left'
? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
: 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
diff --git a/frontend/src/lib/components/ui/slider/slider.svelte b/frontend/src/lib/components/ui/slider/slider.svelte
index b202c694e..2627986cf 100644
--- a/frontend/src/lib/components/ui/slider/slider.svelte
+++ b/frontend/src/lib/components/ui/slider/slider.svelte
@@ -44,9 +44,8 @@ get along, so we shut typescript up by casting `value` to `never`.
<span
aria-hidden="true"
data-slot="slider-ticks"
- class="pointer-events-none absolute inset-x-0 top-1/2 -mt-0.5 h-1"
- style="background-image: repeating-linear-gradient(to right, var(--muted-foreground) 0, var(--muted-foreground) 1px, transparent 1px, transparent calc((100% - 1px) / {ticks.length -
- 1}));"
+ class="pointer-events-none absolute inset-x-0 top-1/2 -mt-0.5 h-1 bg-[repeating-linear-gradient(to_right,var(--muted-foreground)_0,var(--muted-foreground)_1px,transparent_1px,transparent_calc((100%_-_1px)_/_var(--tick-gaps)))]"
+ style="--tick-gaps: {ticks.length - 1}"
></span>
{/if}
{#each thumbItems as thumb (thumb.index)}
diff --git a/frontend/src/lib/components/ui/snippet/snippet.svelte b/frontend/src/lib/components/ui/snippet/snippet.svelte
index f77bb9b4e..f34479e60 100644
--- a/frontend/src/lib/components/ui/snippet/snippet.svelte
+++ b/frontend/src/lib/components/ui/snippet/snippet.svelte
@@ -51,7 +51,7 @@
<CopyButton
size="icon"
variant="ghost"
- class="hover:text-opacity-80 absolute top-1/2 right-2 size-7 -translate-y-1/2 transition-opacity ease-in-out hover:bg-transparent dark:hover:bg-transparent"
+ class="absolute top-1/2 right-2 size-7 -translate-y-1/2 transition-opacity ease-in-out hover:bg-transparent hover:opacity-80 dark:hover:bg-transparent"
text={typeof text === 'string' ? text : text.join('\n')}
{onCopy}
/>
diff --git a/frontend/src/lib/components/ui/sonner/sonner.svelte b/frontend/src/lib/components/ui/sonner/sonner.svelte
index 1eae8c156..125de8439 100644
--- a/frontend/src/lib/components/ui/sonner/sonner.svelte
+++ b/frontend/src/lib/components/ui/sonner/sonner.svelte
@@ -7,20 +7,20 @@
<Sonner
theme={mode.current}
- class="toaster group z-[var(--arcane-z-toast)]"
+ class="group z-(--arcane-z-toast)"
toastOptions={{
classes: {
toast:
- 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:rounded-xl group-[.toaster]:shadow-lg',
+ 'group toast group-data-[sonner-toaster]:bg-background group-data-[sonner-toaster]:text-foreground group-data-[sonner-toaster]:border-border group-data-[sonner-toaster]:rounded-xl group-data-[sonner-toaster]:shadow-lg',
title: 'group-[.toast]:font-semibold',
description: 'group-[.toast]:text-muted-foreground',
actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',
// Flat per-type accent: a colored left border, no glass/heavy bg.
- success: 'group-[.toaster]:border-l-4 group-[.toaster]:border-l-emerald-500',
- error: 'group-[.toaster]:border-l-4 group-[.toaster]:border-l-red-500',
- warning: 'group-[.toaster]:border-l-4 group-[.toaster]:border-l-amber-500',
- info: 'group-[.toaster]:border-l-4 group-[.toaster]:border-l-sky-500'
+ success: 'group-data-[sonner-toaster]:border-l-4 group-data-[sonner-toaster]:border-l-success',
+ error: 'group-data-[sonner-toaster]:border-l-4 group-data-[sonner-toaster]:border-l-destructive',
+ warning: 'group-data-[sonner-toaster]:border-l-4 group-data-[sonner-toaster]:border-l-warning',
+ info: 'group-data-[sonner-toaster]:border-l-4 group-data-[sonner-toaster]:border-l-info'
}
}}
{...restProps}
diff --git a/frontend/src/lib/components/ui/spinner/spinner.svelte b/frontend/src/lib/components/ui/spinner/spinner.svelte
index b23af6506..86bd4aeca 100644
--- a/frontend/src/lib/components/ui/spinner/spinner.svelte
+++ b/frontend/src/lib/components/ui/spinner/spinner.svelte
@@ -4,9 +4,24 @@
import { m } from '#lib/paraglide/messages.js';
import type { ComponentProps } from 'svelte';
- type Props = ComponentProps<typeof LoadingSpinnerIcon>;
+ type Props = ComponentProps<typeof LoadingSpinnerIcon> & {
+ /** Defaults to the surrounding text color. */
+ tone?: 'current' | 'foreground' | 'muted' | 'primary' | 'info';
+ };
- let { class: className, ...restProps }: Props = $props();
+ let { class: className, tone = 'current', ...restProps }: Props = $props();
</script>
-<LoadingSpinnerIcon role="status" aria-label={m.common_loading()} class={cn('size-4', className)} {...restProps} />
+<LoadingSpinnerIcon
+ role="status"
+ aria-label={m.common_loading()}
+ class={cn(
+ 'size-4',
+ tone === 'foreground' && 'text-foreground',
+ tone === 'muted' && 'text-muted-foreground',
+ tone === 'primary' && 'text-primary',
+ tone === 'info' && 'text-info',
+ className
+ )}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/table/table-cell.svelte b/frontend/src/lib/components/ui/table/table-cell.svelte
index fc60136f2..dabc9af95 100644
--- a/frontend/src/lib/components/ui/table/table-cell.svelte
+++ b/frontend/src/lib/components/ui/table/table-cell.svelte
@@ -2,7 +2,22 @@
import { cn, type WithElementRef } from '#lib/utils.js';
import type { HTMLTdAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLTdAttributes> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ pinned = false,
+ variant = 'default',
+ indent = false,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLTdAttributes> & {
+ /** Sticky, opaque column at the row's right edge that mirrors the row's hover/selected tints. */
+ pinned?: boolean;
+ /** `checkbox` and `expander` size narrow control columns; `flush` drops padding for full-width panels. */
+ variant?: 'default' | 'checkbox' | 'expander' | 'flush';
+ /** Indents the first cell of a grouped row. */
+ indent?: boolean;
+ } = $props();
</script>
<td
@@ -11,6 +26,12 @@
class={cn(
'bg-transparent px-4 py-3 align-middle whitespace-nowrap',
'first:pl-6 last:pr-6 [&:has([role=checkbox])]:pr-0',
+ variant === 'checkbox' && 'w-0 pr-4!',
+ variant === 'expander' && 'w-8 px-2',
+ variant === 'flush' && 'p-0',
+ indent && 'pl-10',
+ pinned &&
+ 'sticky right-0 z-(--arcane-z-sticky) bg-background p-0 whitespace-nowrap group-hover/row:bg-primary/6 group-data-[expanded]/row:bg-muted/30 group-data-[state=selected]/row:bg-primary/12',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/table/table-head.svelte b/frontend/src/lib/components/ui/table/table-head.svelte
index dfa5743e0..c1cef7eb0 100644
--- a/frontend/src/lib/components/ui/table/table-head.svelte
+++ b/frontend/src/lib/components/ui/table/table-head.svelte
@@ -2,16 +2,37 @@
import { cn, type WithElementRef } from '#lib/utils.js';
import type { HTMLThAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLThAttributes> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ pinned = false,
+ variant = 'default',
+ indent = false,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLThAttributes> & {
+ /** Sticky, opaque header for a pinned right-edge column. */
+ pinned?: boolean;
+ /** `checkbox` and `expander` size narrow control columns; `flush` drops padding for full-width panels. */
+ variant?: 'default' | 'checkbox' | 'expander' | 'flush';
+ /** Indents the first cell of a grouped row. */
+ indent?: boolean;
+ } = $props();
</script>
<th
bind:this={ref}
data-slot="table-head"
class={cn(
- 'sticky top-0 z-[calc(var(--arcane-z-sticky)+1)] h-10 bg-background/70 px-4 text-left align-middle text-[11px] font-semibold tracking-[0.06em] whitespace-nowrap text-muted-foreground uppercase',
+ 'sticky top-0 z-[calc(var(--arcane-z-sticky)+1)] h-10 bg-background/70 px-4 text-left align-middle text-2xs font-semibold tracking-[0.06em] whitespace-nowrap text-muted-foreground uppercase',
'after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-border/70',
'first:pl-6 last:pr-6 [&:has([role=checkbox])]:pr-0',
+ variant === 'checkbox' && 'w-0 pr-4!',
+ variant === 'expander' && 'w-8 px-2',
+ variant === 'flush' && 'p-0',
+ indent && 'pl-10',
+ pinned &&
+ 'sticky right-0 z-(--arcane-z-page-floating) bg-background p-0 whitespace-nowrap group-hover/row:bg-primary/6 group-data-[expanded]/row:bg-muted/30 group-data-[state=selected]/row:bg-primary/12',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/table/table-row.svelte b/frontend/src/lib/components/ui/table/table-row.svelte
index 2104e1e5d..788623756 100644
--- a/frontend/src/lib/components/ui/table/table-row.svelte
+++ b/frontend/src/lib/components/ui/table/table-row.svelte
@@ -5,9 +5,13 @@
let {
ref = $bindable(null),
class: className,
+ variant = 'default',
children,
...restProps
- }: WithElementRef<HTMLAttributes<HTMLTableRowElement>> = $props();
+ }: WithElementRef<HTMLAttributes<HTMLTableRowElement>> & {
+ /** `detail` is an expanded-row panel; `static` rows (skeletons, embedded tables) don't react to hover. */
+ variant?: 'default' | 'detail' | 'static';
+ } = $props();
</script>
<tr
@@ -15,7 +19,9 @@
data-slot="table-row"
class={cn(
'group/row cursor-pointer border-b border-border/40 bg-background transition-colors duration-150',
- 'hover:bg-primary/[0.06] data-[state=selected]:bg-primary/[0.12] data-[state=selected]:hover:bg-primary/[0.15]',
+ 'hover:bg-primary/[0.06] data-expanded:bg-muted/30 data-[state=selected]:bg-primary/[0.12] data-[state=selected]:hover:bg-primary/[0.15]',
+ variant === 'detail' && 'bg-muted/10 hover:bg-muted/10',
+ variant === 'static' && 'bg-transparent hover:bg-transparent',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tabs/tabs-list.svelte b/frontend/src/lib/components/ui/tabs/tabs-list.svelte
index 4e1c5dc8b..c3d32d098 100644
--- a/frontend/src/lib/components/ui/tabs/tabs-list.svelte
+++ b/frontend/src/lib/components/ui/tabs/tabs-list.svelte
@@ -2,13 +2,22 @@
import { Tabs as TabsPrimitive } from 'bits-ui';
import { cn } from '#lib/utils.js';
- let { ref = $bindable(null), class: className, ...restProps }: TabsPrimitive.ListProps = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ scrollable = false,
+ ...restProps
+ }: TabsPrimitive.ListProps & {
+ /** Scrolls horizontally with a hidden scrollbar instead of wrapping. */
+ scrollable?: boolean;
+ } = $props();
</script>
<TabsPrimitive.List
bind:ref
class={cn(
'inline-flex max-w-full flex-wrap items-center justify-start gap-1 rounded-lg border border-border/60 bg-muted/40 p-1 text-muted-foreground',
+ scrollable && 'scrollbar-hide overflow-x-auto',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte b/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte
index 68b6773cd..a4177237d 100644
--- a/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte
+++ b/frontend/src/lib/components/ui/tabs/tabs-trigger.svelte
@@ -2,13 +2,26 @@
import { Tabs as TabsPrimitive } from 'bits-ui';
import { cn } from '#lib/utils.js';
- let { ref = $bindable(null), class: className, ...restProps }: TabsPrimitive.TriggerProps = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ size = 'default',
+ variant = 'default',
+ ...restProps
+ }: TabsPrimitive.TriggerProps & {
+ size?: 'default' | 'sm';
+ /** Tints the active state for options with destructive effects. */
+ variant?: 'default' | 'destructive';
+ } = $props();
</script>
<TabsPrimitive.Trigger
bind:ref
class={cn(
- 'inline-flex items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap text-muted-foreground ring-offset-background transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/15 data-[state=active]:text-primary data-[state=active]:ring-1 data-[state=active]:ring-primary/30 dark:data-[state=active]:text-[color-mix(in_oklch,var(--primary)_55%,white)]',
+ 'inline-flex items-center justify-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap text-muted-foreground ring-offset-background transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/15 data-[state=active]:text-primary data-[state=active]:ring-1 data-[state=active]:ring-primary/30 dark:data-[state=active]:text-primary-tint',
+ size === 'sm' && 'text-xs',
+ variant === 'destructive' &&
+ 'data-[state=active]:bg-destructive/15 data-[state=active]:text-destructive data-[state=active]:shadow-sm data-[state=active]:hover:bg-destructive/10 dark:data-[state=active]:text-destructive',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/textarea/textarea.svelte b/frontend/src/lib/components/ui/textarea/textarea.svelte
index 59efe8ae8..29a0ac50d 100644
--- a/frontend/src/lib/components/ui/textarea/textarea.svelte
+++ b/frontend/src/lib/components/ui/textarea/textarea.svelte
@@ -6,16 +6,25 @@
let {
ref = $bindable(null),
value = $bindable(),
+ size = 'default',
+ mono = false,
class: className,
...restProps
- }: WithoutChildren<WithElementRef<HTMLTextareaAttributes>> = $props();
+ }: WithoutChildren<WithElementRef<HTMLTextareaAttributes>> & {
+ size?: 'default' | 'sm';
+ /** Monospace text for code-like values. */
+ mono?: boolean;
+ } = $props();
</script>
<textarea
bind:this={ref}
data-slot="textarea"
class={cn(
- 'flex min-h-[80px] w-full rounded-lg bg-input/80 px-3 py-2 text-base ring-offset-background backdrop-blur-sm transition-all placeholder:text-muted-foreground focus-visible:bg-input/90 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:backdrop-blur-md focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'flex min-h-20 w-full rounded-lg bg-input/80 px-3 py-2 text-base ring-offset-background backdrop-blur-sm transition-all placeholder:text-muted-foreground focus-visible:bg-input/90 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:backdrop-blur-md focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
+ 'aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
+ size === 'sm' && 'text-xs md:text-xs',
+ mono && 'font-mono',
className
)}
bind:value
diff --git a/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte b/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
index b93c61ff5..fc9e4f306 100644
--- a/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
+++ b/frontend/src/lib/components/ui/tooltip/tooltip-content.svelte
@@ -13,8 +13,11 @@
children,
arrowClasses,
portalProps,
+ variant = 'default',
...restProps
}: TooltipPrimitive.ContentProps & {
+ /** `panel` drops padding for rich content that brings its own layout. */
+ variant?: 'default' | 'panel';
arrowClasses?: string;
portalProps?: WithoutChildrenOrChild<ComponentProps<typeof TooltipPortal>>;
} = $props();
@@ -27,7 +30,8 @@
{sideOffset}
{side}
class={cn(
- 'z-[var(--arcane-z-surface)] w-fit origin-(--bits-tooltip-content-transform-origin) rounded-xl border border-border/40 bg-popover/90 px-3 py-1.5 text-xs text-balance text-popover-foreground shadow-lg backdrop-blur-md backdrop-saturate-150 fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=delayed-open]:animate-in data-[state=instant-open]:animate-in dark:bg-popover/20',
+ 'z-(--arcane-z-surface) w-fit origin-(--bits-tooltip-content-transform-origin) rounded-xl border border-border/40 bg-popover/90 px-3 py-1.5 text-xs text-balance text-popover-foreground shadow-lg backdrop-blur-md backdrop-saturate-150 fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=delayed-open]:animate-in data-[state=instant-open]:animate-in dark:bg-popover/20',
+ variant === 'panel' && 'p-0',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/tree-view/tree-view-file.svelte b/frontend/src/lib/components/ui/tree-view/tree-view-file.svelte
index 2220a09e9..a43ca4326 100644
--- a/frontend/src/lib/components/ui/tree-view/tree-view-file.svelte
+++ b/frontend/src/lib/components/ui/tree-view/tree-view-file.svelte
@@ -6,7 +6,7 @@
let { name, icon, type = 'button', class: className, ...rest }: TreeViewFileProps = $props();
</script>
-<button {type} class={cn('flex place-items-center gap-1 pl-[3px]', className)} {...rest}>
+<button {type} class={cn('flex place-items-center gap-1 pl-0.75', className)} {...rest}>
{#if icon}
{@render icon({ name })}
{:else}
diff --git a/frontend/src/lib/components/update-status-popover.svelte b/frontend/src/lib/components/update-status-popover.svelte
index 112f867f3..02b889566 100644
--- a/frontend/src/lib/components/update-status-popover.svelte
+++ b/frontend/src/lib/components/update-status-popover.svelte
@@ -1,6 +1,7 @@
<script lang="ts">
import * as ArcaneTooltip from '#lib/components/arcane-tooltip/index.js';
import type { Snippet } from 'svelte';
+ import { cn } from '#lib/utils.js';
type TooltipSide = 'top' | 'right' | 'bottom' | 'left';
@@ -9,7 +10,7 @@
interactive?: boolean;
directTrigger?: boolean;
side?: TooltipSide;
- contentClass?: string;
+ contentWidth?: 'sm' | 'md' | 'lg' | 'xl';
trigger: Snippet<[{ props: Record<string, unknown> }]>;
content: Snippet;
}
@@ -19,7 +20,7 @@
interactive = false,
directTrigger = false,
side = 'right',
- contentClass = 'max-w-[280px] p-0',
+ contentWidth = 'lg',
trigger,
content
}: Props = $props();
@@ -37,7 +38,17 @@
{@render trigger({ props: {} })}
</ArcaneTooltip.Trigger>
{/if}
- <ArcaneTooltip.Content {side} class={contentClass} data-open={open ? 'true' : 'false'}>
+ <ArcaneTooltip.Content
+ {side}
+ variant="panel"
+ class={cn(
+ contentWidth === 'sm' && 'max-w-55',
+ contentWidth === 'md' && 'max-w-60',
+ contentWidth === 'lg' && 'max-w-70',
+ contentWidth === 'xl' && 'max-w-80'
+ )}
+ data-open={open ? 'true' : 'false'}
+ >
{@render content()}
</ArcaneTooltip.Content>
</ArcaneTooltip.Root>
diff --git a/frontend/src/lib/components/vulnerability/cve-cell.svelte b/frontend/src/lib/components/vulnerability/cve-cell.svelte
index 33203ed88..7a1e3d30b 100644
--- a/frontend/src/lib/components/vulnerability/cve-cell.svelte
+++ b/frontend/src/lib/components/vulnerability/cve-cell.svelte
@@ -6,7 +6,7 @@
href="https://nvd.nist.gov/vuln/detail/{vulnerabilityId}"
target="_blank"
rel="noopener noreferrer"
- class="font-mono text-xs text-blue-600 hover:underline dark:text-blue-400"
+ class="font-mono text-xs text-info hover:underline"
>
{vulnerabilityId}
</a>
diff --git a/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte b/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
index 2e98f257f..8b1322e3b 100644
--- a/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
+++ b/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
@@ -98,14 +98,14 @@
});
const triggerDotClass = $derived.by(() => {
- if (hasError) return 'bg-red-500';
+ if (hasError) return 'bg-destructive';
if (!isCompleted) return 'bg-muted-foreground/50';
- if (totalCount === 0) return 'bg-emerald-500';
- if (hasCritical) return 'bg-red-500';
- if (hasHigh) return 'bg-orange-500';
- if (hasMedium) return 'bg-amber-500';
- if ((scanSummary?.summary?.low ?? 0) > 0) return 'bg-yellow-500';
- return 'bg-gray-400';
+ if (totalCount === 0) return 'bg-success';
+ if (hasCritical) return 'bg-destructive';
+ if (hasHigh) return 'bg-orange';
+ if (hasMedium) return 'bg-warning';
+ if ((scanSummary?.summary?.low ?? 0) > 0) return 'bg-warning';
+ return 'bg-muted-foreground';
});
const severitySegments = $derived.by(() => {
@@ -113,11 +113,11 @@
if (!summary) return [] as Array<{ key: string; pct: number; barClass: string }>;
const total = Math.max(summary.total, 1);
return [
- { key: 'critical', pct: (summary.critical / total) * 100, barClass: 'bg-red-500' },
- { key: 'high', pct: (summary.high / total) * 100, barClass: 'bg-orange-500' },
- { key: 'medium', pct: (summary.medium / total) * 100, barClass: 'bg-amber-500' },
- { key: 'low', pct: (summary.low / total) * 100, barClass: 'bg-yellow-500' },
- { key: 'unknown', pct: (summary.unknown / total) * 100, barClass: 'bg-gray-400' }
+ { key: 'critical', pct: (summary.critical / total) * 100, barClass: 'bg-destructive' },
+ { key: 'high', pct: (summary.high / total) * 100, barClass: 'bg-orange' },
+ { key: 'medium', pct: (summary.medium / total) * 100, barClass: 'bg-warning' },
+ { key: 'low', pct: (summary.low / total) * 100, barClass: 'bg-warning' },
+ { key: 'unknown', pct: (summary.unknown / total) * 100, barClass: 'bg-muted-foreground' }
].filter((segment) => segment.pct > 0);
});
@@ -181,15 +181,15 @@
{/snippet}
{#snippet tooltipContent()}
- <div class="max-w-[240px] space-y-3 p-3">
+ <div class="max-w-60 space-y-3 p-3">
{#if hasError}
- <div class="flex items-center gap-2 text-red-500">
+ <div class="flex items-center gap-2 text-destructive">
<ShieldXIcon class="size-4" />
<span class="text-sm font-medium">{m.vuln_scan_failed()}</span>
</div>
<p class="text-xs text-muted-foreground">{scanErrorMessage}</p>
{:else if isScanInProgress}
- <div class="flex items-center gap-2 text-blue-500">
+ <div class="flex items-center gap-2 text-info">
<Spinner class="size-4" />
<span class="text-sm font-medium">{activePhaseLabel}</span>
</div>
@@ -198,7 +198,7 @@
{#each scanPhaseSteps as step, index (step.key)}
<div class="flex items-center gap-2">
<span
- class={`size-1.5 rounded-full ${index <= activePhaseIndex ? 'bg-blue-500' : 'bg-muted-foreground/40'}`}
+ class={`size-1.5 rounded-full ${index <= activePhaseIndex ? 'bg-info' : 'bg-muted-foreground/40'}`}
aria-hidden="true"
></span>
<span class={index <= activePhaseIndex ? 'text-foreground' : 'text-muted-foreground'}>{step.label}</span>
@@ -227,15 +227,15 @@
<div class="space-y-2">
<div class="flex items-center gap-2">
{#if hasCritical}
- <ShieldAlertIcon class="size-4 text-red-500" />
+ <ShieldAlertIcon class="size-4 text-destructive" />
{:else if hasHigh}
- <ShieldAlertIcon class="size-4 text-orange-500" />
+ <ShieldAlertIcon class="size-4 text-warning" />
{:else if hasMedium}
- <ShieldAlertIcon class="size-4 text-amber-500" />
+ <ShieldAlertIcon class="size-4 text-warning" />
{:else if hasAnyVuln}
- <ShieldAlertIcon class="size-4 text-yellow-500" />
+ <ShieldAlertIcon class="size-4 text-warning" />
{:else}
- <ShieldCheckIcon class="size-4 text-emerald-500" />
+ <ShieldCheckIcon class="size-4 text-success" />
{/if}
<div>
<p class="text-sm font-medium">{statusLabel}</p>
@@ -249,19 +249,19 @@
</div>
<div class="mt-2 flex h-2 overflow-hidden rounded-full bg-muted/70">
{#each severitySegments as segment (segment.key)}
- <div class={segment.barClass} style={`width: ${segment.pct}%`}></div>
+ <div class={`w-(--bar-width) ${segment.barClass}`} style={`--bar-width: ${segment.pct}%`}></div>
{/each}
</div>
</div>
<div class="space-y-1.5">
- {@render severityBadge(scanSummary.summary.critical, m.vuln_severity_critical(), 'text-red-500')}
- {@render severityBadge(scanSummary.summary.high, m.vuln_severity_high(), 'text-orange-500')}
- {@render severityBadge(scanSummary.summary.medium, m.vuln_severity_medium(), 'text-amber-500')}
- {@render severityBadge(scanSummary.summary.low, m.vuln_severity_low(), 'text-yellow-600')}
- {@render severityBadge(scanSummary.summary.unknown, m.common_unknown(), 'text-gray-500')}
+ {@render severityBadge(scanSummary.summary.critical, m.vuln_severity_critical(), 'text-destructive')}
+ {@render severityBadge(scanSummary.summary.high, m.vuln_severity_high(), 'text-orange')}
+ {@render severityBadge(scanSummary.summary.medium, m.vuln_severity_medium(), 'text-warning')}
+ {@render severityBadge(scanSummary.summary.low, m.vuln_severity_low(), 'text-warning')}
+ {@render severityBadge(scanSummary.summary.unknown, m.common_unknown(), 'text-muted-foreground')}
</div>
{#if !hasAnyVuln}
- <p class="text-xs text-emerald-500">{m.vuln_no_vulnerabilities()}</p>
+ <p class="text-xs text-success">{m.vuln_no_vulnerabilities()}</p>
{/if}
</div>
{:else}
@@ -309,12 +309,12 @@
{:else}
<div {...props} class="flex w-16 flex-col items-center gap-1">
{#if isScanInProgress}
- <div class="flex items-center justify-center gap-1.5 text-xs text-blue-500">
+ <div class="flex items-center justify-center gap-1.5 text-xs text-info">
<Spinner class="size-3 shrink-0" />
<span class="truncate">{activePhaseLabel}</span>
</div>
{:else if hasError}
- <div class="flex items-center justify-center gap-1.5 text-xs text-red-500">
+ <div class="flex items-center justify-center gap-1.5 text-xs text-destructive">
<ShieldXIcon class="size-3 shrink-0" />
<span class="truncate">{m.vuln_scan_failed()}</span>
</div>
diff --git a/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte b/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
index 24c42428f..722b11a91 100644
--- a/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
+++ b/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
@@ -86,40 +86,40 @@
label: m.vuln_severity_critical(),
count: resolvedSummary.critical,
pct: (resolvedSummary.critical / total) * 100,
- barClass: 'bg-red-500',
- textClass: 'text-red-500'
+ barClass: 'bg-destructive',
+ textClass: 'text-destructive'
},
{
key: 'high',
label: m.vuln_severity_high(),
count: resolvedSummary.high,
pct: (resolvedSummary.high / total) * 100,
- barClass: 'bg-orange-500',
- textClass: 'text-orange-500'
+ barClass: 'bg-orange',
+ textClass: 'text-orange'
},
{
key: 'medium',
label: m.vuln_severity_medium(),
count: resolvedSummary.medium,
pct: (resolvedSummary.medium / total) * 100,
- barClass: 'bg-amber-500',
- textClass: 'text-amber-500'
+ barClass: 'bg-warning',
+ textClass: 'text-warning'
},
{
key: 'low',
label: m.vuln_severity_low(),
count: resolvedSummary.low,
pct: (resolvedSummary.low / total) * 100,
- barClass: 'bg-yellow-500',
- textClass: 'text-yellow-600'
+ barClass: 'bg-warning',
+ textClass: 'text-warning'
},
{
key: 'unknown',
label: m.common_unknown(),
count: resolvedSummary.unknown,
pct: (resolvedSummary.unknown / total) * 100,
- barClass: 'bg-gray-400',
- textClass: 'text-gray-500'
+ barClass: 'bg-muted-foreground',
+ textClass: 'text-muted-foreground'
}
].filter((bar) => bar.count > 0);
});
@@ -294,21 +294,21 @@
<p class="mb-3 text-xs text-muted-foreground">{m.vuln_report_load_failed()}: {reportError}</p>
{/if}
{#if summary.total === 0}
- <div class="rounded-2xl border border-emerald-500/20 bg-emerald-500/5 p-6 shadow-sm">
+ <div class="rounded-2xl border border-success/20 bg-success/5 p-6 shadow-sm">
<div class="flex items-center gap-4">
- <div class="rounded-full bg-emerald-500/15 p-3">
- <ShieldCheckIcon class="size-6 text-emerald-500" />
+ <div class="rounded-full bg-success/15 p-3">
+ <ShieldCheckIcon class="size-6 text-success" />
</div>
<div class="space-y-1">
- <p class="text-xs font-semibold tracking-wide text-emerald-400 uppercase">{m.vuln_summary()}</p>
- <p class="text-lg font-semibold text-emerald-200">{m.vuln_clean()}</p>
- <p class="text-sm text-emerald-300/80">{m.vuln_no_vulnerabilities()}</p>
+ <p class="text-xs font-semibold tracking-wide text-success uppercase">{m.vuln_summary()}</p>
+ <p class="text-lg font-semibold text-success">{m.vuln_clean()}</p>
+ <p class="text-sm text-success/80">{m.vuln_no_vulnerabilities()}</p>
</div>
</div>
{@render ScanMetaChips()}
</div>
{:else}
- <div class="grid gap-4 xl:grid-cols-[minmax(0,1.2fr)_minmax(0,1fr)]">
+ <div class="grid gap-4 xl:grid-cols-split-6-5">
<div class="rounded-2xl border border-border/60 bg-muted/30 p-5 shadow-sm">
<div class="flex items-center justify-between">
<p class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.vuln_summary()}</p>
@@ -326,7 +326,7 @@
<div class="flex items-center gap-3 text-xs">
<span class="w-24 text-muted-foreground">{bar.label}</span>
<div class="relative h-2 flex-1 overflow-hidden rounded-full bg-muted/60">
- <div class={`h-full ${bar.barClass}`} style={`width: ${bar.pct}%`}></div>
+ <div class={`h-full w-(--bar-width) ${bar.barClass}`} style={`--bar-width: ${bar.pct}%`}></div>
</div>
<span class={`w-8 text-right font-mono ${bar.textClass}`}>{bar.count}</span>
</div>
@@ -343,7 +343,7 @@
</div>
<div class={`mt-2 text-3xl font-semibold ${bar.textClass}`}>{bar.count}</div>
<div class="mt-3 h-1.5 rounded-full bg-muted/60">
- <div class={`h-full ${bar.barClass}`} style={`width: ${bar.pct}%`}></div>
+ <div class={`h-full w-(--bar-width) ${bar.barClass}`} style={`--bar-width: ${bar.pct}%`}></div>
</div>
</div>
{/each}
@@ -369,11 +369,11 @@
</div>
{/if}
{:else if hasError}
- <div class="flex items-center gap-3 rounded-lg bg-red-50 p-4 dark:bg-red-950/20">
- <ShieldXIcon class="size-8 text-red-500" />
+ <div class="flex items-center gap-3 rounded-lg bg-destructive/10 p-4">
+ <ShieldXIcon class="size-8 text-destructive" />
<div>
- <p class="font-medium text-red-800 dark:text-red-200">{m.vuln_scan_failed()}</p>
- <p class="text-sm text-red-600 dark:text-red-400">{scan?.error || m.vuln_scanner_not_installed()}</p>
+ <p class="font-medium text-destructive">{m.vuln_scan_failed()}</p>
+ <p class="text-sm text-destructive">{scan?.error || m.vuln_scanner_not_installed()}</p>
</div>
</div>
{:else}
diff --git a/frontend/src/lib/components/workspace-file-tree-panel.svelte b/frontend/src/lib/components/workspace-file-tree-panel.svelte
index 59ab163d7..12a4d069b 100644
--- a/frontend/src/lib/components/workspace-file-tree-panel.svelte
+++ b/frontend/src/lib/components/workspace-file-tree-panel.svelte
@@ -585,7 +585,7 @@
{#snippet workspaceToolbar()}
<div class="flex h-9 shrink-0 items-center border-b border-border px-2">
- <span class="text-[11px] font-semibold tracking-wider text-muted-foreground uppercase">{title}</span>
+ <span class="text-2xs font-semibold tracking-wider text-muted-foreground uppercase">{title}</span>
{#if hasHeaderActions}
<div class="ml-auto flex items-center gap-0.5">
{#if canCreateFile}
@@ -707,7 +707,7 @@
<button
type="button"
class={cn(
- 'flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px] hover:bg-accent',
+ 'flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-xs-plus hover:bg-accent',
selectedFile === leadingRow.key && 'bg-accent',
leadingRow.action && 'text-muted-foreground hover:text-foreground'
)}
@@ -733,40 +733,42 @@
{#snippet workspaceTree()}
<div bind:this={treeScrollElement} class="min-h-0 flex-1 overflow-auto">
- <TreeView.Root class="min-w-max p-2 whitespace-nowrap">
- {@render workspaceLeadingRows()}
+ <div class="min-w-max p-2">
+ <TreeView.Root class="min-w-max whitespace-nowrap">
+ {@render workspaceLeadingRows()}
- {#if rows.length === 0}
- <div class="px-7 py-3 text-xs text-muted-foreground">{emptyMessage}</div>
- {:else}
- <div class="relative" style={`height: ${rowVirtualizer.totalSize}px`}>
- {#each rowVirtualizer.virtualItems as virtualItem (virtualItem.key)}
- {@const row = rows[virtualItem.index]}
- {#if row}
- <div
- class="absolute top-0 left-0 w-full"
- style={`transform: translateY(${virtualItem.start}px)`}
- data-index={virtualItem.index}
- {@attach rowVirtualizer.measureElement}
- >
- {@render workspaceRow(row)}
- </div>
- {/if}
- {/each}
- </div>
- {/if}
- </TreeView.Root>
+ {#if rows.length === 0}
+ <div class="px-7 py-3 text-xs text-muted-foreground">{emptyMessage}</div>
+ {:else}
+ <div class="relative h-(--total-height)" style={`--total-height: ${rowVirtualizer.totalSize}px`}>
+ {#each rowVirtualizer.virtualItems as virtualItem (virtualItem.key)}
+ {@const row = rows[virtualItem.index]}
+ {#if row}
+ <div
+ class="absolute top-0 left-0 w-full translate-y-(--row-start)"
+ style={`--row-start: ${virtualItem.start}px`}
+ data-index={virtualItem.index}
+ {@attach rowVirtualizer.measureElement}
+ >
+ {@render workspaceRow(row)}
+ </div>
+ {/if}
+ {/each}
+ </div>
+ {/if}
+ </TreeView.Root>
+ </div>
</div>
{/snippet}
{#snippet workspaceDestination(option: FolderDestinationOption)}
<div
class={cn(
- 'flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm',
+ 'flex w-full items-center gap-2 rounded px-2 py-1.5 pl-(--indent) text-left text-sm',
dialogDestinationPath === option.relativePath && !option.disabled && 'bg-accent',
option.disabled ? 'opacity-45' : 'hover:bg-accent'
)}
- style={`padding-left: ${0.5 + option.depth * 1.25}rem`}
+ style={`--indent: ${0.5 + option.depth * 1.25}rem`}
>
{#if option.relativePath && option.hasChildren}
<button
@@ -796,7 +798,7 @@
dialogError = null;
}}
>
- <FolderOpenIcon class="size-4 shrink-0 text-amber-500" />
+ <FolderOpenIcon class="size-4 shrink-0 text-warning" />
<span class="min-w-0 flex-1 truncate">{option.label}</span>
</button>
{#if option.reason}
@@ -809,7 +811,7 @@
{#if hasDestinationPicker}
<div class="min-h-0 space-y-2">
<Label>{m.workspace_file_move_destination_label()}</Label>
- <div class="max-h-[56vh] min-h-80 space-y-1 overflow-auto rounded-md border p-1">
+ <div class="max-h-screen-60 min-h-80 space-y-1 overflow-auto rounded-md border p-1">
{#each visibleDestinationOptions as option (option.relativePath)}
{@render workspaceDestination(option)}
{/each}
@@ -849,9 +851,9 @@
{#snippet workspaceDialog()}
<Dialog.Root bind:open={dialogOpen}>
- <Dialog.Content class="max-h-[calc(100vh-2rem)] max-w-2xl overflow-hidden">
+ <Dialog.Content class="max-h-(--max-height-screen-inset-2) max-w-2xl overflow-hidden">
<form
- class="flex max-h-[calc(100vh-5rem)] min-h-0 flex-col gap-4"
+ class="flex max-h-screen-inset-5 min-h-0 flex-col gap-4"
onsubmit={(event) => {
event.preventDefault();
void handleDialogSubmit();
diff --git a/frontend/src/lib/layouts/resource-detail-layout.svelte b/frontend/src/lib/layouts/resource-detail-layout.svelte
index 7db290277..f20c1c64b 100644
--- a/frontend/src/lib/layouts/resource-detail-layout.svelte
+++ b/frontend/src/lib/layouts/resource-detail-layout.svelte
@@ -39,17 +39,17 @@
<svelte:window bind:scrollY />
-{#snippet ActionMenu(items: DetailAction[], tone: 'ghost' | 'outline', sizeClass: string, minWidthClass: string)}
+{#snippet ActionMenu(items: DetailAction[], tone: 'ghost' | 'outline')}
{#if items.length > 0}
<DropdownMenu.Root>
<DropdownMenu.Trigger>
{#snippet child({ props })}
- <ArcaneButton {...props} action="base" {tone} size="icon" class={sizeClass}>
+ <ArcaneButton {...props} action="base" {tone} size="icon" class={tone === 'ghost' ? 'size-8' : 'size-9'}>
<EllipsisIcon class="size-4" />
</ArcaneButton>
{/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content align="end" class={minWidthClass}>
+ <DropdownMenu.Content align="end" class={tone === 'ghost' ? 'min-w-35' : 'min-w-40'}>
{#each items as act (act.id)}
<DropdownMenu.Item onclick={act.onclick} disabled={act.disabled || act.loading}>
{act.loading ? act.loadingLabel || act.label : act.label}
@@ -62,7 +62,7 @@
{#if showFloatingHeader}
<div
- class="fixed top-4 left-1/2 z-[var(--arcane-z-page-floating)] w-[calc(100%-2rem)] max-w-fit -translate-x-1/2 animate-in px-2 duration-200 fade-in slide-in-from-top-2 sm:w-auto sm:px-0"
+ class="fixed top-4 left-1/2 z-(--arcane-z-page-floating) w-full-inset max-w-fit -translate-x-1/2 animate-in px-2 duration-200 fade-in slide-in-from-top-2 sm:w-auto sm:px-0"
>
<div
class="bubble-shadow-lg flex items-center gap-3 rounded-lg border border-border/60 bg-popover/95 px-4 py-2 backdrop-blur-md supports-backdrop-filter:bg-popover/85"
@@ -75,7 +75,7 @@
<div class="h-4 w-px bg-border/60"></div>
{/if}
- <span class="max-w-[200px] truncate text-sm font-semibold">{title}</span>
+ <span class="max-w-50 truncate text-sm font-semibold">{title}</span>
{#if primaryAction}
<div class="h-4 w-px bg-border/60"></div>
@@ -87,7 +87,7 @@
disabled={primaryAction.disabled}
onclick={primaryAction.onclick}
/>
- {@render ActionMenu(secondaryActions, 'ghost', 'size-8', 'min-w-[140px]')}
+ {@render ActionMenu(secondaryActions, 'ghost')}
</div>
{/if}
</div>
@@ -116,7 +116,7 @@
onclick={primaryAction.onclick}
/>
{:else}
- {@render ActionMenu(actions, 'outline', 'size-9', 'min-w-[160px]')}
+ {@render ActionMenu(actions, 'outline')}
{/if}
</div>
</div>
diff --git a/frontend/src/lib/layouts/settings-page-layout.svelte b/frontend/src/lib/layouts/settings-page-layout.svelte
index 3d64ca814..723c096d7 100644
--- a/frontend/src/lib/layouts/settings-page-layout.svelte
+++ b/frontend/src/lib/layouts/settings-page-layout.svelte
@@ -73,10 +73,7 @@
</ArcaneButton>
{/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content
- align="end"
- class="z-[var(--arcane-z-surface)] min-w-[160px] rounded-xl border bg-popover/90 p-1 shadow-lg backdrop-blur-md"
- >
+ <DropdownMenu.Content align="end" class="z-(--arcane-z-surface) min-w-40">
<DropdownMenu.Group>
{@render ActionOptions(button.options)}
</DropdownMenu.Group>
@@ -141,9 +138,9 @@
{#if pageType === 'form' && formState?.saveFunction && !showReadOnlyTag}
<div class="hidden items-center gap-2 sm:flex">
{#if formState.hasChanges}
- <span class="mr-2 text-xs text-orange-600 dark:text-orange-400">{m.common_unsaved_changes()}</span>
+ <span class="mr-2 text-xs text-warning">{m.common_unsaved_changes()}</span>
{:else}
- <span class="mr-2 text-xs text-green-600 dark:text-green-400">{m.common_all_changes_saved()}</span>
+ <span class="mr-2 text-xs text-success">{m.common_all_changes_saved()}</span>
{/if}
{#if formState.hasChanges && formState.resetFunction}
@@ -165,7 +162,7 @@
disabled={!formState.hasChanges}
loading={formState.isLoading}
size="sm"
- class="min-w-[80px] gap-2"
+ class="min-w-20 gap-2"
/>
</div>
{/if}
@@ -189,10 +186,7 @@
{/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content
- align="end"
- class="z-[var(--arcane-z-surface)] min-w-[160px] rounded-xl border bg-popover/90 p-1 shadow-lg backdrop-blur-md"
- >
+ <DropdownMenu.Content align="end" class="z-(--arcane-z-surface) min-w-40">
<DropdownMenu.Group>
{#each mobileDropdownButtons as button (button.id)}
{#if button.options?.length}
diff --git a/frontend/src/lib/layouts/tabbed-page-layout.svelte b/frontend/src/lib/layouts/tabbed-page-layout.svelte
index 8e6afd5a3..a4f8b714d 100644
--- a/frontend/src/lib/layouts/tabbed-page-layout.svelte
+++ b/frontend/src/lib/layouts/tabbed-page-layout.svelte
@@ -41,13 +41,15 @@
<div class={cn('flex h-full min-h-0 flex-col bg-background', className)}>
<Tabs.Root value={selectedTab} class="flex min-h-0 w-full flex-1 flex-col">
<div
- class="sticky top-0 border-b transition-opacity duration-300"
- style="opacity: {floatingHeaderVisible ? 0 : 1}; pointer-events: {floatingHeaderVisible ? 'none' : 'auto'};"
+ class={cn(
+ 'sticky top-0 border-b transition-opacity duration-300',
+ floatingHeaderVisible && 'pointer-events-none opacity-0'
+ )}
inert={floatingHeaderVisible || undefined}
>
<div class="max-w-full px-4 py-3">
<div class="flex items-start gap-3">
- <div class="flex max-w-[70%] min-w-0 items-start gap-2">
+ <div class="flex max-w-7-10 min-w-0 items-start gap-2">
{#if backUrl}
<ArcaneButton action="base" tone="ghost" size="sm" href={backUrl}>
<ArrowLeftIcon class="size-4" />
@@ -80,7 +82,7 @@
{#if floatingHeaderVisible}
<!-- A full-width, click-through strip centres the bubble. Positioning the bubble itself at
left-1/2 would cap its shrink-to-fit width at half the viewport. -->
- <div class="pointer-events-none fixed inset-x-4 top-4 z-[var(--arcane-z-page-floating)] flex justify-center">
+ <div class="pointer-events-none fixed inset-x-4 top-4 z-(--arcane-z-page-floating) flex justify-center">
<div
class="bubble-shadow-lg pointer-events-auto max-w-full rounded-lg border border-border/50 bg-popover/90 px-4 py-3 backdrop-blur-md supports-backdrop-filter:bg-popover/80"
>
diff --git a/frontend/src/lib/utils.ts b/frontend/src/lib/utils.ts
index f92bfcbb3..2e6313948 100644
--- a/frontend/src/lib/utils.ts
+++ b/frontend/src/lib/utils.ts
@@ -5,9 +5,7 @@ export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export type WithoutChild<T> = T extends { child?: any } ? Omit<T, 'child'> : T;
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export type WithoutChildren<T> = T extends { children?: any } ? Omit<T, 'children'> : T;
+export type WithoutChild<T> = T extends { child?: unknown } ? Omit<T, 'child'> : T;
+export type WithoutChildren<T> = T extends { children?: unknown } ? Omit<T, 'children'> : T;
export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>;
export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & { ref?: U | null };
diff --git a/frontend/src/lib/utils/compose-flow.ts b/frontend/src/lib/utils/compose-flow.ts
index eae865c34..35a508add 100644
--- a/frontend/src/lib/utils/compose-flow.ts
+++ b/frontend/src/lib/utils/compose-flow.ts
@@ -38,10 +38,6 @@ export const templateBtnClass = arcaneButtonVariants({
hoverEffect: 'none'
});
-export const dropdownContentClass =
- 'arcane-dd-content min-w-[220px] overflow-visible rounded-lg border border-primary/30 bg-background/95 ' +
- 'backdrop-blur supports-[backdrop-filter]:bg-background/80 ring-1 ring-inset ring-primary/20 shadow-sm p-1';
-
// Shared file-tree ResizableSplit preset for the compose editor pages
// (project detail + new project); size binding and persistKey stay per-page.
export const composeTreeSplitProps = {
@@ -55,12 +51,6 @@ export const composeTreeSplitProps = {
stackBelow: 1024
} as const;
-export const dropdownItemClass =
- 'flex cursor-pointer select-none items-center gap-2 rounded-md px-3 py-2 text-sm ' +
- 'text-foreground/90 outline-none transition-colors ' +
- 'hover:bg-primary/10 focus:bg-primary/10 ' +
- 'data-[disabled]:opacity-50 data-[disabled]:pointer-events-none';
-
export type ProjectEditorLayoutMode = Exclude<ProjectEditorLayout, 'auto'>;
export function projectEditorLayoutPreference(): ProjectEditorLayout {
diff --git a/frontend/src/routes/(app)/+layout.svelte b/frontend/src/routes/(app)/+layout.svelte
index 8084814bc..d8b3badf0 100644
--- a/frontend/src/routes/(app)/+layout.svelte
+++ b/frontend/src/routes/(app)/+layout.svelte
@@ -155,7 +155,7 @@
<AppSidebar {versionInformation} {user} {swarmEnabled} {permissionsManifest} />
{/if}
- <main class={cn('relative z-[var(--arcane-z-content)]', isMobile.current ? 'flex-1' : 'h-dvh flex-1')}>
+ <main class={cn('relative z-(--arcane-z-content)', isMobile.current ? 'flex-1' : 'h-dvh flex-1')}>
<section
class={isMobile.current
? cn(
diff --git a/frontend/src/routes/(app)/account/+page.svelte b/frontend/src/routes/(app)/account/+page.svelte
index 57337293e..39778b1e7 100644
--- a/frontend/src/routes/(app)/account/+page.svelte
+++ b/frontend/src/routes/(app)/account/+page.svelte
@@ -17,7 +17,6 @@
import { getDefaultProfilePicture } from '#lib/utils/docker.js';
import { avatarUploadLimitBytes, prepareAvatarUploadFile } from '#lib/utils/avatar-upload.js';
import { formatDate, formatRelativeTime } from '#lib/utils/formatting.js';
- import { cn } from '#lib/utils.js';
import { GLOBAL_SCOPE } from '#lib/types/auth.js';
import { Temporal } from 'temporal-polyfill';
import { UserIcon, SettingsIcon } from '#lib/icons/index.js';
@@ -212,174 +211,172 @@
<Tabs.Root value={activeTab}>
<TabBar items={accountTabItems} value={activeTab} onValueChange={urlTab.select} />
- <Tabs.Content value="account" class="mt-6 space-y-10">
- <section class="space-y-5">
- <div>
- <h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_profile_title()}</h2>
- <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_profile_description()}</p>
- </div>
- <ImageCropper.Root
- id="account-avatar-cropper"
- bind:src={cropperAvatarSrc}
- accept="image/png, image/jpeg, image/webp"
- onCropped={handleCroppedAvatar}
- onError={handleAvatarCropError}
- onUnsupportedFile={handleUnsupportedAvatarFile}
- >
- <ImageCropper.Dialog>
- <div class="space-y-1">
- <h3 class="text-base font-semibold tracking-tight">{m.account_avatar_crop_title()}</h3>
- <p class="text-sm text-muted-foreground">{m.account_avatar_crop_description()}</p>
- </div>
- <div class="h-72 overflow-hidden rounded-lg border bg-muted/40">
- <ImageCropper.Cropper />
- </div>
- <ImageCropper.Controls class="justify-end">
- <ImageCropper.Cancel disabled={avatarUploading} />
- <ImageCropper.Crop disabled={avatarUploading} />
- </ImageCropper.Controls>
- </ImageCropper.Dialog>
+ <Tabs.Content value="account" class="mt-6">
+ <div class="space-y-10">
+ <section class="space-y-5">
+ <div>
+ <h2 class="text-base font-semibold tracking-tight sm:text-lg">{m.account_profile_title()}</h2>
+ <p class="mt-1 text-xs text-muted-foreground sm:text-sm">{m.account_profile_description()}</p>
+ </div>
+ <ImageCropper.Root
+ id="account-avatar-cropper"
+ bind:src={cropperAvatarSrc}
+ accept="image/png, image/jpeg, image/webp"
+ onCropped={handleCroppedAvatar}
+ onError={handleAvatarCropError}
+ onUnsupportedFile={handleUnsupportedAvatarFile}
+ >
+ <ImageCropper.Dialog>
+ <div class="space-y-1">
+ <h3 class="text-base font-semibold tracking-tight">{m.account_avatar_crop_title()}</h3>
+ <p class="text-sm text-muted-foreground">{m.account_avatar_crop_description()}</p>
+ </div>
+ <div class="h-72 overflow-hidden rounded-lg border bg-muted/40">
+ <ImageCropper.Cropper />
+ </div>
+ <ImageCropper.Controls class="justify-end">
+ <ImageCropper.Cancel disabled={avatarUploading} />
+ <ImageCropper.Crop disabled={avatarUploading} />
+ </ImageCropper.Controls>
+ </ImageCropper.Dialog>
- <div class="flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center">
- <div class="flex min-w-0 items-center gap-4">
- <ImageCropper.UploadTrigger
- aria-label={m.account_upload_photo()}
- class={cn(
- 'group/avatar relative size-16 overflow-hidden rounded-xl focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:outline-none',
- avatarUploading && 'pointer-events-none opacity-70'
- )}
- disabled={avatarUploading}
- >
- {#key avatarCacheBuster}
- <Avatar.Root class="size-16 rounded-xl transition-all group-hover/avatar:opacity-80">
- {#if avatarSrc}
- <Avatar.Image src={avatarSrc} alt={currentUser.displayName ?? currentUser.username} />
- {:else}
- {#await avatarUrl}
- <Avatar.Image src={getDefaultProfilePicture()} alt={currentUser.displayName ?? currentUser.username} />
- {:then url}
- <Avatar.Image src={url} alt={currentUser.displayName ?? currentUser.username} />
- {/await}
- {/if}
- <Avatar.Fallback class="rounded-xl bg-primary text-xl font-semibold text-primary-foreground">
- {(currentUser.displayName ?? currentUser.username).charAt(0).toUpperCase()}
- </Avatar.Fallback>
- </Avatar.Root>
- {/key}
- <div
- class="absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover/avatar:opacity-100"
- >
- <div class="text-xs font-medium text-white">{m.upload()}</div>
- </div>
- </ImageCropper.UploadTrigger>
- <div class="flex min-w-0 flex-col items-start gap-1">
- <div class="text-sm font-medium">@{currentUser.username}</div>
- <div class="text-xs text-muted-foreground">
- {isOidcUser ? m.account_single_sign_on() : m.account_local_account()}
+ <div class="flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center">
+ <div class="flex min-w-0 items-center gap-4">
+ <ImageCropper.UploadTrigger aria-label={m.account_upload_photo()} class="size-16" disabled={avatarUploading}>
+ {#key avatarCacheBuster}
+ <Avatar.Root size="lg">
+ {#if avatarSrc}
+ <Avatar.Image src={avatarSrc} alt={currentUser.displayName ?? currentUser.username} />
+ {:else}
+ {#await avatarUrl}
+ <Avatar.Image
+ src={getDefaultProfilePicture()}
+ alt={currentUser.displayName ?? currentUser.username}
+ />
+ {:then url}
+ <Avatar.Image src={url} alt={currentUser.displayName ?? currentUser.username} />
+ {/await}
+ {/if}
+ <Avatar.Fallback>
+ {(currentUser.displayName ?? currentUser.username).charAt(0).toUpperCase()}
+ </Avatar.Fallback>
+ </Avatar.Root>
+ {/key}
+ <div
+ class="absolute inset-0 flex items-center justify-center bg-black/40 opacity-0 transition-opacity group-hover/avatar:opacity-100"
+ >
+ <div class="text-xs font-medium text-white">{m.upload()}</div>
+ </div>
+ </ImageCropper.UploadTrigger>
+ <div class="flex min-w-0 flex-col items-start gap-1">
+ <div class="text-sm font-medium">@{currentUser.username}</div>
+ <div class="text-xs text-muted-foreground">
+ {isOidcUser ? m.account_single_sign_on() : m.account_local_account()}
+ </div>
+ {#if currentUser.avatarUrl}
+ <div class="mt-1 flex items-center gap-2">
+ <ArcaneButton
+ action="remove"
+ size="sm"
+ tone="ghost"
+ customLabel={m.common_remove()}
+ showLabel={true}
+ class="text-muted-foreground hover:bg-destructive/10 hover:text-destructive"
+ onclick={removeAvatar}
+ disabled={avatarUploading}
+ />
+ </div>
+ {/if}
</div>
- {#if currentUser.avatarUrl}
- <div class="mt-1 flex items-center gap-2">
- <ArcaneButton
- action="remove"
- size="sm"
- tone="ghost"
- customLabel={m.common_remove()}
- showLabel={true}
- class="text-muted-foreground hover:bg-destructive/10 hover:text-destructive"
- onclick={removeAvatar}
- disabled={avatarUploading}
- />
+ </div>
+ <div class="hidden text-right sm:block">
+ {#if formatDate(currentUser.createdAt)}
+ <div class="text-xs text-muted-foreground">
+ {m.account_member_since()}
+ {formatDate(currentUser.createdAt)}
</div>
{/if}
- </div>
- </div>
- <div class="hidden text-right sm:block">
- {#if formatDate(currentUser.createdAt)}
- <div class="text-xs text-muted-foreground">
- {m.account_member_since()}
- {formatDate(currentUser.createdAt)}
+ <div class="text-xs text-muted-foreground" title={currentUser.lastLogin ?? ''}>
+ {m.account_last_login_prefix()}
+ {formatRelativeTime(currentUser.lastLogin) || m.common_never()}
</div>
- {/if}
- <div class="text-xs text-muted-foreground" title={currentUser.lastLogin ?? ''}>
- {m.account_last_login_prefix()}
- {formatRelativeTime(currentUser.lastLogin) || m.common_never()}
</div>
</div>
- </div>
- </ImageCropper.Root>
+ </ImageCropper.Root>
- <div class="grid gap-5 sm:grid-cols-2">
- <TextInputWithLabel
- id="account-display-name"
- bind:value={() => profileDisplayName, (value) => updateProfileField('displayName', value)}
- label={m.common_display_name()}
- placeholder={m.account_display_name_placeholder()}
- disabled={isOidcUser}
- />
- <TextInputWithLabel
- id="account-email"
- type="email"
- bind:value={() => profileEmail, (value) => updateProfileField('email', value)}
- label={m.common_email()}
- placeholder={m.account_email_placeholder()}
- disabled={isOidcUser}
- />
- </div>
- {#if !isOidcUser}
- <div class="flex justify-end gap-2">
- <ArcaneButton
- action="cancel"
- tone="outline"
- customLabel={m.common_reset()}
- onclick={() => (profileDraft = null)}
- disabled={!profileDirty || profileSaving}
+ <div class="grid gap-5 sm:grid-cols-2">
+ <TextInputWithLabel
+ id="account-display-name"
+ bind:value={() => profileDisplayName, (value) => updateProfileField('displayName', value)}
+ label={m.common_display_name()}
+ placeholder={m.account_display_name_placeholder()}
+ disabled={isOidcUser}
/>
- <ArcaneButton
- action="save"
- customLabel={m.account_save_profile()}
- onclick={saveProfile}
- loading={profileSaving}
- disabled={!profileDirty || profileSaving}
+ <TextInputWithLabel
+ id="account-email"
+ type="email"
+ bind:value={() => profileEmail, (value) => updateProfileField('email', value)}
+ label={m.common_email()}
+ placeholder={m.account_email_placeholder()}
+ disabled={isOidcUser}
/>
</div>
- {:else}
- <p class="text-xs text-muted-foreground">{m.account_profile_managed_by_idp()}</p>
- {/if}
-
- <div class="space-y-2 border-t border-border/50 pt-5">
- <h3 class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.account_roles_and_access()}
- </h3>
- {#if currentUser.roleAssignments && currentUser.roleAssignments.length > 0}
- <ul class="flex flex-wrap gap-2">
- {#each currentUser.roleAssignments as ra (`${ra.roleId}-${ra.environmentId ?? 'global'}`)}
- <li class="rounded-lg border border-border/60 bg-muted/20 px-3 py-1.5">
- <span class="text-sm font-medium">{prettyRoleName(ra.roleId)}</span>
- <span class="ml-2 text-xs text-muted-foreground">
- {ra.environmentId ? m.account_role_environment({ env: ra.environmentId }) : m.account_global_scope()}
- {#if ra.source === 'oidc'}
- <span class="ml-1 opacity-70">{m.account_via_sso()}</span>
- {/if}
- </span>
- </li>
- {/each}
- </ul>
+ {#if !isOidcUser}
+ <div class="flex justify-end gap-2">
+ <ArcaneButton
+ action="cancel"
+ tone="outline"
+ customLabel={m.common_reset()}
+ onclick={() => (profileDraft = null)}
+ disabled={!profileDirty || profileSaving}
+ />
+ <ArcaneButton
+ action="save"
+ customLabel={m.account_save_profile()}
+ onclick={saveProfile}
+ loading={profileSaving}
+ disabled={!profileDirty || profileSaving}
+ />
+ </div>
{:else}
- <p class="text-sm text-muted-foreground">{m.account_no_roles()}</p>
+ <p class="text-xs text-muted-foreground">{m.account_profile_managed_by_idp()}</p>
{/if}
- {#if currentUser.permissionsByEnv}
- {@const envCount = Object.keys(currentUser.permissionsByEnv).length}
- {@const globalCount = currentUser.permissionsByEnv[GLOBAL_SCOPE]?.length ?? 0}
- <p class="text-xs text-muted-foreground">
- {m.account_permissions_summary({ globalCount, environmentCount: envCount })}
- </p>
- {/if}
- </div>
- </section>
+ <div class="space-y-2 border-t border-border/50 pt-5">
+ <h3 class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.account_roles_and_access()}
+ </h3>
+ {#if currentUser.roleAssignments && currentUser.roleAssignments.length > 0}
+ <ul class="flex flex-wrap gap-2">
+ {#each currentUser.roleAssignments as ra (`${ra.roleId}-${ra.environmentId ?? 'global'}`)}
+ <li class="rounded-lg border border-border/60 bg-muted/20 px-3 py-1.5">
+ <span class="text-sm font-medium">{prettyRoleName(ra.roleId)}</span>
+ <span class="ml-2 text-xs text-muted-foreground">
+ {ra.environmentId ? m.account_role_environment({ env: ra.environmentId }) : m.account_global_scope()}
+ {#if ra.source === 'oidc'}
+ <span class="ml-1 opacity-70">{m.account_via_sso()}</span>
+ {/if}
+ </span>
+ </li>
+ {/each}
+ </ul>
+ {:else}
+ <p class="text-sm text-muted-foreground">{m.account_no_roles()}</p>
+ {/if}
+
+ {#if currentUser.permissionsByEnv}
+ {@const envCount = Object.keys(currentUser.permissionsByEnv).length}
+ {@const globalCount = currentUser.permissionsByEnv[GLOBAL_SCOPE]?.length ?? 0}
+ <p class="text-xs text-muted-foreground">
+ {m.account_permissions_summary({ globalCount, environmentCount: envCount })}
+ </p>
+ {/if}
+ </div>
+ </section>
- <AccountApiKeysPanel />
- <AccountSecurityPanel />
+ <AccountApiKeysPanel />
+ <AccountSecurityPanel />
+ </div>
</Tabs.Content>
<Tabs.Content value="preferences" class="mt-6">
diff --git a/frontend/src/routes/(app)/containers/+page.svelte b/frontend/src/routes/(app)/containers/+page.svelte
index c08166ba1..cee4935db 100644
--- a/frontend/src/routes/(app)/containers/+page.svelte
+++ b/frontend/src/routes/(app)/containers/+page.svelte
@@ -159,19 +159,19 @@
title: m.common_total(),
value: containerStatusCounts.totalContainers,
icon: BoxIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.common_running(),
value: containerStatusCounts.runningContainers,
icon: BoxIcon,
- iconColor: 'text-green-500'
+ iconColor: 'text-success'
},
{
title: m.common_stopped(),
value: containerStatusCounts.stoppedContainers,
icon: BoxIcon,
- iconColor: 'text-red-500'
+ iconColor: 'text-destructive'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/containers/[containerId]/+page.svelte b/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
index c230a4927..559fb4b99 100644
--- a/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
+++ b/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
@@ -401,10 +401,7 @@
class="size-5"
containerClass="size-9"
/>
- <h1
- class="max-w-[10rem] min-w-0 truncate text-lg font-semibold sm:max-w-[14rem] md:max-w-[18rem] lg:max-w-[22rem]"
- title={containerDisplayName}
- >
+ <h1 class="max-w-40 min-w-0 truncate text-lg font-semibold sm:max-w-56 md:max-w-72 lg:max-w-88" title={containerDisplayName}>
{containerDisplayName}
</h1>
{#if container?.state}
@@ -417,11 +414,11 @@
<Badge variant="amber" minWidth="20">{m.sidebar_update_available()}</Badge>
{/if}
{#if project && composeInfo}
- <a href="/projects/{project.id}" title={m.projects_title()}>
- <Badge variant="gray" size="sm" class="max-w-40 truncate font-normal hover:text-foreground">
+ <Badge variant="gray" size="sm" href="/projects/{project.id}" title={m.projects_title()} class="max-w-40">
+ <span class="block min-w-0 truncate">
{composeInfo.projectName}
- </Badge>
- </a>
+ </span>
+ </Badge>
{/if}
</div>
{/snippet}
diff --git a/frontend/src/routes/(app)/containers/[containerId]/edit/+page.svelte b/frontend/src/routes/(app)/containers/[containerId]/edit/+page.svelte
index 8cc07a101..d4a5aabc5 100644
--- a/frontend/src/routes/(app)/containers/[containerId]/edit/+page.svelte
+++ b/frontend/src/routes/(app)/containers/[containerId]/edit/+page.svelte
@@ -80,7 +80,7 @@
</div>
<div class="mx-auto w-full max-w-full px-6 py-6">
- <div class="mb-6 rounded-lg border border-amber-500/40 bg-amber-500/10 px-4 py-3 text-sm text-amber-600 dark:text-amber-400">
+ <div class="mb-6 rounded-lg border border-warning/40 bg-warning/10 px-4 py-3 text-sm text-warning">
{m.edit_recreate_banner()}
</div>
<ContainerForm
diff --git a/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte b/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte
index ec2c1e1b9..59f957820 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerConfiguration.svelte
@@ -29,7 +29,7 @@
<Card.Description>{m.containers_env_vars_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if container.config?.env && container.config.env.length > 0}
<EnvVarsList
envVars={container.config.env}
@@ -58,7 +58,7 @@
<Card.Description>{m.common_labels_description({ resource: m.resource_container() })}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if container.labels && Object.keys(container.labels).length > 0}
<KeyValueGrid>
{#each Object.entries(container.labels) as [key, value] (key)}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte b/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte
index 695d6d217..4f992a065 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerHealthcheck.svelte
@@ -118,38 +118,44 @@
<Card.Description>{m.health_status_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_health_status()}
- </div>
- <div>
- <Badge variant={statusVariant} minWidth="20">{health?.status ?? m.common_unknown()}</Badge>
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_health_status()}
+ </div>
+ <div>
+ <Badge variant={statusVariant} minWidth="20">{health?.status ?? m.common_unknown()}</Badge>
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_failing_streak()}
- </div>
- <div class="text-sm font-medium text-foreground">
- {health?.failingStreak ?? 0}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_failing_streak()}
+ </div>
+ <div class="text-sm font-medium text-foreground">
+ {health?.failingStreak ?? 0}
+ </div>
</div>
</Card.Content>
</Card.Root>
{#if retriesBudget}
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_retries_remaining()}
- </div>
- <div class="text-sm font-medium text-foreground">
- {retriesBudget.remaining} / {retriesBudget.retries}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_retries_remaining()}
+ </div>
+ <div class="text-sm font-medium text-foreground">
+ {retriesBudget.remaining} / {retriesBudget.retries}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -157,16 +163,18 @@
{#if nextCheck}
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_next_check()}
- </div>
- <div class="text-sm font-medium text-foreground" title={formatProbeDate(nextCheck.at)}>
- {#if nextCheck.overdue}
- {m.health_next_check_running_now()}
- {:else}
- {formatRelativeTime(nextCheck.at)}
- {/if}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_next_check()}
+ </div>
+ <div class="text-sm font-medium text-foreground" title={formatProbeDate(nextCheck.at)}>
+ {#if nextCheck.overdue}
+ {m.health_next_check_running_now()}
+ {:else}
+ {formatRelativeTime(nextCheck.at)}
+ {/if}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -184,77 +192,89 @@
<Card.Description>{m.health_configuration_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<div class="space-y-3">
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_test_command()}
- </div>
- {#if testCommand.type === 'inherit'}
- <div class="text-sm text-muted-foreground italic">
- {m.health_inherit_from_image()}
- </div>
- {:else if testCommand.type === 'none'}
- <div class="text-sm text-muted-foreground italic">
- {m.health_disabled_in_image()}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_test_command()}
</div>
- {:else}
- <pre
- class="cursor-pointer rounded-md bg-black/5 p-2 font-mono text-sm break-all whitespace-pre-wrap text-foreground select-all dark:bg-white/5"
- title={m.common_click_to_select()}>{testCommand.text}</pre>
- {/if}
+ {#if testCommand.type === 'inherit'}
+ <div class="text-sm text-muted-foreground italic">
+ {m.health_inherit_from_image()}
+ </div>
+ {:else if testCommand.type === 'none'}
+ <div class="text-sm text-muted-foreground italic">
+ {m.health_disabled_in_image()}
+ </div>
+ {:else}
+ <pre
+ class="cursor-pointer rounded-md bg-black/5 p-2 font-mono text-sm break-all whitespace-pre-wrap text-foreground select-all dark:bg-white/5"
+ title={m.common_click_to_select()}>{testCommand.text}</pre>
+ {/if}
+ </div>
</Card.Content>
</Card.Root>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5">
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_interval()}
- </div>
- <div class="font-mono text-sm font-medium text-foreground">
- {formatDurationNs(healthcheck?.interval)}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_interval()}
+ </div>
+ <div class="font-mono text-sm font-medium text-foreground">
+ {formatDurationNs(healthcheck?.interval)}
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_timeout()}
- </div>
- <div class="font-mono text-sm font-medium text-foreground">
- {formatDurationNs(healthcheck?.timeout)}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_timeout()}
+ </div>
+ <div class="font-mono text-sm font-medium text-foreground">
+ {formatDurationNs(healthcheck?.timeout)}
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_start_period()}
- </div>
- <div class="font-mono text-sm font-medium text-foreground">
- {formatDurationNs(healthcheck?.startPeriod)}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_start_period()}
+ </div>
+ <div class="font-mono text-sm font-medium text-foreground">
+ {formatDurationNs(healthcheck?.startPeriod)}
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_start_interval()}
- </div>
- <div class="font-mono text-sm font-medium text-foreground">
- {formatDurationNs(healthcheck?.startInterval)}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_start_interval()}
+ </div>
+ <div class="font-mono text-sm font-medium text-foreground">
+ {formatDurationNs(healthcheck?.startInterval)}
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.health_retries()}
- </div>
- <div class="font-mono text-sm font-medium text-foreground">
- {healthcheck?.retries ?? 0}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.health_retries()}
+ </div>
+ <div class="font-mono text-sm font-medium text-foreground">
+ {healthcheck?.retries ?? 0}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -272,7 +292,7 @@
<Card.Description>{m.health_recent_probes_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if recentProbes.length === 0}
<div class="rounded-lg border border-dashed py-8 text-center text-muted-foreground">
<div class="text-sm">{m.health_no_probes_yet()}</div>
@@ -282,29 +302,31 @@
{#each recentProbes as probe (probeKey(probe))}
{@const key = probeKey(probe)}
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="flex flex-wrap items-center justify-between gap-2">
- <div class="flex items-center gap-3">
- <Badge variant={probe.exitCode === 0 ? 'green' : 'red'} size="sm" minWidth="20"
- >{`${m.health_exit_code()}: ${probe.exitCode}`}</Badge
- >
- <span class="text-xs text-muted-foreground" title={formatProbeDate(probe.start)}>
- {probe.start ? formatRelativeTime(probe.start) : '—'}
- </span>
- <span class="text-xs text-muted-foreground">
- {m.duration()}: {probeDuration(probe.start, probe.end)}
- </span>
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="flex flex-wrap items-center justify-between gap-2">
+ <div class="flex items-center gap-3">
+ <Badge variant={probe.exitCode === 0 ? 'green' : 'red'} size="sm" minWidth="20"
+ >{`${m.health_exit_code()}: ${probe.exitCode}`}</Badge
+ >
+ <span class="text-xs text-muted-foreground" title={formatProbeDate(probe.start)}>
+ {probe.start ? formatRelativeTime(probe.start) : '—'}
+ </span>
+ <span class="text-xs text-muted-foreground">
+ {m.duration()}: {probeDuration(probe.start, probe.end)}
+ </span>
+ </div>
+ {#if probe.output}
+ <button type="button" class="text-xs text-primary hover:underline" onclick={() => toggleExpanded(key)}>
+ {expanded[key] ? m.common_hide() : m.common_show()}
+ </button>
+ {/if}
</div>
- {#if probe.output}
- <button type="button" class="text-xs text-primary hover:underline" onclick={() => toggleExpanded(key)}>
- {expanded[key] ? m.common_hide() : m.common_show()}
- </button>
+ {#if probe.output && expanded[key]}
+ <pre
+ class="max-h-64 overflow-auto rounded-md bg-black/5 p-2 font-mono text-xs whitespace-pre-wrap text-foreground dark:bg-white/5">{probe.output}</pre>
{/if}
</div>
- {#if probe.output && expanded[key]}
- <pre
- class="max-h-64 overflow-auto rounded-md bg-black/5 p-2 font-mono text-xs whitespace-pre-wrap text-foreground dark:bg-white/5">{probe.output}</pre>
- {/if}
</Card.Content>
</Card.Root>
{/each}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte b/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte
index 162a85734..15cf6df29 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerInspect.svelte
@@ -28,7 +28,7 @@
</CopyButton>
</div>
</Card.Header>
- <Card.Content class="p-0">
+ <div>
<pre class="overflow-auto rounded-b-lg bg-muted/40 p-4 font-mono text-xs leading-relaxed"><code>{json}</code></pre>
- </Card.Content>
+ </div>
</Card.Root>
diff --git a/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte b/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte
index 32a3a40de..5825830d4 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerLogStatMonitor.svelte
@@ -18,10 +18,8 @@
let { icon, label, value, detail, history, tone = 'cpu', loading = false, disabled = false, testId }: Props = $props();
- const barColorClass = $derived(
- tone === 'cpu' ? 'bg-sky-500/75 dark:bg-sky-400/75' : 'bg-emerald-500/75 dark:bg-emerald-400/75'
- );
- const iconColorClass = $derived(tone === 'cpu' ? 'text-sky-600 dark:text-sky-300' : 'text-emerald-600 dark:text-emerald-300');
+ const barColorClass = $derived(tone === 'cpu' ? 'bg-sky/75' : 'bg-success/75');
+ const iconColorClass = $derived(tone === 'cpu' ? 'text-sky' : 'text-success');
const Icon = $derived(icon);
</script>
@@ -32,13 +30,13 @@
)}
data-testid={testId}
>
- <div class="grid grid-cols-[minmax(0,1fr)_auto] items-start gap-x-3">
+ <div class="grid grid-cols-content-action items-start gap-x-3">
<div class="flex min-w-0 items-center gap-2">
<div class="flex size-7 shrink-0 items-center justify-center rounded-md border border-border/60 bg-background/70">
<Icon class={cn('size-4', disabled ? 'text-muted-foreground' : iconColorClass)} />
</div>
<div class="min-w-0">
- <div class="text-[11px] font-medium tracking-normal text-muted-foreground">{label}</div>
+ <div class="text-2xs font-medium tracking-normal text-muted-foreground">{label}</div>
{#if loading}
<Skeleton class="mt-1 h-5 w-20" />
{:else}
@@ -52,20 +50,23 @@
{#if loading}
<Skeleton class="mt-0.5 h-4 w-16 justify-self-end" />
{:else}
- <div class="shrink-0 justify-self-end pl-2 text-right text-[11px] text-muted-foreground tabular-nums">{detail}</div>
+ <div class="shrink-0 justify-self-end pl-2 text-right text-2xs text-muted-foreground tabular-nums">{detail}</div>
{/if}
</div>
{#if loading}
<Skeleton class="h-8 w-full" />
{:else}
- <div class="flex h-8 items-end gap-[3px] overflow-hidden rounded-md border border-border/60 bg-background/60 px-1.5 py-1">
+ <div class="flex h-8 items-end gap-0.75 overflow-hidden rounded-md border border-border/60 bg-background/60 px-1.5 py-1">
{#each history as sample, index (`${tone}-${index}`)}
<ArcaneTooltip.Root>
<ArcaneTooltip.Trigger class="flex h-full min-w-0 flex-1 items-end self-stretch">
<div
- class={cn('min-w-0 flex-1 rounded-[2px] transition-opacity', disabled ? 'bg-muted' : barColorClass)}
- style={`height: ${Math.max(disabled ? 12 : Math.min(Math.max(sample.percent, 6), 100), 6)}%; opacity: ${disabled ? 0.35 : 0.45 + Math.min(sample.percent, 100) / 180};`}
+ class={cn(
+ 'h-(--bar-height) min-w-0 flex-1 rounded-xs opacity-(--bar-opacity) transition-opacity',
+ disabled ? 'bg-muted' : barColorClass
+ )}
+ style={`--bar-height: ${Math.max(disabled ? 12 : Math.min(Math.max(sample.percent, 6), 100), 6)}%; --bar-opacity: ${disabled ? 0.35 : 0.45 + Math.min(sample.percent, 100) / 180};`}
></div>
</ArcaneTooltip.Trigger>
<ArcaneTooltip.Content side="top">
diff --git a/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte b/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte
index 3211c6b00..4488e65c8 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerLogsPanel.svelte
@@ -179,7 +179,7 @@
/>
</div>
</Card.Header>
- <Card.Content class="flex min-h-0 flex-1 flex-col p-0">
+ <div class="flex min-h-0 flex-1 flex-col">
<div class="shrink-0 border-b px-4 pb-4" data-testid="container-log-stats">
<div class="grid gap-3 md:grid-cols-2">
<ContainerLogStatMonitor
@@ -224,5 +224,5 @@
onStop={handleStreamStop}
/>
</div>
- </Card.Content>
+ </div>
</Card.Root>
diff --git a/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte b/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte
index 1b22977fc..4ad76b166 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerNetwork.svelte
@@ -117,7 +117,7 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if container.ports && container.ports.length > 0}
<!-- fallow-ignore-next-line code-duplication -- container vs swarm-service network; typed props diverge across the boundary -->
<PortBadge ports={container.ports} />
@@ -140,16 +140,16 @@
<Card.Description>{m.containers_networks_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if container.networkSettings?.networks && Object.keys(container.networkSettings.networks).length > 0}
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
<!-- fallow-ignore-next-line code-duplication -- container vs swarm-service network; typed props diverge across the boundary -->
{#each Object.entries(container.networkSettings.networks) as [networkName, rawNetworkConfig] (networkName)}
<Card.Root variant="subtle">
- <Card.Content class="p-4">
+ <Card.Content>
<div class="mb-4 flex items-center gap-3 border-b border-border pb-4">
- <div class="rounded-lg bg-blue-500/10 p-2">
- <NetworksIcon class="size-5 text-blue-500" />
+ <div class="rounded-lg bg-info/10 p-2">
+ <NetworksIcon class="size-5 text-info" />
</div>
<div class="min-w-0 flex-1">
<div class="text-base font-semibold break-all text-foreground">
@@ -172,8 +172,8 @@
</div>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_ip_address()}
</div>
@@ -186,8 +186,8 @@
</Card.Content>
</Card.Root>
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.common_gateway()}</div>
<div
class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
@@ -198,8 +198,8 @@
</Card.Content>
</Card.Root>
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_mac_address()}
</div>
@@ -212,8 +212,8 @@
</Card.Content>
</Card.Root>
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.common_subnet()}</div>
<div
class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
@@ -227,8 +227,8 @@
</Card.Root>
{#if rawNetworkConfig.globalIPv6Address}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.ipv6_address()}</div>
<div
class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
@@ -241,8 +241,8 @@
</Card.Content>
</Card.Root>
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.ipv6_gateway()}</div>
<div
class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
@@ -255,8 +255,8 @@
{/if}
{#if rawNetworkConfig.networkId}
- <Card.Root variant="outlined" class="sm:col-span-2">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" class="sm:col-span-2" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.network_id()}</div>
<div
class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
@@ -269,8 +269,8 @@
{/if}
{#if rawNetworkConfig.endpointId}
- <Card.Root variant="outlined" class="sm:col-span-2">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" class="sm:col-span-2" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.container_endpoint_id()}</div>
<div
class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all"
@@ -283,8 +283,8 @@
{/if}
{#if rawNetworkConfig.aliases && rawNetworkConfig.aliases.length > 0}
- <Card.Root variant="outlined" class="sm:col-span-2">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" class="sm:col-span-2" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_aliases()}
</div>
@@ -330,16 +330,11 @@
placeholder={m.containers_aliases()}
bind:value={connectAliases}
disabled={connectPending}
- class="flex-1 font-mono"
+ mono
+ class="flex-1"
title={m.aliases_note()}
/>
- <Input
- type="text"
- placeholder={m.static_ip()}
- bind:value={connectIp}
- disabled={connectPending}
- class="flex-1 font-mono"
- />
+ <Input type="text" placeholder={m.static_ip()} bind:value={connectIp} disabled={connectPending} mono class="flex-1" />
<ArcaneButton
action="base"
tone="outline"
diff --git a/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte b/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte
index 24a8bd220..62b82aa66 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerOverview.svelte
@@ -142,28 +142,28 @@
<KeyValueCard label={m.common_image_id()} valueTitle={m.common_click_to_select()}>{container.imageId}</KeyValueCard>
- <KeyValueCard label={m.common_created()} valueClass="text-sm font-medium text-foreground">
+ <KeyValueCard label={m.common_created()} valueFormat="text">
{formatRelativeTime(createdInstant) || m.common_na()}
<div class="text-xs font-normal text-muted-foreground">{formatDateTimeShort(createdInstant) || m.common_na()}</div>
</KeyValueCard>
{#if container.state?.running}
- <KeyValueCard label={m.common_started()} valueClass="text-sm font-medium text-foreground">
+ <KeyValueCard label={m.common_started()} valueFormat="text">
{formatRelativeTime(startedInstant) || m.common_na()}
<div class="text-xs font-normal text-muted-foreground">{formatDateTimeShort(startedInstant) || m.common_na()}</div>
</KeyValueCard>
{:else if container.state?.finishedAt && !container.state.finishedAt.startsWith('0001')}
- <KeyValueCard label={m.common_finished()} valueClass="text-sm font-medium text-foreground">
+ <KeyValueCard label={m.common_finished()} valueFormat="text">
{formatRelativeTime(finishedInstant) || m.common_na()}
<div class="text-xs font-normal text-muted-foreground">{formatDateTimeShort(finishedInstant) || m.common_na()}</div>
</KeyValueCard>
{/if}
- <KeyValueCard label={m.common_restart_policy()} valueClass="text-sm font-medium text-foreground capitalize">
- {restartPolicy}
+ <KeyValueCard label={m.common_restart_policy()} valueFormat="text">
+ <span class="capitalize">{restartPolicy}</span>
</KeyValueCard>
- <KeyValueCard label={m.auto_update_title()} valueClass="flex flex-col gap-2">
+ <KeyValueCard label={m.auto_update_title()} stacked>
<div class="flex items-center gap-3">
<Switch
checked={autoUpdateEnabled}
@@ -187,7 +187,7 @@
{/if}
</KeyValueCard>
- <KeyValueCard label={m.common_ports()} valueClass="flex flex-col gap-2 text-sm font-medium text-foreground">
+ <KeyValueCard label={m.common_ports()} valueFormat="text" stacked>
<div>
{#if uniquePorts.total === 0}
{m.containers_no_ports()}
@@ -206,9 +206,9 @@
{/if}
</KeyValueCard>
- <KeyValueCard label={m.resource_volumes_cap()} valueClass="text-sm font-medium text-foreground">
+ <KeyValueCard label={m.resource_volumes_cap()} valueFormat="text">
{#if onViewStorage}
- <Button variant="link" size="sm" class="h-auto w-fit justify-start p-0" onclick={onViewStorage}>
+ <Button variant="link" size="inline" class="w-fit justify-start" onclick={onViewStorage}>
{mountCount}
{mountCount === 1 ? m.common_mount() : m.common_mounts()}
</Button>
@@ -218,9 +218,9 @@
{/if}
</KeyValueCard>
- <KeyValueCard label={m.resource_networks_cap()} valueClass="text-sm font-medium text-foreground">
+ <KeyValueCard label={m.resource_networks_cap()} valueFormat="text">
{#if onViewNetworks}
- <Button variant="link" size="sm" class="h-auto w-fit justify-start p-0" onclick={onViewNetworks}>
+ <Button variant="link" size="inline" class="w-fit justify-start" onclick={onViewNetworks}>
{networkCount}
{networkCount === 1 ? m.resource_network() : m.resource_networks()}
</Button>
@@ -239,14 +239,14 @@
<KeyValueCard
label={m.common_command()}
valueTitle={m.common_click_to_select()}
- cardClass="sm:col-span-2 lg:col-span-3 xl:col-span-4"
+ class="sm:col-span-2 lg:col-span-3 xl:col-span-4"
>
{container.config.cmd.join(' ')}
</KeyValueCard>
{/if}
{#if container.config?.entrypoint && container.config.entrypoint.length > 0}
- <KeyValueCard label={m.common_entrypoint()} valueTitle={m.common_click_to_select()} cardClass="sm:col-span-2">
+ <KeyValueCard label={m.common_entrypoint()} valueTitle={m.common_click_to_select()} class="sm:col-span-2">
{container.config.entrypoint.join(' ')}
</KeyValueCard>
{/if}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerShell.svelte b/frontend/src/routes/(app)/containers/components/ContainerShell.svelte
index aa4fc0a3b..f623c462d 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerShell.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerShell.svelte
@@ -54,8 +54,8 @@
</Card.Title>
{#if isConnected}
<div class="flex items-center gap-2">
- <div class="size-2 animate-pulse rounded-full bg-green-500"></div>
- <span class="text-xs font-semibold text-green-600 sm:text-sm">{m.common_live()}</span>
+ <div class="size-2 animate-pulse rounded-full bg-success"></div>
+ <span class="text-xs font-semibold text-success sm:text-sm">{m.common_live()}</span>
</div>
{/if}
</div>
@@ -64,7 +64,7 @@
<TerminalControls bind:selectedShell onShellChange={handleShellChange} onReconnect={handleReconnect} />
</div>
</Card.Header>
- <Card.Content class="overflow-hidden p-2">
+ <div class="overflow-hidden p-2">
<div class="h-full overflow-hidden rounded-lg border">
{#await environmentStore.ready then}
{#if websocketUrl}
@@ -79,5 +79,5 @@
{/if}
{/await}
</div>
- </Card.Content>
+ </div>
</Card.Root>
diff --git a/frontend/src/routes/(app)/containers/components/ContainerStats.svelte b/frontend/src/routes/(app)/containers/components/ContainerStats.svelte
index a4f8cbda3..7cdee960f 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerStats.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerStats.svelte
@@ -164,7 +164,8 @@
<Progress
value={cpuUsagePercent}
max={100}
- class="h-3 {cpuUsagePercent > 80 ? '[&>div]:bg-destructive' : cpuUsagePercent > 60 ? '[&>div]:bg-warning' : ''}"
+ class="h-3"
+ tone={cpuUsagePercent > 80 ? 'destructive' : cpuUsagePercent > 60 ? 'warning' : 'default'}
/>
{#if stats.cpu_stats}
<div class="flex items-center justify-between text-xs text-muted-foreground">
@@ -220,7 +221,8 @@
<Progress
value={memoryUsagePercent}
max={100}
- class="h-3 {memoryUsagePercent > 80 ? '[&>div]:bg-destructive' : memoryUsagePercent > 60 ? '[&>div]:bg-warning' : ''}"
+ class="h-3"
+ tone={memoryUsagePercent > 80 ? 'destructive' : memoryUsagePercent > 60 ? 'warning' : 'default'}
/>
</div>
<div class="grid grid-cols-1 gap-x-4 gap-y-2 text-xs sm:grid-cols-2 lg:grid-cols-3">
@@ -258,7 +260,7 @@
</div>
{/if}
{#if interfaceStats.rx_dropped > 0 || interfaceStats.tx_dropped > 0}
- <div class="text-warning mt-1 text-xs">
+ <div class="mt-1 text-xs text-warning">
{m.containers_stats_dropped()}: {interfaceStats.rx_dropped + interfaceStats.tx_dropped}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte b/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte
index 1d37aac12..381681417 100644
--- a/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte
+++ b/frontend/src/routes/(app)/containers/components/ContainerStorage.svelte
@@ -24,27 +24,27 @@
<Card.Description>{m.containers_storage_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if container.mounts && container.mounts.length > 0}
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3">
{#each container.mounts as mount (mount.destination)}
<Card.Root variant="subtle">
- <Card.Content class="p-4">
+ <Card.Content>
<div class="mb-4 flex items-center justify-between border-b border-border pb-4">
<div class="flex items-center gap-3">
<div
class="rounded-lg p-2 {mount.type === 'volume'
- ? 'bg-purple-500/10'
+ ? 'bg-primary/10'
: mount.type === 'bind'
- ? 'bg-blue-500/10'
- : 'bg-amber-500/10'}"
+ ? 'bg-info/10'
+ : 'bg-warning/10'}"
>
{#if mount.type === 'volume'}
- <VolumesIcon class="size-5 text-purple-500" />
+ <VolumesIcon class="size-5 text-primary" />
{:else if mount.type === 'bind'}
- <VolumesIcon class="size-5 text-blue-500" />
+ <VolumesIcon class="size-5 text-info" />
{:else}
- <TerminalIcon class="size-5 text-amber-500" />
+ <TerminalIcon class="size-5 text-warning" />
{/if}
</div>
<div class="min-w-0 flex-1">
@@ -60,14 +60,14 @@
</div>
</div>
</div>
- <Badge variant={mount.rw ? 'outline' : 'secondary'} class="text-xs font-semibold">
+ <Badge variant={mount.rw ? 'outline' : 'secondary'}>
{mount.rw ? m.common_rw() : m.common_ro()}
</Badge>
</div>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
- <Card.Root variant="outlined" class="sm:col-span-2">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" class="sm:col-span-2" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_mount_label_container()}
</div>
@@ -80,8 +80,8 @@
</Card.Content>
</Card.Root>
- <Card.Root variant="outlined" class="sm:col-span-2">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" class="sm:col-span-2" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{mount.type === 'volume'
? m.containers_mount_label_volume()
@@ -99,8 +99,8 @@
</Card.Root>
{#if mount.type === 'volume' && mount.driver}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.common_driver()}</div>
<div class="text-sm font-medium text-foreground">
{mount.driver}
@@ -110,8 +110,8 @@
{/if}
{#if mount.propagation}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.container_propagation()}</div>
<div class="text-sm font-medium text-foreground">
<!-- fallow-ignore-next-line code-duplication -- container vs swarm-service storage; typed Mount vs ServiceMount props diverge across the boundary -->
diff --git a/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte b/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte
index 891653c0d..b9a7f1552 100644
--- a/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte
+++ b/frontend/src/routes/(app)/containers/components/container-commit-dialog.svelte
@@ -93,13 +93,13 @@
onOpenChange={handleOpenChange}
title={m.containers_commit_title({ name: containerName })}
description={m.containers_commit_description()}
- contentClass="sm:max-w-[560px]"
+ contentClass="sm:max-w-140"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">
- <Alert.Root class="border-cyan-500/30 bg-cyan-500/10 text-cyan-950 dark:text-cyan-100">
+ <Alert.Root variant="info">
<InfoIcon class="size-4" />
- <Alert.Description class="text-sm">{m.containers_commit_registry_note()}</Alert.Description>
+ <Alert.Description>{m.containers_commit_registry_note()}</Alert.Description>
</Alert.Root>
<RepoTagFields bind:repository={inputs.repository} bind:tag={inputs.tag} />
<FormInput
diff --git a/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte b/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte
index 8ed565eb5..c9493dd84 100644
--- a/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte
+++ b/frontend/src/routes/(app)/containers/components/container-stats-cell.svelte
@@ -33,7 +33,7 @@
<div class="text-xs text-muted-foreground">{m.common_unavailable()}</div>
{:else if loading}
<div class="flex items-center gap-2">
- <div class="size-[26px] shrink-0 animate-pulse rounded-full bg-muted"></div>
+ <div class="size-6.5 shrink-0 animate-pulse rounded-full bg-muted"></div>
<div class="h-3 w-16 animate-pulse rounded bg-muted"></div>
</div>
{:else if type === 'memory' && memoryFormatted}
diff --git a/frontend/src/routes/(app)/containers/container-table.svelte b/frontend/src/routes/(app)/containers/container-table.svelte
index 02c9f840e..d260c28a2 100644
--- a/frontend/src/routes/(app)/containers/container-table.svelte
+++ b/frontend/src/routes/(app)/containers/container-table.svelte
@@ -650,11 +650,13 @@
<IconImage src={iconUrl} alt={displayName} fallback={BoxIcon} class="size-6" containerClass="size-8" />
<a class="font-medium hover:underline" href="/containers/{item.id}">{displayName}</a>
{#if item.hidden}
- <Badge variant="gray" size="sm" class="font-normal text-muted-foreground">{m.hidden()}</Badge>
+ <Badge variant="gray" size="sm">{m.hidden()}</Badge>
{/if}
{#if projectLabel && !groupByProject}
- <Badge variant="gray" size="sm" class="max-w-40 truncate font-normal text-muted-foreground" title={projectLabel}>
- {projectLabel}
+ <Badge variant="gray" size="sm" class="max-w-40" title={projectLabel}>
+ <span class="block min-w-0 truncate">
+ {projectLabel}
+ </span>
</Badge>
{/if}
</div>
@@ -683,7 +685,7 @@
action="base"
tone="outline"
size="sm"
- class="size-7 border-transparent bg-transparent p-0 text-green-600 shadow-none hover:bg-green-600/10 hover:text-green-500"
+ class="size-7 border-transparent bg-transparent p-0 text-success shadow-none hover:bg-success/10 hover:text-success"
onclick={() => performContainerAction('start', item.id)}
disabled={!resourcesCurrent || isAnyLoading}
icon={StartIcon}
@@ -694,7 +696,7 @@
action="base"
tone="outline"
size="sm"
- class="size-7 border-transparent bg-transparent p-0 text-red-600 shadow-none hover:bg-red-600/10 hover:text-red-500"
+ class="size-7 border-transparent bg-transparent p-0 text-destructive shadow-none hover:bg-destructive/10 hover:text-destructive"
onclick={() => performContainerAction('stop', item.id)}
disabled={!resourcesCurrent || isAnyLoading}
title={m.common_stop()}
@@ -858,11 +860,11 @@
<div class="flex flex-row gap-4 border-t pt-3">
{#if (mobileFieldVisibility['ports'] ?? true) && item.ports && item.ports.length > 0}
<div class="flex min-w-0 flex-1 items-start gap-2.5">
- <div class="flex size-7 shrink-0 items-center justify-center rounded-lg bg-sky-500/10">
- <NetworksIcon class="size-3.5 text-sky-500" />
+ <div class="flex size-7 shrink-0 items-center justify-center rounded-lg bg-info/10">
+ <NetworksIcon class="size-3.5 text-info" />
</div>
<div class="min-w-0 flex-1">
- <div class="text-[10px] font-medium tracking-wide text-muted-foreground uppercase">
+ <div class="text-3xs font-medium tracking-wide text-muted-foreground uppercase">
{m.common_ports()}
</div>
<div class="mt-1">
@@ -874,7 +876,7 @@
{#if mobileFieldVisibility['updates'] ?? true}
<div class="flex min-w-0 flex-1 items-start gap-2.5">
<div class="flex min-w-0 flex-col">
- <div class="text-[10px] font-medium tracking-wide text-muted-foreground uppercase">
+ <div class="text-3xs font-medium tracking-wide text-muted-foreground uppercase">
{m.updates()}
</div>
<div class="mt-1">
diff --git a/frontend/src/routes/(app)/customize/templates/+page.svelte b/frontend/src/routes/(app)/customize/templates/+page.svelte
index d88889eec..aeb451ce6 100644
--- a/frontend/src/routes/(app)/customize/templates/+page.svelte
+++ b/frontend/src/routes/(app)/customize/templates/+page.svelte
@@ -198,19 +198,19 @@
title: m.templates_local_templates(),
value: localTemplatesCount,
icon: FolderOpenIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.templates_remote_templates(),
value: remoteTemplatesCount,
icon: RegistryIcon,
- iconColor: 'text-green-500'
+ iconColor: 'text-success'
},
{
title: m.templates_registries(),
value: registries.length,
icon: TemplateIcon,
- iconColor: 'text-purple-500'
+ iconColor: 'text-purple'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
index 1c68bd400..2d6527f7e 100644
--- a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
+++ b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
@@ -302,12 +302,12 @@
actions={remoteActions}
>
{#snippet badges()}
- <Badge variant="secondary" class="gap-1">
+ <Badge variant="secondary">
<GlobeIcon class="size-3" />
{m.templates_remote()}
</Badge>
{#if template.registry?.name}
- <Badge variant="outline" class="gap-1">
+ <Badge variant="outline">
<RegistryIcon class="size-3" />
{template.registry.name}
</Badge>
@@ -321,7 +321,7 @@
<CodeIcon class="size-4 text-muted-foreground" />
<h2 class="font-mono text-sm font-medium">compose.yaml</h2>
</div>
- <div class="relative h-[480px] overflow-hidden rounded-lg border border-border/50 sm:h-[560px]">
+ <div class="relative h-120 overflow-hidden rounded-lg border border-border/50 sm:h-140">
<div class="absolute inset-0">
<CodeEditor bind:value={data.templateData.content} language="yaml" readOnly={true} fontSize="13px" />
</div>
@@ -334,7 +334,7 @@
<FileTextIcon class="size-4 text-muted-foreground" />
<h2 class="font-mono text-sm font-medium">.env</h2>
</div>
- <div class="relative h-[280px] overflow-hidden rounded-lg border border-border/50">
+ <div class="relative h-70 overflow-hidden rounded-lg border border-border/50">
<div class="absolute inset-0">
<CodeEditor bind:value={data.templateData.envContent} language="env" readOnly={true} fontSize="13px" />
</div>
@@ -431,7 +431,7 @@
<h3 class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_tags()}</h3>
<div class="flex flex-wrap gap-1">
{#each template.metadata.tags as tag (tag)}
- <Badge variant="outline" class="text-xs">{tag}</Badge>
+ <Badge variant="outline">{tag}</Badge>
{/each}
</div>
</div>
diff --git a/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte b/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
index 8b3d87c29..bc195e87b 100644
--- a/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
+++ b/frontend/src/routes/(app)/customize/templates/components/RegistryManager.svelte
@@ -48,13 +48,15 @@
<Alert.Description>{m.templates_alert_remote_registries_description()}</Alert.Description>
</Alert.Root>
- <Alert.Root class="border-primary/20 bg-primary/5 dark:border-primary/30 dark:bg-primary/10">
+ <Alert.Root variant="primary-subtle">
<CommunityIcon class="size-4" />
<Alert.Title>{m.templates_community_registry_title()}</Alert.Title>
- <Alert.Description class="space-y-2">
- <p>{m.templates_community_registry_description()}</p>
- <div class="flex w-full max-w-[475px] flex-col gap-2">
- <Snippet text="https://registry.getarcane.app/registry.json" />
+ <Alert.Description>
+ <div class="space-y-2">
+ <p>{m.templates_community_registry_description()}</p>
+ <div class="flex w-full max-w-118.75 flex-col gap-2">
+ <Snippet text="https://registry.getarcane.app/registry.json" />
+ </div>
</div>
</Alert.Description>
</Alert.Root>
diff --git a/frontend/src/routes/(app)/customize/templates/components/template-card.svelte b/frontend/src/routes/(app)/customize/templates/components/template-card.svelte
index 6fdcd774e..601fe4328 100644
--- a/frontend/src/routes/(app)/customize/templates/components/template-card.svelte
+++ b/frontend/src/routes/(app)/customize/templates/components/template-card.svelte
@@ -107,10 +107,10 @@
{#if tags.length > 0}
<div class="mt-auto flex flex-wrap gap-1">
{#each tags.slice(0, MAX_TAGS) as tag (tag)}
- <Badge variant="outline" class="text-xs">{tag}</Badge>
+ <Badge variant="outline">{tag}</Badge>
{/each}
{#if tags.length > MAX_TAGS}
- <Badge variant="outline" class="text-xs">+{tags.length - MAX_TAGS}</Badge>
+ <Badge variant="outline">+{tags.length - MAX_TAGS}</Badge>
{/if}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/customize/templates/components/template-gallery.svelte b/frontend/src/routes/(app)/customize/templates/components/template-gallery.svelte
index 9944acd41..e11bcd9ce 100644
--- a/frontend/src/routes/(app)/customize/templates/components/template-gallery.svelte
+++ b/frontend/src/routes/(app)/customize/templates/components/template-gallery.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { Input } from '#lib/components/ui/input/index.js';
+ import * as InputGroup from '#lib/components/ui/input-group/index.js';
import * as Select from '#lib/components/ui/select/index.js';
import ArcaneTablePagination from '#lib/components/arcane-table/arcane-table-pagination.svelte';
import EmptyState from '#lib/components/states/empty-state.svelte';
@@ -144,9 +144,11 @@
<div class="space-y-4">
<div class="flex flex-wrap items-center gap-2">
- <div class="relative min-w-0 flex-1 md:w-64 md:flex-none">
- <SearchIcon class="pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground" />
- <Input
+ <InputGroup.Root class="min-w-0 flex-1 md:w-64 md:flex-none">
+ <InputGroup.Addon>
+ <SearchIcon aria-hidden="true" />
+ </InputGroup.Addon>
+ <InputGroup.Input
placeholder={m.templates_search_placeholder()}
bind:value={searchValue}
oninput={(e) => debouncedSearch(e.currentTarget.value)}
@@ -154,12 +156,11 @@
onkeydown={(e) => {
if (e.key === 'Enter') applySearch((e.currentTarget as HTMLInputElement).value);
}}
- class="h-9 w-full pl-8"
/>
- </div>
+ </InputGroup.Root>
<Select.Root allowDeselect={false} type="single" value={typeFilter} onValueChange={applyTypeFilter}>
- <Select.Trigger class="h-9 w-[140px]">
+ <Select.Trigger class="h-9 w-35">
{typeFilterLabel}
</Select.Trigger>
<Select.Content>
@@ -196,19 +197,13 @@
{setPageSize}
/>
{:else if hasActiveQuery}
- <EmptyState
- icon={SearchIcon}
- title={m.common_no_results_found()}
- description={m.common_no_results_hint()}
- class="rounded-xl border border-border/50 py-12"
- />
+ <EmptyState icon={SearchIcon} title={m.common_no_results_found()} description={m.common_no_results_hint()} />
{:else}
<EmptyState
icon={TemplateIcon}
title={m.templates_no_templates()}
actionLabel={canCreateTemplate ? m.templates_create_template() : undefined}
actionHref={canCreateTemplate ? '/customize/templates/create' : undefined}
- class="rounded-xl border border-border/50 py-12"
/>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/customize/variables/variable-table.svelte b/frontend/src/routes/(app)/customize/variables/variable-table.svelte
index 074f3ebe8..4cb13b521 100644
--- a/frontend/src/routes/(app)/customize/variables/variable-table.svelte
+++ b/frontend/src/routes/(app)/customize/variables/variable-table.svelte
@@ -134,7 +134,7 @@
<span class="font-mono text-muted-foreground select-none">••••••••</span>
{:else}
<div class="flex items-center gap-2">
- <span class="max-w-[280px] truncate font-mono text-sm">{item.value}</span>
+ <span class="max-w-70 truncate font-mono text-sm">{item.value}</span>
<CopyButton text={item.value} class="size-6" />
</div>
{/if}
@@ -147,7 +147,9 @@
{@const names = scopeNames(item)}
<div class="flex flex-wrap items-center gap-1">
{#each item.environmentIds.slice(0, 2) as environmentId (environmentId)}
- <Badge variant="outline" size="sm" class="max-w-40 truncate">{envNameById.get(environmentId) ?? environmentId}</Badge>
+ <Badge variant="outline" size="sm" class="max-w-40"
+ ><span class="block min-w-0 truncate">{envNameById.get(environmentId) ?? environmentId}</span></Badge
+ >
{/each}
{#if names.length > 2}
<Badge variant="gray" size="sm">{m.plus_count({ count: names.length - 2 })}</Badge>
diff --git a/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte b/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte
index f4f4e9bf7..d8e9fab5e 100644
--- a/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte
+++ b/frontend/src/routes/(app)/dashboard/dash-metric-tile.svelte
@@ -22,48 +22,40 @@
});
const meterIsHigh = $derived(meterPercent >= HIGH_USAGE_THRESHOLD);
-
- const meterWidth = $derived.by(() => {
- return `width: ${meterPercent}%`;
- });
-
- const meterDotStyle = $derived.by(() => {
- return `left: calc(${meterPercent}% - 4px)`;
- });
</script>
<div class="min-w-0 px-2.5 py-2.5">
<div class="flex items-start justify-between gap-2">
- <p class="flex items-center gap-1 text-[10px] font-semibold tracking-wide text-foreground/70 uppercase">
+ <p class="flex items-center gap-1 text-3xs font-semibold tracking-wide text-foreground/70 uppercase">
<Icon class="size-3.5" />
{title}
</p>
<p class="text-base font-semibold tracking-tight tabular-nums">{value}</p>
</div>
- <p class={cn('mt-0.5 text-[11px] text-muted-foreground/90', labelClass)}>{label}</p>
+ <p class={cn('mt-0.5 text-2xs text-muted-foreground/90', labelClass)}>{label}</p>
{#if meterValue !== null}
<div class="mt-2.5">
<div class="relative h-1.5 overflow-hidden rounded-full bg-muted/45">
<div class="pointer-events-none absolute inset-0">
{#each [25, 50, 75] as tick (tick)}
- <span class="absolute top-0 h-full w-px bg-foreground/15 opacity-60" style={`left: ${tick}%`}></span>
+ <span class="absolute top-0 left-(--tick) h-full w-px bg-foreground/15 opacity-60" style={`--tick: ${tick}%`}></span>
{/each}
</div>
<div
class={cn(
- 'absolute inset-y-0 left-0 rounded-full bg-gradient-to-r transition-[width] duration-700 ease-out motion-reduce:transition-none',
- meterIsHigh ? 'from-primary/65 via-primary to-red-500' : 'from-primary/65 to-primary'
+ 'absolute inset-y-0 left-0 w-(--meter) rounded-full bg-gradient-to-r transition-all duration-700 ease-out motion-reduce:transition-none',
+ meterIsHigh ? 'from-primary/65 via-primary to-destructive' : 'from-primary/65 to-primary'
)}
- style={meterWidth}
+ style={`--meter: ${meterPercent}%`}
></div>
{#if meterPercent > 0}
<div
class={cn(
- 'absolute top-1/2 size-2 -translate-y-1/2 rounded-full shadow-[0_0_0_2px_hsl(var(--background))] transition-[left] duration-700 ease-out motion-reduce:transition-none',
- meterIsHigh ? 'bg-red-500' : 'bg-primary'
+ 'absolute top-1/2 left-(--meter) size-2 -translate-x-1 -translate-y-1/2 rounded-full ring-2 ring-background transition-all duration-700 ease-out motion-reduce:transition-none',
+ meterIsHigh ? 'bg-destructive' : 'bg-primary'
)}
- style={meterDotStyle}
+ style={`--meter: ${meterPercent}%`}
></div>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte b/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
index 22e3491f9..0d16cbfa8 100644
--- a/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
+++ b/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
@@ -679,7 +679,7 @@
<div class="flex h-full min-h-0 flex-col gap-4 overflow-hidden pt-3 md:gap-5 md:pt-5">
<header class="flex shrink-0 items-start justify-between gap-4">
<div class="min-w-0 space-y-1">
- <p class="text-[11px] font-semibold tracking-[0.14em] text-muted-foreground uppercase">{m.dashboard_title()}</p>
+ <p class="text-2xs font-semibold tracking-widest text-muted-foreground uppercase">{m.dashboard_title()}</p>
<h1 class="text-xl font-semibold tracking-tight sm:text-2xl">{heroGreeting}</h1>
</div>
@@ -693,8 +693,7 @@
aria-pressed={boardView === option.view}
class={cn(
'inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',
- boardView === option.view &&
- 'bg-primary/15 text-primary ring-1 ring-primary/30 dark:text-[color-mix(in_oklch,var(--primary)_55%,white)]'
+ boardView === option.view && 'bg-primary/15 text-primary ring-1 ring-primary/30 dark:text-primary-tint'
)}
onclick={() => (boardViewPref.current = option.view)}
>
@@ -719,7 +718,7 @@
<div class="grid grid-cols-2 gap-x-6 gap-y-4 lg:grid-cols-4">
{#each [{ icon: UpdateIcon, label: m.updates() }, { icon: ContainersIcon, label: m.containers() }, { icon: ImagesIcon, label: m.images() }, { icon: VolumesIcon, label: m.resource_volumes_cap() }] as tile (tile.label)}
<div class="min-w-0">
- <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
+ <div class="flex items-center gap-1.5 text-2xs font-semibold tracking-wide text-muted-foreground uppercase">
<tile.icon class="size-3.5" />
<span>{tile.label}</span>
</div>
@@ -737,7 +736,7 @@
class="group min-w-0 cursor-pointer rounded-sm text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring"
>
<div
- class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ class="flex items-center gap-1.5 text-2xs font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
>
<UpdateIcon class="size-3.5" />
<span>{m.updates()}</span>
@@ -745,7 +744,7 @@
<div class="mt-1 text-2xl font-semibold tracking-tight tabular-nums">{updatesOverview.pending}</div>
<div class="mt-0.5 flex h-4 items-center gap-1.5 truncate text-xs text-muted-foreground">
{#if updatesOverview.pending === 0 && !updatesOverview.checking}
- <VerifiedCheckIcon class="size-3.5 shrink-0 text-emerald-600 dark:text-emerald-400" />
+ <VerifiedCheckIcon class="size-3.5 shrink-0 text-success" />
<span class="truncate">{m.dashboard_updates_up_to_date()}</span>
{:else if updatesOverview.checking}
<span class="truncate">{m.dashboard_updates_checking()}</span>
@@ -761,7 +760,7 @@
class="group min-w-0 cursor-pointer rounded-sm border-border/60 text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring max-lg:border-l max-lg:pl-6 lg:border-l lg:pl-6"
>
<div
- class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ class="flex items-center gap-1.5 text-2xs font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
>
<ContainersIcon class="size-3.5" />
<span>{m.containers()}</span>
@@ -776,7 +775,7 @@
class="group min-w-0 cursor-pointer rounded-sm border-border/60 text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring lg:border-l lg:pl-6"
>
<div
- class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ class="flex items-center gap-1.5 text-2xs font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
>
<ImagesIcon class="size-3.5" />
<span>{m.images()}</span>
@@ -791,7 +790,7 @@
class="group min-w-0 cursor-pointer rounded-sm border-border/60 text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring max-lg:border-l max-lg:pl-6 lg:border-l lg:pl-6"
>
<div
- class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ class="flex items-center gap-1.5 text-2xs font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
>
<VolumesIcon class="size-3.5" />
<span>{m.resource_volumes_cap()}</span>
diff --git a/frontend/src/routes/(app)/dashboard/dashboard-environment-card.svelte b/frontend/src/routes/(app)/dashboard/dashboard-environment-card.svelte
index e2f9f5006..c4caef722 100644
--- a/frontend/src/routes/(app)/dashboard/dashboard-environment-card.svelte
+++ b/frontend/src/routes/(app)/dashboard/dashboard-environment-card.svelte
@@ -71,205 +71,206 @@
const gpuMetric = $derived(getGpuMetric(systemStats));
</script>
-<Card.Root
- variant="outlined"
- class={`dashboard-environment-card [container-type:inline-size] overflow-hidden border transition-[background-color,border-color,box-shadow] hover:shadow-[0_0_24px_-8px_color-mix(in_oklch,var(--primary)_40%,transparent)] ${isCurrent ? 'border-primary/40 bg-primary/5' : 'border-border/60 hover:border-primary/25'}`}
->
- <Card.Content class="space-y-4 p-4 sm:p-5">
- <div class="flex flex-col gap-3 border-b border-border/60 pb-4 sm:flex-row sm:items-start sm:justify-between">
- <div class="min-w-0 space-y-2">
- <div class="flex min-w-0 flex-wrap items-center gap-2">
- <div class="max-w-full min-w-0 text-base font-semibold tracking-tight break-words">{environment.name}</div>
- <Badge variant={roleBadge.variant} size="sm">{roleBadge.text}</Badge>
- {#if versionInfo}
- <div class="flex items-center">
- {#if versionInfo.updateAvailable || debugUpgrade}
- <ArcaneTooltip.Root>
- <ArcaneTooltip.Trigger
- class={cn(badgeVariants({ variant: 'gray', size: 'sm' }), 'font-mono hover:text-foreground')}
- >
- {versionInfo.displayVersion || versionInfo.currentTag || versionInfo.currentVersion || m.common_unknown()}
- <span class="relative ml-1.5 flex h-2 w-2">
- <span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-amber-400 opacity-75"></span>
- <span class="relative inline-flex h-2 w-2 rounded-full bg-amber-500"></span>
- </span>
- </ArcaneTooltip.Trigger>
- <ArcaneTooltip.Content class="flex flex-col items-start gap-2">
- <span
- >{m.sidebar_update_available()}{#if newestVersionLabel}: {newestVersionLabel}{/if}</span
+<Card.Root variant="outlined" interactive selected={isCurrent} class="@container overflow-hidden">
+ <Card.Content>
+ <div class="flex flex-col gap-4">
+ <div class="flex flex-col gap-3 border-b border-border/60 pb-4 sm:flex-row sm:items-start sm:justify-between">
+ <div class="min-w-0 space-y-2">
+ <div class="flex min-w-0 flex-wrap items-center gap-2">
+ <div class="max-w-full min-w-0 text-base font-semibold tracking-tight break-words">{environment.name}</div>
+ <Badge variant={roleBadge.variant} size="sm">{roleBadge.text}</Badge>
+ {#if versionInfo}
+ <div class="flex items-center">
+ {#if versionInfo.updateAvailable || debugUpgrade}
+ <ArcaneTooltip.Root>
+ <ArcaneTooltip.Trigger
+ class={cn(badgeVariants({ variant: 'gray', size: 'sm' }), 'font-mono hover:text-foreground')}
>
- <DashboardEnvironmentUpgradeAction
- {environment}
- {versionInfo}
- {canUpgrade}
- debug={debugUpgrade}
- {onRefreshRequested}
- render="trigger"
- bind:open={upgradeOpen}
- bind:upgrading={upgradeLoading}
- />
- </ArcaneTooltip.Content>
- </ArcaneTooltip.Root>
- {:else}
- <Badge variant="gray" size="sm" class="font-mono">
- {versionInfo.displayVersion || versionInfo.currentTag || versionInfo.currentVersion || m.common_unknown()}
- </Badge>
+ {versionInfo.displayVersion || versionInfo.currentTag || versionInfo.currentVersion || m.common_unknown()}
+ <span class="relative ml-1.5 flex h-2 w-2">
+ <span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-warning opacity-75"></span>
+ <span class="relative inline-flex h-2 w-2 rounded-full bg-warning"></span>
+ </span>
+ </ArcaneTooltip.Trigger>
+ <ArcaneTooltip.Content>
+ <div class="flex flex-col items-start gap-2">
+ <span
+ >{m.sidebar_update_available()}{#if newestVersionLabel}: {newestVersionLabel}{/if}</span
+ >
+ <DashboardEnvironmentUpgradeAction
+ {environment}
+ {versionInfo}
+ {canUpgrade}
+ debug={debugUpgrade}
+ {onRefreshRequested}
+ render="trigger"
+ bind:open={upgradeOpen}
+ bind:upgrading={upgradeLoading}
+ />
+ </div>
+ </ArcaneTooltip.Content>
+ </ArcaneTooltip.Root>
+ {:else}
+ <Badge variant="gray" size="sm" mono>
+ {versionInfo.displayVersion || versionInfo.currentTag || versionInfo.currentVersion || m.common_unknown()}
+ </Badge>
+ {/if}
+ </div>
+ {#if versionInfo.updateAvailable || debugUpgrade}
+ <DashboardEnvironmentUpgradeAction
+ {environment}
+ {versionInfo}
+ {canUpgrade}
+ debug={debugUpgrade}
+ {onRefreshRequested}
+ render="dialog"
+ bind:open={upgradeOpen}
+ bind:upgrading={upgradeLoading}
+ />
{/if}
- </div>
- {#if versionInfo.updateAvailable || debugUpgrade}
- <DashboardEnvironmentUpgradeAction
- {environment}
- {versionInfo}
- {canUpgrade}
- debug={debugUpgrade}
- {onRefreshRequested}
- render="dialog"
- bind:open={upgradeOpen}
- bind:upgrading={upgradeLoading}
- />
{/if}
- {/if}
+ </div>
+
+ <div class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-2xs text-muted-foreground/70">
+ <span class="font-mono">{environment.apiUrl}</span>
+ <span>•</span>
+ <span title={activity.title}>{activity.label}: {activity.value}</span>
+ </div>
</div>
- <div class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-muted-foreground/70">
- <span class="font-mono">{environment.apiUrl}</span>
- <span>•</span>
- <span title={activity.title}>{activity.label}: {activity.value}</span>
+ <div class="flex shrink-0 items-center gap-1 pt-1 sm:pt-0">
+ {#if useButton}
+ <ArcaneButton
+ action="base"
+ size="sm"
+ tone="ghost"
+ icon={EnvironmentsIcon}
+ customLabel={isCurrent ? m.common_current() : useButton.label}
+ loading={useButton.loading}
+ disabled={useButton.disabled}
+ onclick={useButton.onclick}
+ class={cn(isCurrent && 'disabled:opacity-100 [&_svg]:text-primary!')}
+ />
+ {/if}
+ <RowActionsMenu>
+ {#each menuButtons as button (button.id)}
+ <DropdownMenu.Item
+ disabled={!!(button.disabled || button.loading)}
+ onclick={button.onclick}
+ variant={button.action === 'prune' ? 'destructive' : 'default'}
+ >
+ {#if button.icon}
+ <button.icon class="size-4" />
+ {/if}
+ {button.label}
+ </DropdownMenu.Item>
+ {/each}
+ </RowActionsMenu>
</div>
</div>
- <div class="flex shrink-0 items-center gap-1 pt-1 sm:pt-0">
- {#if useButton}
- <ArcaneButton
- action="base"
- size="sm"
- tone="ghost"
- icon={EnvironmentsIcon}
- customLabel={isCurrent ? m.common_current() : useButton.label}
- loading={useButton.loading}
- disabled={useButton.disabled}
- onclick={useButton.onclick}
- class={cn(isCurrent && 'disabled:opacity-100 [&_svg]:text-primary!')}
- />
+ {#if shouldLoadEnvironment(environment) || isEnvironmentOnline(environment)}
+ {#if snapshotLoading}
+ <Skeleton class="h-4 w-64" />
+ {:else}
+ <div class="flex flex-wrap items-center gap-x-2 gap-y-0.5 text-sm text-muted-foreground">
+ <span>
+ <span class="font-semibold text-foreground tabular-nums"
+ >{overview.containers.runningContainers}/{overview.containers.totalContainers}</span
+ >
+ {String(m.common_running()).toLowerCase()}
+ </span>
+ <span class="text-border">·</span>
+ <span>
+ <span class="font-semibold text-foreground tabular-nums">{overview.imageUsageCounts.totalImages}</span>
+ {String(m.images()).toLowerCase()}
+ </span>
+ <span class="text-border">·</span>
+ <span>
+ <span class="font-semibold text-foreground tabular-nums">{overview.actionItems.items.length}</span>
+ {String(m.dashboard_action_items_title()).toLowerCase()}
+ </span>
+ </div>
{/if}
- <RowActionsMenu>
- {#each menuButtons as button (button.id)}
- <DropdownMenu.Item
- disabled={!!(button.disabled || button.loading)}
- onclick={button.onclick}
- class={cn(button.action === 'prune' && 'text-destructive data-highlighted:text-destructive')}
- >
- {#if button.icon}
- <button.icon class="size-4" />
- {/if}
- {button.label}
- </DropdownMenu.Item>
- {/each}
- </RowActionsMenu>
- </div>
- </div>
-
- {#if shouldLoadEnvironment(environment) || isEnvironmentOnline(environment)}
- {#if snapshotLoading}
- <Skeleton class="h-4 w-64" />
{:else}
- <div class="flex flex-wrap items-center gap-x-2 gap-y-0.5 text-sm text-muted-foreground">
- <span>
- <span class="font-semibold text-foreground tabular-nums"
- >{overview.containers.runningContainers}/{overview.containers.totalContainers}</span
- >
- {String(m.common_running()).toLowerCase()}
- </span>
- <span class="text-border">·</span>
- <span>
- <span class="font-semibold text-foreground tabular-nums">{overview.imageUsageCounts.totalImages}</span>
- {String(m.images()).toLowerCase()}
- </span>
- <span class="text-border">·</span>
- <span>
- <span class="font-semibold text-foreground tabular-nums">{overview.actionItems.items.length}</span>
- {String(m.dashboard_action_items_title()).toLowerCase()}
- </span>
+ <div class="border-t border-border/60 pt-3 text-sm">
+ <p class="font-medium">{m.dashboard_all_environment_unavailable_title()}</p>
+ <p class="mt-1 text-muted-foreground">{m.dashboard_all_environment_unavailable_description()}</p>
</div>
{/if}
- {:else}
- <div class="border-t border-border/60 pt-3 text-sm">
- <p class="font-medium">{m.dashboard_all_environment_unavailable_title()}</p>
- <p class="mt-1 text-muted-foreground">{m.dashboard_all_environment_unavailable_description()}</p>
- </div>
- {/if}
- {#if shouldLoadEnvironment(environment)}
- <div class="border-t border-border/60 pt-3">
- {#if liveStatsStatus === 'denied'}
- <p class="px-2.5 text-sm text-muted-foreground">{m.common_access_denied()}</p>
- {:else}
- <div
- class={cn(
- 'grid grid-cols-1 gap-1',
- gpuMetric !== null ? 'sm:grid-cols-2 lg:grid-cols-4' : 'sm:grid-cols-3',
- liveStatsStatus === 'stale' && 'opacity-60'
- )}
- >
- {#if liveStatsStatus === 'loading'}
- {#each [1, 2, 3] as tile (tile)}
- <div class="min-w-0 px-2.5 py-2.5">
- <div class="flex items-start justify-between gap-2">
- <Skeleton class="h-3 w-20" />
- <Skeleton class="h-5 w-12" />
+ {#if shouldLoadEnvironment(environment)}
+ <div class="border-t border-border/60 pt-3">
+ {#if liveStatsStatus === 'denied'}
+ <p class="px-2.5 text-sm text-muted-foreground">{m.common_access_denied()}</p>
+ {:else}
+ <div
+ class={cn(
+ 'grid grid-cols-1 gap-1',
+ gpuMetric !== null ? 'sm:grid-cols-2 lg:grid-cols-4' : 'sm:grid-cols-3',
+ liveStatsStatus === 'stale' && 'opacity-60'
+ )}
+ >
+ {#if liveStatsStatus === 'loading'}
+ {#each [1, 2, 3] as tile (tile)}
+ <div class="min-w-0 px-2.5 py-2.5">
+ <div class="flex items-start justify-between gap-2">
+ <Skeleton class="h-3 w-20" />
+ <Skeleton class="h-5 w-12" />
+ </div>
+ <Skeleton class="mt-2 h-3 w-24" />
+ <Skeleton class="mt-3 h-1.5 w-full" />
</div>
- <Skeleton class="mt-2 h-3 w-24" />
- <Skeleton class="mt-3 h-1.5 w-full" />
- </div>
- {/each}
- {:else}
- <DashboardMetricTile
- title={m.cpu_usage()}
- icon={CpuIcon}
- value={formatPercent(cpuMetric)}
- label={getCpuMetricLabel(systemStats)}
- meterValue={cpuMetric}
- />
- <DashboardMetricTile
- title={m.memory_usage()}
- icon={MemoryStickIcon}
- value={formatPercent(memoryMetric)}
- label={getCapacityLabel(systemStats?.memoryUsage, systemStats?.memoryTotal)}
- labelClass="truncate"
- meterValue={memoryMetric}
- />
- <DashboardMetricTile
- title={m.dashboard_meter_disk()}
- icon={VolumesIcon}
- value={formatPercent(diskMetric)}
- label={getCapacityLabel(systemStats?.diskUsage, systemStats?.diskTotal)}
- labelClass="truncate"
- meterValue={diskMetric}
- />
- {#if gpuMetric !== null}
+ {/each}
+ {:else}
<DashboardMetricTile
- title={m.dashboard_meter_gpu()}
- icon={GpuIcon}
- value={formatPercent(gpuMetric)}
- label={getGpuMetricLabel(systemStats)}
- meterValue={gpuMetric}
+ title={m.cpu_usage()}
+ icon={CpuIcon}
+ value={formatPercent(cpuMetric)}
+ label={getCpuMetricLabel(systemStats)}
+ meterValue={cpuMetric}
/>
+ <DashboardMetricTile
+ title={m.memory_usage()}
+ icon={MemoryStickIcon}
+ value={formatPercent(memoryMetric)}
+ label={getCapacityLabel(systemStats?.memoryUsage, systemStats?.memoryTotal)}
+ labelClass="truncate"
+ meterValue={memoryMetric}
+ />
+ <DashboardMetricTile
+ title={m.dashboard_meter_disk()}
+ icon={VolumesIcon}
+ value={formatPercent(diskMetric)}
+ label={getCapacityLabel(systemStats?.diskUsage, systemStats?.diskTotal)}
+ labelClass="truncate"
+ meterValue={diskMetric}
+ />
+ {#if gpuMetric !== null}
+ <DashboardMetricTile
+ title={m.dashboard_meter_gpu()}
+ icon={GpuIcon}
+ value={formatPercent(gpuMetric)}
+ label={getGpuMetricLabel(systemStats)}
+ meterValue={gpuMetric}
+ />
+ {/if}
{/if}
+ </div>
+ {#if liveStatsStatus === 'unavailable'}
+ <p class="mt-2 px-2.5 text-xs text-muted-foreground">{m.stats_unavailable()}</p>
+ {:else if liveStatsStatus === 'stale'}
+ <p class="mt-2 px-2.5 text-xs text-warning">{m.stats_stale()}</p>
{/if}
- </div>
- {#if liveStatsStatus === 'unavailable'}
- <p class="mt-2 px-2.5 text-xs text-muted-foreground">{m.stats_unavailable()}</p>
- {:else if liveStatsStatus === 'stale'}
- <p class="mt-2 px-2.5 text-xs text-amber-600 dark:text-amber-400">{m.stats_stale()}</p>
{/if}
- {/if}
- </div>
- {/if}
+ </div>
+ {/if}
- {#if overview.snapshotError}
- <div class="rounded-lg border border-red-500/20 bg-red-500/5 px-3 py-2 text-xs text-red-700 dark:text-red-300">
- {m.dashboard_all_summary_unavailable({ error: overview.snapshotError })}
- </div>
- {/if}
+ {#if overview.snapshotError}
+ <div class="rounded-lg border border-destructive/20 bg-destructive/5 px-3 py-2 text-xs text-destructive">
+ {m.dashboard_all_summary_unavailable({ error: overview.snapshotError })}
+ </div>
+ {/if}
+ </div>
</Card.Content>
</Card.Root>
diff --git a/frontend/src/routes/(app)/dashboard/dashboard-environments-table.svelte b/frontend/src/routes/(app)/dashboard/dashboard-environments-table.svelte
index e16b07fe3..496f13675 100644
--- a/frontend/src/routes/(app)/dashboard/dashboard-environments-table.svelte
+++ b/frontend/src/routes/(app)/dashboard/dashboard-environments-table.svelte
@@ -48,11 +48,11 @@
class={cn(
'inline-flex items-center gap-1.5 text-sm tabular-nums transition-colors hover:underline',
count === 0 && 'text-muted-foreground',
- count > 0 && tone === 'amber' && 'text-amber-600 dark:text-amber-400',
- count > 0 && tone === 'red' && 'text-red-600 dark:text-red-400'
+ count > 0 && tone === 'amber' && 'text-warning',
+ count > 0 && tone === 'red' && 'text-destructive'
)}
>
- <Icon class={cn('size-3.5 shrink-0', count === 0 && 'text-emerald-600 dark:text-emerald-400')} />
+ <Icon class={cn('size-3.5 shrink-0', count === 0 && 'text-success')} />
{count}
</a>
{/snippet}
@@ -93,17 +93,17 @@
</Table.Header>
<Table.Body>
{#each rows as row (row.environment.id)}
- <Table.Row class={cn(row.isCurrent && 'bg-primary/5')}>
+ <Table.Row data-state={row.isCurrent ? 'selected' : undefined}>
<Table.Cell>
<div class="flex min-w-0 items-center gap-2">
<a class="truncate font-medium hover:underline" href="/environments/{row.environment.id}">
{row.environment.name}
</a>
{#if row.versionText}
- <Badge variant="gray" size="sm" class="font-mono">
+ <Badge variant="gray" size="sm" mono>
{row.versionText}
{#if row.updateAvailable}
- <span class="ml-1.5 inline-flex h-2 w-2 rounded-full bg-amber-500"></span>
+ <span class="ml-1.5 inline-flex h-2 w-2 rounded-full bg-warning"></span>
{/if}
</Badge>
{/if}
@@ -111,15 +111,15 @@
</Table.Cell>
<Table.Cell>
<span class="flex items-center gap-2">
- <span class={cn('size-2 rounded-full', row.online ? 'bg-emerald-500' : 'bg-muted-foreground/40')}></span>
+ <span class={cn('size-2 rounded-full', row.online ? 'bg-success' : 'bg-muted-foreground/40')}></span>
<span class="text-sm text-muted-foreground">{row.online ? m.common_online() : m.common_offline()}</span>
</span>
</Table.Cell>
{#if row.loading}
<Table.Cell colspan={showVulnerabilities ? 7 : 6}><Skeleton class="h-4 w-full max-w-md" /></Table.Cell>
{:else}
- <Table.Cell class="tabular-nums">{row.running}/{row.total}</Table.Cell>
- <Table.Cell class="tabular-nums">{row.images}</Table.Cell>
+ <Table.Cell><span class="tabular-nums">{row.running}/{row.total}</span></Table.Cell>
+ <Table.Cell><span class="tabular-nums">{row.images}</span></Table.Cell>
<Table.Cell>{@render actionCount(row.updates, '/updates', UpdateIcon, 'amber')}</Table.Cell>
{#if showVulnerabilities}
<Table.Cell>
@@ -152,7 +152,7 @@
<DropdownMenu.Item
disabled={!!(btn.disabled || btn.loading)}
onclick={btn.onclick}
- class={cn(btn.action === 'prune' && 'text-destructive data-highlighted:text-destructive')}
+ variant={btn.action === 'prune' ? 'destructive' : 'default'}
>
{#if btn.icon}
<btn.icon class="size-4" />
diff --git a/frontend/src/routes/(app)/environments/[id]/+page.svelte b/frontend/src/routes/(app)/environments/[id]/+page.svelte
index 4261cf013..437557958 100644
--- a/frontend/src/routes/(app)/environments/[id]/+page.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/+page.svelte
@@ -686,7 +686,7 @@
error={formInputs.name.error ?? undefined}
originalValue={environment.name}
placeholder={m.environments_name_placeholder()}
- class="max-w-[14rem] min-w-0 sm:max-w-[20rem] md:max-w-[26rem]"
+ class="max-w-56 min-w-0 sm:max-w-80 md:max-w-104"
/>
<!-- Enable/Disable indicator -->
@@ -695,9 +695,7 @@
<div
class={cn(
'size-2 rounded-full transition-colors',
- formInputs.enabled.value
- ? 'bg-emerald-500 shadow-[0_0_8px_var(--color-emerald-500)]'
- : 'bg-muted-foreground/40'
+ formInputs.enabled.value ? 'bg-success shadow-glow shadow-success' : 'bg-muted-foreground/40'
)}
></div>
<span class="text-sm font-medium">
@@ -725,7 +723,10 @@
type="url"
bind:value={formInputs.apiUrl.value}
oninput={clearAccessToken}
- class="h-7 w-full max-w-md font-mono text-xs {formInputs.apiUrl.error ? 'border-destructive' : ''}"
+ mono
+ size="sm"
+ class="h-7 w-full max-w-md"
+ aria-invalid={!!formInputs.apiUrl.error}
placeholder={m.environments_api_url_placeholder()}
autofocus
onkeydown={(e) => {
@@ -784,12 +785,7 @@
<!-- ActionButtonGroup measures its own width to decide what overflows, so it
needs a row that actually spans the header, not a shrink-to-fit column. -->
<div class="flex w-full min-w-0 shrink-0 flex-col items-start gap-2 sm:w-auto sm:min-w-md sm:items-end">
- <span
- class={cn(
- 'text-xs',
- settingsForm.hasChanges ? 'text-orange-600 dark:text-orange-400' : 'text-green-600 dark:text-green-400'
- )}
- >
+ <span class={cn('text-xs', settingsForm.hasChanges ? 'text-warning' : 'text-success')}>
{settingsForm.hasChanges ? m.common_unsaved_changes() : m.common_all_changes_saved()}
</span>
<div class="flex w-full">
@@ -807,19 +803,15 @@
/>
{#if environment.enabled && settings && isCurrentlyStandby}
- <div
- class="flex items-start gap-3 rounded-lg border border-blue-500/30 bg-blue-500/10 p-4 text-blue-900 dark:text-blue-200"
- >
- <AlertIcon class="mt-0.5 size-5 shrink-0 text-blue-600 dark:text-blue-400" />
+ <div class="flex items-start gap-3 rounded-lg border border-info/30 bg-info/10 p-4 text-info">
+ <AlertIcon class="mt-0.5 size-5 shrink-0 text-info" />
<div class="flex-1 space-y-1">
<p class="text-sm font-medium">{m.common_status()}: {m.common_standby()}</p>
</div>
</div>
{:else if !environment.enabled || !isCurrentlyOnline || !settings}
- <div
- class="flex items-start gap-3 rounded-lg border border-amber-500/30 bg-amber-500/10 p-4 text-amber-900 dark:text-amber-200"
- >
- <AlertIcon class="mt-0.5 size-5 shrink-0 text-amber-600 dark:text-amber-400" />
+ <div class="flex items-start gap-3 rounded-lg border border-warning/30 bg-warning/10 p-4 text-warning">
+ <AlertIcon class="mt-0.5 size-5 shrink-0 text-warning" />
<div class="flex-1 space-y-1">
<p class="text-sm font-medium">
{#if !environment.enabled}
@@ -840,7 +832,7 @@
</div>
{#if regeneratedApiKey}
- <div class="rounded-lg border border-emerald-500/30 bg-emerald-500/10 p-4 text-emerald-950 dark:text-emerald-100">
+ <div class="rounded-lg border border-success/30 bg-success/10 p-4 text-success">
<div class="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
<div class="space-y-2">
<p class="text-sm font-medium">{m.environments_new_api_key()}</p>
diff --git a/frontend/src/routes/(app)/environments/[id]/components/ConnectionEdgeTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/ConnectionEdgeTab.svelte
index abfe10d0c..5941a914b 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/ConnectionEdgeTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/ConnectionEdgeTab.svelte
@@ -57,7 +57,7 @@
<Card.Description>{m.connection_edge_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<EnvironmentConnectionDetails {environment} {currentStatus} />
</Card.Content>
</Card.Root>
@@ -72,83 +72,85 @@
<Card.Description>{m.environments_agent_mtls_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="space-y-6 p-4">
- {#if mtlsCertificateBadge && environment.edgeMTLSCertificate}
- <div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
- {@render badgeTile(
- m.environments_edge_mtls_certificate_status_label(),
- mtlsCertificateBadge.text,
- mtlsCertificateBadge.variant
- )}
- {@render tile(
- m.environments_edge_mtls_certificate_expires_label(),
- environment.edgeMTLSCertificate.expiresAt
- ? formatDateTimeShort(environment.edgeMTLSCertificate.expiresAt) || m.common_unknown()
- : '—',
- {
- subtext:
- environment.edgeMTLSCertificate.daysRemaining !== undefined
- ? m.environments_edge_mtls_certificate_days_remaining({
- count: environment.edgeMTLSCertificate.daysRemaining
- })
- : undefined
- }
- )}
- {#if environment.edgeMTLSCertificate.commonName}
+ <Card.Content>
+ <div class="flex flex-col gap-6">
+ {#if mtlsCertificateBadge && environment.edgeMTLSCertificate}
+ <div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
+ {@render badgeTile(
+ m.environments_edge_mtls_certificate_status_label(),
+ mtlsCertificateBadge.text,
+ mtlsCertificateBadge.variant
+ )}
{@render tile(
- m.environments_edge_mtls_certificate_common_name_label(),
- environment.edgeMTLSCertificate.commonName,
- { mono: true }
+ m.environments_edge_mtls_certificate_expires_label(),
+ environment.edgeMTLSCertificate.expiresAt
+ ? formatDateTimeShort(environment.edgeMTLSCertificate.expiresAt) || m.common_unknown()
+ : '—',
+ {
+ subtext:
+ environment.edgeMTLSCertificate.daysRemaining !== undefined
+ ? m.environments_edge_mtls_certificate_days_remaining({
+ count: environment.edgeMTLSCertificate.daysRemaining
+ })
+ : undefined
+ }
)}
- {/if}
- </div>
- {/if}
+ {#if environment.edgeMTLSCertificate.commonName}
+ {@render tile(
+ m.environments_edge_mtls_certificate_common_name_label(),
+ environment.edgeMTLSCertificate.commonName,
+ { mono: true }
+ )}
+ {/if}
+ </div>
+ {/if}
- {#if showMTLSDownloads}
- <div class="flex flex-wrap items-center gap-2">
- <ArcaneButton
- action="base"
- tone="outline"
- href={mtlsBundleDownloadHref}
- rel="external"
- icon={DownloadIcon}
- customLabel={m.environments_agent_mtls_download_bundle()}
- />
- <ArcaneButton
- action="base"
- tone="outline"
- href={mtlsCertificateDownloadHref}
- rel="external"
- icon={DownloadIcon}
- customLabel={m.environments_agent_mtls_download_certificate()}
- />
- <ArcaneButton
- action="base"
- tone="outline"
- href={mtlsKeyDownloadHref}
- rel="external"
- icon={DownloadIcon}
- customLabel={m.environments_agent_mtls_download_key()}
- />
- </div>
- {/if}
+ {#if showMTLSDownloads}
+ <div class="flex flex-wrap items-center gap-2">
+ <ArcaneButton
+ action="base"
+ tone="outline"
+ href={mtlsBundleDownloadHref}
+ rel="external"
+ icon={DownloadIcon}
+ customLabel={m.environments_agent_mtls_download_bundle()}
+ />
+ <ArcaneButton
+ action="base"
+ tone="outline"
+ href={mtlsCertificateDownloadHref}
+ rel="external"
+ icon={DownloadIcon}
+ customLabel={m.environments_agent_mtls_download_certificate()}
+ />
+ <ArcaneButton
+ action="base"
+ tone="outline"
+ href={mtlsKeyDownloadHref}
+ rel="external"
+ icon={DownloadIcon}
+ customLabel={m.environments_agent_mtls_download_key()}
+ />
+ </div>
+ {/if}
- <div class={showMTLSDownloads || mtlsCertificateBadge ? 'border-t pt-6' : ''}>
- <div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
- <div class="space-y-0.5">
- <h3 class="text-sm font-medium">{m.environments_regenerate_api_key()}</h3>
- <p class="text-xs text-muted-foreground">{m.environments_regenerate_dialog_message()}</p>
+ <div class={showMTLSDownloads || mtlsCertificateBadge ? 'border-t pt-6' : ''}>
+ <div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
+ <div class="space-y-0.5">
+ <h3 class="text-sm font-medium">{m.environments_regenerate_api_key()}</h3>
+ <p class="text-xs text-muted-foreground">{m.environments_regenerate_dialog_message()}</p>
+ </div>
+ <ArcaneButton
+ action="base"
+ tone="outline"
+ onclick={onRegenerateApiKey}
+ disabled={isRegeneratingKey}
+ loading={isRegeneratingKey}
+ icon={ResetIcon}
+ customLabel={m.environments_regenerate_api_key()}
+ class="shrink-0"
+ />
</div>
- <ArcaneButton
- action="base"
- tone="outline"
- onclick={onRegenerateApiKey}
- disabled={isRegeneratingKey}
- loading={isRegeneratingKey}
- icon={ResetIcon}
- customLabel={m.environments_regenerate_api_key()}
- class="shrink-0"
- />
</div>
</div>
</Card.Content>
diff --git a/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte
index 1e3374add..5d65af3c5 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/DockerTab.svelte
@@ -65,132 +65,138 @@
<Card.Description>{m.environments_config_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="space-y-6 p-4">
- <div class="grid gap-6 sm:grid-cols-2">
- <div class="space-y-2">
- <SelectWithLabel
- id="shellSelectValue"
- name="shellSelectValue"
- value={shellSelectValue}
- onValueChange={handleShellSelectChange}
- label={m.docker_default_shell_label()}
- description={m.docker_default_shell_description()}
- placeholder={m.select_shell_placeholder()}
- options={[...shellOptions, { value: 'custom', label: m.custom(), description: m.docker_shell_custom_description() }]}
- />
+ <Card.Content>
+ <div class="flex flex-col gap-6">
+ <div class="grid gap-6 sm:grid-cols-2">
+ <div class="space-y-2">
+ <SelectWithLabel
+ id="shellSelectValue"
+ name="shellSelectValue"
+ value={shellSelectValue}
+ onValueChange={handleShellSelectChange}
+ label={m.docker_default_shell_label()}
+ description={m.docker_default_shell_description()}
+ placeholder={m.select_shell_placeholder()}
+ options={[...shellOptions, { value: 'custom', label: m.custom(), description: m.docker_shell_custom_description() }]}
+ />
- {#if shellSelectValue === 'custom'}
- <div class="pt-2">
- <TextInputWithLabel
- bind:value={formInputs.defaultShell.value}
- error={formInputs.defaultShell.error}
- label={m.custom()}
- placeholder={m.bin_sh_placeholder()}
- helpText={m.docker_shell_custom_path_help()}
- type="text"
- />
- </div>
- {/if}
- </div>
+ {#if shellSelectValue === 'custom'}
+ <div class="pt-2">
+ <TextInputWithLabel
+ bind:value={formInputs.defaultShell.value}
+ error={formInputs.defaultShell.error}
+ label={m.custom()}
+ placeholder={m.bin_sh_placeholder()}
+ helpText={m.docker_shell_custom_path_help()}
+ type="text"
+ />
+ </div>
+ {/if}
+ </div>
- <div class="space-y-2">
- <SelectWithLabel
- id="defaultDeployPullPolicy"
- name="defaultDeployPullPolicy"
- bind:value={formInputs.defaultDeployPullPolicy.value}
- label={m.settings_default_deploy_pull_policy()}
- description={m.settings_default_deploy_pull_policy_description()}
- options={deployPullPolicyOptions}
- onValueChange={(v) => (formInputs.defaultDeployPullPolicy.value = v as 'missing' | 'always' | 'never')}
- />
- </div>
+ <div class="space-y-2">
+ <SelectWithLabel
+ id="defaultDeployPullPolicy"
+ name="defaultDeployPullPolicy"
+ bind:value={formInputs.defaultDeployPullPolicy.value}
+ label={m.settings_default_deploy_pull_policy()}
+ description={m.settings_default_deploy_pull_policy_description()}
+ options={deployPullPolicyOptions}
+ onValueChange={(v) => (formInputs.defaultDeployPullPolicy.value = v as 'missing' | 'always' | 'never')}
+ />
+ </div>
- <div class="space-y-2">
- <SelectWithLabel
- id="toolsImageRegistry"
- name="toolsImageRegistry"
- bind:value={formInputs.toolsImageRegistry.value}
- label={m.tools_image_registry_label()}
- description={m.tools_image_registry_description()}
- options={registryOptions}
- onValueChange={(v) => (formInputs.toolsImageRegistry.value = v as 'ghcr.io' | 'docker.io')}
- />
- <p class="font-mono text-xs text-muted-foreground">{arcaneToolsImage(formInputs.toolsImageRegistry.value)}</p>
- </div>
+ <div class="space-y-2">
+ <SelectWithLabel
+ id="toolsImageRegistry"
+ name="toolsImageRegistry"
+ bind:value={formInputs.toolsImageRegistry.value}
+ label={m.tools_image_registry_label()}
+ description={m.tools_image_registry_description()}
+ options={registryOptions}
+ onValueChange={(v) => (formInputs.toolsImageRegistry.value = v as 'ghcr.io' | 'docker.io')}
+ />
+ <p class="font-mono text-xs text-muted-foreground">{arcaneToolsImage(formInputs.toolsImageRegistry.value)}</p>
+ </div>
+
+ <div class="space-y-2">
+ <SelectWithLabel
+ id="updateCheckRegistry"
+ name="updateCheckRegistry"
+ bind:value={formInputs.updateCheckRegistry.value}
+ label={m.update_check_registry_label()}
+ description={m.update_check_registry_description()}
+ options={[{ value: 'auto', label: m.auto() }, ...registryOptions]}
+ onValueChange={(v) => (formInputs.updateCheckRegistry.value = v as 'auto' | 'ghcr.io' | 'docker.io')}
+ />
+ <p class="text-xs text-muted-foreground {updateCheckImage ? 'font-mono' : ''}">
+ {updateCheckImage ?? m.follows_running_image()}
+ </p>
+ </div>
- <div class="space-y-2">
- <SelectWithLabel
- id="updateCheckRegistry"
- name="updateCheckRegistry"
- bind:value={formInputs.updateCheckRegistry.value}
- label={m.update_check_registry_label()}
- description={m.update_check_registry_description()}
- options={[{ value: 'auto', label: m.auto() }, ...registryOptions]}
- onValueChange={(v) => (formInputs.updateCheckRegistry.value = v as 'auto' | 'ghcr.io' | 'docker.io')}
+ <TextInputWithLabel
+ id="base-server-url"
+ label={m.general_base_url_label()}
+ bind:value={formInputs.baseServerUrl.value}
+ error={formInputs.baseServerUrl.error}
+ helpText={m.general_base_url_help()}
/>
- <p class="text-xs text-muted-foreground {updateCheckImage ? 'font-mono' : ''}">
- {updateCheckImage ?? m.follows_running_image()}
- </p>
</div>
- <TextInputWithLabel
- id="base-server-url"
- label={m.general_base_url_label()}
- bind:value={formInputs.baseServerUrl.value}
- error={formInputs.baseServerUrl.error}
- helpText={m.general_base_url_help()}
- />
- </div>
-
- <div class="border-t pt-6">
- <SettingsRow layout="inline" label={m.docker_auto_inject_env_label()} description={m.docker_auto_inject_env_description()}>
- <Switch id="auto-inject-env" bind:checked={formInputs.autoInjectEnv.value} />
- </SettingsRow>
- </div>
-
- <div class="space-y-4 border-t pt-6">
- <div class="space-y-0.5">
- <h3 class="text-sm font-medium">{m.prune_options_title()}</h3>
- <p class="text-xs text-muted-foreground">{m.prune_options_description()}</p>
+ <div class="border-t pt-6">
+ <SettingsRow
+ layout="inline"
+ label={m.docker_auto_inject_env_label()}
+ description={m.docker_auto_inject_env_description()}
+ >
+ <Switch id="auto-inject-env" bind:checked={formInputs.autoInjectEnv.value} />
+ </SettingsRow>
</div>
- <div class="grid gap-4 sm:grid-cols-2">
- <PruneModeCard
- title={m.containers()}
- description={m.scheduled_prune_containers_description()}
- modeOptions={pruneContainerModes}
- bind:value={formInputs.pruneContainerMode.value}
- bind:untilValue={formInputs.pruneContainerUntil.value}
- />
- <PruneModeCard
- title={m.images()}
- description={m.scheduled_prune_images_description()}
- modeOptions={pruneImageModes}
- bind:value={formInputs.pruneImageMode.value}
- bind:untilValue={formInputs.pruneImageUntil.value}
- />
- <PruneModeCard
- title={m.resource_volumes_cap()}
- description={m.scheduled_prune_volumes_description()}
- modeOptions={pruneVolumeModes}
- bind:value={formInputs.pruneVolumeMode.value}
- warningTitle={m.prune_volumes_warning_title()}
- warningDescription={m.scheduled_prune_volumes_warning()}
- />
- <PruneModeCard
- title={m.resource_networks_cap()}
- description={m.scheduled_prune_networks_description()}
- modeOptions={pruneNetworkModes}
- bind:value={formInputs.pruneNetworkMode.value}
- bind:untilValue={formInputs.pruneNetworkUntil.value}
- />
- <PruneModeCard
- title={m.build_cache()}
- description={m.scheduled_prune_build_cache_description()}
- modeOptions={pruneBuildCacheModes}
- bind:value={formInputs.pruneBuildCacheMode.value}
- bind:untilValue={formInputs.pruneBuildCacheUntil.value}
- />
+ <div class="space-y-4 border-t pt-6">
+ <div class="space-y-0.5">
+ <h3 class="text-sm font-medium">{m.prune_options_title()}</h3>
+ <p class="text-xs text-muted-foreground">{m.prune_options_description()}</p>
+ </div>
+
+ <div class="grid gap-4 sm:grid-cols-2">
+ <PruneModeCard
+ title={m.containers()}
+ description={m.scheduled_prune_containers_description()}
+ modeOptions={pruneContainerModes}
+ bind:value={formInputs.pruneContainerMode.value}
+ bind:untilValue={formInputs.pruneContainerUntil.value}
+ />
+ <PruneModeCard
+ title={m.images()}
+ description={m.scheduled_prune_images_description()}
+ modeOptions={pruneImageModes}
+ bind:value={formInputs.pruneImageMode.value}
+ bind:untilValue={formInputs.pruneImageUntil.value}
+ />
+ <PruneModeCard
+ title={m.resource_volumes_cap()}
+ description={m.scheduled_prune_volumes_description()}
+ modeOptions={pruneVolumeModes}
+ bind:value={formInputs.pruneVolumeMode.value}
+ warningTitle={m.prune_volumes_warning_title()}
+ warningDescription={m.scheduled_prune_volumes_warning()}
+ />
+ <PruneModeCard
+ title={m.resource_networks_cap()}
+ description={m.scheduled_prune_networks_description()}
+ modeOptions={pruneNetworkModes}
+ bind:value={formInputs.pruneNetworkMode.value}
+ bind:untilValue={formInputs.pruneNetworkUntil.value}
+ />
+ <PruneModeCard
+ title={m.build_cache()}
+ description={m.scheduled_prune_build_cache_description()}
+ modeOptions={pruneBuildCacheModes}
+ bind:value={formInputs.pruneBuildCacheMode.value}
+ bind:untilValue={formInputs.pruneBuildCacheUntil.value}
+ />
+ </div>
</div>
</div>
</Card.Content>
diff --git a/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte b/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte
index 4aba3fcb7..5ce411699 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/EnvironmentStatusSummary.svelte
@@ -62,13 +62,13 @@
let statusDotClass = $derived.by((): string => {
switch (statusBadge.variant) {
case 'green':
- return 'bg-emerald-500 shadow-[0_0_8px_var(--color-emerald-500)]';
+ return 'bg-success shadow-glow shadow-success';
case 'blue':
- return 'bg-blue-500';
+ return 'bg-info';
case 'amber':
- return 'bg-amber-500';
+ return 'bg-warning';
default:
- return 'bg-red-500';
+ return 'bg-destructive';
}
});
@@ -120,12 +120,7 @@
{m.sidebar_update_available()}: {remoteVersion.newestVersion}
</Badge>
{#if remoteVersion.releaseUrl}
- <a
- href={remoteVersion.releaseUrl}
- target="_blank"
- rel="noopener noreferrer"
- class="text-xs text-blue-500 hover:underline"
- >
+ <a href={remoteVersion.releaseUrl} target="_blank" rel="noopener noreferrer" class="text-xs text-info hover:underline">
{m.version_info_view_release()}
</a>
{/if}
diff --git a/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
index 1193c9c06..57388e994 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
@@ -186,7 +186,7 @@
{#snippet jobCategory(label: string, categoryJobs: JobStatus[], isAgent: boolean, durableRuns: boolean)}
{#if categoryJobs.length > 0}
<div
- class="grid min-w-0 gap-x-6 gap-y-2 rounded-xl border border-border bg-transparent px-4 py-2 sm:px-5 lg:grid-cols-[7rem_minmax(0,1fr)]"
+ class="grid min-w-0 gap-x-6 gap-y-2 rounded-xl border border-border bg-transparent px-4 py-2 sm:px-5 lg:grid-cols-aside-28"
>
<h3 class="flex min-h-9 items-center text-sm font-semibold text-foreground lg:mt-5 lg:self-start">
{label}
@@ -204,7 +204,7 @@
{#if job.id === 'auto-update' && formInputs.autoUpdate.value}
<div class="space-y-3 border-t border-border/20 pt-3">
<div class="space-y-1">
- <Label class="text-sm font-medium">
+ <Label>
{m.excluded_containers()}
{#await containersPromise then containers}
<span class="ml-1 font-normal text-muted-foreground">
@@ -233,14 +233,14 @@
<div class="space-y-3 border-t border-border/20 pt-3">
<div class="flex items-center justify-between gap-3">
<div class="space-y-1">
- <Label class="text-sm font-medium">{m.jobs_image_event_watcher_label()}</Label>
+ <Label>{m.jobs_image_event_watcher_label()}</Label>
<p class="text-xs text-muted-foreground">{m.jobs_image_event_watcher_description()}</p>
</div>
<Switch id="image-event-watcher-enabled" bind:checked={formInputs.imageEventWatcherEnabled.value} />
</div>
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="warning" size="sm">
<AlertTriangleIcon class="size-4" />
- <Alert.Description class="text-xs">{m.jobs_image_event_watcher_warning()}</Alert.Description>
+ <Alert.Description>{m.jobs_image_event_watcher_warning()}</Alert.Description>
</Alert.Root>
</div>
{/if}
@@ -251,7 +251,7 @@
<div class="space-y-3 border-t border-border/20 pt-3">
<div class="grid gap-3 sm:grid-cols-2">
<div class="space-y-1">
- <Label for="auto-heal-max-restarts" class="text-sm font-medium">{m.auto_heal_max_restarts_label()}</Label>
+ <Label for="auto-heal-max-restarts">{m.auto_heal_max_restarts_label()}</Label>
<p class="text-xs text-muted-foreground">{m.auto_heal_max_restarts_description()}</p>
<Input
id="auto-heal-max-restarts"
@@ -262,7 +262,7 @@
/>
</div>
<div class="space-y-1">
- <Label for="auto-heal-restart-window" class="text-sm font-medium">{m.auto_heal_restart_window_label()}</Label>
+ <Label for="auto-heal-restart-window">{m.auto_heal_restart_window_label()}</Label>
<p class="text-xs text-muted-foreground">{m.auto_heal_restart_window_description()}</p>
<Input
id="auto-heal-restart-window"
@@ -275,7 +275,7 @@
</div>
<div class="space-y-1">
- <Label class="text-sm font-medium">
+ <Label>
{m.excluded_containers()}
{#await containersPromise then containers}
<span class="ml-1 font-normal text-muted-foreground">
@@ -372,50 +372,55 @@
idPrefix: string;
onToggle: (containerName: string) => void;
})}
- <ScrollArea.Root class="h-64 w-full rounded-md border p-2">
- <div class="space-y-2">
- {#await containersPromise}
- <div class="flex items-center justify-center p-4">
- <Spinner class="size-4" />
- </div>
- {:then containers}
- {@const allItems = containers.map(config.mapItem)}
- {@const filteredItems = config.term
- ? allItems.filter((item) => item.label.toLowerCase().includes(config.term.toLowerCase()))
- : allItems}
-
- {#if filteredItems.length === 0}
- <p class="py-4 text-center text-sm text-muted-foreground">
- {m.common_no_results_found()}
- </p>
- {:else}
- {#each filteredItems as container (container.value)}
- <div class="flex items-center space-x-2">
- <Checkbox
- id="{config.idPrefix}{container.value}"
- checked={container.selected}
- disabled={container.disabled}
- onCheckedChange={() => config.onToggle(container.value)}
- />
- <Label
- for="{config.idPrefix}{container.value}"
- class="text-sm font-normal {container.disabled ? 'text-muted-foreground' : ''}"
- >
- {container.label}
- {#if container.hint}
- <span class="ml-1 text-xs opacity-70">{container.hint}</span>
- {/if}
- </Label>
+ <div class="h-64 w-full overflow-hidden rounded-md border">
+ <ScrollArea.Root class="h-full">
+ <div class="p-2">
+ <div class="space-y-2">
+ {#await containersPromise}
+ <div class="flex items-center justify-center p-4">
+ <Spinner class="size-4" />
</div>
- {/each}
- {/if}
- {:catch error}
- <div class="p-2 text-sm text-destructive">
- {(error instanceof Error ? error.message : '') || m.jobs_containers_load_error()}
+ {:then containers}
+ {@const allItems = containers.map(config.mapItem)}
+ {@const filteredItems = config.term
+ ? allItems.filter((item) => item.label.toLowerCase().includes(config.term.toLowerCase()))
+ : allItems}
+
+ {#if filteredItems.length === 0}
+ <p class="py-4 text-center text-sm text-muted-foreground">
+ {m.common_no_results_found()}
+ </p>
+ {:else}
+ {#each filteredItems as container (container.value)}
+ <div class="flex items-center space-x-2">
+ <Checkbox
+ id="{config.idPrefix}{container.value}"
+ checked={container.selected}
+ disabled={container.disabled}
+ onCheckedChange={() => config.onToggle(container.value)}
+ />
+ <Label
+ for="{config.idPrefix}{container.value}"
+ weight="normal"
+ variant={container.disabled ? 'muted' : 'default'}
+ >
+ {container.label}
+ {#if container.hint}
+ <span class="ml-1 text-xs opacity-70">{container.hint}</span>
+ {/if}
+ </Label>
+ </div>
+ {/each}
+ {/if}
+ {:catch error}
+ <div class="p-2 text-sm text-destructive">
+ {(error instanceof Error ? error.message : '') || m.jobs_containers_load_error()}
+ </div>
+ {/await}
</div>
- {/await}
- </div>
- </ScrollArea.Root>
+ </div>
+ </ScrollArea.Root>
+ </div>
{/snippet}
<section class="flex w-full min-w-0 flex-col gap-6">
diff --git a/frontend/src/routes/(app)/environments/[id]/components/StorageTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/StorageTab.svelte
index 88efb3e7e..6087fafee 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/StorageTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/StorageTab.svelte
@@ -20,7 +20,7 @@
<Card.Description>{m.directories_storage_paths_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<div class="grid gap-6 sm:grid-cols-2">
<TextInputWithLabel
id="projects-directory"
@@ -73,49 +73,51 @@
<Card.Description>{m.sync_upload_limits_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="space-y-6 p-4">
- <div class="grid gap-6 sm:grid-cols-2">
- <TextInputWithLabel
- id="max-upload-size"
- type="number"
- label={m.docker_max_upload_size_label()}
- bind:value={formInputs.maxImageUploadSize.value}
- error={formInputs.maxImageUploadSize.error}
- helpText={m.docker_max_upload_size_description()}
- />
- </div>
-
- <div class="space-y-4 border-t pt-6">
- <div class="space-y-0.5">
- <h3 class="text-sm font-medium">{m.git_sync_file_limits_title()}</h3>
- <div class="text-xs text-muted-foreground">{m.git_sync_file_limits_description()}</div>
- </div>
- <div class="grid gap-4 sm:grid-cols-3">
- <TextInputWithLabel
- id="git-sync-max-files"
- type="number"
- label={m.git_sync_max_files_label()}
- bind:value={formInputs.gitSyncMaxFiles.value}
- error={formInputs.gitSyncMaxFiles.error}
- helpText={m.git_sync_max_files_help()}
- />
+ <Card.Content>
+ <div class="flex flex-col gap-6">
+ <div class="grid gap-6 sm:grid-cols-2">
<TextInputWithLabel
- id="git-sync-max-total-size"
+ id="max-upload-size"
type="number"
- label={m.git_sync_max_total_size_label()}
- bind:value={formInputs.gitSyncMaxTotalSizeMb.value}
- error={formInputs.gitSyncMaxTotalSizeMb.error}
- helpText={m.git_sync_max_total_size_help()}
- />
- <TextInputWithLabel
- id="git-sync-max-binary-size"
- type="number"
- label={m.git_sync_max_binary_size_label()}
- bind:value={formInputs.gitSyncMaxBinarySizeMb.value}
- error={formInputs.gitSyncMaxBinarySizeMb.error}
- helpText={m.git_sync_max_binary_size_help()}
+ label={m.docker_max_upload_size_label()}
+ bind:value={formInputs.maxImageUploadSize.value}
+ error={formInputs.maxImageUploadSize.error}
+ helpText={m.docker_max_upload_size_description()}
/>
</div>
+
+ <div class="space-y-4 border-t pt-6">
+ <div class="space-y-0.5">
+ <h3 class="text-sm font-medium">{m.git_sync_file_limits_title()}</h3>
+ <div class="text-xs text-muted-foreground">{m.git_sync_file_limits_description()}</div>
+ </div>
+ <div class="grid gap-4 sm:grid-cols-3">
+ <TextInputWithLabel
+ id="git-sync-max-files"
+ type="number"
+ label={m.git_sync_max_files_label()}
+ bind:value={formInputs.gitSyncMaxFiles.value}
+ error={formInputs.gitSyncMaxFiles.error}
+ helpText={m.git_sync_max_files_help()}
+ />
+ <TextInputWithLabel
+ id="git-sync-max-total-size"
+ type="number"
+ label={m.git_sync_max_total_size_label()}
+ bind:value={formInputs.gitSyncMaxTotalSizeMb.value}
+ error={formInputs.gitSyncMaxTotalSizeMb.error}
+ helpText={m.git_sync_max_total_size_help()}
+ />
+ <TextInputWithLabel
+ id="git-sync-max-binary-size"
+ type="number"
+ label={m.git_sync_max_binary_size_label()}
+ bind:value={formInputs.gitSyncMaxBinarySizeMb.value}
+ error={formInputs.gitSyncMaxBinarySizeMb.error}
+ helpText={m.git_sync_max_binary_size_help()}
+ />
+ </div>
+ </div>
</div>
</Card.Content>
</Card.Root>
diff --git a/frontend/src/routes/(app)/environments/[id]/gitops/+page.svelte b/frontend/src/routes/(app)/environments/[id]/gitops/+page.svelte
index 9b7163ef3..fae957747 100644
--- a/frontend/src/routes/(app)/environments/[id]/gitops/+page.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/gitops/+page.svelte
@@ -235,22 +235,22 @@
title: m.common_total(),
value: syncCounts.totalSyncs,
icon: RefreshIcon,
- iconColor: 'text-blue-500',
- bgColor: 'bg-blue-500/10'
+ iconColor: 'text-info',
+ bgColor: 'bg-info/10'
},
{
title: m.common_active(),
value: syncCounts.activeSyncs,
icon: ClockIcon,
- iconColor: 'text-purple-500',
- bgColor: 'bg-purple-500/10'
+ iconColor: 'text-purple',
+ bgColor: 'bg-purple/10'
},
{
title: m.common_successful(),
value: syncCounts.successfulSyncs,
icon: SuccessIcon,
- iconColor: 'text-green-500',
- bgColor: 'bg-green-500/10'
+ iconColor: 'text-success',
+ bgColor: 'bg-success/10'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/environments/environment-table.svelte b/frontend/src/routes/(app)/environments/environment-table.svelte
index abea9b19c..c533f3db7 100644
--- a/frontend/src/routes/(app)/environments/environment-table.svelte
+++ b/frontend/src/routes/(app)/environments/environment-table.svelte
@@ -264,12 +264,12 @@
</div>
<div
class="absolute -top-1 -right-1 size-3 rounded-full border-2 border-background {statusValue === 'online'
- ? 'bg-green-500'
+ ? 'bg-success'
: statusValue === 'standby'
- ? 'bg-blue-500'
+ ? 'bg-info'
: statusValue === 'pending'
- ? 'bg-amber-500'
- : 'bg-red-500'}"
+ ? 'bg-warning'
+ : 'bg-destructive'}"
></div>
</div>
{#if environmentStore.selected?.id === item.id}
@@ -279,7 +279,7 @@
{/if}
<div class="flex flex-col gap-0.5 leading-tight">
<button
- class="text-foreground-primary h-auto min-h-0 cursor-pointer p-0 text-left text-sm leading-tight font-medium hover:underline"
+ class="h-auto min-h-0 cursor-pointer p-0 text-left text-sm leading-tight font-medium text-foreground hover:underline"
onclick={() => goto(`/environments/${item.id}`)}
>
{item.name}
diff --git a/frontend/src/routes/(app)/environments/environment-version-cell.svelte b/frontend/src/routes/(app)/environments/environment-version-cell.svelte
index d85450d18..7c87bb5ce 100644
--- a/frontend/src/routes/(app)/environments/environment-version-cell.svelte
+++ b/frontend/src/routes/(app)/environments/environment-version-cell.svelte
@@ -27,7 +27,7 @@
<span class="font-mono text-sm">{label}</span>
{#if info?.updateAvailable}
<span
- class="inline-flex items-center text-amber-600 dark:text-amber-400"
+ class="inline-flex items-center text-warning"
title={info.newestVersion
? m.sidebar_update_available_tooltip({ version: info.newestVersion })
: m.sidebar_update_available()}
diff --git a/frontend/src/routes/(app)/events/+page.svelte b/frontend/src/routes/(app)/events/+page.svelte
index b17b7a684..5cc8bbee7 100644
--- a/frontend/src/routes/(app)/events/+page.svelte
+++ b/frontend/src/routes/(app)/events/+page.svelte
@@ -163,7 +163,7 @@
title: m.info(),
value: counts?.info ?? 0,
icon: InfoIcon,
- iconColor: 'text-blue-500',
+ iconColor: 'text-info',
onclick: () => toggleSeverityFilter('info'),
active: activeSeverities.includes('info')
},
@@ -171,7 +171,7 @@
title: m.common_success(),
value: counts?.success ?? 0,
icon: CheckIcon,
- iconColor: 'text-green-500',
+ iconColor: 'text-success',
onclick: () => toggleSeverityFilter('success'),
active: activeSeverities.includes('success')
},
@@ -179,7 +179,7 @@
title: m.warning(),
value: counts?.warning ?? 0,
icon: AlertIcon,
- iconColor: 'text-yellow-500',
+ iconColor: 'text-warning',
onclick: () => toggleSeverityFilter('warning'),
active: activeSeverities.includes('warning')
},
@@ -187,7 +187,7 @@
title: m.common_error(),
value: counts?.error ?? 0,
icon: CloseIcon,
- iconColor: 'text-red-500',
+ iconColor: 'text-destructive',
onclick: () => toggleSeverityFilter('error'),
active: activeSeverities.includes('error')
}
diff --git a/frontend/src/routes/(app)/images/+page.svelte b/frontend/src/routes/(app)/images/+page.svelte
index 160a8c381..6b2ad4cab 100644
--- a/frontend/src/routes/(app)/images/+page.svelte
+++ b/frontend/src/routes/(app)/images/+page.svelte
@@ -293,13 +293,13 @@
title: m.images_total(),
value: imageUsageCounts.totalImages,
icon: VolumesIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.images_total_size(),
value: String(bytes.format(imageUsageCounts.totalImageSize)),
icon: LocalFolderComputerIcon,
- iconColor: 'text-amber-500'
+ iconColor: 'text-warning'
}
]);
</script>
@@ -386,7 +386,7 @@
{/if}
</div>
{#if uploadProgress}
- <Progress value={(uploadProgress.bytesDone / uploadProgress.totalBytes) * 100} class="h-1.5 rounded-full" />
+ <Progress value={(uploadProgress.bytesDone / uploadProgress.totalBytes) * 100} class="h-1.5" />
{/if}
</div>
{/if}
diff --git a/frontend/src/routes/(app)/images/[imageId]/+page.svelte b/frontend/src/routes/(app)/images/[imageId]/+page.svelte
index df5df12e0..2832dfce4 100644
--- a/frontend/src/routes/(app)/images/[imageId]/+page.svelte
+++ b/frontend/src/routes/(app)/images/[imageId]/+page.svelte
@@ -411,104 +411,108 @@
<ResourceDetailLayout backUrl="/images" backLabel={m.images()} title={detailTitle} {actions}>
{#if image}
- {#snippet kvTile(label: string, value: string, opts?: { class?: string })}
- <KeyValueCard {label} cardClass={opts?.class} valueTitle={value}>
+ {#snippet kvTile(label: string, value: string, wide = false)}
+ <KeyValueCard {label} class={wide ? 'sm:col-span-2 lg:col-span-3' : undefined} valueTitle={value}>
{value}
</KeyValueCard>
{/snippet}
- <Tabs.Root value={activeTab} class="space-y-6">
- <TabBar items={tabItems} value={activeTab} onValueChange={(value) => urlTab.select(value)} />
-
- <Tabs.Content value="overview" class="space-y-6">
- <DetailMetaStrip
- items={[
- { icon: VolumesIcon, value: imageSize },
- { icon: ClockIcon, value: createdDate },
- { icon: CpuIcon, value: `${architecture} · ${osName}` }
- ]}
- />
-
- {#if hasPinnedRefs}
- <div class="space-y-2">
- <span class="inline-flex items-center gap-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- <TagIcon class="size-4" />
- {m.images_pinned_references()}
- </span>
- <div class="flex flex-col gap-2">
- {#each pinnedRefs as pin (pin)}
- <div
- class="flex max-w-2xl items-center justify-between gap-2 rounded-lg border border-border/50 bg-muted/40 p-2.5"
- >
- <span class="font-mono text-xs break-all text-foreground select-all" title={m.common_click_to_select()}>
- {pin}
- </span>
- <CopyButton text={pin} size="icon" class="size-7 shrink-0" />
+ <Tabs.Root value={activeTab}>
+ <div class="space-y-6">
+ <TabBar items={tabItems} value={activeTab} onValueChange={(value) => urlTab.select(value)} />
+
+ <Tabs.Content value="overview">
+ <div class="space-y-6">
+ <DetailMetaStrip
+ items={[
+ { icon: VolumesIcon, value: imageSize },
+ { icon: ClockIcon, value: createdDate },
+ { icon: CpuIcon, value: `${architecture} · ${osName}` }
+ ]}
+ />
+
+ {#if hasPinnedRefs}
+ <div class="space-y-2">
+ <span class="inline-flex items-center gap-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ <TagIcon class="size-4" />
+ {m.images_pinned_references()}
+ </span>
+ <div class="flex flex-col gap-2">
+ {#each pinnedRefs as pin (pin)}
+ <div
+ class="flex max-w-2xl items-center justify-between gap-2 rounded-lg border border-border/50 bg-muted/40 p-2.5"
+ >
+ <span class="font-mono text-xs break-all text-foreground select-all" title={m.common_click_to_select()}>
+ {pin}
+ </span>
+ <CopyButton text={pin} size="icon" class="size-7 shrink-0" />
+ </div>
+ {/each}
</div>
- {/each}
+ </div>
+ {/if}
+
+ {#if hasTags}
+ <div class="flex flex-wrap items-center gap-2">
+ <span class="inline-flex items-center gap-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ <TagIcon class="size-4" />
+ {m.common_tags()}
+ </span>
+ {#each repoTags as tag (tag)}
+ <Badge variant="secondary" class="cursor-pointer select-all" title={m.common_click_to_select()}>
+ {tag}
+ </Badge>
+ {/each}
+ </div>
+ {/if}
+
+ <div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
+ {@render kvTile(m.common_id(), image?.id || m.common_na(), true)}
+ {#if image?.dockerVersion}
+ {@render kvTile(m.common_docker_version(), image.dockerVersion)}
+ {/if}
+ {#if image?.author}
+ {@render kvTile(m.common_author(), image.author)}
+ {/if}
+ {#if image.config?.workingDir}
+ {@render kvTile(m.common_working_dir(), image.config.workingDir)}
+ {/if}
</div>
- </div>
- {/if}
- {#if hasTags}
- <div class="flex flex-wrap items-center gap-2">
- <span class="inline-flex items-center gap-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- <TagIcon class="size-4" />
- {m.common_tags()}
- </span>
- {#each repoTags as tag (tag)}
- <Badge variant="secondary" class="cursor-pointer text-xs select-all" title={m.common_click_to_select()}>
- {tag}
- </Badge>
- {/each}
+ {#if hasEnv}
+ <DetailSection title={m.common_environment_variables()}>
+ <div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
+ {#each envVars as env (env)}
+ {#if env.includes('=')}
+ {@const [key, ...valueParts] = env.split('=')}
+ {@render kvTile(key ?? '', valueParts.join('='))}
+ {:else}
+ {@render kvTile('ENV_VAR', env)}
+ {/if}
+ {/each}
+ </div>
+ </DetailSection>
+ {/if}
</div>
- {/if}
+ </Tabs.Content>
- <div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
- {@render kvTile(m.common_id(), image?.id || m.common_na(), { class: 'sm:col-span-2 lg:col-span-3' })}
- {#if image?.dockerVersion}
- {@render kvTile(m.common_docker_version(), image.dockerVersion)}
- {/if}
- {#if image?.author}
- {@render kvTile(m.common_author(), image.author)}
- {/if}
- {#if image.config?.workingDir}
- {@render kvTile(m.common_working_dir(), image.config.workingDir)}
- {/if}
- </div>
-
- {#if hasEnv}
- <DetailSection title={m.common_environment_variables()}>
- <div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
- {#each envVars as env (env)}
- {#if env.includes('=')}
- {@const [key, ...valueParts] = env.split('=')}
- {@render kvTile(key ?? '', valueParts.join('='))}
- {:else}
- {@render kvTile('ENV_VAR', env)}
- {/if}
- {/each}
- </div>
- </DetailSection>
- {/if}
- </Tabs.Content>
-
- <Tabs.Content value="history">
- <ImageHistoryPanel imageId={image.id} />
- </Tabs.Content>
- <Tabs.Content value="attestations">
- <ImageAttestationsPanel {image} />
- </Tabs.Content>
- {#if vulnerabilityManagementEnabled}
- <Tabs.Content value="vulnerabilities">
- <VulnerabilityScanPanel
- scan={vulnerabilityScan}
- reportError={scanReportError}
- isScanning={isLoading.scanning}
- onScan={handleScanImage}
- />
+ <Tabs.Content value="history">
+ <ImageHistoryPanel imageId={image.id} />
</Tabs.Content>
- {/if}
+ <Tabs.Content value="attestations">
+ <ImageAttestationsPanel {image} />
+ </Tabs.Content>
+ {#if vulnerabilityManagementEnabled}
+ <Tabs.Content value="vulnerabilities">
+ <VulnerabilityScanPanel
+ scan={vulnerabilityScan}
+ reportError={scanReportError}
+ isScanning={isLoading.scanning}
+ onScan={handleScanImage}
+ />
+ </Tabs.Content>
+ {/if}
+ </div>
</Tabs.Root>
{:else}
<div class="py-12 text-center">
diff --git a/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte b/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte
index 887260f02..c8dbc36f2 100644
--- a/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte
+++ b/frontend/src/routes/(app)/images/[imageId]/image-attestations-panel.svelte
@@ -84,7 +84,7 @@
)}
<div class="flex flex-wrap items-center gap-3">
<Select.Root type="single" bind:value={selectedPlatform}>
- <Select.Trigger size="sm" class="w-full sm:w-[180px]">
+ <Select.Trigger size="sm" class="w-full sm:w-45">
<span class="truncate">{selectedPlatformLabel}</span>
</Select.Trigger>
<Select.Content>
@@ -96,7 +96,7 @@
</Select.Root>
<Select.Root type="single" bind:value={selectedPredicateType}>
- <Select.Trigger size="sm" class="w-full sm:w-[280px]">
+ <Select.Trigger size="sm" class="w-full sm:w-70">
<span class="truncate">{selectedPredicateLabel}</span>
</Select.Trigger>
<Select.Content>
diff --git a/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte b/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte
index 7407f27eb..2f001d60d 100644
--- a/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte
+++ b/frontend/src/routes/(app)/images/[imageId]/image-history-panel.svelte
@@ -58,7 +58,7 @@
<p class="py-8 text-sm text-muted-foreground">{m.images_history_empty()}</p>
{:else}
<div class="overflow-x-auto">
- <table class="w-full min-w-[720px] text-sm">
+ <table class="w-full min-w-180 text-sm">
<thead class="border-b text-left text-xs text-muted-foreground uppercase">
<tr>
<th class="py-2 pr-4 font-medium">{m.common_id()}</th>
@@ -71,14 +71,14 @@
<tbody>
{#each history as item, index (`${item.id}-${index}`)}
<tr class="border-b last:border-0">
- <td class="max-w-[180px] py-3 pr-4 font-mono text-xs break-all">{item.id || m.images_history_missing_layer()}</td>
+ <td class="max-w-45 py-3 pr-4 font-mono text-xs break-all">{item.id || m.images_history_missing_layer()}</td>
<td class="py-3 pr-4 whitespace-nowrap">{formatCreated(item.created)}</td>
<td class="py-3 pr-4 whitespace-nowrap">{bytes.format(item.size)}</td>
- <td class="max-w-[320px] py-3 pr-4 font-mono text-xs break-all">{item.createdBy || m.common_na()}</td>
+ <td class="max-w-80 py-3 pr-4 font-mono text-xs break-all">{item.createdBy || m.common_na()}</td>
<td class="py-3">
<div class="flex flex-wrap gap-1">
{#each item.tags ?? [] as tag (tag)}
- <Badge variant="secondary" class="text-xs">{tag}</Badge>
+ <Badge variant="secondary">{tag}</Badge>
{:else}
<span class="text-muted-foreground">{m.common_na()}</span>
{/each}
diff --git a/frontend/src/routes/(app)/images/builds/+page.svelte b/frontend/src/routes/(app)/images/builds/+page.svelte
index bc12a5ddc..b2d097253 100644
--- a/frontend/src/routes/(app)/images/builds/+page.svelte
+++ b/frontend/src/routes/(app)/images/builds/+page.svelte
@@ -639,23 +639,17 @@
<Tabs.Root bind:value={rightPanelTab} class="flex h-full flex-col">
<!-- Tabs header with refined styling -->
<div class="flex shrink-0 items-center justify-between border-b border-border/50 bg-muted/40 px-3 py-2">
- <Tabs.List class="flex items-center gap-1 rounded-lg border border-border/60 bg-muted/60 p-1">
- <Tabs.Trigger
- value="config"
- class="rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
- >
+ <Tabs.List class="flex items-center">
+ <Tabs.Trigger value="config" size="sm">
<CodeIcon class="mr-2 size-3.5" />
{m.build_configuration()}
</Tabs.Trigger>
- <Tabs.Trigger
- value="output"
- class="rounded-md px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
- >
+ <Tabs.Trigger value="output" size="sm">
<TerminalIcon class="mr-2 size-3.5" />
{m.build_output()}
{#if logLines.length > 0}
<span
- class="ml-1.5 rounded-full bg-primary/15 px-1.5 py-0.5 text-[10px] font-semibold text-primary ring-1 ring-primary/20"
+ class="ml-1.5 rounded-full bg-primary/15 px-1.5 py-0.5 text-3xs font-semibold text-primary ring-1 ring-primary/20"
>
{logLines.length}
</span>
@@ -671,16 +665,16 @@
<div
class={`size-2 rounded-full transition-all ${
buildError
- ? 'bg-red-500 shadow-lg shadow-red-500/50'
+ ? 'bg-destructive shadow-lg shadow-destructive/50'
: hasReachedComplete
- ? 'bg-green-500 shadow-lg shadow-green-500/50'
+ ? 'bg-success shadow-lg shadow-success/50'
: isBuilding
- ? 'animate-pulse bg-blue-500 shadow-lg shadow-blue-500/50'
- : 'bg-zinc-600'
+ ? 'animate-pulse bg-info shadow-lg shadow-info/50'
+ : 'bg-muted-foreground'
}`}
></div>
{#if isBuilding}
- <div class="absolute inset-0 size-2 animate-ping rounded-full bg-blue-500 opacity-75"></div>
+ <div class="absolute inset-0 size-2 animate-ping rounded-full bg-info opacity-75"></div>
{/if}
</div>
<span class="text-xs font-medium text-muted-foreground">{statusLabel}</span>
@@ -708,18 +702,12 @@
{#if isDesktop}
<ResourceDetailLayout title={m.build_workspace()} subtitle={m.manual_build_workspace_subtitle()}>
- <Tabs.Root value={mainTab} onValueChange={mainUrlTab.select} class="flex h-[calc(100vh-12rem)] flex-col">
- <Tabs.List class="mb-3 flex w-fit gap-2 rounded-lg border border-border/60 bg-muted/60 p-1">
- <Tabs.Trigger
- value="build"
- class="rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
- >
+ <Tabs.Root value={mainTab} onValueChange={mainUrlTab.select} class="flex h-(--height-screen-inset-12) flex-col">
+ <Tabs.List class="mb-3 flex w-fit">
+ <Tabs.Trigger value="build">
{m.build_workspace()}
</Tabs.Trigger>
- <Tabs.Trigger
- value="history"
- class="rounded-md px-3 py-1.5 text-sm font-medium text-muted-foreground hover:text-foreground data-[state=active]:bg-primary/10 data-[state=active]:text-foreground"
- >
+ <Tabs.Trigger value="history">
{m.build_history()}
</Tabs.Trigger>
</Tabs.List>
@@ -734,7 +722,7 @@
minSecondSize={520}
defaultRatio={0.28}
handleSize={10}
- handleClass="bg-zinc-950/50 rounded-full"
+ handleClass="bg-muted-foreground/50 rounded-full"
allowCollapse={true}
persistKey="arcane.build.workspace.split"
>
@@ -758,7 +746,7 @@
</Tabs.Root>
</ResourceDetailLayout>
{:else}
- <TabbedPageLayout tabItems={mainTabItems} selectedTab={mainTab} onTabChange={onMainTabChange} class="min-h-[calc(100vh-10rem)]">
+ <TabbedPageLayout tabItems={mainTabItems} selectedTab={mainTab} onTabChange={onMainTabChange} class="min-h-screen-inset-10">
{#snippet headerInfo()}
<div class="flex flex-col gap-1">
{#if mainTab === 'history'}
@@ -778,13 +766,13 @@
{/snippet}
{#snippet tabContent(tab)}
- <div class="min-h-[60vh]">
+ <div class="min-h-screen-60">
{#if tab === 'build'}
<TabbedPageLayout
tabItems={buildMobileTabItems}
selectedTab={buildTab}
onTabChange={onBuildTabChange}
- class="min-h-[60vh]"
+ class="min-h-screen-60"
>
{#snippet headerInfo()}
<div class="flex flex-col gap-1">
@@ -803,7 +791,7 @@
{@render configPanel()}
</Card.Root>
{:else}
- <Card.Root class="flex h-full min-h-[500px] flex-col overflow-hidden">
+ <Card.Root class="flex h-full min-h-125 flex-col overflow-hidden">
<BuildOutputPanel
{logLines}
{aggregateStatus}
@@ -818,7 +806,7 @@
{/snippet}
</TabbedPageLayout>
{:else}
- <Card.Root class="flex h-full min-h-[500px] flex-col overflow-hidden">
+ <Card.Root class="flex h-full min-h-125 flex-col overflow-hidden">
{@render historyContent()}
</Card.Root>
{/if}
diff --git a/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte b/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
index ac62c0d00..5b13cda5a 100644
--- a/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
+++ b/frontend/src/routes/(app)/images/builds/build-workspace-browser.svelte
@@ -193,7 +193,7 @@
<div class="min-w-0 flex-1 space-y-3">
<FileBreadcrumb path={currentPath} {rootLabel} onNavigate={handleNavigate} />
<div class="flex min-w-0 items-center gap-3">
- <div class="min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground" title={absoluteCurrentPath}>
+ <div class="min-w-0 flex-1 truncate font-mono text-2xs text-muted-foreground" title={absoluteCurrentPath}>
{absoluteCurrentPath}
</div>
</div>
@@ -214,7 +214,7 @@
/>
{/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content align="end" class="min-w-[180px]">
+ <DropdownMenu.Content align="end" class="min-w-45">
<DropdownMenu.Item onclick={handleCopyPath}>
<CopyIcon class="size-4" />
Copy current path
@@ -237,7 +237,7 @@
{#if loading}
<div class="flex flex-1 items-center justify-center p-8">
- <Spinner class="size-8 text-muted-foreground" />
+ <Spinner tone="muted" class="size-8" />
</div>
{:else if error}
<div class="rounded-lg border border-destructive/20 bg-destructive/10 p-6 text-sm text-destructive">
@@ -295,7 +295,7 @@
<div class="space-y-4 py-2">
{#if editorLoading}
<div class="flex items-center justify-center py-8">
- <Spinner class="size-8 text-muted-foreground" />
+ <Spinner tone="muted" class="size-8" />
</div>
{:else if editorError}
<div class="rounded-lg border border-destructive/20 bg-destructive/10 p-4 text-sm text-destructive">
@@ -312,13 +312,14 @@
editorDraft = { envId, path: editorFile?.path ?? '', content };
}
}
- class="font-mono text-xs"
+ mono
+ size="sm"
/>
<p class="text-xs text-muted-foreground">{m.build_saving_overwrite()}</p>
</div>
{/if}
</div>
- <Dialog.Footer class="flex flex-col-reverse gap-2 sm:flex-row sm:justify-end">
+ <Dialog.Footer class="flex flex-col-reverse sm:flex-row sm:justify-end">
<ArcaneButton action="cancel" tone="outline" type="button" onclick={() => (editorOpen = false)} />
{#if canBuildImage}
<ArcaneButton
diff --git a/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte b/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte
index 6034452d1..a44b32e71 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-config-panel.svelte
@@ -87,11 +87,17 @@
{/if}
<Collapsible.Root bind:open={showAdvanced}>
- <Collapsible.Trigger
- class="flex w-full items-center justify-between rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
- >
- {m.common_advanced()}
- <ArrowDownIcon class={showAdvanced ? 'size-4 rotate-180 transition-transform' : 'size-4 transition-transform'} />
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="flex w-full items-center justify-between rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
+ >
+ {m.common_advanced()}
+ <ArrowDownIcon class={showAdvanced ? 'size-4 rotate-180 transition-transform' : 'size-4 transition-transform'} />
+ </button>
+ {/snippet}
</Collapsible.Trigger>
<Collapsible.Content>
<div class="mt-4 grid gap-6">
diff --git a/frontend/src/routes/(app)/images/builds/components/build-controls.svelte b/frontend/src/routes/(app)/images/builds/components/build-controls.svelte
index a89c59169..76eb5d641 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-controls.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-controls.svelte
@@ -28,7 +28,7 @@
label={m.build_provider()}
hideLabel
triggerSize="sm"
- triggerClass="w-[160px]"
+ compact
options={providerOptions}
bind:value={
() => provider,
@@ -43,7 +43,7 @@
<div class="flex items-center gap-2">
<Switch id="build-push" checked={inputs.push.value} onCheckedChange={(v) => (inputs.push.value = v === true)} />
- <Label for="build-push" class="text-sm">{m.push()}</Label>
+ <Label for="build-push">{m.push()}</Label>
</div>
<div class="flex items-center gap-2">
@@ -53,7 +53,7 @@
onCheckedChange={(v) => (inputs.load.value = v === true)}
disabled={provider === 'depot'}
/>
- <Label for="build-load" class="text-sm">{m.load()}</Label>
+ <Label for="build-load">{m.load()}</Label>
</div>
<IfPermitted perm="images:build">
diff --git a/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte b/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte
index 5fef52b35..1effc40f6 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-output-panel.svelte
@@ -40,9 +40,9 @@
buildError
? 'bg-destructive'
: hasReachedComplete
- ? 'bg-green-500'
+ ? 'bg-success'
: isBuilding
- ? 'animate-pulse bg-blue-500'
+ ? 'animate-pulse bg-info'
: 'bg-muted-foreground/30'
}`}
></div>
@@ -64,14 +64,14 @@
<!-- Terminal output with refined styling -->
<div
{@attach autoScrollToBottom}
- class="group relative min-h-0 flex-1 overflow-auto rounded-2xl border border-border/50 bg-zinc-950 p-5 font-mono text-[13px] leading-[1.7] text-zinc-50 shadow-2xl shadow-black/50 dark:bg-zinc-950"
+ class="group dark relative min-h-0 flex-1 overflow-auto rounded-2xl border border-border/50 bg-background p-5 font-mono text-xs-plus leading-relaxed text-foreground shadow-2xl shadow-black/50"
>
<div class="relative">
{#if logLines.length === 0}
- <div class="flex min-h-[200px] items-center justify-center">
+ <div class="flex min-h-50 items-center justify-center">
<div class="text-center">
- <TerminalIcon class="mx-auto mb-3 size-8 text-zinc-700" />
- <p class="text-sm text-zinc-500">{m.build_output_placeholder()}</p>
+ <TerminalIcon class="mx-auto mb-3 size-8 text-muted-foreground/50" />
+ <p class="text-sm text-muted-foreground">{m.build_output_placeholder()}</p>
</div>
</div>
{:else}
diff --git a/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte b/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte
index 44706814e..a68aafd10 100644
--- a/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/build-workspace-panel.svelte
@@ -47,10 +47,7 @@
</div>
<div>
<h2 class="text-sm font-semibold tracking-tight">{m.build_context()}</h2>
- <p
- class="mt-0.5 max-w-[220px] truncate text-xs text-muted-foreground sm:max-w-[280px] lg:max-w-[360px]"
- title={contextDir}
- >
+ <p class="mt-0.5 max-w-55 truncate text-xs text-muted-foreground sm:max-w-70 lg:max-w-90" title={contextDir}>
{contextMode === 'remote' ? `${m.remote_source()}` : `${m.build_context()}:`}
{contextDir}
</p>
@@ -102,7 +99,7 @@
</div>
<div class="mt-5 space-y-3">
- <label for="remote-context-url" class="text-xs font-medium tracking-[0.12em] text-muted-foreground uppercase">
+ <label for="remote-context-url" class="text-xs font-medium tracking-widest text-muted-foreground uppercase">
{m.git_repository_url()}
</label>
<input
diff --git a/frontend/src/routes/(app)/images/builds/components/image-build-history-panel.svelte b/frontend/src/routes/(app)/images/builds/components/image-build-history-panel.svelte
index 239c1695b..588aac280 100644
--- a/frontend/src/routes/(app)/images/builds/components/image-build-history-panel.svelte
+++ b/frontend/src/routes/(app)/images/builds/components/image-build-history-panel.svelte
@@ -292,7 +292,7 @@
bind:open={detailsOpen}
title={selectedBuild ? (selectedBuild.tags?.[0] ?? m.build_output()) : m.build_output()}
description={selectedBuild ? selectedBuild.contextDir : undefined}
- contentClass="sm:max-w-[1100px]"
+ contentClass="sm:max-w-275"
class="min-h-0 lg:overflow-hidden"
>
<div class="space-y-4 pb-4">
@@ -328,16 +328,10 @@
{/if}
{/if}
- <div class="grid gap-4 lg:h-[70vh] lg:grid-cols-[360px_minmax(0,1fr)] lg:items-stretch">
+ <div class="grid gap-4 lg:h-screen-70 lg:grid-cols-aside-90 lg:items-stretch">
<div class="min-h-0 space-y-3 lg:overflow-auto lg:overscroll-contain lg:pr-1">
{#each detailItems as detail (detail.label)}
- <KeyValueCard
- label={detail.label}
- variant="outlined"
- contentClass="flex flex-col gap-2 p-3"
- labelClass="text-[10px] font-semibold tracking-[0.12em] text-muted-foreground uppercase"
- valueClass="text-xs break-all whitespace-pre-wrap"
- >
+ <KeyValueCard label={detail.label} variant="outlined" compact>
{detail.value}
</KeyValueCard>
{/each}
@@ -346,17 +340,17 @@
<div class="flex items-center justify-between border-b border-border/60 px-4 py-3">
<div class="text-sm font-medium">{m.build_output()}</div>
{#if selectedBuild?.outputTruncated}
- <span class="text-xs text-amber-400">{m.build_output_truncated()}</span>
+ <span class="text-xs text-warning">{m.build_output_truncated()}</span>
{/if}
</div>
- <div class="max-h-[60vh] min-h-[260px] overflow-auto overscroll-contain p-4 lg:max-h-none lg:min-h-0 lg:flex-1">
+ <div class="max-h-screen-60 min-h-65 overflow-auto overscroll-contain p-4 lg:max-h-none lg:min-h-0 lg:flex-1">
{#if detailsLoading}
<div class="flex h-full items-center justify-center">
- <Spinner class="size-6 text-muted-foreground" />
+ <Spinner tone="muted" class="size-6" />
</div>
{:else if selectedBuild?.output}
{#if outputEntries.length > 0}
- <div class="rounded-lg border border-border/50 bg-zinc-950/40 p-3 font-mono text-xs leading-relaxed">
+ <div class="rounded-lg border border-border/50 bg-muted/50 p-3 font-mono text-xs leading-relaxed">
{#each outputEntries as entry, entryIndex (entry.text + entryIndex)}
<div class={`break-words whitespace-pre-wrap ${entry.isError ? 'text-destructive' : 'text-foreground'}`}>
{entry.text}
diff --git a/frontend/src/routes/(app)/images/components/image-tag-dialog.svelte b/frontend/src/routes/(app)/images/components/image-tag-dialog.svelte
index 9be2a05c2..f9c342fe0 100644
--- a/frontend/src/routes/(app)/images/components/image-tag-dialog.svelte
+++ b/frontend/src/routes/(app)/images/components/image-tag-dialog.svelte
@@ -75,7 +75,7 @@
onOpenChange={handleOpenChange}
title={m.images_tag_image()}
description={m.images_tag_dialog_description()}
- contentClass="sm:max-w-[520px]"
+ contentClass="sm:max-w-130"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">
diff --git a/frontend/src/routes/(app)/images/image-table.svelte b/frontend/src/routes/(app)/images/image-table.svelte
index aac3f1b46..1030dc62e 100644
--- a/frontend/src/routes/(app)/images/image-table.svelte
+++ b/frontend/src/routes/(app)/images/image-table.svelte
@@ -494,10 +494,10 @@
<div class="flex flex-wrap gap-1.5">
{#each item.repoTags.slice(0, 2) as repoTag, tagIndex (`${repoTag}-${tagIndex}`)}
{@const tag = repoTag.split(':').pop() || repoTag}
- <Badge variant="outline" class="font-mono text-xs">{tag}</Badge>
+ <Badge variant="outline" mono>{tag}</Badge>
{/each}
{#if item.repoTags.length > 2}
- <Badge variant="outline" class="text-xs">+{item.repoTags.length - 2}</Badge>
+ <Badge variant="outline">+{item.repoTags.length - 2}</Badge>
{/if}
</div>
{:else if item.pinnedReferences && item.pinnedReferences.length > 0 && item.pinnedReferences[0]}
@@ -506,7 +506,8 @@
<div class="flex max-w-md flex-wrap items-center gap-1.5">
<Badge
variant="outline"
- class="h-auto max-w-full font-mono text-xs break-all whitespace-normal select-all"
+ mono
+ class="h-auto max-w-full break-all whitespace-normal select-all"
title={m.common_click_to_select()}
>
{firstPin}
@@ -515,7 +516,7 @@
<Tooltip.Provider>
<Tooltip.Root>
<Tooltip.Trigger>
- <Badge variant="outline" class="text-xs">+{overflowPins.length}</Badge>
+ <Badge variant="outline">+{overflowPins.length}</Badge>
</Tooltip.Trigger>
<Tooltip.Content class="pointer-events-auto max-w-sm">
<div class="flex flex-col gap-1.5">
@@ -529,7 +530,7 @@
{/if}
</div>
{:else if item.tag && item.tag !== '<none>'}
- <Badge variant="outline" class="font-mono text-xs">{item.tag}</Badge>
+ <Badge variant="outline" mono>{item.tag}</Badge>
{:else}
<span class="text-muted-foreground italic">{m.images_untagged()}</span>
{/if}
@@ -547,39 +548,23 @@
{#each usages as usage, usageIndex (`${usage.type}-${usage.id ?? usage.name}-${usageIndex}`)}
{#if usage.type === 'project'}
{#if usage.id}
- <a class="inline-flex" href={`/projects/${encodeURIComponent(usage.id)}`}>
- <Badge
- variant="outline"
- class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
- >
- <ProjectsIcon class="size-3" />
- <span>{usage.name}</span>
- </Badge>
- </a>
+ <Badge variant="outline" href={`/projects/${encodeURIComponent(usage.id)}`}>
+ <ProjectsIcon class="size-3" />
+ <span>{usage.name}</span>
+ </Badge>
{:else}
- <Badge
- variant="outline"
- class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
- >
+ <Badge variant="outline">
<ProjectsIcon class="size-3" />
<span>{usage.name}</span>
</Badge>
{/if}
{:else if usage.id}
- <a class="inline-flex" href={`/containers/${encodeURIComponent(usage.id)}`}>
- <Badge
- variant="outline"
- class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
- >
- <ContainersIcon class="size-3" />
- <span>{usage.name}</span>
- </Badge>
- </a>
+ <Badge variant="outline" href={`/containers/${encodeURIComponent(usage.id)}`}>
+ <ContainersIcon class="size-3" />
+ <span>{usage.name}</span>
+ </Badge>
{:else}
- <Badge
- variant="outline"
- class="inline-flex items-center gap-1 rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
- >
+ <Badge variant="outline">
<ContainersIcon class="size-3" />
<span>{usage.name}</span>
</Badge>
@@ -599,10 +584,7 @@
<Tooltip.Provider>
<Tooltip.Root>
<Tooltip.Trigger>
- <Badge
- variant="outline"
- class="inline-flex items-center rounded-md bg-background/80 text-xs transition-colors hover:bg-accent/40 focus-visible:ring-2 focus-visible:ring-primary/40"
- >
+ <Badge variant="outline">
+{overflowUsage.length}
</Badge>
</Tooltip.Trigger>
diff --git a/frontend/src/routes/(app)/networks/+page.svelte b/frontend/src/routes/(app)/networks/+page.svelte
index 0c17f6a9a..80a5bd8d7 100644
--- a/frontend/src/routes/(app)/networks/+page.svelte
+++ b/frontend/src/routes/(app)/networks/+page.svelte
@@ -121,13 +121,13 @@
title: m.networks_total(),
value: networkUsageCounts.total,
icon: NetworksIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.unused_networks(),
value: networkUsageCounts.unused,
icon: ConnectionIcon,
- iconColor: 'text-amber-500'
+ iconColor: 'text-warning'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/projects/+page.svelte b/frontend/src/routes/(app)/projects/+page.svelte
index 094bbda16..81262e826 100644
--- a/frontend/src/routes/(app)/projects/+page.svelte
+++ b/frontend/src/routes/(app)/projects/+page.svelte
@@ -229,19 +229,19 @@
title: m.compose_total(),
value: totalCompose,
icon: ProjectsIcon,
- iconColor: 'text-amber-500'
+ iconColor: 'text-warning'
},
{
title: m.common_running(),
value: runningCompose,
icon: StartIcon,
- iconColor: 'text-green-500'
+ iconColor: 'text-success'
},
{
title: m.common_stopped(),
value: stoppedCompose,
icon: StopIcon,
- iconColor: 'text-red-500'
+ iconColor: 'text-destructive'
},
{
title: m.projects_archived_count(),
diff --git a/frontend/src/routes/(app)/projects/[projectId]/+page.svelte b/frontend/src/routes/(app)/projects/[projectId]/+page.svelte
index 52407e7e1..57baeff26 100644
--- a/frontend/src/routes/(app)/projects/[projectId]/+page.svelte
+++ b/frontend/src/routes/(app)/projects/[projectId]/+page.svelte
@@ -319,9 +319,9 @@
const gitComposeEditUrl = $derived(gitOpsComposeEditUrl(lifecycleSync));
const gitOverrideEditUrl = $derived(gitOpsFileEditUrl(lifecycleSync, overrideFileName));
const projectWorkspaceLeadingRows = $derived([
- { key: 'compose', label: composeFileName, iconClass: 'text-blue-500', locked: true },
+ { key: 'compose', label: composeFileName, iconClass: 'text-info', locked: true },
...(overrideActive
- ? [{ key: 'override', label: overrideFileName, iconClass: 'text-purple-500', locked: true }]
+ ? [{ key: 'override', label: overrideFileName, iconClass: 'text-purple', locked: true }]
: canEditOverride
? [
{
@@ -332,7 +332,7 @@
}
]
: []),
- { key: 'env', label: '.env', iconClass: 'text-green-500', locked: true }
+ { key: 'env', label: '.env', iconClass: 'text-success', locked: true }
]);
let archiveRequiresStopped = $derived(
!!project &&
@@ -430,11 +430,11 @@
title: treeTabTitle(key),
iconClass:
key === 'compose'
- ? 'text-blue-500'
+ ? 'text-info'
: key === 'override'
- ? 'text-purple-500'
+ ? 'text-purple'
: key === 'env'
- ? 'text-green-500'
+ ? 'text-success'
: 'text-muted-foreground',
pending: treeTabPending(key)
}))
@@ -2113,7 +2113,7 @@
canEdit={canEditName}
disabledMessage={composeYamlName ? m.compose_project_name_defined_in_yaml() : undefined}
onCommit={saveNameIfChanged}
- class="max-w-[10rem] min-w-0 sm:max-w-[14rem] md:max-w-[18rem] lg:max-w-[22rem]"
+ class="max-w-40 min-w-0 sm:max-w-56 md:max-w-72 lg:max-w-88"
/>
{@render projectStatus(project)}
{#if project.isArchived}
@@ -2137,13 +2137,13 @@
<div class="mt-1 flex min-w-0 flex-wrap items-center gap-1.5">
{#each project.urls as url (url)}
<a
- class="inline-flex h-6 max-w-[10rem] min-w-0 items-center gap-1.5 rounded-[var(--radius)] border border-sky-700/20 bg-background/70 px-2.5 text-[12px] font-semibold ring-offset-background transition-colors hover:border-sky-700/40 hover:bg-sky-500/10 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none sm:max-w-[14rem] md:max-w-[18rem] dark:border-sky-400/40 dark:bg-sky-500/20 dark:text-sky-100 dark:hover:border-sky-300/60 dark:hover:bg-sky-500/30"
+ class="inline-flex h-6 max-w-40 min-w-0 items-center gap-1.5 rounded-lg border border-info/20 bg-background/70 px-2.5 text-xs font-semibold ring-offset-background transition-colors hover:border-info/40 hover:bg-info/10 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none sm:max-w-56 md:max-w-72 dark:bg-info/20 dark:hover:bg-info/30"
href={toSafeHref(url)}
target="_blank"
rel="noopener noreferrer"
title={url}
>
- <GlobeIcon class="size-3 text-sky-500" />
+ <GlobeIcon class="size-3 text-info" />
<span class="truncate">{formatUrlLabel(url)}</span>
</a>
{/each}
diff --git a/frontend/src/routes/(app)/projects/components/EditableName.svelte b/frontend/src/routes/(app)/projects/components/EditableName.svelte
index e29b20965..b774d450e 100644
--- a/frontend/src/routes/(app)/projects/components/EditableName.svelte
+++ b/frontend/src/routes/(app)/projects/components/EditableName.svelte
@@ -37,13 +37,6 @@
let isEditing = $state(false);
let wrapperClass = $derived(cn('group', variant === 'block' ? 'w-full' : 'min-w-0', className));
- let inputClass = $derived(
- cn(
- 'h-8 px-2 font-semibold',
- variant === 'block' ? 'max-w-[280px] min-w-[120px] text-left text-base' : 'max-w-[360px] text-lg',
- error && 'border-destructive'
- )
- );
async function beginEdit() {
if (!canEdit) return;
@@ -59,7 +52,9 @@
bind:ref
bind:value
{placeholder}
- class={inputClass}
+ size={variant === 'block' ? 'default' : 'lg'}
+ class={variant === 'block' ? 'h-8 max-w-70 min-w-30' : 'h-8 max-w-90'}
+ aria-invalid={!!error}
autofocus
onkeydown={(e) => {
if (e.key === 'Enter') {
@@ -83,7 +78,7 @@
<h1 class="m-0 w-full">
<button
type="button"
- class="min-h-[32px] w-full rounded bg-transparent px-1 py-1 text-center text-base font-semibold transition-colors hover:bg-muted/50 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 {error
+ class="min-h-8 w-full rounded bg-transparent px-1 py-1 text-center text-base font-semibold transition-colors hover:bg-muted/50 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 {error
? 'border border-destructive'
: ''}"
title={canEdit ? `${shownValue || placeholder} (tap to edit)` : shownValue || placeholder}
@@ -97,14 +92,14 @@
{#if canEdit}
<div class="flex items-center justify-center">
- <span class="flex items-center gap-0.5 text-[8px] whitespace-nowrap text-muted-foreground opacity-30">
+ <span class="flex items-center gap-0.5 text-4xs whitespace-nowrap text-muted-foreground opacity-30">
<EditIcon class="size-1.5" />
{m.tap_to_edit()}
</span>
</div>
{:else}
<div class="flex items-center justify-center">
- <span class="inline-flex cursor-help items-center gap-0.5 text-[8px] whitespace-nowrap text-muted-foreground opacity-40">
+ <span class="inline-flex cursor-help items-center gap-0.5 text-4xs whitespace-nowrap text-muted-foreground opacity-40">
<InfoIcon class="size-1.5" />
{m.cannot_edit()}
</span>
@@ -112,7 +107,7 @@
{/if}
{:else}
<div class="flex h-8 min-w-0 items-center gap-1.5">
- <h1 class="m-0 max-w-[360px] min-w-0">
+ <h1 class="m-0 max-w-90 min-w-0">
<button
type="button"
class={cn(
diff --git a/frontend/src/routes/(app)/projects/components/ProjectLogsPanel.svelte b/frontend/src/routes/(app)/projects/components/ProjectLogsPanel.svelte
index 572d46e9a..a4aa7c970 100644
--- a/frontend/src/routes/(app)/projects/components/ProjectLogsPanel.svelte
+++ b/frontend/src/routes/(app)/projects/components/ProjectLogsPanel.svelte
@@ -76,7 +76,7 @@
/>
</div>
</Card.Header>
- <Card.Content class="flex min-h-0 flex-1 flex-col p-0">
+ <div class="flex min-h-0 flex-1 flex-col">
<LogViewer
class="min-h-0 flex-1"
searchTerm={logSearchTerm}
@@ -93,5 +93,5 @@
onStart={() => (isStreaming = true)}
onStop={() => (isStreaming = false)}
/>
- </Card.Content>
+ </div>
</Card.Root>
diff --git a/frontend/src/routes/(app)/projects/components/ProjectServicesPanel.svelte b/frontend/src/routes/(app)/projects/components/ProjectServicesPanel.svelte
index 7cd9888ea..ac13e0471 100644
--- a/frontend/src/routes/(app)/projects/components/ProjectServicesPanel.svelte
+++ b/frontend/src/routes/(app)/projects/components/ProjectServicesPanel.svelte
@@ -57,16 +57,16 @@
function statusDotClass(status: string | undefined): string {
const normalized = (status ?? '').toLowerCase();
- if (normalized === 'running') return 'bg-emerald-500';
- if (normalized === 'exited') return 'bg-red-500';
- return 'bg-amber-500';
+ if (normalized === 'running') return 'bg-success';
+ if (normalized === 'exited') return 'bg-destructive';
+ return 'bg-warning';
}
function healthClass(health: string | undefined): string {
const normalized = (health ?? '').toLowerCase();
- if (normalized === 'healthy') return 'text-emerald-500';
- if (normalized === 'unhealthy') return 'text-red-500';
- return 'text-amber-500';
+ if (normalized === 'healthy') return 'text-success';
+ if (normalized === 'unhealthy') return 'text-destructive';
+ return 'text-warning';
}
// Runtime ports arrive as "8081:80/tcp" (or "80/tcp" when unpublished).
diff --git a/frontend/src/routes/(app)/projects/new/+page.svelte b/frontend/src/routes/(app)/projects/new/+page.svelte
index ce5bd3789..53d5f8bf6 100644
--- a/frontend/src/routes/(app)/projects/new/+page.svelte
+++ b/frontend/src/routes/(app)/projects/new/+page.svelte
@@ -138,8 +138,8 @@
});
const newProjectWorkspaceEntries = $derived(workspaceDraft.entries);
const newProjectWorkspaceLeadingRows = [
- { key: 'compose', label: 'compose.yaml', iconClass: 'text-blue-500', locked: true },
- { key: 'env', label: '.env', iconClass: 'text-green-500', locked: true }
+ { key: 'compose', label: 'compose.yaml', iconClass: 'text-info', locked: true },
+ { key: 'env', label: '.env', iconClass: 'text-success', locked: true }
];
let treeOutlineOpen = $state(false);
let treeDiffOpen = $state(false);
@@ -151,7 +151,7 @@
key,
label: key === 'compose' ? 'compose.yaml' : key === 'env' ? '.env' : workspaceFileBasename(key.slice(5)),
title: key === 'compose' ? 'compose.yaml' : key === 'env' ? '.env' : key.slice(5),
- iconClass: key === 'compose' ? 'text-blue-500' : key === 'env' ? 'text-green-500' : 'text-muted-foreground',
+ iconClass: key === 'compose' ? 'text-info' : key === 'env' ? 'text-success' : 'text-muted-foreground',
pending: false
}))
);
@@ -397,9 +397,9 @@
</div>
{#if templateLoadNotices.length > 0}
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="warning" size="sm">
<AlertIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{#each templateLoadNotices as notice (notice)}
<p>{notice}</p>
{/each}
diff --git a/frontend/src/routes/(app)/projects/projects-table.svelte b/frontend/src/routes/(app)/projects/projects-table.svelte
index ee849d57a..64f6ef285 100644
--- a/frontend/src/routes/(app)/projects/projects-table.svelte
+++ b/frontend/src/routes/(app)/projects/projects-table.svelte
@@ -310,7 +310,7 @@
{/snippet}
{#snippet DirectoryCell({ item }: { item: Project })}
- <span class="block max-w-[22rem] truncate text-muted-foreground">{item.relativePath ?? item.dirName ?? item.path}</span>
+ <span class="block max-w-88 truncate text-muted-foreground">{item.relativePath ?? item.dirName ?? item.path}</span>
{/snippet}
{#snippet ProviderCell({ item }: { item: Project })}
@@ -343,7 +343,7 @@
<span class="inline-flex items-center gap-1.5">
<Badge variant={getStatusVariant(item.status)} minWidth="20">{capitalizeFirstLetter(item.status)}</Badge>
{#if item.configurationError}
- <AlertIcon class="size-4 text-amber-500" aria-label={m.env_file_unreadable_title()} />
+ <AlertIcon class="size-4 text-warning" aria-label={m.env_file_unreadable_title()} />
{/if}
</span>
</ArcaneTooltip.Trigger>
@@ -587,7 +587,7 @@
void onToggleArchived?.(checked === true);
}}
/>
- <Label for="projects-show-archived" class="mb-0 min-w-0 text-sm font-medium text-muted-foreground">
+ <Label for="projects-show-archived" variant="muted" class="mb-0 min-w-0">
{m.projects_show_archived()}
</Label>
</div>
diff --git a/frontend/src/routes/(app)/security/+page.svelte b/frontend/src/routes/(app)/security/+page.svelte
index bc48e0fbb..736cce8bd 100644
--- a/frontend/src/routes/(app)/security/+page.svelte
+++ b/frontend/src/routes/(app)/security/+page.svelte
@@ -101,11 +101,11 @@
const severityItems = $derived.by(() => {
const items = [
- { key: 'critical', value: summaryCounts.critical, label: m.vuln_severity_critical(), dotClass: 'bg-red-500' },
- { key: 'high', value: summaryCounts.high, label: m.vuln_severity_high(), dotClass: 'bg-orange-500' },
- { key: 'medium', value: summaryCounts.medium, label: m.vuln_severity_medium(), dotClass: 'bg-amber-500' },
- { key: 'low', value: summaryCounts.low, label: m.vuln_severity_low(), dotClass: 'bg-emerald-500' },
- { key: 'unknown', value: summaryCounts.unknown, label: m.common_unknown(), dotClass: 'bg-slate-400' }
+ { key: 'critical', value: summaryCounts.critical, label: m.vuln_severity_critical(), dotClass: 'bg-destructive' },
+ { key: 'high', value: summaryCounts.high, label: m.vuln_severity_high(), dotClass: 'bg-orange' },
+ { key: 'medium', value: summaryCounts.medium, label: m.vuln_severity_medium(), dotClass: 'bg-warning' },
+ { key: 'low', value: summaryCounts.low, label: m.vuln_severity_low(), dotClass: 'bg-success' },
+ { key: 'unknown', value: summaryCounts.unknown, label: m.common_unknown(), dotClass: 'bg-muted-foreground' }
];
return items.filter((item) => item.value > 0);
});
diff --git a/frontend/src/routes/(app)/security/security-vulnerability-table.svelte b/frontend/src/routes/(app)/security/security-vulnerability-table.svelte
index d7d821379..538f6ec7f 100644
--- a/frontend/src/routes/(app)/security/security-vulnerability-table.svelte
+++ b/frontend/src/routes/(app)/security/security-vulnerability-table.svelte
@@ -436,7 +436,7 @@
await refreshVulnerabilityTable(requestOptions);
}}
/>
- <Label for="security-show-ignored" class="mb-0 min-w-0 text-sm font-medium text-muted-foreground">
+ <Label for="security-show-ignored" variant="muted" class="mb-0 min-w-0">
{m.vuln_show_ignored()}
</Label>
</div>
@@ -452,7 +452,7 @@
await refreshVulnerabilityTable(requestOptions);
}}
/>
- <Label for="security-fix-available" class="mb-0 min-w-0 text-sm font-medium text-muted-foreground">
+ <Label for="security-fix-available" variant="muted" class="mb-0 min-w-0">
{m.security_fixable()}
</Label>
</div>
diff --git a/frontend/src/routes/(app)/settings/+layout.svelte b/frontend/src/routes/(app)/settings/+layout.svelte
index 347f3b040..f71f125ab 100644
--- a/frontend/src/routes/(app)/settings/+layout.svelte
+++ b/frontend/src/routes/(app)/settings/+layout.svelte
@@ -73,7 +73,7 @@
{#if isSubPage}
<div
class={cn(
- 'sticky top-4 z-[var(--arcane-z-sticky)] mx-4 mb-6 rounded-lg border shadow-lg desktop-layout:hidden',
+ 'sticky top-4 z-(--arcane-z-sticky) mx-4 mb-6 rounded-lg border shadow-lg desktop-layout:hidden',
'bg-background/95 backdrop-blur-md'
)}
>
@@ -108,8 +108,8 @@
</div>
{/if}
- <div class="settings-container">
- <div class="settings-content w-full max-w-none">
+ <div>
+ <div class="w-full max-w-none">
{@render children()}
</div>
</div>
diff --git a/frontend/src/routes/(app)/settings/activity/+page.svelte b/frontend/src/routes/(app)/settings/activity/+page.svelte
index b83bd6106..c9259d550 100644
--- a/frontend/src/routes/(app)/settings/activity/+page.svelte
+++ b/frontend/src/routes/(app)/settings/activity/+page.svelte
@@ -3,7 +3,6 @@
import settingsStore from '#lib/stores/config-store.svelte.js';
import { m } from '#lib/paraglide/messages.js';
import { SettingsPageLayout } from '#lib/layouts/index.js';
- import { Label } from '#lib/components/ui/label/index.js';
import { ActivityIcon } from '#lib/icons/index.js';
import TextInputWithLabel from '#lib/components/form/text-input-with-label.svelte';
import { createSettingsForm } from '#lib/utils/settings-form.js';
@@ -45,64 +44,35 @@
{#snippet mainContent()}
<fieldset disabled={isReadOnly} class="relative space-y-8">
<div class="space-y-4">
- <h3 class="text-lg font-medium">{m.activity_history_section_title()}</h3>
- <div class="rounded-lg border bg-card shadow-sm">
- <div class="space-y-6 p-6">
- <div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">
- <div>
- <Label class="text-base">{m.activity_history_retention_days()}</Label>
- <p class="mt-1 text-sm text-muted-foreground">{m.activity_history_retention_days_description()}</p>
- </div>
- <div class="max-w-xs">
- <TextInputWithLabel
- bind:value={formInputs.activityHistoryRetentionDays.value}
- error={formInputs.activityHistoryRetentionDays.error}
- label={m.activity_history_retention_days()}
- placeholder={m.activity_history_retention_days_placeholder()}
- helpText={m.activity_history_retention_days_help()}
- type="number"
- />
- </div>
- </div>
-
- <div class="border-t pt-6">
- <div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">
- <div>
- <Label class="text-base">{m.activity_history_max_entries()}</Label>
- <p class="mt-1 text-sm text-muted-foreground">{m.activity_history_max_entries_description()}</p>
- </div>
- <div class="max-w-xs">
- <TextInputWithLabel
- bind:value={formInputs.activityHistoryMaxEntries.value}
- error={formInputs.activityHistoryMaxEntries.error}
- label={m.activity_history_max_entries()}
- placeholder={m.activity_history_max_entries_placeholder()}
- helpText={m.activity_history_max_entries_help()}
- type="number"
- />
- </div>
- </div>
- </div>
-
- <div class="border-t pt-6">
- <div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">
- <div>
- <Label class="text-base">{m.activity_max_concurrent()}</Label>
- <p class="mt-1 text-sm text-muted-foreground">{m.activity_max_concurrent_description()}</p>
- </div>
- <div class="max-w-xs">
- <TextInputWithLabel
- bind:value={formInputs.maxConcurrentActivities.value}
- error={formInputs.maxConcurrentActivities.error}
- label={m.activity_max_concurrent()}
- placeholder={m.activity_max_concurrent_placeholder()}
- helpText={m.activity_max_concurrent_help()}
- type="number"
- />
- </div>
- </div>
- </div>
- </div>
+ <h3 class="text-base font-semibold">{m.activity_history_section_title()}</h3>
+ <div class="grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
+ <TextInputWithLabel
+ bind:value={formInputs.activityHistoryRetentionDays.value}
+ error={formInputs.activityHistoryRetentionDays.error}
+ label={m.activity_history_retention_days()}
+ description={m.activity_history_retention_days_description()}
+ placeholder={m.activity_history_retention_days_placeholder()}
+ helpText={m.activity_history_retention_days_help()}
+ type="number"
+ />
+ <TextInputWithLabel
+ bind:value={formInputs.activityHistoryMaxEntries.value}
+ error={formInputs.activityHistoryMaxEntries.error}
+ label={m.activity_history_max_entries()}
+ description={m.activity_history_max_entries_description()}
+ placeholder={m.activity_history_max_entries_placeholder()}
+ helpText={m.activity_history_max_entries_help()}
+ type="number"
+ />
+ <TextInputWithLabel
+ bind:value={formInputs.maxConcurrentActivities.value}
+ error={formInputs.maxConcurrentActivities.error}
+ label={m.activity_max_concurrent()}
+ description={m.activity_max_concurrent_description()}
+ placeholder={m.activity_max_concurrent_placeholder()}
+ helpText={m.activity_max_concurrent_help()}
+ type="number"
+ />
</div>
</div>
</fieldset>
diff --git a/frontend/src/routes/(app)/settings/api-keys/+page.svelte b/frontend/src/routes/(app)/settings/api-keys/+page.svelte
index a67e1bcb9..22d4d74c1 100644
--- a/frontend/src/routes/(app)/settings/api-keys/+page.svelte
+++ b/frontend/src/routes/(app)/settings/api-keys/+page.svelte
@@ -165,8 +165,8 @@
}}
/>
</div>
- <div class="rounded-lg border border-yellow-200 bg-yellow-50 p-4 dark:border-yellow-800 dark:bg-yellow-900/20">
- <p class="text-sm text-yellow-800 dark:text-yellow-200">
+ <div class="rounded-lg border border-warning/30 bg-warning/10 p-4">
+ <p class="text-sm text-warning">
<strong>{m.common_important()}:</strong>
{m.api_key_important_warning()}
</p>
diff --git a/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte b/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte
index d43a8be78..49aba34d3 100644
--- a/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte
+++ b/frontend/src/routes/(app)/settings/api-keys/api-key-table.svelte
@@ -162,7 +162,7 @@
{#snippet ExpiresCell({ item }: { item: ApiKey })}
<div class="flex items-center gap-2">
{#if item.expiresAt}
- <span class={isPastDate(item.expiresAt) ? 'text-red-500' : ''}>{formatOptionalDateTime(item.expiresAt)}</span>
+ <span class={isPastDate(item.expiresAt) ? 'text-destructive' : ''}>{formatOptionalDateTime(item.expiresAt)}</span>
{:else}
<span class="text-muted-foreground">{m.common_never()}</span>
{/if}
diff --git a/frontend/src/routes/(app)/settings/authentication/+page.svelte b/frontend/src/routes/(app)/settings/authentication/+page.svelte
index 1803b0579..a770c8bc0 100644
--- a/frontend/src/routes/(app)/settings/authentication/+page.svelte
+++ b/frontend/src/routes/(app)/settings/authentication/+page.svelte
@@ -285,10 +285,10 @@
<h3 class="text-base font-semibold">{m.authentication()}</h3>
{#if isAutoLoginEnabled}
- <Alert.Root variant="default" class="border-amber-200 bg-amber-50 dark:border-amber-800 dark:bg-amber-950">
- <InfoIcon class="h-4 w-4 text-amber-600 dark:text-amber-500" />
- <Alert.Title class="text-amber-900 dark:text-amber-100">{m.security_auto_login_enabled_title()}</Alert.Title>
- <Alert.Description class="text-amber-800 dark:text-amber-200">
+ <Alert.Root variant="warning-subtle">
+ <InfoIcon class="h-4 w-4 text-warning" />
+ <Alert.Title>{m.security_auto_login_enabled_title()}</Alert.Title>
+ <Alert.Description>
{m.security_auto_login_enabled_description()}
</Alert.Description>
</Alert.Root>
@@ -344,11 +344,17 @@
onCheckedChange={handleOidcEnabledChange}
/>
{#if showOidcDetails}
- <Collapsible.Trigger
- class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground"
- >
- <span>{oidcConfigOpen ? m.common_hide() : m.common_show()} {m.common_configuration()}</span>
- <ArrowDownIcon class={cn('size-3.5 transition-transform', oidcConfigOpen && 'rotate-180')} />
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground"
+ >
+ <span>{oidcConfigOpen ? m.common_hide() : m.common_show()} {m.common_configuration()}</span>
+ <ArrowDownIcon class={cn('size-3.5 transition-transform', oidcConfigOpen && 'rotate-180')} />
+ </button>
+ {/snippet}
</Collapsible.Trigger>
{/if}
</div>
@@ -477,7 +483,7 @@
<div class="rounded-lg border bg-muted/30 p-4">
<div class="mb-2 flex items-center gap-2">
- <InfoIcon class="size-4 text-blue-600" />
+ <InfoIcon class="size-4 text-info" />
<span class="text-sm font-medium">{m.oidc_redirect_uri_title()}</span>
</div>
<p class="mb-3 text-sm text-muted-foreground">{m.oidc_redirect_uri_description()}</p>
diff --git a/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte b/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte
index 1816ccbb2..95a897769 100644
--- a/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte
+++ b/frontend/src/routes/(app)/settings/authentication/federated-credential-table.svelte
@@ -137,7 +137,7 @@
{/snippet}
{#snippet IssuerCell({ item }: { item: FederatedCredential })}
- <span class="max-w-[18rem] truncate text-muted-foreground">{item.issuerUrl}</span>
+ <span class="max-w-72 truncate text-muted-foreground">{item.issuerUrl}</span>
{/snippet}
{#snippet SubjectCell({ item }: { item: FederatedCredential })}
diff --git a/frontend/src/routes/(app)/settings/backups/+page.svelte b/frontend/src/routes/(app)/settings/backups/+page.svelte
index b3106ff62..2164ee6c8 100644
--- a/frontend/src/routes/(app)/settings/backups/+page.svelte
+++ b/frontend/src/routes/(app)/settings/backups/+page.svelte
@@ -586,9 +586,9 @@
{#snippet recoveryKeySummary()}
{#if !policyCollection.recoveryKeyStored}
- <div class="flex items-center justify-between gap-3 rounded-md border border-amber-500/40 bg-amber-500/5 px-3 py-2">
+ <div class="flex items-center justify-between gap-3 rounded-md border border-warning/40 bg-warning/5 px-3 py-2">
<div class="flex min-w-0 items-center gap-2">
- <LockIcon class="size-4 shrink-0 text-amber-500" />
+ <LockIcon class="size-4 shrink-0 text-warning" />
<p class="text-sm">{m.system_backups_recovery_key_needed()}</p>
</div>
<ArcaneButton
@@ -608,18 +608,12 @@
bind:open={keyOpen}
title={m.system_backups_recovery_key()}
description={m.system_backups_recovery_key_saved()}
- contentClass={action === 'create' ? 'sm:max-w-[760px]' : 'sm:max-w-[560px]'}
+ contentClass={action === 'create' ? 'sm:max-w-190' : 'sm:max-w-140'}
>
{#snippet children()}
<div class="space-y-3 py-2">
<div class="flex items-center gap-2">
- <Input
- id="system-backup-recovery-key"
- value={newRecoveryKey}
- readonly
- spellcheck={false}
- class="font-mono tracking-wide uppercase"
- />
+ <Input id="system-backup-recovery-key" value={newRecoveryKey} readonly spellcheck={false} mono />
<CopyButton text={newRecoveryKey} variant="outline" tabindex={0} class="shrink-0" />
</div>
<Alert.Root variant="destructive">
@@ -639,7 +633,7 @@
bind:open={importKeyOpen}
title={m.system_backups_import_recovery_key()}
description={m.system_backups_import_recovery_key_description()}
- contentClass="sm:max-w-[560px]"
+ contentClass="sm:max-w-140"
>
{#snippet children()}
<div class="space-y-3 py-2">
@@ -678,7 +672,7 @@
bind:open={actionOpen}
title={dialogTitle()}
description={dialogDescription()}
- contentClass={action === 'create' ? 'sm:max-w-[760px]' : 'sm:max-w-[560px]'}
+ contentClass={action === 'create' ? 'sm:max-w-190' : 'sm:max-w-140'}
>
{#snippet children()}
<div class="space-y-5 py-2">
@@ -792,13 +786,13 @@
}}
title={m.volume_restore_files()}
description={m.system_backups_restore_files_description()}
- contentClass="sm:max-w-[640px]"
+ contentClass="sm:max-w-160"
>
{#snippet children()}
<div class="space-y-3 py-2">
- <Alert.Root class="py-2 [&>svg]:top-2">
+ <Alert.Root size="sm">
<InfoIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.system_backups_restore_files_lifecycle_info()}
{m.system_backups_restore_files_current_directory()}
</Alert.Description>
@@ -837,9 +831,9 @@
/>
{/key}
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="warning" size="sm">
<AlertIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.volumes_backup_overwrite_warning()}
</Alert.Description>
</Alert.Root>
diff --git a/frontend/src/routes/(app)/settings/backups/s3/s3-destination-dialog.svelte b/frontend/src/routes/(app)/settings/backups/s3/s3-destination-dialog.svelte
index 3b9fc76f1..374a5f0f6 100644
--- a/frontend/src/routes/(app)/settings/backups/s3/s3-destination-dialog.svelte
+++ b/frontend/src/routes/(app)/settings/backups/s3/s3-destination-dialog.svelte
@@ -169,7 +169,7 @@
variant="sheet"
title={destination ? m.s3_destination_edit_title() : m.s3_destination_add_title()}
description={m.s3_destination_dialog_description()}
- contentClass="sm:max-w-[640px]"
+ contentClass="sm:max-w-160"
>
{#snippet children()}
<form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-6">
@@ -180,7 +180,7 @@
{/snippet}
{#snippet footer()}
<div class="flex w-full flex-col gap-2">
- <p class={connectionVerified ? 'text-xs text-green-600' : 'text-xs text-muted-foreground'}>
+ <p class={connectionVerified ? 'text-xs text-success' : 'text-xs text-muted-foreground'}>
{connectionVerified ? m.s3_destination_test_verified() : m.s3_destination_test_required()}
</p>
<SheetFooterActions
diff --git a/frontend/src/routes/(app)/settings/backups/system-backup-schedule-dialog.svelte b/frontend/src/routes/(app)/settings/backups/system-backup-schedule-dialog.svelte
index 841010b81..441800c39 100644
--- a/frontend/src/routes/(app)/settings/backups/system-backup-schedule-dialog.svelte
+++ b/frontend/src/routes/(app)/settings/backups/system-backup-schedule-dialog.svelte
@@ -144,7 +144,7 @@
removed: m.system_backups_schedule_removed()
}}
onSaved={onSystemSaved}
- contentClass="sm:max-w-[760px]"
+ contentClass="sm:max-w-190"
/>
{:else}
<BackupPolicyDialog
@@ -169,6 +169,6 @@
removed: m.system_volume_backups_schedule_removed()
}}
onSaved={onVolumeSaved}
- contentClass="sm:max-w-[760px]"
+ contentClass="sm:max-w-190"
/>
{/if}
diff --git a/frontend/src/routes/(app)/settings/backups/system-backup-table.svelte b/frontend/src/routes/(app)/settings/backups/system-backup-table.svelte
index 7d7b5deeb..808e19758 100644
--- a/frontend/src/routes/(app)/settings/backups/system-backup-table.svelte
+++ b/frontend/src/routes/(app)/settings/backups/system-backup-table.svelte
@@ -73,7 +73,8 @@
{#snippet TriggerCell({ item }: { item: BackupHistoryEntry })}<BackupTriggerCell trigger={item.trigger} />{/snippet}
{#snippet DestinationCell({ item }: { item: BackupHistoryEntry })}<BackupDestinationCell {item} />{/snippet}
{#snippet SizeCell({ item }: { item: BackupHistoryEntry })}<BackupSizeCell size={item.size} />{/snippet}
-{#snippet ErrorCell({ item }: { item: BackupHistoryEntry })}<span class="max-w-72 truncate text-red-500">{item.error || '-'}</span
+{#snippet ErrorCell({ item }: { item: BackupHistoryEntry })}<span class="max-w-72 truncate text-destructive"
+ >{item.error || '-'}</span
>{/snippet}
{#snippet RowActions({ item }: { item: BackupHistoryEntry })}
diff --git a/frontend/src/routes/(app)/settings/backups/system-volume-scope-fields.svelte b/frontend/src/routes/(app)/settings/backups/system-volume-scope-fields.svelte
index b30fdc2c1..cc654fd63 100644
--- a/frontend/src/routes/(app)/settings/backups/system-volume-scope-fields.svelte
+++ b/frontend/src/routes/(app)/settings/backups/system-volume-scope-fields.svelte
@@ -87,30 +87,32 @@
</p>
</div>
<Input bind:value={search} placeholder={m.system_volume_backups_search_volumes()} />
- <ScrollArea class="h-56 rounded-md border">
- {#if loading}
- <div class="flex h-24 items-center justify-center"><LoadingSpinnerIcon class="size-5 animate-spin" /></div>
- {:else}
- <div class="divide-y divide-border/50">
- {#each filteredOptions as option (option.name)}
- <label class="flex cursor-pointer items-center gap-3 px-3 py-2.5 hover:bg-muted/40">
- <Checkbox.Root
- checked={volumeNames.includes(option.name)}
- onCheckedChange={(value) => toggleVolume(option.name, value === true)}
- />
- <span class="min-w-0 flex-1 truncate text-sm">{option.name}</span>
- {#if option.anonymous}<Badge variant="amber" size="sm">{m.system_volume_backups_anonymous()}</Badge>{/if}
- {#if !option.available}<Badge variant="gray" size="sm">{m.system_volume_backups_unavailable()}</Badge>{/if}
- </label>
- {/each}
- {#if filteredOptions.length === 0}
- <p class="px-3 py-8 text-center text-sm text-muted-foreground">
- {m.system_volume_backups_no_matching_volumes()}
- </p>
- {/if}
- </div>
- {/if}
- </ScrollArea>
+ <div class="h-56 overflow-hidden rounded-md border">
+ <ScrollArea class="h-full">
+ {#if loading}
+ <div class="flex h-24 items-center justify-center"><LoadingSpinnerIcon class="size-5 animate-spin" /></div>
+ {:else}
+ <div class="divide-y divide-border/50">
+ {#each filteredOptions as option (option.name)}
+ <label class="flex cursor-pointer items-center gap-3 px-3 py-2.5 hover:bg-muted/40">
+ <Checkbox.Root
+ checked={volumeNames.includes(option.name)}
+ onCheckedChange={(value) => toggleVolume(option.name, value === true)}
+ />
+ <span class="min-w-0 flex-1 truncate text-sm">{option.name}</span>
+ {#if option.anonymous}<Badge variant="amber" size="sm">{m.system_volume_backups_anonymous()}</Badge>{/if}
+ {#if !option.available}<Badge variant="gray" size="sm">{m.system_volume_backups_unavailable()}</Badge>{/if}
+ </label>
+ {/each}
+ {#if filteredOptions.length === 0}
+ <p class="px-3 py-8 text-center text-sm text-muted-foreground">
+ {m.system_volume_backups_no_matching_volumes()}
+ </p>
+ {/if}
+ </div>
+ {/if}
+ </ScrollArea>
+ </div>
</div>
{/if}
diff --git a/frontend/src/routes/(app)/settings/diagnostics/+page.svelte b/frontend/src/routes/(app)/settings/diagnostics/+page.svelte
index 5a3fe468b..349dd8510 100644
--- a/frontend/src/routes/(app)/settings/diagnostics/+page.svelte
+++ b/frontend/src/routes/(app)/settings/diagnostics/+page.svelte
@@ -167,25 +167,25 @@
title: m.diagnostics_updated_ago({ ago: agoText }),
value: paused ? m.paused() : connected ? m.common_live() : m.diagnostics_status_connecting(),
icon: ActivityIcon,
- iconColor: paused ? 'text-amber-500' : connected ? 'text-emerald-500' : 'text-muted-foreground'
+ iconColor: paused ? 'text-warning' : connected ? 'text-success' : 'text-muted-foreground'
},
{
title: m.goroutines(),
value: fmtNum(diag.runtime.goroutines),
icon: ActivityIcon,
- iconColor: diag.runtime.leakedGoroutines > 0 ? 'text-rose-500' : 'text-sky-500'
+ iconColor: diag.runtime.leakedGoroutines > 0 ? 'text-rose' : 'text-sky'
},
{
title: m.diagnostics_stat_heap_alloc(),
value: fmtBytes(diag.memory.heapAlloc),
icon: MemoryStickIcon,
- iconColor: 'text-violet-500'
+ iconColor: 'text-primary'
},
{
title: m.common_uptime(),
value: fmtUptime(diag.runtime.uptimeSeconds),
icon: ClockIcon,
- iconColor: 'text-teal-500'
+ iconColor: 'text-teal'
}
];
});
@@ -327,7 +327,7 @@
</script>
{#snippet statusList(rows: { label: string; value: string | number }[])}
- <dl class="grid grid-cols-[minmax(0,1fr)_auto] gap-x-6 gap-y-2.5 text-sm">
+ <dl class="grid grid-cols-content-action gap-x-6 gap-y-2.5 text-sm">
{#each rows as r (r.label)}
<dt class="text-muted-foreground">{r.label}</dt>
<dd class="text-right font-medium tabular-nums">{r.value}</dd>
@@ -363,216 +363,237 @@
<Tabs.Root value={activeTab} class="w-full">
<TabBar items={diagnosticsTabItems} value={activeTab} onValueChange={urlTab.select} />
- <Tabs.Content value="overview" class="mt-6 space-y-8">
- {#if diag.runtime.leakedGoroutines > 0}
- <Alert.Root variant="destructive">
- <AlertTriangleIcon class="size-4" />
- <Alert.Title>{m.diagnostics_leaks_count({ count: diag.runtime.leakedGoroutines })}</Alert.Title>
- <Alert.Description class="flex flex-wrap items-center gap-3">
- {m.diagnostics_leaks_hint()}
- <ArcaneButton
- action="base"
- tone="outline"
- size="sm"
- customLabel={m.diagnostics_tab_profiling()}
- onclick={() => urlTab.select('profiling')}
- />
- </Alert.Description>
- </Alert.Root>
- {/if}
-
- <section class="space-y-6">
- {@render sectionHeading(m.diagnostics_section_system())}
- <div class="grid gap-10 lg:grid-cols-2">
- <div class="space-y-3">
- <h4 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
- {m.diagnostics_section_runtime()}
- </h4>
+ <Tabs.Content value="overview" class="mt-6">
+ <div class="space-y-8">
+ {#if diag.runtime.leakedGoroutines > 0}
+ <Alert.Root variant="destructive">
+ <AlertTriangleIcon class="size-4" />
+ <Alert.Title>{m.diagnostics_leaks_count({ count: diag.runtime.leakedGoroutines })}</Alert.Title>
+ <Alert.Description>
+ <div class="flex flex-wrap items-center gap-3">
+ {m.diagnostics_leaks_hint()}
+ <ArcaneButton
+ action="base"
+ tone="outline"
+ size="sm"
+ customLabel={m.diagnostics_tab_profiling()}
+ onclick={() => urlTab.select('profiling')}
+ />
+ </div>
+ </Alert.Description>
+ </Alert.Root>
+ {/if}
+
+ <section class="space-y-6">
+ {@render sectionHeading(m.diagnostics_section_system())}
+ <div class="grid gap-10 lg:grid-cols-2">
+ <div class="space-y-3">
+ <h4 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
+ {m.diagnostics_section_runtime()}
+ </h4>
+ {@render statusList([
+ { label: m.diagnostics_runtime_go_version(), value: diag.runtime.goVersion },
+ { label: m.platform(), value: `${diag.runtime.os}/${diag.runtime.arch}` },
+ { label: m.diagnostics_runtime_gomaxprocs(), value: diag.runtime.gomaxprocs },
+ { label: m.diagnostics_runtime_num_cpu(), value: diag.runtime.numCpu },
+ { label: m.goroutines(), value: fmtNum(diag.runtime.goroutines) },
+ { label: m.diagnostics_runtime_leaked_goroutines(), value: leakedGoroutineValue(diag) },
+ { label: m.diagnostics_runtime_ws_workers(), value: fmtNum(diag.runtime.wsWorkerGoroutines) },
+ { label: m.diagnostics_runtime_cgo_calls(), value: fmtNum(diag.runtime.numCgoCall) },
+ { label: m.common_uptime(), value: fmtUptime(diag.runtime.uptimeSeconds) }
+ ])}
+ </div>
+ <div class="space-y-3">
+ <h4 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
+ {m.diagnostics_section_memory()}
+ </h4>
+ {#if heapBar}
+ <div class="flex h-2 overflow-hidden rounded-full bg-muted/40">
+ <div class="w-(--seg) bg-primary" style="--seg: {heapBar.inuse}%" title={m.diagnostics_mem_in_use()}></div>
+ <div class="w-(--seg) bg-primary/40" style="--seg: {heapBar.idle}%" title={m.idle()}></div>
+ <div
+ class="w-(--seg) bg-muted-foreground/40"
+ style="--seg: {heapBar.released}%"
+ title={m.diagnostics_mem_released()}
+ ></div>
+ </div>
+ <div class="flex flex-wrap gap-x-4 gap-y-1 text-2xs text-muted-foreground">
+ <span>
+ <span class="mr-1 inline-block size-2 rounded-full bg-primary"></span>
+ {m.diagnostics_mem_in_use()}
+ {fmtBytes(diag.memory.heapInuse)}
+ </span>
+ <span>
+ <span class="mr-1 inline-block size-2 rounded-full bg-primary/40"></span>
+ {m.idle()}
+ {fmtBytes(diag.memory.heapIdle - diag.memory.heapReleased)}
+ </span>
+ <span>
+ <span class="mr-1 inline-block size-2 rounded-full bg-muted-foreground/40"></span>
+ {m.diagnostics_mem_released()}
+ {fmtBytes(diag.memory.heapReleased)}
+ </span>
+ </div>
+ {/if}
+ {@render statusList([
+ { label: m.diagnostics_mem_heap_alloc(), value: fmtBytes(diag.memory.heapAlloc) },
+ { label: m.diagnostics_mem_heap_sys(), value: fmtBytes(diag.memory.heapSys) },
+ { label: m.diagnostics_mem_heap_objects(), value: fmtNum(diag.memory.heapObjects) },
+ { label: m.diagnostics_mem_stack_in_use(), value: fmtBytes(diag.memory.stackInuse) },
+ { label: m.diagnostics_mem_total_alloc(), value: fmtBytes(diag.memory.totalAlloc) },
+ { label: m.diagnostics_mem_sys_total(), value: fmtBytes(diag.memory.sys) },
+ { label: m.diagnostics_mem_next_gc(), value: fmtBytes(diag.memory.nextGc) },
+ {
+ label: m.diagnostics_mem_gc_cpu_fraction(),
+ value: `${(diag.memory.gcCpuFraction * 100).toFixed(3)}%`
+ }
+ ])}
+ </div>
+ </div>
+ </section>
+
+ <section class="space-y-4 border-t border-border/50 pt-8">
+ {@render sectionHeading(m.diagnostics_section_gc())}
+ <div class="grid items-start gap-10 lg:grid-cols-2">
{@render statusList([
- { label: m.diagnostics_runtime_go_version(), value: diag.runtime.goVersion },
- { label: m.platform(), value: `${diag.runtime.os}/${diag.runtime.arch}` },
- { label: m.diagnostics_runtime_gomaxprocs(), value: diag.runtime.gomaxprocs },
- { label: m.diagnostics_runtime_num_cpu(), value: diag.runtime.numCpu },
- { label: m.goroutines(), value: fmtNum(diag.runtime.goroutines) },
- { label: m.diagnostics_runtime_leaked_goroutines(), value: leakedGoroutineValue(diag) },
- { label: m.diagnostics_runtime_ws_workers(), value: fmtNum(diag.runtime.wsWorkerGoroutines) },
- { label: m.diagnostics_runtime_cgo_calls(), value: fmtNum(diag.runtime.numCgoCall) },
- { label: m.common_uptime(), value: fmtUptime(diag.runtime.uptimeSeconds) }
+ { label: m.diagnostics_gc_total_cycles(), value: fmtNum(diag.gc.numGc) },
+ { label: m.diagnostics_gc_forced_cycles(), value: fmtNum(diag.memory.numForcedGc) },
+ { label: m.diagnostics_gc_total_pause(), value: fmtMs(diag.gc.pauseTotalNs) },
+ { label: m.diagnostics_gc_last(), value: diag.gc.lastGc ? formatTime(diag.gc.lastGc) : '—' }
])}
- </div>
- <div class="space-y-3">
- <h4 class="text-xs font-semibold tracking-wider text-muted-foreground uppercase">
- {m.diagnostics_section_memory()}
- </h4>
- {#if heapBar}
- <div class="flex h-2 overflow-hidden rounded-full bg-muted/40">
- <div class="bg-violet-500" style="width: {heapBar.inuse}%" title={m.diagnostics_mem_in_use()}></div>
- <div class="bg-violet-500/40" style="width: {heapBar.idle}%" title={m.idle()}></div>
- <div class="bg-zinc-500/40" style="width: {heapBar.released}%" title={m.diagnostics_mem_released()}></div>
- </div>
- <div class="flex flex-wrap gap-x-4 gap-y-1 text-[11px] text-muted-foreground">
- <span>
- <span class="mr-1 inline-block size-2 rounded-full bg-violet-500"></span>
- {m.diagnostics_mem_in_use()}
- {fmtBytes(diag.memory.heapInuse)}
- </span>
- <span>
- <span class="mr-1 inline-block size-2 rounded-full bg-violet-500/40"></span>
- {m.idle()}
- {fmtBytes(diag.memory.heapIdle - diag.memory.heapReleased)}
- </span>
- <span>
- <span class="mr-1 inline-block size-2 rounded-full bg-zinc-500/40"></span>
- {m.diagnostics_mem_released()}
- {fmtBytes(diag.memory.heapReleased)}
- </span>
+ {#if diag.gc.recentPausesNs?.length}
+ <div>
+ <div class="mb-1 text-2xs text-muted-foreground">{m.diagnostics_gc_recent_pauses()}</div>
+ <div class="flex h-12 items-end gap-0.5">
+ <!-- Pause durations can repeat; bars render the current snapshot without local state. -->
+ {#each diag.gc.recentPausesNs as p}
+ <div
+ class="h-(--bar) flex-1 rounded-sm bg-warning/70"
+ style="--bar: {maxPause ? Math.max(4, (p / maxPause) * 100) : 4}%"
+ title={fmtMs(p)}
+ ></div>
+ {/each}
+ </div>
</div>
{/if}
- {@render statusList([
- { label: m.diagnostics_mem_heap_alloc(), value: fmtBytes(diag.memory.heapAlloc) },
- { label: m.diagnostics_mem_heap_sys(), value: fmtBytes(diag.memory.heapSys) },
- { label: m.diagnostics_mem_heap_objects(), value: fmtNum(diag.memory.heapObjects) },
- { label: m.diagnostics_mem_stack_in_use(), value: fmtBytes(diag.memory.stackInuse) },
- { label: m.diagnostics_mem_total_alloc(), value: fmtBytes(diag.memory.totalAlloc) },
- { label: m.diagnostics_mem_sys_total(), value: fmtBytes(diag.memory.sys) },
- { label: m.diagnostics_mem_next_gc(), value: fmtBytes(diag.memory.nextGc) },
- {
- label: m.diagnostics_mem_gc_cpu_fraction(),
- value: `${(diag.memory.gcCpuFraction * 100).toFixed(3)}%`
- }
- ])}
</div>
- </div>
- </section>
-
- <section class="space-y-4 border-t border-border/50 pt-8">
- {@render sectionHeading(m.diagnostics_section_gc())}
- <div class="grid items-start gap-10 lg:grid-cols-2">
- {@render statusList([
- { label: m.diagnostics_gc_total_cycles(), value: fmtNum(diag.gc.numGc) },
- { label: m.diagnostics_gc_forced_cycles(), value: fmtNum(diag.memory.numForcedGc) },
- { label: m.diagnostics_gc_total_pause(), value: fmtMs(diag.gc.pauseTotalNs) },
- { label: m.diagnostics_gc_last(), value: diag.gc.lastGc ? formatTime(diag.gc.lastGc) : '—' }
- ])}
- {#if diag.gc.recentPausesNs?.length}
+ </section>
+ </div>
+ </Tabs.Content>
+
+ <Tabs.Content value="connections" class="mt-6">
+ <div class="space-y-4">
+ {@render sectionHeading(m.diagnostics_section_connections({ count: diag.websocket.connections?.length ?? 0 }))}
+ <div class="grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3 lg:grid-cols-6">
+ {#each wsCounts as c (c.label)}
<div>
- <div class="mb-1 text-[11px] text-muted-foreground">{m.diagnostics_gc_recent_pauses()}</div>
- <div class="flex h-12 items-end gap-0.5">
- <!-- Pause durations can repeat; bars render the current snapshot without local state. -->
- {#each diag.gc.recentPausesNs as p}
- <div
- class="flex-1 rounded-sm bg-amber-500/70"
- style="height: {maxPause ? Math.max(4, (p / maxPause) * 100) : 4}%"
- title={fmtMs(p)}
- ></div>
- {/each}
- </div>
+ <div class="text-xs text-muted-foreground">{c.label}</div>
+ <div class="text-lg font-semibold tabular-nums">{fmtNum(c.value)}</div>
</div>
- {/if}
+ {/each}
</div>
- </section>
- </Tabs.Content>
-
- <Tabs.Content value="connections" class="mt-6 space-y-4">
- {@render sectionHeading(m.diagnostics_section_connections({ count: diag.websocket.connections?.length ?? 0 }))}
- <div class="grid grid-cols-2 gap-x-6 gap-y-3 sm:grid-cols-3 lg:grid-cols-6">
- {#each wsCounts as c (c.label)}
- <div>
- <div class="text-xs text-muted-foreground">{c.label}</div>
- <div class="text-lg font-semibold tabular-nums">{fmtNum(c.value)}</div>
- </div>
- {/each}
- </div>
- {#if diag.websocket.connections?.length}
- <div class="overflow-x-auto">
- <Table.Root>
- <Table.Header>
- <Table.Row>
- <Table.Head>{m.diagnostics_conn_kind()}</Table.Head>
- <Table.Head>{m.resource()}</Table.Head>
- <Table.Head>{m.diagnostics_conn_client_ip()}</Table.Head>
- <Table.Head>{m.common_user()}</Table.Head>
- <Table.Head>{m.diagnostics_conn_since()}</Table.Head>
- </Table.Row>
- </Table.Header>
- <Table.Body>
- {#each diag.websocket.connections as c (c.id)}
+ {#if diag.websocket.connections?.length}
+ <div class="overflow-x-auto">
+ <Table.Root>
+ <Table.Header>
<Table.Row>
- <Table.Cell>{wsKindLabels[c.kind] ?? c.kind}</Table.Cell>
- <Table.Cell class="font-mono text-xs text-muted-foreground">{c.resourceId || '—'}</Table.Cell>
- <Table.Cell class="font-mono text-xs text-muted-foreground">{c.clientIp || '—'}</Table.Cell>
- <Table.Cell class="text-xs text-muted-foreground">{c.userId || '—'}</Table.Cell>
- <Table.Cell class="text-xs text-muted-foreground tabular-nums">
- {c.startedAt ? formatTime(c.startedAt) : '—'}
- </Table.Cell>
+ <Table.Head>{m.diagnostics_conn_kind()}</Table.Head>
+ <Table.Head>{m.resource()}</Table.Head>
+ <Table.Head>{m.diagnostics_conn_client_ip()}</Table.Head>
+ <Table.Head>{m.common_user()}</Table.Head>
+ <Table.Head>{m.diagnostics_conn_since()}</Table.Head>
</Table.Row>
- {/each}
- </Table.Body>
- </Table.Root>
- </div>
- {:else}
- <p class="py-8 text-sm text-muted-foreground">{m.diagnostics_connections_empty()}</p>
- {/if}
+ </Table.Header>
+ <Table.Body>
+ {#each diag.websocket.connections as c (c.id)}
+ <Table.Row>
+ <Table.Cell>{wsKindLabels[c.kind] ?? c.kind}</Table.Cell>
+ <Table.Cell><span class="font-mono text-xs text-muted-foreground">{c.resourceId || '—'}</span></Table.Cell
+ >
+ <Table.Cell><span class="font-mono text-xs text-muted-foreground">{c.clientIp || '—'}</span></Table.Cell>
+ <Table.Cell><span class="text-xs text-muted-foreground">{c.userId || '—'}</span></Table.Cell>
+ <Table.Cell>
+ <span class="text-xs text-muted-foreground tabular-nums">
+ {c.startedAt ? formatTime(c.startedAt) : '—'}
+ </span>
+ </Table.Cell>
+ </Table.Row>
+ {/each}
+ </Table.Body>
+ </Table.Root>
+ </div>
+ {:else}
+ <p class="py-8 text-sm text-muted-foreground">{m.diagnostics_connections_empty()}</p>
+ {/if}
+ </div>
</Tabs.Content>
<Tabs.Content value="logs" class="mt-6">
<DiagnosticLogPanel height="min(70vh, 640px)" />
</Tabs.Content>
- <Tabs.Content value="profiling" class="mt-6 space-y-8">
- <section class="space-y-4">
- {@render sectionHeading(m.diagnostics_section_leaks())}
- <DiagnosticLeakPanel
- leakedGoroutines={diag.runtime.leakedGoroutines}
- leakScannedAt={diag.runtime.leakScannedAt}
- onscanned={onLeakScanned}
- />
- </section>
-
- <section class="space-y-4 border-t border-border/50 pt-8">
- {@render sectionHeading(m.diagnostics_section_dumps())}
- <div class="space-y-2">
- {#each dumps as d (d.id)}
- <Collapsible.Root open={dumpOpen[d.id]} onOpenChange={(o: boolean) => onDumpToggle(d.id, o)}>
- <Collapsible.Trigger
- class="flex w-full items-center justify-between rounded-lg border border-border/60 px-3 py-2 text-sm font-medium hover:bg-muted/30"
- >
- {d.label}
- <ArrowDownIcon class={cn('size-4 transition-transform', dumpOpen[d.id] && '-rotate-180')} />
- </Collapsible.Trigger>
- <Collapsible.Content>
- <pre
- class="mt-1 max-h-96 overflow-auto rounded-lg border border-border/60 bg-background p-3 font-mono text-[11px] leading-relaxed">{dumpLoading[
- d.id
- ]
- ? m.common_loading()
- : dumpText[d.id] || m.diagnostics_dump_empty()}</pre>
- </Collapsible.Content>
- </Collapsible.Root>
- {/each}
- </div>
- </section>
-
- <section class="space-y-4 border-t border-border/50 pt-8">
- {@render sectionHeading(m.diagnostics_section_profiles(), m.diagnostics_profiles_hint())}
- <ul class="divide-y divide-border/40">
- {#each profiles as p (p.id)}
- <li class="flex items-center justify-between gap-4 py-2.5">
- <span class="text-sm font-medium">{p.label}</span>
- <ArcaneButton
- action="base"
- tone="outline"
- size="sm"
- icon={DownloadIcon}
- customLabel={m.diagnostics_download()}
- loading={downloading === p.id}
- disabled={downloading !== null}
- onclick={() => download(p.id)}
- />
- </li>
- {/each}
- </ul>
- </section>
+ <Tabs.Content value="profiling" class="mt-6">
+ <div class="space-y-8">
+ <section class="space-y-4">
+ {@render sectionHeading(m.diagnostics_section_leaks())}
+ <DiagnosticLeakPanel
+ leakedGoroutines={diag.runtime.leakedGoroutines}
+ leakScannedAt={diag.runtime.leakScannedAt}
+ onscanned={onLeakScanned}
+ />
+ </section>
+
+ <section class="space-y-4 border-t border-border/50 pt-8">
+ {@render sectionHeading(m.diagnostics_section_dumps())}
+ <div class="space-y-2">
+ {#each dumps as d (d.id)}
+ <Collapsible.Root open={dumpOpen[d.id]} onOpenChange={(o: boolean) => onDumpToggle(d.id, o)}>
+ <Collapsible.Trigger>
+ {#snippet child({ props })}
+ <button
+ {...props}
+ type="button"
+ class="flex w-full items-center justify-between rounded-lg border border-border/60 px-3 py-2 text-sm font-medium hover:bg-muted/30"
+ >
+ {d.label}
+ <ArrowDownIcon class={cn('size-4 transition-transform', dumpOpen[d.id] && '-rotate-180')} />
+ </button>
+ {/snippet}
+ </Collapsible.Trigger>
+ <Collapsible.Content>
+ <pre
+ class="mt-1 max-h-96 overflow-auto rounded-lg border border-border/60 bg-background p-3 font-mono text-2xs leading-relaxed">{dumpLoading[
+ d.id
+ ]
+ ? m.common_loading()
+ : dumpText[d.id] || m.diagnostics_dump_empty()}</pre>
+ </Collapsible.Content>
+ </Collapsible.Root>
+ {/each}
+ </div>
+ </section>
+
+ <section class="space-y-4 border-t border-border/50 pt-8">
+ {@render sectionHeading(m.diagnostics_section_profiles(), m.diagnostics_profiles_hint())}
+ <ul class="divide-y divide-border/40">
+ {#each profiles as p (p.id)}
+ <li class="flex items-center justify-between gap-4 py-2.5">
+ <span class="text-sm font-medium">{p.label}</span>
+ <ArcaneButton
+ action="base"
+ tone="outline"
+ size="sm"
+ icon={DownloadIcon}
+ customLabel={m.diagnostics_download()}
+ loading={downloading === p.id}
+ disabled={downloading !== null}
+ onclick={() => download(p.id)}
+ />
+ </li>
+ {/each}
+ </ul>
+ </section>
+ </div>
</Tabs.Content>
</Tabs.Root>
{:else if !error}
diff --git a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-leak-panel.svelte b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-leak-panel.svelte
index 74636ffe0..7d70a8b1c 100644
--- a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-leak-panel.svelte
+++ b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-leak-panel.svelte
@@ -78,9 +78,7 @@
<div
class={cn(
'rounded-lg border px-3 py-2 text-sm',
- hasScan && count > 0
- ? 'border-rose-500/40 bg-rose-500/10 text-rose-600 dark:text-rose-400'
- : 'border-border/60 bg-card/40'
+ hasScan && count > 0 ? 'border-destructive/40 bg-destructive/10 text-destructive' : 'border-border/60 bg-card/40'
)}
>
{#if !hasScan}
@@ -128,7 +126,7 @@
{#if profileText}
<pre
- class="max-h-96 overflow-auto rounded-lg border border-border/60 bg-background p-3 font-mono text-[11px] leading-relaxed">{profileText}</pre>
+ class="max-h-96 overflow-auto rounded-lg border border-border/60 bg-background p-3 font-mono text-2xs leading-relaxed">{profileText}</pre>
{:else if hasScan && count === 0}
<p class="text-sm text-muted-foreground">{m.diagnostics_leaks_empty()}</p>
{/if}
diff --git a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte
index c250820a1..6c16e03eb 100644
--- a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte
+++ b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-log-panel.svelte
@@ -55,10 +55,10 @@
function levelClass(level: string): string {
const l = level.toLowerCase();
- if (l.startsWith('error')) return 'text-red-400';
- if (l.startsWith('warn')) return 'text-amber-400';
- if (l.startsWith('debug')) return 'text-zinc-500';
- return 'text-emerald-400';
+ if (l.startsWith('error')) return 'text-destructive';
+ if (l.startsWith('warn')) return 'text-warning';
+ if (l.startsWith('debug')) return 'text-muted-foreground';
+ return 'text-success';
}
function fmtTime(t: string): string {
@@ -86,7 +86,7 @@
<div class="overflow-hidden rounded-xl border border-border/60">
<div class="flex flex-wrap items-center gap-2 border-b border-border/60 bg-muted/30 px-3 py-2">
<span class="flex items-center gap-1.5 text-xs font-medium">
- <span class={cn('size-2 rounded-full', connected ? 'bg-emerald-500' : 'bg-zinc-500')}></span>
+ <span class={cn('size-2 rounded-full', connected ? 'bg-success' : 'bg-muted-foreground')}></span>
{connected ? m.diagnostics_logs_streaming() : m.disconnected()}
</span>
<span class="text-xs text-muted-foreground tabular-nums">{m.diagnostics_logs_count({ count: filtered.length })}</span>
@@ -125,8 +125,8 @@
<div
bind:this={viewport}
- class="overflow-y-auto bg-background px-3 py-2 font-mono text-xs leading-relaxed"
- style="height: {height};"
+ class="h-(--panel-height) overflow-y-auto bg-background px-3 py-2 font-mono text-xs leading-relaxed"
+ style="--panel-height: {height}"
role="log"
aria-live={connected ? 'polite' : 'off'}
>
diff --git a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte
index 00e1674b6..c00d1ed4e 100644
--- a/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte
+++ b/frontend/src/routes/(app)/settings/diagnostics/diagnostic-stat.svelte
@@ -19,11 +19,11 @@
<Icon class="size-4" />
</div>
<div class="min-w-0">
- <div class="text-[11px] font-medium tracking-wide text-muted-foreground uppercase">{label}</div>
+ <div class="text-2xs font-medium tracking-wide text-muted-foreground uppercase">{label}</div>
<div class="flex items-baseline gap-1">
<span class="text-lg leading-tight font-semibold tabular-nums">{value}</span>
{#if unit}<span class="text-xs text-muted-foreground">{unit}</span>{/if}
</div>
- {#if sub}<div class="truncate text-[11px] text-muted-foreground">{sub}</div>{/if}
+ {#if sub}<div class="truncate text-2xs text-muted-foreground">{sub}</div>{/if}
</div>
</div>
diff --git a/frontend/src/routes/(app)/settings/notifications/+page.svelte b/frontend/src/routes/(app)/settings/notifications/+page.svelte
index 0dd7df6a8..14ce3016e 100644
--- a/frontend/src/routes/(app)/settings/notifications/+page.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/+page.svelte
@@ -263,69 +263,73 @@
<TabBar items={tabItems} value={providerTab} onValueChange={urlTab.select} class="self-start" />
{#each NOTIFICATION_PROVIDER_KEYS as provider (provider)}
- <Tabs.Content value={provider} class="mt-4 space-y-4">
- <BuiltInProviderForm
- bind:this={providerFormRefs[provider]}
- {provider}
- bind:values={providerValues[provider]}
- disabled={isReadOnly}
- {isTesting}
- hasExistingCredentials={provider === 'matrix'
- ? hasSavedCredential(savedSettings.matrix, 'password')
- : savedSettings[provider] !== null}
- hasExistingPassword={provider === 'signal' && hasSavedCredential(savedSettings.signal, 'password')}
- hasExistingToken={provider === 'signal' && hasSavedCredential(savedSettings.signal, 'token')}
- onTest={(testType) => testNotification(provider, testType)}
- />
+ <Tabs.Content value={provider} class="mt-4">
+ <div class="space-y-4">
+ <BuiltInProviderForm
+ bind:this={providerFormRefs[provider]}
+ {provider}
+ bind:values={providerValues[provider]}
+ disabled={isReadOnly}
+ {isTesting}
+ hasExistingCredentials={provider === 'matrix'
+ ? hasSavedCredential(savedSettings.matrix, 'password')
+ : savedSettings[provider] !== null}
+ hasExistingPassword={provider === 'signal' && hasSavedCredential(savedSettings.signal, 'password')}
+ hasExistingToken={provider === 'signal' && hasSavedCredential(savedSettings.signal, 'token')}
+ onTest={(testType) => testNotification(provider, testType)}
+ />
+ </div>
</Tabs.Content>
{/each}
- <Tabs.Content value="mobile" class="mt-4 space-y-4">
- <SettingsRow
- label={m.notifications_mobile_push_label()}
- description={m.notifications_mobile_push_description()}
- layout="inline"
- >
- <Switch
- id="apnsEnabled"
- checked={mobilePushEnabled}
- disabled={isReadOnly || !canToggleMobilePush || savingMobilePush}
- onCheckedChange={(checked) => void handleMobilePushToggle(checked)}
- />
- </SettingsRow>
- {#if mobilePushEnabled}
- <div class="space-y-2">
- <p class="text-sm font-medium">{m.notifications_mobile_devices()}</p>
- {#if mobileDevices.length === 0}
- <p class="text-xs text-muted-foreground">{m.notifications_mobile_devices_empty()}</p>
- {:else}
- <ul class="divide-y divide-border/40">
- {#each mobileDevices as device (device.id)}
- <li class="flex items-center justify-between gap-3 py-2">
- <div class="min-w-0">
- <p class="truncate text-sm">{device.label || device.id}</p>
- {#if device.lastSeenAt}
- <p class="text-xs text-muted-foreground">{formatRelativeTime(device.lastSeenAt)}</p>
- {/if}
- </div>
- <div class="flex shrink-0 items-center gap-2">
- <ArcaneButton
- action="test"
- size="sm"
- loading={testingDeviceId === device.id}
- onclick={() => testMobileDevice(device)}
- />
- <ArcaneButton action="remove" size="sm" onclick={() => removeMobileDevice(device)} />
- </div>
- </li>
- {/each}
- </ul>
- {/if}
- </div>
- {/if}
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
- <AlertIcon class="size-4" />
- <Alert.Description class="text-xs">{m.notifications_mobile_push_external_warning()}</Alert.Description>
- </Alert.Root>
+ <Tabs.Content value="mobile" class="mt-4">
+ <div class="space-y-4">
+ <SettingsRow
+ label={m.notifications_mobile_push_label()}
+ description={m.notifications_mobile_push_description()}
+ layout="inline"
+ >
+ <Switch
+ id="apnsEnabled"
+ checked={mobilePushEnabled}
+ disabled={isReadOnly || !canToggleMobilePush || savingMobilePush}
+ onCheckedChange={(checked) => void handleMobilePushToggle(checked)}
+ />
+ </SettingsRow>
+ {#if mobilePushEnabled}
+ <div class="space-y-2">
+ <p class="text-sm font-medium">{m.notifications_mobile_devices()}</p>
+ {#if mobileDevices.length === 0}
+ <p class="text-xs text-muted-foreground">{m.notifications_mobile_devices_empty()}</p>
+ {:else}
+ <ul class="divide-y divide-border/40">
+ {#each mobileDevices as device (device.id)}
+ <li class="flex items-center justify-between gap-3 py-2">
+ <div class="min-w-0">
+ <p class="truncate text-sm">{device.label || device.id}</p>
+ {#if device.lastSeenAt}
+ <p class="text-xs text-muted-foreground">{formatRelativeTime(device.lastSeenAt)}</p>
+ {/if}
+ </div>
+ <div class="flex shrink-0 items-center gap-2">
+ <ArcaneButton
+ action="test"
+ size="sm"
+ loading={testingDeviceId === device.id}
+ onclick={() => testMobileDevice(device)}
+ />
+ <ArcaneButton action="remove" size="sm" onclick={() => removeMobileDevice(device)} />
+ </div>
+ </li>
+ {/each}
+ </ul>
+ {/if}
+ </div>
+ {/if}
+ <Alert.Root variant="warning" size="sm">
+ <AlertIcon class="size-4" />
+ <Alert.Description>{m.notifications_mobile_push_external_warning()}</Alert.Description>
+ </Alert.Root>
+ </div>
</Tabs.Content>
</Tabs.Root>
</fieldset>
diff --git a/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte b/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte
index 9570a2c99..39cd727b9 100644
--- a/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/providers/EventSubscriptions.svelte
@@ -25,7 +25,7 @@
</script>
<div class="space-y-3 pt-2">
- <Label class="text-sm font-medium">{m.notifications_events_title()}</Label>
+ <Label>{m.notifications_events_title()}</Label>
<p class="text-xs text-muted-foreground">{m.notifications_events_description()}</p>
<div class="space-y-2">
<SwitchWithLabel
diff --git a/frontend/src/routes/(app)/settings/notifications/providers/TelegramDestinationsEditor.svelte b/frontend/src/routes/(app)/settings/notifications/providers/TelegramDestinationsEditor.svelte
index f7886c662..ba1394e33 100644
--- a/frontend/src/routes/(app)/settings/notifications/providers/TelegramDestinationsEditor.svelte
+++ b/frontend/src/routes/(app)/settings/notifications/providers/TelegramDestinationsEditor.svelte
@@ -27,7 +27,7 @@
<div class="space-y-3">
<div>
- <Label class="text-sm font-medium">{m.notifications_telegram_destinations_label()}</Label>
+ <Label>{m.notifications_telegram_destinations_label()}</Label>
<p class="text-sm text-muted-foreground">{m.notifications_telegram_destinations_help()}</p>
</div>
{#each destinations as destination, index (destination)}
diff --git a/frontend/src/routes/(app)/settings/webhooks/+page.svelte b/frontend/src/routes/(app)/settings/webhooks/+page.svelte
index ed00f6d0f..be3fc547c 100644
--- a/frontend/src/routes/(app)/settings/webhooks/+page.svelte
+++ b/frontend/src/routes/(app)/settings/webhooks/+page.svelte
@@ -102,8 +102,8 @@
}}
/>
</div>
- <div class="rounded-lg border border-yellow-200 bg-yellow-50 p-4 dark:border-yellow-800 dark:bg-yellow-900/20">
- <p class="text-sm text-yellow-800 dark:text-yellow-200">
+ <div class="rounded-lg border border-warning/30 bg-warning/10 p-4">
+ <p class="text-sm text-warning">
<strong>{m.common_important()}:</strong>
{m.webhook_token_warning()}
</p>
diff --git a/frontend/src/routes/(app)/swarm/cluster/+page.svelte b/frontend/src/routes/(app)/swarm/cluster/+page.svelte
index dd6b310d0..f6eb0a084 100644
--- a/frontend/src/routes/(app)/swarm/cluster/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/cluster/+page.svelte
@@ -328,19 +328,19 @@
title: m.cluster(),
value: swarmInfo?.id ? swarmInfo.id.slice(0, 12) : m.swarm_cluster_not_initialized(),
icon: SettingsIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.swarm_cluster_stat_tokens(),
value: joinTokens ? 2 : 0,
icon: UsersIcon,
- iconColor: 'text-emerald-500'
+ iconColor: 'text-success'
},
{
title: m.swarm_cluster_stat_unlock_key(),
value: unlockKey ? m.common_available() : m.common_unavailable(),
icon: LockIcon,
- iconColor: 'text-amber-500'
+ iconColor: 'text-warning'
}
]
: []
@@ -358,8 +358,8 @@
{#snippet mainContent()}
<div class="space-y-6 pb-6">
{#if isSwarmInitialized}
- <div class="grid gap-6 xl:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)]">
- <Card.Root class="pt-0">
+ <div class="grid gap-6 xl:grid-cols-2">
+ <Card.Root>
<Card.Header>
<Card.Title>{m.swarm_cluster_status_title()}</Card.Title>
<Card.Description>{m.swarm_cluster_status_subtitle()}</Card.Description>
@@ -373,17 +373,17 @@
/>
</Card.Action>
</Card.Header>
- <Card.Content class="pb-6">
+ <Card.Content>
<div class="divide-y divide-border/60 text-sm">
- <div class="grid gap-1 py-3 sm:grid-cols-[140px_minmax(0,1fr)] sm:gap-4">
+ <div class="grid gap-1 py-3 sm:grid-cols-aside-35 sm:gap-4">
<span class="text-muted-foreground">{m.swarm_cluster_id_label()}</span>
<span class="font-mono break-all sm:text-right">{swarmInfo?.id ?? m.swarm_cluster_not_initialized()}</span>
</div>
- <div class="grid gap-1 py-3 sm:grid-cols-[140px_minmax(0,1fr)] sm:gap-4">
+ <div class="grid gap-1 py-3 sm:grid-cols-aside-35 sm:gap-4">
<span class="text-muted-foreground">{m.common_created()}</span>
<span class="sm:text-right">{swarmInfo?.createdAt ?? m.common_na()}</span>
</div>
- <div class="grid gap-1 pt-3 sm:grid-cols-[140px_minmax(0,1fr)] sm:gap-4">
+ <div class="grid gap-1 pt-3 sm:grid-cols-aside-35 sm:gap-4">
<span class="text-muted-foreground">{m.common_updated()}</span>
<span class="sm:text-right">{swarmInfo?.updatedAt ?? m.common_na()}</span>
</div>
@@ -391,7 +391,7 @@
</Card.Content>
</Card.Root>
- <Card.Root class="pt-0">
+ <Card.Root>
<Card.Header>
<Card.Title>{m.swarm_cluster_join_tokens_title()}</Card.Title>
<Card.Description>{m.swarm_cluster_join_tokens_subtitle()}</Card.Description>
@@ -406,114 +406,124 @@
/>
</Card.Action>
</Card.Header>
- <Card.Content class="space-y-4 pb-6">
- <div class="space-y-2">
- <div class="text-xs font-medium text-muted-foreground">{m.manager()}</div>
- <div class="flex items-center gap-2">
- <InputGroup.Root class="flex-1">
- <InputGroup.Input
- type={showManagerToken ? 'text' : 'password'}
- value={joinTokens?.manager ?? ''}
- readonly
- class="font-mono text-xs"
- />
- <InputGroup.Addon align="inline-end">
- <InputGroup.Button
- type="button"
- size="icon-xs"
- onclick={() => (showManagerToken = !showManagerToken)}
- disabled={!joinTokens?.manager}
- aria-label={showManagerToken ? m.common_hide() : m.common_show()}
- >
- {#if showManagerToken}
- <EyeOffIcon />
- {:else}
- <EyeOnIcon />
- {/if}
- </InputGroup.Button>
- </InputGroup.Addon>
- </InputGroup.Root>
- {#if joinTokens?.manager}
- <CopyButton text={joinTokens.manager} />
- {/if}
+ <Card.Content>
+ <div class="flex flex-col gap-4">
+ <div class="space-y-2">
+ <div class="text-xs font-medium text-muted-foreground">{m.manager()}</div>
+ <div class="flex items-center gap-2">
+ <InputGroup.Root class="flex-1">
+ <InputGroup.Input
+ type={showManagerToken ? 'text' : 'password'}
+ value={joinTokens?.manager ?? ''}
+ readonly
+ mono
+ size="sm"
+ />
+ <InputGroup.Addon align="inline-end">
+ <InputGroup.Button
+ type="button"
+ size="icon-xs"
+ onclick={() => (showManagerToken = !showManagerToken)}
+ disabled={!joinTokens?.manager}
+ aria-label={showManagerToken ? m.common_hide() : m.common_show()}
+ >
+ {#if showManagerToken}
+ <EyeOffIcon />
+ {:else}
+ <EyeOnIcon />
+ {/if}
+ </InputGroup.Button>
+ </InputGroup.Addon>
+ </InputGroup.Root>
+ {#if joinTokens?.manager}
+ <CopyButton text={joinTokens.manager} />
+ {/if}
+ </div>
</div>
- </div>
- <div class="space-y-2">
- <div class="text-xs font-medium text-muted-foreground">{m.worker()}</div>
- <div class="flex items-center gap-2">
- <InputGroup.Root class="flex-1">
- <InputGroup.Input
- type={showWorkerToken ? 'text' : 'password'}
- value={joinTokens?.worker ?? ''}
- readonly
- class="font-mono text-xs"
- />
- <InputGroup.Addon align="inline-end">
- <InputGroup.Button
- type="button"
- size="icon-xs"
- onclick={() => (showWorkerToken = !showWorkerToken)}
- disabled={!joinTokens?.worker}
- aria-label={showWorkerToken ? m.common_hide() : m.common_show()}
- >
- {#if showWorkerToken}
- <EyeOffIcon />
- {:else}
- <EyeOnIcon />
- {/if}
- </InputGroup.Button>
- </InputGroup.Addon>
- </InputGroup.Root>
- {#if joinTokens?.worker}
- <CopyButton text={joinTokens.worker} />
- {/if}
+ <div class="space-y-2">
+ <div class="text-xs font-medium text-muted-foreground">{m.worker()}</div>
+ <div class="flex items-center gap-2">
+ <InputGroup.Root class="flex-1">
+ <InputGroup.Input
+ type={showWorkerToken ? 'text' : 'password'}
+ value={joinTokens?.worker ?? ''}
+ readonly
+ mono
+ size="sm"
+ />
+ <InputGroup.Addon align="inline-end">
+ <InputGroup.Button
+ type="button"
+ size="icon-xs"
+ onclick={() => (showWorkerToken = !showWorkerToken)}
+ disabled={!joinTokens?.worker}
+ aria-label={showWorkerToken ? m.common_hide() : m.common_show()}
+ >
+ {#if showWorkerToken}
+ <EyeOffIcon />
+ {:else}
+ <EyeOnIcon />
+ {/if}
+ </InputGroup.Button>
+ </InputGroup.Addon>
+ </InputGroup.Root>
+ {#if joinTokens?.worker}
+ <CopyButton text={joinTokens.worker} />
+ {/if}
+ </div>
</div>
</div>
</Card.Content>
</Card.Root>
</div>
- <Card.Root class="pt-0">
+ <Card.Root>
<Card.Header>
<Card.Title>{m.swarm_cluster_update_spec_title()}</Card.Title>
<Card.Description>{m.swarm_cluster_update_spec_subtitle()}</Card.Description>
- <Card.Action class="flex flex-wrap items-center justify-end gap-4">
- <label class="flex items-center gap-2 text-sm whitespace-nowrap">
- <Switch id="rotate-worker-token" bind:checked={updateForm.rotateWorkerToken} />
- <span>{m.swarm_cluster_rotate_worker_token()}</span>
- </label>
- <label class="flex items-center gap-2 text-sm whitespace-nowrap">
- <Switch id="rotate-manager-token" bind:checked={updateForm.rotateManagerToken} />
- <span>{m.swarm_cluster_rotate_manager_token()}</span>
- </label>
- <label class="flex items-center gap-2 text-sm whitespace-nowrap">
- <Switch id="rotate-unlock-key" bind:checked={updateForm.rotateManagerUnlockKey} />
- <span>{m.swarm_cluster_rotate_unlock_key()}</span>
- </label>
- <ArcaneButton
- action="inspect"
- size="sm"
- customLabel={m.swarm_cluster_load_current_spec()}
- onclick={loadCurrentSpec}
- />
+ <Card.Action>
+ <div class="flex flex-wrap items-center justify-end gap-4">
+ <label class="flex items-center gap-2 text-sm whitespace-nowrap">
+ <Switch id="rotate-worker-token" bind:checked={updateForm.rotateWorkerToken} />
+ <span>{m.swarm_cluster_rotate_worker_token()}</span>
+ </label>
+ <label class="flex items-center gap-2 text-sm whitespace-nowrap">
+ <Switch id="rotate-manager-token" bind:checked={updateForm.rotateManagerToken} />
+ <span>{m.swarm_cluster_rotate_manager_token()}</span>
+ </label>
+ <label class="flex items-center gap-2 text-sm whitespace-nowrap">
+ <Switch id="rotate-unlock-key" bind:checked={updateForm.rotateManagerUnlockKey} />
+ <span>{m.swarm_cluster_rotate_unlock_key()}</span>
+ </label>
+ <ArcaneButton
+ action="inspect"
+ size="sm"
+ customLabel={m.swarm_cluster_load_current_spec()}
+ onclick={loadCurrentSpec}
+ />
+ </div>
</Card.Action>
</Card.Header>
- <Card.Content class="space-y-4 pb-6">
- <Input placeholder={m.swarm_cluster_version_placeholder()} bind:value={updateForm.version} class="max-w-sm" />
- <Textarea
- rows={22}
- placeholder={m.swarm_cluster_spec_placeholder()}
- bind:value={() => updateSpec, (value) => (specDraft = value)}
- class="min-h-[34rem] font-mono text-xs"
- />
- <div class="flex justify-end border-t pt-4">
- <ArcaneButton
- action="save"
- customLabel={m.swarm_cluster_update_spec_action()}
- onclick={handleUpdateSpec}
- disabled={!canManageSwarm || isLoading.updateSpec}
- loading={isLoading.updateSpec}
+ <Card.Content>
+ <div class="flex flex-col gap-4">
+ <Input placeholder={m.swarm_cluster_version_placeholder()} bind:value={updateForm.version} class="max-w-sm" />
+ <Textarea
+ rows={22}
+ placeholder={m.swarm_cluster_spec_placeholder()}
+ bind:value={() => updateSpec, (value) => (specDraft = value)}
+ mono
+ size="sm"
+ class="min-h-136"
/>
+ <div class="flex justify-end border-t pt-4">
+ <ArcaneButton
+ action="save"
+ customLabel={m.swarm_cluster_update_spec_action()}
+ onclick={handleUpdateSpec}
+ disabled={!canManageSwarm || isLoading.updateSpec}
+ loading={isLoading.updateSpec}
+ />
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -534,45 +544,48 @@
<Card.Description class="mt-1">{m.swarm_cluster_initialize_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="flex flex-1 flex-col gap-5 pb-6">
- <p class="text-sm leading-relaxed text-muted-foreground">{m.swarm_cluster_initialize_hint()}</p>
-
- <details class="rounded-lg border border-border/60 bg-muted/15">
- <summary class="cursor-pointer px-4 py-3 text-sm font-medium select-none">
- {m.swarm_cluster_advanced_settings()}
- </summary>
- <div class="space-y-4 border-t px-4 py-4">
- <div class="grid gap-3 sm:grid-cols-2">
- <Input placeholder={m.swarm_cluster_listen_addr_placeholder()} bind:value={initForm.listenAddr} />
- <Input placeholder={m.swarm_cluster_advertise_addr_placeholder()} bind:value={initForm.advertiseAddr} />
+ <Card.Content class="flex-1">
+ <div class="flex flex-1 flex-col gap-5">
+ <p class="text-sm leading-relaxed text-muted-foreground">{m.swarm_cluster_initialize_hint()}</p>
+
+ <details class="rounded-lg border border-border/60 bg-muted/15">
+ <summary class="cursor-pointer px-4 py-3 text-sm font-medium select-none">
+ {m.swarm_cluster_advanced_settings()}
+ </summary>
+ <div class="space-y-4 border-t px-4 py-4">
+ <div class="grid gap-3 sm:grid-cols-2">
+ <Input placeholder={m.swarm_cluster_listen_addr_placeholder()} bind:value={initForm.listenAddr} />
+ <Input placeholder={m.swarm_cluster_advertise_addr_placeholder()} bind:value={initForm.advertiseAddr} />
+ </div>
+ <Textarea
+ rows={5}
+ placeholder={m.swarm_cluster_spec_placeholder()}
+ bind:value={initForm.spec}
+ mono
+ size="sm"
+ />
+ <div class="grid gap-3 sm:grid-cols-2">
+ <label class="flex items-center gap-2 text-sm">
+ <input type="checkbox" bind:checked={initForm.autoLockManagers} />
+ {m.swarm_cluster_auto_lock_managers()}
+ </label>
+ <label class="flex items-center gap-2 text-sm">
+ <input type="checkbox" bind:checked={initForm.forceNewCluster} />
+ {m.swarm_cluster_force_new_cluster()}
+ </label>
+ </div>
</div>
- <Textarea
- rows={5}
- placeholder={m.swarm_cluster_spec_placeholder()}
- bind:value={initForm.spec}
- class="font-mono text-xs"
+ </details>
+
+ <div class="mt-auto border-t pt-5">
+ <ArcaneButton
+ action="create"
+ customLabel={m.swarm_cluster_initialize_action()}
+ onclick={handleInit}
+ disabled={!canManageSwarm || isLoading.init}
+ loading={isLoading.init}
/>
- <div class="grid gap-3 sm:grid-cols-2">
- <label class="flex items-center gap-2 text-sm">
- <input type="checkbox" bind:checked={initForm.autoLockManagers} />
- {m.swarm_cluster_auto_lock_managers()}
- </label>
- <label class="flex items-center gap-2 text-sm">
- <input type="checkbox" bind:checked={initForm.forceNewCluster} />
- {m.swarm_cluster_force_new_cluster()}
- </label>
- </div>
</div>
- </details>
-
- <div class="mt-auto border-t pt-5">
- <ArcaneButton
- action="create"
- customLabel={m.swarm_cluster_initialize_action()}
- onclick={handleInit}
- disabled={!canManageSwarm || isLoading.init}
- loading={isLoading.init}
- />
</div>
</Card.Content>
</Card.Root>
@@ -584,38 +597,41 @@
<Card.Description class="mt-1">{m.swarm_cluster_join_description()}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="flex flex-1 flex-col gap-4 pb-6">
- <label class="space-y-2">
- <span class="text-sm font-medium">{m.swarm_cluster_manager_addresses_label()}</span>
- <Input placeholder={m.swarm_cluster_join_remote_addrs_placeholder()} bind:value={joinForm.remoteAddrs} />
- </label>
- <label class="space-y-2">
- <span class="text-sm font-medium">{m.swarm_cluster_join_token_placeholder()}</span>
- <Input
- placeholder={m.swarm_cluster_join_token_placeholder()}
- bind:value={joinForm.joinToken}
- class="font-mono text-xs"
- />
- </label>
-
- <details class="rounded-lg border border-border/60 bg-muted/15">
- <summary class="cursor-pointer px-4 py-3 text-sm font-medium select-none">
- {m.swarm_cluster_advanced_settings()}
- </summary>
- <div class="grid gap-3 border-t px-4 py-4 sm:grid-cols-2">
- <Input placeholder={m.swarm_cluster_listen_addr_placeholder()} bind:value={joinForm.listenAddr} />
- <Input placeholder={m.swarm_cluster_advertise_addr_placeholder()} bind:value={joinForm.advertiseAddr} />
+ <Card.Content class="flex-1">
+ <div class="flex flex-1 flex-col gap-4">
+ <label class="space-y-2">
+ <span class="text-sm font-medium">{m.swarm_cluster_manager_addresses_label()}</span>
+ <Input placeholder={m.swarm_cluster_join_remote_addrs_placeholder()} bind:value={joinForm.remoteAddrs} />
+ </label>
+ <label class="space-y-2">
+ <span class="text-sm font-medium">{m.swarm_cluster_join_token_placeholder()}</span>
+ <Input
+ placeholder={m.swarm_cluster_join_token_placeholder()}
+ bind:value={joinForm.joinToken}
+ mono
+ size="sm"
+ />
+ </label>
+
+ <details class="rounded-lg border border-border/60 bg-muted/15">
+ <summary class="cursor-pointer px-4 py-3 text-sm font-medium select-none">
+ {m.swarm_cluster_advanced_settings()}
+ </summary>
+ <div class="grid gap-3 border-t px-4 py-4 sm:grid-cols-2">
+ <Input placeholder={m.swarm_cluster_listen_addr_placeholder()} bind:value={joinForm.listenAddr} />
+ <Input placeholder={m.swarm_cluster_advertise_addr_placeholder()} bind:value={joinForm.advertiseAddr} />
+ </div>
+ </details>
+
+ <div class="mt-auto border-t pt-5">
+ <ArcaneButton
+ action="create"
+ customLabel={m.swarm_cluster_join_action()}
+ onclick={handleJoin}
+ disabled={!canManageSwarm || isLoading.join}
+ loading={isLoading.join}
+ />
</div>
- </details>
-
- <div class="mt-auto border-t pt-5">
- <ArcaneButton
- action="create"
- customLabel={m.swarm_cluster_join_action()}
- onclick={handleJoin}
- disabled={!canManageSwarm || isLoading.join}
- loading={isLoading.join}
- />
</div>
</Card.Content>
</Card.Root>
@@ -641,7 +657,7 @@
<CopyButton text={unlockKey} />
</div>
{/if}
- <Input placeholder={m.swarm_cluster_unlock_key_placeholder()} bind:value={unlockInput} class="font-mono text-xs" />
+ <Input placeholder={m.swarm_cluster_unlock_key_placeholder()} bind:value={unlockInput} mono size="sm" />
<div class="flex items-center gap-2">
<ArcaneButton
action="save"
diff --git a/frontend/src/routes/(app)/swarm/nodes/+page.svelte b/frontend/src/routes/(app)/swarm/nodes/+page.svelte
index 4e7f7ddac..32543ef95 100644
--- a/frontend/src/routes/(app)/swarm/nodes/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/nodes/+page.svelte
@@ -82,7 +82,7 @@
title: m.swarm_nodes_total(),
value: totalNodes,
icon: UsersIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
}
]);
</script>
@@ -91,8 +91,8 @@
{#snippet mainContent()}
<div class="space-y-4">
{#if uncoveredNodeCount > 0}
- <Alert.Root class="border-amber-500/30 bg-amber-500/10 text-amber-900 dark:text-amber-100">
- <AlertTriangleIcon class="size-4 text-amber-600 dark:text-amber-300" />
+ <Alert.Root variant="warning-subtle">
+ <AlertTriangleIcon class="size-4 text-warning" />
<Alert.Title>{m.swarm_node_agent_warning_title()}</Alert.Title>
<Alert.Description>{m.swarm_node_agent_warning_description({ count: uncoveredNodeCount })}</Alert.Description>
</Alert.Root>
diff --git a/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte b/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte
index 78da12dbb..5833ae0a5 100644
--- a/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte
+++ b/frontend/src/routes/(app)/swarm/nodes/nodes-table.svelte
@@ -355,20 +355,24 @@
{#snippet LabelsCell({ item }: { item: SwarmNodeSummary })}
<div class="flex flex-wrap items-center gap-1.5">
{#each Object.entries(item.systemLabels ?? {}) as [key, value] (key)}
- <div class="group relative overflow-hidden rounded-[var(--radius)]">
- <Badge variant="gray" class="max-w-[200px] truncate">{`${key}${value ? `=${value}` : ''}`}</Badge>
+ <div class="group relative overflow-hidden rounded-lg">
+ <Badge variant="gray" class="max-w-50"
+ ><span class="block min-w-0 truncate">{`${key}${value ? `=${value}` : ''}`}</span></Badge
+ >
</div>
{/each}
{#each Object.entries(item.labels ?? {}) as [key, value] (key)}
- <div class="group relative overflow-hidden rounded-[var(--radius)]">
- <Badge variant="blue" class="max-w-[200px] truncate">{`${key}${value ? `=${value}` : ''}`}</Badge>
+ <div class="group relative overflow-hidden rounded-lg">
+ <Badge variant="blue" class="max-w-50"
+ ><span class="block min-w-0 truncate">{`${key}${value ? `=${value}` : ''}`}</span></Badge
+ >
{#if canManageNodes}
<button
- class="absolute inset-0 flex cursor-pointer items-center justify-end rounded-[var(--radius)] bg-blue-500/10 pr-1 opacity-0 backdrop-blur-[1px] transition-opacity group-hover:opacity-100 dark:bg-blue-400/20"
+ class="absolute inset-0 flex cursor-pointer items-center justify-end rounded-lg bg-info/10 pr-1 opacity-0 backdrop-blur-2xs transition-opacity group-hover:opacity-100"
onclick={() => removeLabel(item, key)}
title={m.common_remove()}
>
- <div class="scale-90 rounded-full bg-red-500 p-0.5 shadow-lg transition-transform group-hover:scale-100">
+ <div class="scale-90 rounded-full bg-destructive p-0.5 shadow-lg transition-transform group-hover:scale-100">
<CloseIcon class="size-3 text-white" />
</div>
</button>
@@ -377,7 +381,7 @@
{/each}
{#if canManageNodes}
<button
- class="inline-flex items-center gap-1 rounded border border-dashed border-border px-2 py-0.5 text-[11px] font-medium transition-colors hover:border-primary hover:text-primary"
+ class="inline-flex items-center gap-1 rounded border border-dashed border-border px-2 py-0.5 text-2xs font-medium transition-colors hover:border-primary hover:text-primary"
onclick={() => openAddLabelDialog(item)}
>
<AddIcon class="size-3" />
diff --git a/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte b/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte
index 83501b1f5..976612104 100644
--- a/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte
+++ b/frontend/src/routes/(app)/swarm/nodes/swarm-node-agent-dialog.svelte
@@ -80,7 +80,7 @@
contentClass="sm:max-w-3xl"
>
<div class="space-y-5 px-6 py-6">
- <Alert.Root class="border-primary/20 bg-primary/5">
+ <Alert.Root variant="primary-subtle">
<EdgeConnectionIcon class="size-4" />
<Alert.Title>{m.swarm_node_agent_dialog_blurb_title()}</Alert.Title>
<Alert.Description>{m.swarm_node_agent_dialog_blurb_description()}</Alert.Description>
diff --git a/frontend/src/routes/(app)/swarm/nodes/swarm-node-label-dialog.svelte b/frontend/src/routes/(app)/swarm/nodes/swarm-node-label-dialog.svelte
index 4a69a30b9..aeca61d14 100644
--- a/frontend/src/routes/(app)/swarm/nodes/swarm-node-label-dialog.svelte
+++ b/frontend/src/routes/(app)/swarm/nodes/swarm-node-label-dialog.svelte
@@ -53,16 +53,16 @@
<ResponsiveDialog.Root bind:open title={m.add_label()} description={m.common_labels_description({ resource: m.swarm_node() })}>
<form onsubmit={handleSubmit} class="space-y-4 px-6 py-4">
<div class="space-y-2">
- <Label for="label-key" class={isReservedPrefix ? 'text-red-500' : ''}>{m.swarm_node_label_key()}</Label>
+ <Label for="label-key" variant={isReservedPrefix ? 'destructive' : 'default'}>{m.swarm_node_label_key()}</Label>
<Input
id="label-key"
bind:value={key}
placeholder={m.swarm_service_form_key_placeholder()}
required
- class={isReservedPrefix ? 'border-red-500 focus-visible:ring-red-500' : ''}
+ aria-invalid={!!isReservedPrefix}
/>
{#if isReservedPrefix}
- <p class="text-[11px] font-medium text-red-500">
+ <p class="text-2xs font-medium text-destructive">
{m.swarm_node_label_reserved_prefixes()}
</p>
{/if}
diff --git a/frontend/src/routes/(app)/swarm/services/+page.svelte b/frontend/src/routes/(app)/swarm/services/+page.svelte
index a5be7e13b..dfc63b0d5 100644
--- a/frontend/src/routes/(app)/swarm/services/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/services/+page.svelte
@@ -71,7 +71,7 @@
title: m.swarm_services_total(),
value: totalServices,
icon: DockIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte b/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
index 72179558a..f67a2e544 100644
--- a/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
@@ -343,10 +343,7 @@
<div class="flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10">
<DockIcon class="size-5 text-primary" />
</div>
- <h1
- class="max-w-[10rem] min-w-0 truncate text-lg font-semibold sm:max-w-[14rem] md:max-w-[18rem] lg:max-w-[22rem]"
- title={serviceName}
- >
+ <h1 class="max-w-40 min-w-0 truncate text-lg font-semibold sm:max-w-56 md:max-w-72 lg:max-w-88" title={serviceName}>
{serviceName}
</h1>
<Badge variant={getSwarmServiceModeVariant(serviceMode)} minWidth="20">{getSwarmServiceModeLabel(serviceMode)}</Badge>
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte
index e13a2b1f7..c0a81b1ab 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceConfiguration.svelte
@@ -31,7 +31,7 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<EnvVarsList {envVars} nameOnlyLabel={m.common_name()} />
</Card.Content>
</Card.Root>
@@ -47,7 +47,7 @@
<Card.Description>{m.common_labels_description({ resource: m.swarm_service() })}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<KeyValueGrid>
{#each Object.entries(labels) as [key, value] (key)}
<KeyValueCard label={key}>{value?.toString() || ''}</KeyValueCard>
@@ -66,16 +66,18 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
{#if command.length > 0}
<Card.Root variant="subtle" class="sm:col-span-2 lg:col-span-3 xl:col-span-4">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_command()}
- </div>
- <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
- {command.join(' ')}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_command()}
+ </div>
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
+ {command.join(' ')}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -83,12 +85,14 @@
{#if args.length > 0}
<Card.Root variant="subtle" class="sm:col-span-2 lg:col-span-3 xl:col-span-4">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_args()}
- </div>
- <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
- {args.join(' ')}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_args()}
+ </div>
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
+ {args.join(' ')}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -96,12 +100,14 @@
{#if workingDir}
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_working_directory()}
- </div>
- <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
- {workingDir}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_working_directory()}
+ </div>
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
+ {workingDir}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -109,12 +115,14 @@
{#if user}
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_user()}
- </div>
- <div class="cursor-pointer font-mono text-sm font-medium text-foreground select-all">
- {user}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_user()}
+ </div>
+ <div class="cursor-pointer font-mono text-sm font-medium text-foreground select-all">
+ {user}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -122,10 +130,12 @@
{#if hostname}
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.hostname()}</div>
- <div class="cursor-pointer font-mono text-sm font-medium text-foreground select-all">
- {hostname}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.hostname()}</div>
+ <div class="cursor-pointer font-mono text-sm font-medium text-foreground select-all">
+ {hostname}
+ </div>
</div>
</Card.Content>
</Card.Root>
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte
index bc9f03205..127b8735a 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceLogsPanel.svelte
@@ -66,7 +66,7 @@
/>
</div>
</Card.Header>
- <Card.Content class="p-0">
+ <div>
<div class="rounded-lg border bg-card/90 p-0 backdrop-blur-sm">
<LogViewer
searchTerm={logSearchTerm}
@@ -84,5 +84,5 @@
onStop={handleStreamStop}
/>
</div>
- </Card.Content>
+ </div>
</Card.Root>
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte
index 9f96c4bf7..e59db0e1a 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceNetwork.svelte
@@ -52,13 +52,13 @@
{@const vip = vipMap[networkId]}
{@const info = networkDetails[networkId]}
<Card.Root variant="subtle">
- <Card.Content class="p-4">
+ <Card.Content>
{@render networkSummary(info, aliases, networkId)}
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
{#if vip}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.networks_service_vip_label()}</div>
<code
class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-sm break-all text-muted-foreground select-all"
@@ -69,8 +69,8 @@
</Card.Root>
{/if}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.common_id()}</div>
<code
class="cursor-pointer rounded bg-muted px-1.5 py-0.5 font-mono text-xs break-all text-muted-foreground select-all sm:text-sm"
@@ -81,8 +81,8 @@
</Card.Root>
{#if aliases.length > 0}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_aliases()}
</div>
@@ -108,8 +108,8 @@
{/snippet}
{#snippet configurationNetwork(configNetwork: NonNullable<ServiceNetworkDetail['configNetwork']>)}
- <Card.Root variant="outlined" class="sm:col-span-2">
- <Card.Content class="p-3">
+ <Card.Root variant="outlined" class="sm:col-span-2" size="sm">
+ <Card.Content>
<div class="mb-3 flex items-center justify-between border-b border-border pb-3">
<div>
<div class="text-sm font-semibold text-foreground">
@@ -150,8 +150,8 @@
{#snippet networkSummary(info: ServiceNetworkDetail | undefined, aliases: string[], networkId: string)}
<div class="mb-4 flex items-center gap-3 border-b border-border pb-4">
- <div class="rounded-lg bg-blue-500/10 p-2">
- <NetworksIcon class="size-5 text-blue-500" />
+ <div class="rounded-lg bg-info/10 p-2">
+ <NetworksIcon class="size-5 text-info" />
</div>
<div class="min-w-0 flex-1">
<div class="text-base font-semibold break-all text-foreground">
@@ -234,7 +234,7 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if ports.length > 0}
<div class="flex flex-wrap gap-2">
{#each ports as port (`${port.publishedPort ?? 'internal'}:${port.targetPort}/${port.protocol}:${port.publishMode ?? ''}`)}
@@ -257,7 +257,7 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if networks.length > 0 || virtualIPs.length > 0}
<div class="grid grid-cols-1 gap-4">
{#each networks as network (network.target)}
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte
index cde0e2661..0c92997e4 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceOverview.svelte
@@ -40,7 +40,7 @@
<Card.Description>{m.common_details_description({ resource: m.swarm_service() })}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
<div class="mb-6 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
<div>
<div class="mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase">
@@ -78,23 +78,27 @@
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_image()}
- </div>
- <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
- {truncateImageDigest(serviceImage) || m.common_na()}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_image()}
+ </div>
+ <div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
+ {truncateImageDigest(serviceImage) || m.common_na()}
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_version()}
- </div>
- <div class="font-mono text-sm font-medium text-foreground">
- {versionIndex}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_version()}
+ </div>
+ <div class="font-mono text-sm font-medium text-foreground">
+ {versionIndex}
+ </div>
</div>
</Card.Content>
</Card.Root>
@@ -102,77 +106,85 @@
<KeyValueCard label={m.common_id()}>{service.id}</KeyValueCard>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_created()}
- </div>
- <div class="text-sm font-medium text-foreground">
- {formatRelativeTime(service.createdAt) || m.common_na()}
- </div>
- <div class="text-xs text-muted-foreground">
- {formatDateTimeShort(service.createdAt) || m.common_na()}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_created()}
+ </div>
+ <div class="text-sm font-medium text-foreground">
+ {formatRelativeTime(service.createdAt) || m.common_na()}
+ </div>
+ <div class="text-xs text-muted-foreground">
+ {formatDateTimeShort(service.createdAt) || m.common_na()}
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.common_updated()}
- </div>
- <div class="text-sm font-medium text-foreground">
- {formatRelativeTime(service.updatedAt) || m.common_na()}
- </div>
- <div class="text-xs text-muted-foreground">
- {formatDateTimeShort(service.updatedAt) || m.common_na()}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.common_updated()}
+ </div>
+ <div class="text-sm font-medium text-foreground">
+ {formatRelativeTime(service.updatedAt) || m.common_na()}
+ </div>
+ <div class="text-xs text-muted-foreground">
+ {formatDateTimeShort(service.updatedAt) || m.common_na()}
+ </div>
</div>
</Card.Content>
</Card.Root>
<Card.Root variant="subtle">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
- {m.nodes()}
- </div>
- {#if nodes.length > 0}
- <div class="flex flex-wrap gap-1.5">
- {#each nodes as node (node)}
- <div class="flex items-center gap-1">
- <ConnectionIcon class="size-3 text-muted-foreground" />
- <span class="text-sm font-medium text-foreground">{node}</span>
- </div>
- {/each}
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">
+ {m.nodes()}
</div>
- {:else}
- <span class="text-sm text-muted-foreground">{m.common_na()}</span>
- {/if}
+ {#if nodes.length > 0}
+ <div class="flex flex-wrap gap-1.5">
+ {#each nodes as node (node)}
+ <div class="flex items-center gap-1">
+ <ConnectionIcon class="size-3 text-muted-foreground" />
+ <span class="text-sm font-medium text-foreground">{node}</span>
+ </div>
+ {/each}
+ </div>
+ {:else}
+ <span class="text-sm text-muted-foreground">{m.common_na()}</span>
+ {/if}
+ </div>
</Card.Content>
</Card.Root>
{#if updateStatus?.['State']}
<Card.Root variant="subtle" class="sm:col-span-2">
- <Card.Content class="flex flex-col gap-2 p-4">
- <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_status()}</div>
- <div class="flex items-center gap-2">
- <Badge
- variant={updateStatus['State'] === 'completed'
- ? 'green'
- : updateStatus['State'] === 'updating'
- ? 'amber'
- : updateStatus['State'] === 'paused'
+ <Card.Content>
+ <div class="flex flex-col gap-2">
+ <div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">{m.common_status()}</div>
+ <div class="flex items-center gap-2">
+ <Badge
+ variant={updateStatus['State'] === 'completed'
+ ? 'green'
+ : updateStatus['State'] === 'updating'
? 'amber'
- : 'red'}
- minWidth="20">{updateStatus['State']}</Badge
- >
- {#if updateStatus['Message']}
- <span class="text-sm text-muted-foreground">{updateStatus['Message']}</span>
+ : updateStatus['State'] === 'paused'
+ ? 'amber'
+ : 'red'}
+ minWidth="20">{updateStatus['State']}</Badge
+ >
+ {#if updateStatus['Message']}
+ <span class="text-sm text-muted-foreground">{updateStatus['Message']}</span>
+ {/if}
+ </div>
+ {#if updateStatus['CompletedAt']}
+ <div class="text-xs text-muted-foreground">
+ {formatRelativeTime(String(updateStatus['CompletedAt'])) || m.common_na()}
+ </div>
{/if}
</div>
- {#if updateStatus['CompletedAt']}
- <div class="text-xs text-muted-foreground">
- {formatRelativeTime(String(updateStatus['CompletedAt'])) || m.common_na()}
- </div>
- {/if}
</Card.Content>
</Card.Root>
{/if}
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte
index f25f97bea..26ade5c3f 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceStorage.svelte
@@ -40,10 +40,10 @@
function getMountIconColor(type: string, mount: SwarmServiceMount): { bg: string; text: string } {
if (type === 'bind' || (type === 'volume' && isBindBackedVolume(mount))) {
- return { bg: 'bg-blue-500/10', text: 'text-blue-500' };
+ return { bg: 'bg-info/10', text: 'text-info' };
}
- if (type === 'volume') return { bg: 'bg-purple-500/10', text: 'text-purple-500' };
- return { bg: 'bg-amber-500/10', text: 'text-amber-500' };
+ if (type === 'volume') return { bg: 'bg-purple/10', text: 'text-purple' };
+ return { bg: 'bg-warning/10', text: 'text-warning' };
}
</script>
@@ -56,7 +56,7 @@
</Card.Title>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if mounts.length > 0}
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2 xl:grid-cols-3">
{#each mounts as mount (mount.target)}
@@ -67,7 +67,7 @@
{@const iconColor = getMountIconColor(type, mount)}
{@const bindBacked = type === 'volume' && isBindBackedVolume(mount)}
<Card.Root variant="subtle">
- <Card.Content class="p-4">
+ <Card.Content>
<div class="mb-4 flex items-center justify-between border-b border-border pb-4">
<div class="flex items-center gap-3">
<div class="rounded-lg p-2 {iconColor.bg}">
@@ -97,8 +97,8 @@
</div>
<div class="grid grid-cols-1 gap-3">
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{m.containers_mount_label_container()}
</div>
@@ -109,8 +109,8 @@
</Card.Root>
{#if source && type !== 'tmpfs'}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{type === 'volume' ? m.containers_mount_label_volume() : m.containers_mount_label_host()}
</div>
@@ -122,8 +122,8 @@
{/if}
{#if bindBacked && mount.volumeOptions?.['device']}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">{m.dashboard_meter_gpu_device()}:</div>
<div class="cursor-pointer font-mono text-sm font-medium break-all text-foreground select-all">
{mount.volumeOptions['device']}
@@ -133,8 +133,8 @@
{/if}
{#if mount.devicePath}
- <Card.Root variant="outlined">
- <Card.Content class="flex flex-col p-3">
+ <Card.Root variant="outlined" size="sm">
+ <Card.Content class="flex flex-col">
<div class="mb-2 text-xs font-semibold text-muted-foreground">
{bindBacked ? m.containers_mount_label_volume() : m.containers_mount_label_host()}
</div>
diff --git a/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte b/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte
index 2a1f549b9..efebee48b 100644
--- a/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte
+++ b/frontend/src/routes/(app)/swarm/services/components/ServiceTasksPanel.svelte
@@ -55,7 +55,7 @@
</ArcaneButton>
</div>
</Card.Header>
- <Card.Content class="p-4">
+ <Card.Content>
{#if isLoading && !hasLoaded}
<div class="py-12 text-center text-sm text-muted-foreground">{m.swarm_service_tasks_loading()}</div>
{:else if tasks.length === 0}
@@ -69,7 +69,7 @@
<div class="grid grid-cols-1 gap-3 lg:grid-cols-2 xl:grid-cols-3">
{#each tasks as task (task.id)}
<Card.Root variant="subtle">
- <Card.Content class="p-4">
+ <Card.Content>
<div class="mb-3 flex items-center justify-between border-b border-border pb-3">
<div class="min-w-0 flex-1">
<div class="truncate text-sm font-semibold text-foreground" title={task.name}>
@@ -98,7 +98,7 @@
{#if task.error}
<div class="col-span-2">
<div class="mb-1 text-xs font-semibold text-muted-foreground">{m.common_error()}</div>
- <div class="text-sm break-all text-red-400">{task.error}</div>
+ <div class="text-sm break-all text-destructive">{task.error}</div>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/(app)/swarm/stacks/+page.svelte b/frontend/src/routes/(app)/swarm/stacks/+page.svelte
index 0f3b4ea40..71c80cb04 100644
--- a/frontend/src/routes/(app)/swarm/stacks/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/stacks/+page.svelte
@@ -51,7 +51,7 @@
title: m.swarm_stacks_total(),
value: totalStacks,
icon: LayersIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte b/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte
index b2b42a2f9..1e03d5577 100644
--- a/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/stacks/[name]/+page.svelte
@@ -46,13 +46,13 @@
key,
label: key === 'compose' ? 'compose.yaml' : '.env',
title: key === 'compose' ? 'compose.yaml' : '.env',
- iconClass: key === 'compose' ? 'text-blue-500' : 'text-green-500',
+ iconClass: key === 'compose' ? 'text-info' : 'text-success',
pending: false
}))
);
const sourceWorkspaceLeadingRows = [
- { key: 'compose', label: 'compose.yaml', iconClass: 'text-blue-500', locked: true },
- { key: 'env', label: '.env', iconClass: 'text-green-500', locked: true }
+ { key: 'compose', label: 'compose.yaml', iconClass: 'text-info', locked: true },
+ { key: 'env', label: '.env', iconClass: 'text-success', locked: true }
];
function openSourceTab(key: string) {
@@ -240,24 +240,24 @@
title: m.services(),
value: totalServices,
icon: DockIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.tasks(),
value: totalTasks,
icon: JobsIcon,
- iconColor: 'text-indigo-500'
+ iconColor: 'text-indigo'
}
]);
</script>
<ResourcePageLayout title={stackName} subtitle={stackSubtitle} icon={LayersIcon} {actionButtons} {statCards}>
{#snippet mainContent()}
- <div class="flex min-h-[calc(100vh-18rem)] flex-col gap-4">
+ <div class="flex min-h-screen-inset-18 flex-col gap-4">
{#if !hasLiveStack && canViewSource}
<Card.Root variant="subtle">
- <Card.Content class="p-4 text-sm">
- {m.swarm_stacks_not_deployed_files_found()}
+ <Card.Content>
+ <p class="text-sm">{m.swarm_stacks_not_deployed_files_found()}</p>
</Card.Content>
</Card.Root>
{/if}
@@ -355,12 +355,14 @@
</div>
{:else if sourceState === 'loading'}
<Card.Root variant="subtle">
- <Card.Content class="p-6 text-center text-sm text-muted-foreground">{m.swarm_stack_source_loading()}</Card.Content>
+ <Card.Content>
+ <p class="text-center text-sm text-muted-foreground">{m.swarm_stack_source_loading()}</p>
+ </Card.Content>
</Card.Root>
{:else if sourceState === 'missing'}
<Card.Root variant="subtle">
- <Card.Content class="p-6 text-sm">
- <div class="space-y-2">
+ <Card.Content>
+ <div class="space-y-2 text-sm">
<p class="font-medium">{m.common_not_found_title({ resource: 'Saved source' })}</p>
<p class="text-muted-foreground">
{m.common_not_found_description({ resource: 'saved source' })}
@@ -370,8 +372,8 @@
</Card.Root>
{:else if sourceState === 'error'}
<Card.Root variant="subtle">
- <Card.Content class="p-6 text-sm">
- <div class="space-y-2">
+ <Card.Content>
+ <div class="space-y-2 text-sm">
<p class="font-medium">{m.common_action_failed()}</p>
<p class="text-muted-foreground">{m.swarm_stack_source_load_error()}</p>
</div>
diff --git a/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte b/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
index fd24a1e68..2cc28926d 100644
--- a/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
@@ -130,11 +130,11 @@
});
const stackFileEntries = $derived(stackWorkspace.entries);
const stackWorkspaceLeadingRows = $derived.by(() => [
- { key: 'compose', label: 'compose.yaml', iconClass: 'text-blue-500', locked: true },
+ { key: 'compose', label: 'compose.yaml', iconClass: 'text-info', locked: true },
...(overrideActive
- ? [{ key: 'override', label: 'compose.override.yaml', iconClass: 'text-purple-500', locked: true }]
+ ? [{ key: 'override', label: 'compose.override.yaml', iconClass: 'text-purple', locked: true }]
: [{ key: 'add-override', label: m.compose_override_add(), action: true, onSelect: addOverride }]),
- { key: 'env', label: '.env', iconClass: 'text-green-500', locked: true }
+ { key: 'env', label: '.env', iconClass: 'text-success', locked: true }
]);
let stackTreeWidth = $state<number | null>(null);
@@ -157,11 +157,11 @@
key === 'compose' ? 'compose.yaml' : key === 'override' ? 'compose.override.yaml' : key === 'env' ? '.env' : key.slice(5),
iconClass:
key === 'compose'
- ? 'text-blue-500'
+ ? 'text-info'
: key === 'override'
- ? 'text-purple-500'
+ ? 'text-purple'
: key === 'env'
- ? 'text-green-500'
+ ? 'text-success'
: 'text-muted-foreground',
pending: false
}))
@@ -338,7 +338,7 @@
checked={deployOptions.prune}
onCheckedChange={(checked) => (deployOptions.prune = checked === true)}
/>
- <Label for="swarm-stack-prune" class="font-normal">{m.swarm_stack_deploy_prune()}</Label>
+ <Label for="swarm-stack-prune" weight="normal">{m.swarm_stack_deploy_prune()}</Label>
</div>
<div class="flex items-center gap-2">
<Checkbox
@@ -346,10 +346,10 @@
checked={deployOptions.withRegistryAuth}
onCheckedChange={(checked) => (deployOptions.withRegistryAuth = checked === true)}
/>
- <Label for="swarm-stack-registry-auth" class="font-normal">{m.swarm_stack_registry_auth()}</Label>
+ <Label for="swarm-stack-registry-auth" weight="normal">{m.swarm_stack_registry_auth()}</Label>
</div>
<div class="flex min-w-56 items-center gap-2">
- <Label for="swarm-stack-resolve-image" class="shrink-0 font-normal">{m.swarm_stack_resolve_image()}</Label>
+ <Label for="swarm-stack-resolve-image" weight="normal" class="shrink-0">{m.swarm_stack_resolve_image()}</Label>
<Select.Root type="single" bind:value={deployOptions.resolveImage}>
<Select.Trigger id="swarm-stack-resolve-image" class="h-8 min-w-32">
<span class="truncate">
diff --git a/frontend/src/routes/(app)/swarm/tasks/+page.svelte b/frontend/src/routes/(app)/swarm/tasks/+page.svelte
index 510708701..7291978f2 100644
--- a/frontend/src/routes/(app)/swarm/tasks/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/tasks/+page.svelte
@@ -48,7 +48,7 @@
title: m.swarm_tasks_total(),
value: totalTasks,
icon: JobsIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/updates/+page.svelte b/frontend/src/routes/(app)/updates/+page.svelte
index 22e1f9805..7201acbcb 100644
--- a/frontend/src/routes/(app)/updates/+page.svelte
+++ b/frontend/src/routes/(app)/updates/+page.svelte
@@ -197,19 +197,19 @@
title: m.common_total(),
value: totalAffectedResources,
icon: UpdateIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.standalone_containers(),
value: containerCount,
icon: ContainersIcon,
- iconColor: 'text-emerald-500'
+ iconColor: 'text-success'
},
{
title: m.projects_title(),
value: projects.pagination?.totalItems ?? 0,
icon: ProjectsIcon,
- iconColor: 'text-amber-500'
+ iconColor: 'text-warning'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/updates/container-updates-table.svelte b/frontend/src/routes/(app)/updates/container-updates-table.svelte
index df3975d7a..d41f353d6 100644
--- a/frontend/src/routes/(app)/updates/container-updates-table.svelte
+++ b/frontend/src/routes/(app)/updates/container-updates-table.svelte
@@ -235,11 +235,7 @@
{item.name}
</a>
{#if item.ignored}
- <Badge
- variant="outline"
- class="text-muted-foreground"
- title={item.labelControlled ? m.auto_update_controlled_by_label() : undefined}
- >
+ <Badge variant="gray" title={item.labelControlled ? m.auto_update_controlled_by_label() : undefined}>
{m.common_ignored()}
</Badge>
{/if}
diff --git a/frontend/src/routes/(app)/volumes/+page.svelte b/frontend/src/routes/(app)/volumes/+page.svelte
index 1c1aa86b5..629820485 100644
--- a/frontend/src/routes/(app)/volumes/+page.svelte
+++ b/frontend/src/routes/(app)/volumes/+page.svelte
@@ -118,13 +118,13 @@
title: m.volumes_stat_total(),
value: volumeUsageCounts.total,
icon: VolumesIcon,
- iconColor: 'text-blue-500'
+ iconColor: 'text-info'
},
{
title: m.unused_volumes(),
value: volumeUsageCounts.unused,
icon: VolumeUnusedIcon,
- iconColor: 'text-amber-500'
+ iconColor: 'text-warning'
}
]);
</script>
diff --git a/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte b/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
index 444b25d43..c71324531 100644
--- a/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
+++ b/frontend/src/routes/(app)/volumes/[volumeName]/+page.svelte
@@ -843,14 +843,16 @@
<Card.Description>{workspaceReadOnlyMessage(selectedWorkspaceMetadata.readOnlyReason)}</Card.Description>
</div>
</Card.Header>
- <Card.Content class="space-y-2 text-sm text-muted-foreground">
- <p>{m.common_size()}: {bytes.format(selectedWorkspaceMetadata.size, { unitSeparator: ' ' })}</p>
- {#if selectedWorkspaceMetadata.mimeType}<p>
- {m.common_type()}: {selectedWorkspaceMetadata.mimeType}
- </p>{/if}
- {#if selectedWorkspaceEntry?.linkTarget}<p>
- {m.volumes_symlink_target_tooltip({ target: selectedWorkspaceEntry.linkTarget })}
- </p>{/if}
+ <Card.Content>
+ <div class="flex flex-col gap-2 text-sm text-muted-foreground">
+ <p>{m.common_size()}: {bytes.format(selectedWorkspaceMetadata.size, { unitSeparator: ' ' })}</p>
+ {#if selectedWorkspaceMetadata.mimeType}<p>
+ {m.common_type()}: {selectedWorkspaceMetadata.mimeType}
+ </p>{/if}
+ {#if selectedWorkspaceEntry?.linkTarget}<p>
+ {m.volumes_symlink_target_tooltip({ target: selectedWorkspaceEntry.linkTarget })}
+ </p>{/if}
+ </div>
</Card.Content>
</Card.Root>
</div>
@@ -887,9 +889,9 @@
{#snippet workspaceRestoreForm()}
<div class="space-y-4 py-2">
- <Alert.Root class="py-2 [&>svg]:top-2">
+ <Alert.Root size="sm">
<InfoIcon class="size-4" />
- <Alert.Description class="text-xs">{m.volumes_backup_safety_info()}</Alert.Description>
+ <Alert.Description>{m.volumes_backup_safety_info()}</Alert.Description>
</Alert.Root>
{#if workspaceRestorePath}
<code class="block rounded bg-muted/40 px-2 py-1 font-mono text-xs break-all">/{workspaceRestorePath}</code>
@@ -958,7 +960,7 @@
<Alert.Description>{m.volumes_workspace_truncated()}</Alert.Description>
</Alert.Root>
{/if}
- <div class="flex h-[calc(100vh-15rem)] min-h-[32rem] flex-col overflow-hidden rounded-lg border border-border bg-card">
+ <div class="flex h-screen-inset-15 min-h-128 flex-col overflow-hidden rounded-lg border border-border bg-card">
{#key `arcane.volume.workspace.split:${currentEnvId}:${volume.name}`}
<ResizableSplit
class="h-full min-h-0 flex-1"
@@ -1096,7 +1098,7 @@
onOpenChange={(open) => (showWorkspaceRestore = open)}
title={m.volumes_workspace_restore()}
description={m.volumes_workspace_backup_restore_desc()}
- contentClass="sm:max-w-[520px]"
+ contentClass="sm:max-w-130"
>
{#snippet children()}
{@render workspaceRestoreForm()}
diff --git a/frontend/src/routes/(app)/volumes/components/rename-volume-dialog.svelte b/frontend/src/routes/(app)/volumes/components/rename-volume-dialog.svelte
index 036c046bb..e70956423 100644
--- a/frontend/src/routes/(app)/volumes/components/rename-volume-dialog.svelte
+++ b/frontend/src/routes/(app)/volumes/components/rename-volume-dialog.svelte
@@ -51,7 +51,7 @@
onOpenChange={handleOpenChange}
title={m.volumes_rename_title()}
description={m.volumes_rename_description()}
- contentClass="sm:max-w-[500px]"
+ contentClass="sm:max-w-125"
>
{#snippet children()}
<form
@@ -75,7 +75,7 @@
<Alert.Root variant="warning">
<AlertTriangleIcon class="size-4" />
<Alert.Title>{m.volumes_rename_managed_warning_title()}</Alert.Title>
- <Alert.Description class="text-foreground">{m.volumes_rename_managed_warning_description()}</Alert.Description>
+ <Alert.Description>{m.volumes_rename_managed_warning_description()}</Alert.Description>
</Alert.Root>
{/if}
</form>
diff --git a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
index 677b691e5..310ad2ee5 100644
--- a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
+++ b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
@@ -24,7 +24,7 @@
UploadIcon,
ArrowDownIcon
} from '#lib/icons/index.js';
- import { ArcaneButton, arcaneButtonVariants } from '#lib/components/arcane-button/index.js';
+ import { ArcaneButton } from '#lib/components/arcane-button/index.js';
import * as ButtonGroup from '#lib/components/ui/button-group/index.js';
import { toast } from 'svelte-sonner';
import { bytes, formatDateTimeShort } from '#lib/utils/formatting.js';
@@ -55,7 +55,6 @@
import BackupSizeCell from '#lib/components/arcane-table/cells/backup-size-cell.svelte';
import CreatedAtCell from '#lib/components/arcane-table/cells/created-at-cell.svelte';
import BackupManagementCell from '#lib/components/arcane-table/cells/backup-management-cell.svelte';
- import { cn } from '#lib/utils.js';
import { bulkConfirmAndRun } from '#lib/utils/bulk-actions.js';
import { extractApiErrorMessage } from '#lib/utils/api.js';
import {
@@ -562,12 +561,18 @@
/>
{#if canListS3Destinations}
<DropdownMenu.Root>
- <DropdownMenu.Trigger
- class={cn(arcaneButtonVariants({ tone: 'outline-primary', size: 'icon' }), 'size-8 rounded-md')}
- aria-label={m.common_open_menu()}
- disabled={creating || backupActivity.activeIds.length > 0}
- >
- <ArrowDownIcon class="size-4" />
+ <DropdownMenu.Trigger disabled={creating || backupActivity.activeIds.length > 0}>
+ {#snippet child({ props })}
+ <ArcaneButton
+ {...props}
+ action="base"
+ tone="outline-primary"
+ size="icon"
+ icon={ArrowDownIcon}
+ class="size-8 rounded-md"
+ aria-label={m.common_open_menu()}
+ />
+ {/snippet}
</DropdownMenu.Trigger>
<DropdownMenu.Content align="end" class="w-64">
<DropdownMenu.Label>{m.backups_destination_label()}</DropdownMenu.Label>
@@ -679,26 +684,26 @@
{/each}
</div>
- <Alert.Root class="py-2 [&>svg]:top-2">
+ <Alert.Root size="sm">
<InfoIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.volume_backup_encryption_note()}
</Alert.Description>
</Alert.Root>
{#if backupWarnings.length > 0}
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="warning" size="sm">
<AlertIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{backupWarnings[0]}
</Alert.Description>
</Alert.Root>
{/if}
{#if s3DestinationsError}
- <Alert.Root variant="destructive" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="destructive" size="sm">
<AlertIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.s3_destinations_load_failed()}: {s3DestinationsError}
</Alert.Description>
</Alert.Root>
@@ -724,13 +729,13 @@
bind:open={showRestoreFiles}
title={m.volume_restore_files()}
description={m.volumes_backup_restore_desc()}
- contentClass="sm:max-w-[640px]"
+ contentClass="sm:max-w-160"
>
{#snippet children()}
<div class="space-y-3 py-2">
- <Alert.Root class="py-2 [&>svg]:top-2">
+ <Alert.Root size="sm">
<InfoIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.volume_backup_restore_files_lifecycle_info()}
</Alert.Description>
</Alert.Root>
@@ -746,17 +751,17 @@
{/key}
{/if}
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="warning" size="sm">
<AlertIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.volumes_backup_overwrite_warning()}
</Alert.Description>
</Alert.Root>
{#if hasWorkspaceChanges}
- <Alert.Root variant="warning" class="py-2 [&>svg]:top-2">
+ <Alert.Root variant="warning" size="sm">
<AlertIcon class="size-4" />
- <Alert.Description class="text-xs">
+ <Alert.Description>
{m.volumes_backup_restore_discard_changes()}
</Alert.Description>
</Alert.Root>
@@ -787,7 +792,7 @@
bind:open={showS3DestinationDialog}
title={m.volume_backup_choose_s3_destination()}
description={m.volume_backup_choose_s3_destination_description()}
- contentClass="sm:max-w-[520px]"
+ contentClass="sm:max-w-130"
>
{#snippet children()}
<div class="py-2">
diff --git a/frontend/src/routes/(auth)/login/+page.svelte b/frontend/src/routes/(auth)/login/+page.svelte
index f13ae446c..dfbc5ee10 100644
--- a/frontend/src/routes/(auth)/login/+page.svelte
+++ b/frontend/src/routes/(auth)/login/+page.svelte
@@ -160,12 +160,12 @@
<AuthAmbient />
-<div class="relative z-[var(--arcane-z-raised)] flex min-h-dvh items-center justify-center p-6">
- <div class="w-full max-w-[400px]">
+<div class="relative z-(--arcane-z-raised) flex min-h-dvh items-center justify-center p-6">
+ <div class="w-full max-w-100">
<div class="flex flex-col items-center">
<img class="logo h-12 w-auto sm:h-14" src={logoUrl} alt={m.layout_title()} />
{#if data.versionInformation?.displayVersion}
- <span class="enter mt-3 font-mono text-[10px] tracking-[0.2em] text-muted-foreground/60 uppercase" style="--d: 500ms"
+ <span class="enter mt-3 font-mono text-3xs tracking-ultrawide text-muted-foreground/60 uppercase" style="--d: 500ms"
>{data.versionInformation.displayVersion}</span
>
{/if}
@@ -249,7 +249,7 @@
{#if showLocalLoginForm}
<form id="login-form" name="login" action="" method="post" onsubmit={handleLogin} class="space-y-4" autocomplete="on">
<div class="space-y-2">
- <Label for="username" class="text-xs">{m.common_username()}</Label>
+ <Label for="username" size="xs">{m.common_username()}</Label>
<InputGroup.Root role={undefined}>
<InputGroup.Addon role={undefined}>
<UserIcon />
@@ -268,7 +268,7 @@
</InputGroup.Root>
</div>
<div class="space-y-2">
- <Label for="password" class="text-xs">{m.common_password()}</Label>
+ <Label for="password" size="xs">{m.common_password()}</Label>
<InputGroup.Root role={undefined}>
<InputGroup.Addon role={undefined}>
<LockIcon />
diff --git a/frontend/src/routes/(auth)/mobile/passkey/+page.svelte b/frontend/src/routes/(auth)/mobile/passkey/+page.svelte
index 817a6b79b..bd26b89e4 100644
--- a/frontend/src/routes/(auth)/mobile/passkey/+page.svelte
+++ b/frontend/src/routes/(auth)/mobile/passkey/+page.svelte
@@ -129,10 +129,10 @@
<AuthAmbient />
-<main class="relative z-[var(--arcane-z-raised)] flex min-h-dvh items-center justify-center p-5 sm:p-8">
+<main class="relative z-(--arcane-z-raised) flex min-h-dvh items-center justify-center p-5 sm:p-8">
<section
aria-labelledby="mobile-passkey-title"
- class="w-full max-w-md rounded-3xl border bg-card/75 p-6 shadow-[0_24px_80px_-32px_rgba(0,0,0,0.55)] ring-1 ring-border/40 backdrop-blur-xl sm:p-8"
+ class="w-full max-w-md rounded-3xl border bg-card/75 p-6 shadow-float ring-1 ring-border/40 backdrop-blur-xl sm:p-8"
>
<div class="mb-7 flex items-center justify-between gap-4">
<div class="flex items-center gap-3">
@@ -144,11 +144,11 @@
<ShieldCheckIcon class="size-5 text-primary" />
</div>
- <div class="mb-7 h-px w-10 bg-primary/70 shadow-[0_0_8px_var(--primary)]"></div>
+ <div class="mb-7 h-px w-10 bg-primary/70 shadow-glow shadow-primary"></div>
{#if status === 'preparing'}
<div class="flex min-h-64 flex-col items-center justify-center text-center">
- <Spinner class="size-10 text-primary" />
+ <Spinner tone="primary" class="size-10" />
<h1 id="mobile-passkey-title" class="mt-5 text-2xl font-semibold tracking-tight">
{m.mobile_passkey_preparing_title()}
</h1>
diff --git a/frontend/src/routes/layout.css b/frontend/src/routes/layout.css
index 07110ec48..42df4dff1 100644
--- a/frontend/src/routes/layout.css
+++ b/frontend/src/routes/layout.css
@@ -6,7 +6,6 @@
@import './themes.css';
@custom-variant dark (&:is(.dark *));
-/* Effective layout, set on <html> by the root layout from IsMobile + the per-device layout preference. */
@custom-variant desktop-layout (&:where([data-layout='desktop'], [data-layout='desktop'] *));
@custom-variant mobile-layout (&:where([data-layout='mobile'], [data-layout='mobile'] *));
@@ -28,6 +27,22 @@
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
+ --success: oklch(0.596 0.145 163.225);
+ --warning: oklch(0.666 0.179 58.318);
+ --info: oklch(0.546 0.245 262.881);
+ --orange: oklch(0.646 0.222 41.116);
+ --lime: oklch(0.648 0.2 131.684);
+ --teal: oklch(0.6 0.118 184.704);
+ --cyan: oklch(0.609 0.126 221.723);
+ --sky: oklch(0.588 0.158 241.966);
+ --indigo: oklch(0.511 0.262 276.966);
+ --violet: oklch(0.541 0.281 293.009);
+ --purple: oklch(0.558 0.288 302.321);
+ --fuchsia: oklch(0.591 0.293 322.896);
+ --pink: oklch(0.592 0.249 0.584);
+ --rose: oklch(0.586 0.253 17.585);
+ --button-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 1px 2px rgb(15 23 42 / 0.06);
+ --button-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 8px 20px -12px rgb(15 23 42 / 0.28);
--border: oklch(0.905 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.606 0.25 292.717);
@@ -68,6 +83,8 @@
--arcane-z-critical-surface: 70;
--arcane-z-toast: 80;
--arcane-z-loading: 9999;
+
+ --safe-area-bottom: env(safe-area-inset-bottom);
}
.dark {
@@ -87,6 +104,22 @@
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
+ --success: oklch(0.765 0.177 163.223);
+ --warning: oklch(0.828 0.189 84.429);
+ --info: oklch(0.707 0.165 254.624);
+ --orange: oklch(0.75 0.183 55.934);
+ --lime: oklch(0.841 0.238 128.85);
+ --teal: oklch(0.777 0.152 181.912);
+ --cyan: oklch(0.789 0.154 211.53);
+ --sky: oklch(0.746 0.16 232.661);
+ --indigo: oklch(0.673 0.182 276.935);
+ --violet: oklch(0.702 0.183 293.541);
+ --purple: oklch(0.714 0.203 305.504);
+ --fuchsia: oklch(0.74 0.238 322.16);
+ --pink: oklch(0.718 0.202 349.761);
+ --rose: oklch(0.712 0.194 13.428);
+ --button-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.18);
+ --button-shadow-hover: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 10px 24px -14px rgb(0 0 0 / 0.5);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.541 0.281 293.009);
@@ -190,6 +223,74 @@ html.reduce-effects *::after {
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
+ --color-success: var(--success);
+ --color-warning: var(--warning);
+ --color-info: var(--info);
+ --color-orange: var(--orange);
+ --color-lime: var(--lime);
+ --color-teal: var(--teal);
+ --color-cyan: var(--cyan);
+ --color-sky: var(--sky);
+ --color-indigo: var(--indigo);
+ --color-violet: var(--violet);
+ --color-purple: var(--purple);
+ --color-fuchsia: var(--fuchsia);
+ --color-pink: var(--pink);
+ --color-rose: var(--rose);
+ --color-primary-tint: color-mix(in oklch, var(--primary) 55%, white);
+
+ --text-2xs: 0.6875rem;
+ --text-3xs: 0.625rem;
+ --text-4xs: 0.5rem;
+ --text-xs-plus: 0.8125rem;
+ --tracking-ultrawide: 0.2em;
+ --blur-2xs: 2px;
+
+ --shadow-glow: 0 0 8px rgb(0 0 0 / 0.25);
+ --shadow-glow-lg: 0 0 24px -8px rgb(0 0 0 / 0.4);
+ --shadow-float: 0 24px 80px -32px rgb(0 0 0 / 0.55);
+ --shadow-button: var(--button-shadow);
+ --shadow-button-hover: var(--button-shadow-hover);
+
+ --grid-template-columns-content-action: minmax(0, 1fr) auto;
+ --grid-template-columns-icon-content-action: auto minmax(0, 1fr) auto;
+ --grid-template-columns-content-36-action: minmax(0, 1fr) 9rem auto;
+ --grid-template-columns-halves-action: repeat(2, minmax(0, 1fr)) auto;
+ --grid-template-columns-content-aside-48: minmax(0, 1fr) 12rem;
+ --grid-template-columns-label-value: minmax(6.5rem, 38%) minmax(0, 1fr);
+ --grid-template-columns-key-value: minmax(8.75rem, 11.25rem) minmax(0, 1fr);
+ --grid-template-columns-aside-28: 7rem minmax(0, 1fr);
+ --grid-template-columns-aside-35: 8.75rem minmax(0, 1fr);
+ --grid-template-columns-aside-65: minmax(0, 16.25rem) minmax(0, 1fr);
+ --grid-template-columns-aside-80: 20rem minmax(0, 1fr);
+ --grid-template-columns-aside-90: 22.5rem minmax(0, 1fr);
+ --grid-template-columns-split-1-2: minmax(0, 1fr) minmax(0, 2fr);
+ --grid-template-columns-split-6-5: minmax(0, 1.2fr) minmax(0, 1fr);
+
+ --height-screen-70: 70vh;
+ --height-screen-inset-12: calc(100vh - 12rem);
+ --height-screen-inset-15: calc(100vh - 15rem);
+ --min-height-screen-60: 60vh;
+ --min-height-screen-70: 70vh;
+ --min-height-screen-inset-10: calc(100vh - 10rem);
+ --min-height-screen-inset-18: calc(100vh - 18rem);
+ --max-height-screen-50: 50vh;
+ --max-height-screen-60: 60vh;
+ --max-height-screen-70: 70vh;
+ --max-height-screen-80: 80vh;
+ --max-height-screen-85: 85vh;
+ --max-height-dscreen-90: 90dvh;
+ --max-height-screen-inset-2: calc(100vh - 2rem);
+ --max-height-screen-inset-5: calc(100vh - 5rem);
+ --max-height-full-inset: calc(100% - 1rem);
+ --max-height-popover: min(60vh, 30rem);
+
+ --width-full-inset: calc(100% - 2rem);
+ --width-panel: min(94vw, 47.5rem);
+ --max-width-crumb: 28ch;
+ --max-width-7-10: 70%;
+ --max-width-tooltip: min(calc(100vw - 2rem), 20rem);
+ --inset-floating-nav: max(1.5rem, env(safe-area-inset-bottom));
--color-ring: var(--ring);
--color-radius: var(--radius);
--color-sidebar: var(--sidebar);
@@ -229,14 +330,12 @@ html.reduce-effects *::after {
@apply cursor-pointer;
}
- /* Refined, consistent focus ring across interactive elements */
:where(a, button, [role='button'], input, select, textarea, [tabindex]):focus-visible {
outline: 2px solid color-mix(in oklch, var(--ring) 60%, transparent);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
- /* Numbers line up everywhere by default */
:where(td, th, [data-slot='card']) {
font-variant-numeric: tabular-nums;
}
@@ -313,6 +412,15 @@ html.reduce-effects *::after {
}
@layer utilities {
+ .scrollbar-hide {
+ -ms-overflow-style: none;
+ scrollbar-width: none;
+ }
+
+ .scrollbar-hide::-webkit-scrollbar {
+ display: none;
+ }
+
.bubble {
background:
radial-gradient(
@@ -438,3 +546,7 @@ input:autofill:active {
margin: 0 !important;
}
}
+
+@utility rounded-inherit {
+ border-radius: inherit;
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e57030d09..a29e4d75f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -178,6 +178,7 @@ overrides:
cookie: ^1.0.2
undici: ^6.23.0
ajv: '>=8.18.0'
+ eslint>ajv: ^6.14.0
minimatch: '>=10.2.1'
socket.io-parser: '>=4.2.6'
kysely: '>=0.28.14'
@@ -207,7 +208,7 @@ importers:
vite-plus:
specifier: 'catalog:'
email-templates:
dependencies:
@@ -244,7 +245,7 @@ importers:
vite-plus:
specifier: 'catalog:'
frontend:
dependencies:
@@ -298,13 +299,13 @@ importers:
version: 14.0.0
'@sveltejs/kit':
specifier: ^3.0.0-next.27
'@tanstack/svelte-query':
specifier: ^6.2.1
- version: 6.2.1([email protected])
+ version: 6.2.1([email protected](@typescript-eslint/[email protected]))
'@tanstack/svelte-table':
specifier: ^9.2.4
- version: 9.2.4([email protected])
+ version: 9.2.4([email protected](@typescript-eslint/[email protected]))
'@tanstack/table-core':
specifier: 9.2.4
version: 9.2.4
@@ -322,7 +323,7 @@ importers:
version: 6.0.0
'@xyflow/svelte':
specifier: ^1.6.6
- version: 1.6.6([email protected])
+ version: 1.6.6([email protected](@typescript-eslint/[email protected]))
ajv:
specifier: '>=8.18.0'
version: 8.20.0
@@ -331,16 +332,16 @@ importers:
version: 0.7.2
bits-ui:
specifier: ^2.19.2
clsx:
specifier: ^2.1.1
version: 2.1.1
embla-carousel-svelte:
specifier: ^8.6.0
- version: 8.6.0([email protected])
+ version: 8.6.0([email protected](@typescript-eslint/[email protected]))
formsnap:
specifier: ^2.0.1
ky:
specifier: ^2.1.0
version: 2.1.0
@@ -349,22 +350,22 @@ importers:
version: 18.0.13
mode-watcher:
specifier: ^1.1.0
- version: 1.1.0([email protected])
+ version: 1.1.0([email protected](@typescript-eslint/[email protected]))
runed:
specifier: ^0.37.1
svelte:
specifier: ^5.57.1
- version: 5.57.1
+ version: 5.57.1(@typescript-eslint/[email protected])
svelte-codemirror-editor:
specifier: ^2.1.0
+ version: 2.1.0([email protected])([email protected](@typescript-eslint/[email protected]))
svelte-easy-crop:
specifier: ^5.0.1
- version: 5.0.1([email protected])
+ version: 5.0.1([email protected](@typescript-eslint/[email protected]))
svelte-sonner:
specifier: ^1.2.1
- version: 1.2.1([email protected])
+ version: 1.2.1([email protected](@typescript-eslint/[email protected]))
tailwind-merge:
specifier: ^3.7.0
version: 3.7.0
@@ -376,7 +377,7 @@ importers:
version: 1.0.5
vaul-svelte:
specifier: 1.0.0-next.7
- version: 1.0.0-next.7([email protected])
+ version: 1.0.0-next.7([email protected](@typescript-eslint/[email protected]))
yaml:
specifier: ^2.9.1
version: 2.9.1
@@ -390,24 +391,33 @@ importers:
'@inlang/paraglide-js':
specifier: 2.25.4
+ '@shadcn/lint':
+ specifier: ^0.2.0
'@sveltejs/adapter-static':
specifier: '>=4.0.0-next.4'
'@sveltejs/vite-plugin-svelte':
specifier: ^7.3.0
'@tailwindcss/vite':
specifier: ^4.3.3
'@tanstack/svelte-query-devtools':
specifier: ^6.2.1
+ version: 6.2.1(@tanstack/[email protected]([email protected](@typescript-eslint/[email protected])))([email protected])([email protected](@typescript-eslint/[email protected]))
'@types/node':
specifier: ^26.6.2
version: 26.6.2
+ '@typescript-eslint/parser':
+ specifier: ^8.70.1
'@typescript/native':
specifier: npm:typescript@^7.0.2
+ eslint:
+ specifier: ^10.11.0
+ version: 10.11.0([email protected])
fallow:
specifier: ^3.27.0
version: 3.27.0
@@ -416,19 +426,22 @@ importers:
version: 4.3.0
paneforge:
specifier: ^1.0.2
- version: 1.0.2([email protected])
+ version: 1.0.2([email protected](@typescript-eslint/[email protected]))
shadcn-svelte:
specifier: ^1.7.0
- version: 1.7.0([email protected])
+ version: 1.7.0([email protected](@typescript-eslint/[email protected]))
svelte-check:
specifier: ^4.7.6
+ version: 4.7.6(@typescript/[email protected])([email protected])([email protected](@typescript-eslint/[email protected]))
+ svelte-eslint-parser:
+ specifier: ^1.8.1
+ version: 1.8.1([email protected](@typescript-eslint/[email protected]))
svelte-toolbelt:
specifier: ^0.10.6
sveltekit-superforms:
specifier: ^2.30.2
tailwindcss:
specifier: ^4.3.3
version: 4.3.3
@@ -443,13 +456,13 @@ importers:
version: '@typescript/[email protected]'
unplugin-icons:
specifier: ^24.0.0
vite:
specifier: 'catalog:'
vite-plus:
specifier: 'catalog:'
tests:
devDependencies:
@@ -470,7 +483,7 @@ importers:
vite-plus:
specifier: 'catalog:'
packages:
@@ -620,6 +633,12 @@ packages:
'@bytecodealliance/[email protected]':
resolution: {integrity: sha512-61mEfjfgGmZhEMA0H3waawPKvYd3za9y0vJ7pmQz/9yvm4FR6Ef+cmqhnxDE7ezsM07MY1btP92ymmgsgFwxmg==}
+ '@cacheable/[email protected]':
+ resolution: {integrity: sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==}
+
+ '@cacheable/[email protected]':
+ resolution: {integrity: sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==}
+
'@codemirror/[email protected]':
resolution: {integrity: sha512-tlosUqb+3BbxCxZdu4tKeRghPFC+QM7q4X5YhKV2eCmPG+1r2F3f4AaSz5sCrFqUtX4Jh20VFTKecl16MgiV9g==}
@@ -871,6 +890,40 @@ packages:
cpu: [x64]
os: [win32]
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
'@exodus/[email protected]':
resolution: {integrity: sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
@@ -958,6 +1011,26 @@ packages:
resolution: {integrity: sha512-KR3rD5inZbGMrHmgPxsJ9dbi6zEK+C3ZwUwTa+eMwWLz7oijWUTWD2pMSNNYJAU6Qq+65NkxXjqHr/7LM2Xkqg==}
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
+ engines: {node: '>=12.22'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
+ engines: {node: '>=18.18'}
+
'@iconify/[email protected]':
resolution: {integrity: sha512-BW//xItEASwJNDEqhUMh6XTWnRTe/zV3V6wDMyMMy7WHHaN+14HKPkzU6lV/1Cz52wb+67Z8S9S7XahSVmjiPQ==}
@@ -1008,6 +1081,15 @@ packages:
'@jridgewell/[email protected]':
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+ resolution: {integrity: sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==}
+ engines: {node: '>= 18'}
+ peerDependencies:
+ keyv: ^5.6.0
+
+ resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==}
+
'@kobalte/[email protected]':
resolution: {integrity: sha512-SBVB1lnvYbYt2x3t7fG0lo5fGLEbHQ6PII3NDPva8vD5e2v53On84ZVQiuIk0XI/55R4GQhden7Yem+R/XR8uQ==}
peerDependencies:
@@ -1205,6 +1287,128 @@ packages:
cpu: [x64]
os: [win32]
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-pHASv9g5pASxb7akHERZNSkrEqPhFaUix98o7d9hbTpolnnFWl7UiRrcMhCsV1+iVO4/cJwKsbKRJTFNs2tdBQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [android]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-sg/6Ez0KdAygsu0POELux9wN1Po2CP93WY8eNl4DBKIGprsd4QSHBXOb471Pu9i2OCD5sLkISSb2agZEhVn2Zw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [android]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-yiSJmzGUvCUaJT8X3j40gVcX+ckuHQMuiOtF8DvzTs5+JtB/7XuHFPp4M+vv5u+HlBtDUd4Ks5pyHpWz8mfnkg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-6ZeklaamrMy4H2JmhvcJg6iip59tYILtuLaILxyAHT3l5FDxnI5ihVievAft5ZmAbqtlWHErOi1OpJK8gy1wcA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [darwin]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-vFsPx+a/qFECPnz/H8nC6x6MDvnWscLTCo/5muojEF54ERUq1kdgbvnWo95YnkhjF9sTIcG/uDxQBh1gffaufQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-eOr3M+6iGbbxNL4PSS0VtsyQ2eOUxSBh00BqO22SbolDimPSYsBuLr/LCrZBkiqW2BoabhR6V4R8jrRAay7hjg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [linux]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-58ZKDw0mQRbCNfrd2IDyV4o8T7enzGERJn41BH2tjrZVGyiKiFzcfDicuB7Zcpb/1xIOrObovr8Dja6lZi8dLw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [linux]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-Fnu95O4eZ5i++GPvIzBEZ8y4ddTLR+D9paYa8JRaRk6ZK7nHQiWP5xtrhcPQsXqgat1d7sU/d5rbbI0p1FTHSQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-3CQy/BMdx7N7H3qrcPxUL+a2CwUZodUcf6oq8iJuNZ9C6Ol1aq3mcWzsgySJ7CHFLvpX21ZDPp1r1X0QLbu/AQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-9LkaYvfiF8hMOw900csAvkf1oxE8XlmMeGowu5BcastSSwV8mKvKRMNU7HsV+ycyj1dQD8pX5qgOw8ja6SJacg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-2GBiM9h26dR4WJfhoMvnFMnFLf7m/kYs4UMqjvrOfQG4BV1nuTJDH22Zc2MQr3INZF7nSKYQ6xlhD3hQ7A6gug==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-uPqZexvKJmEgq4mAu36qe2xTfXZE7oyik1R7KtZ5tl8qKlq1U1fIqTFRUEBZqRGvforoTrGIpatRzcoPKO66RA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-9oUHvnTbp7ZraFsTC8PN6XhdhPSSxZumYvixWl7Smi353gEULvK6yV0sXNVrdFMHQeaDKFCi8TgDhNK7/A+Y+Q==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-2qhDSJwKzbSZzF7lDqqk8sr/yXsmwr3PeUa4/nazIF+zFAYz1gVPEfC34GQtGxzJUUmklaYAL63368LEfrMeyw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-qQoPDZUFV0bh9xA09XydmkjMBpgc1ukJuhMvzQ9QeVmFaHTS9W5TE5CoLmSl3QQyUP9OuHO3x/WPZTIIZPWR3Q==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-1UGbaQWEXUCLqAmaR5kwRDjx/R4S5LQKZkM9CHmaHkuKhriOF32aRLfS0jCRNE2yGQJLMEA1z9UucbBVqjXnDw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-pWKdzRDNG2+NK4h/V6U/CYERcfYD6u28h5IB/VJVsrZaD3muvE58tUj22lieL5vLZ+XFi1GPv9YXckZbJZ9BLA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [win32]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-i3p4x+mvwtjcE1J5HM6V7ggsbXiznExN/4MkNyOy3dfXrVV3bnkSfmZxvo6/84qCVX4ShkpNE1SKt9biIF31GQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [ia32]
+ os: [win32]
+
+ '@oxc-parser/[email protected]':
+ resolution: {integrity: sha512-Ye6vB7VQulghWYkYkECOBYFRVEizz4XyRTUAv+t8BuyurhKU7uD0P9eowL+mKG5Mf8MSYx+DI3Cm8SKZvYG7bQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [win32]
+
'@oxc-project/[email protected]':
resolution: {integrity: sha512-vC4tN4n2c+gVq69Oi6CoZxGk/1mYjLiN4hVEYwvtuns/S4QwUBiJYViwLGLxPaLQnsY5FQDgGs+h6moAmSedvA==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -1212,6 +1416,9 @@ packages:
'@oxc-project/[email protected]':
resolution: {integrity: sha512-u6JZdLBTLotrNC9Vd6vPssINdzcCzleKAH6EJKImQb7GtYvX5keN2dxkoK44stCc4tffE6QQRtZTXVSzsLUlWA==}
+ '@oxc-project/[email protected]':
+ resolution: {integrity: sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==}
+
'@oxc-project/[email protected]':
resolution: {integrity: sha512-rDS5/31E9HfPl/CIzGrn0DOlvBbXFseQ5URJ9sYMfstbKLD/c6Gm9vmRzRGDdAXyOIL4zmO37lc9RIwYqVruZw==}
@@ -1607,6 +1814,18 @@ packages:
'@selderee/[email protected]':
resolution: {integrity: sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ==}
+ '@shadcn/[email protected]':
+ resolution: {integrity: sha512-DTYr427BR8cDc0J0Y++u1Uh12NAYGmdPiqgy4wKSogi7RNEhFanIcfBMPRPUvkunt9QiJUfI7B28TW39MrPCFA==}
+ engines: {node: '>=20.19'}
+ peerDependencies:
+ '@typescript-eslint/parser': '>=8.40.0'
+ eslint: '>=9.30.0'
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+ eslint:
+ optional: true
+
'@simplewebauthn/[email protected]':
resolution: {integrity: sha512-1odWVqeEBTl7lJ9zMKLEsmTlnyrDO5iRcTvfMKKk1WThUnp/i8JJdffdj2icP+tty159s4PgwE3BiMoEW9NFow==}
@@ -1908,9 +2127,15 @@ packages:
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==}
+
resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+
resolution: {integrity: sha512-X1P21scMv4zGKLYqjdGjaKa7COa0RKVYYZZN/NfvLQ1JegxFhdhpZG/Lyn8AXx6CDUavKAd11v6BvfpkDByK8g==}
@@ -1947,6 +2172,43 @@ packages:
'@types/json-schema':
optional: true
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-nO974WLllwhSFWQXnMLj6nDGa8f0khKEz1JzpPJ1u7Vm/4X1X6ZHajpoknU4bb41vJyMB0HHVyS2GqdhWfIXZw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-62xOgboPfwc3/IgPSX/W6oQR3ZbF04194FPGUGH8HL8iLFHbt/456/8Ph1wLNUgVF+s94FlHoipBsz+v7+LMnA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-Pa0EeSeAusQc1WbjQMac+YfenewYTBu0KjgYvkUKwhXaHUKbFog23Dm/rp0DX/6tyYOQ3Xl1a+3EcFNZynGHCw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-jumze1fPI+sDOaM2TWGQdn39PDxTr7TZGeuyLkAbNyx2vtMT3uRnVKChN0hfht5V2TugphJzF6bYXvBcE09qqg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-Dm1ypdhhrGCTyyehxElhgJ6kgk8MVCv5qXdoOVqPr1uqk42jX8KjrZqhROvdShczA8qrDoYiOWn1ykWlx2k81Q==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-TU8PwyGN0PQJUcE96mw8eCQ44SmxGdQlJmlWakHaHQ15eIuuvye5yNtmh/i6oS88jzXVQB71xdNkbkB/fMwL0g==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.1.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-Vwj9lUIW5Xq3wQ9w6gv3R86g1hMK8f2zNOdGTAgeXUMMXFK78G9ruCjjqutHMNJc0+CH7LYRnHeUB9IT8wFmcw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
'@typescript/[email protected]':
resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==}
engines: {node: '>=16.20.0'}
@@ -2392,6 +2654,11 @@ packages:
resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
+ peerDependencies:
+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
+
resolution: {integrity: sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==}
engines: {node: '>=0.4.0'}
@@ -2405,6 +2672,9 @@ packages:
ajv:
optional: true
+ resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==}
+
resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}
@@ -2478,6 +2748,9 @@ packages:
resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==}
engines: {node: 20 || >=22}
+ resolution: {integrity: sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==}
+
resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==}
engines: {node: '>=16'}
@@ -2505,6 +2778,11 @@ packages:
engines: {node: '>=20'}
hasBin: true
+ resolution: {integrity: sha512-RKzY5Edavc8B2Ka6tjJecKFC4nm0p7lADY72xzICmiJSf4TkaxWXt0fHsib2P2G4FkFyXfSDi9oDtIBuCZvY2g==}
+ engines: {node: '>=20'}
+ hasBin: true
+
resolution: {integrity: sha512-VhydHotNW5w1UGK0Qj96BwSk/Zqbp9WbnyK2W/eVMv4QyF41INRGpjUhFJY7/uDNuudSc33a/PKr4iDqRduvHw==}
@@ -2556,10 +2834,19 @@ packages:
resolution: {integrity: sha512-aK6BbWfhf4U/wCcLHKPJl/xa6VkVstRaPywWtMKGwuOLc/wZTyQYuoxgvZnNsBvv7Kg3YTBQYYBCggcviQczuA==}
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ engines: {node: '>= 8'}
+
resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==}
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
+ resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
+ engines: {node: '>=4'}
+ hasBin: true
+
resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
@@ -2628,6 +2915,9 @@ packages:
resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
+ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+
resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
engines: {node: '>=0.10.0'}
@@ -2721,14 +3011,60 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
+ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+
+ resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
+ resolution: {integrity: sha512-P7a6UEEqb9G95MYAtqkmsTbVXIYyzIfl6NGOIJk162PaahFxFyeGcrlXYFSiagECg4sEm8IseJdZBKR3rx6MsQ==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+ hasBin: true
+ peerDependencies:
+ jiti: '*'
+ peerDependenciesMeta:
+ jiti:
+ optional: true
+
resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==}
+ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+
resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
engines: {node: '>=4'}
hasBin: true
+ resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==}
+ engines: {node: '>=0.10'}
+
resolution: {integrity: sha512-n2nf7fZR3c9yXf0BPEuHuXqT+KW0SJVj4cN5FMEkpCZ3scLjOQWpiccyCxVzCC2q1wubTghuEGzngJY/7Ah0Ow==}
peerDependencies:
@@ -2737,9 +3073,21 @@ packages:
'@typescript-eslint/types':
optional: true
+ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
+ engines: {node: '>=4.0'}
+
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
+ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==}
engines: {node: '>=12.0.0'}
@@ -2764,6 +3112,12 @@ packages:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
+
+ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
+
resolution: {integrity: sha512-TmHQgewjHtMq1E5QKA0tOE0yeYGQs25KZC/ziJpubRtWI15W92e6vPFydWOeZBVROSHBYw/QhD9d5OefdD6LDg==}
@@ -2779,6 +3133,19 @@ packages:
resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==}
+ resolution: {integrity: sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==}
+
+ resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==}
+
+ resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==}
+
resolution: {integrity: sha512-iJSe4YKd/W6WhLwKDVJU9FQeaJRpEFuolhju7ZXlRpUVyDdqFdMP8AUBICgnVvQPyP41IPAlBa/v0Eo35iE6wQ==}
engines: {node: '>=18', pnpm: '>=8.7.0'}
@@ -2791,6 +3158,10 @@ packages:
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
+ resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
+ engines: {node: '>=10.13.0'}
+
resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}
engines: {node: 18 || 20 || >=22}
@@ -2803,6 +3174,16 @@ packages:
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+ resolution: {integrity: sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==}
+
+ resolution: {integrity: sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==}
+
resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
@@ -2817,12 +3198,28 @@ packages:
resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}
+ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
+ engines: {node: '>= 4'}
+
resolution: {integrity: sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==}
+ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
+ engines: {node: '>=0.8.19'}
+
resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==}
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}
@@ -2833,6 +3230,9 @@ packages:
resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}
engines: {node: '>=18'}
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+
resolution: {integrity: sha512-prq6x6sxb/da0HP4S81hiK2Hc444CIvNeZ+gj7A9oDE0r6tqUmQ90ylb9BwhP44ZSCxwUAcTPNoQY0mmjpRHcA==}
engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}
@@ -2870,17 +3270,26 @@ packages:
resolution: {integrity: sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==}
engines: {node: '>=16'}
+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
+
resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}
+ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+
resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
engines: {node: '>=6'}
hasBin: true
+ resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==}
+
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
engines: {node: '>=6'}
@@ -2896,6 +3305,10 @@ packages:
resolution: {integrity: sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==}
+ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
+ engines: {node: '>= 0.8.0'}
+
resolution: {integrity: sha512-hV6SmWnyQ8U1QXhhqbqYBHIStNnscG7A5XbGodgdHhf/8N5PwhYpJA5U/yHDjYwPYTd8uNGXqq416XctuvK2PA==}
@@ -3054,6 +3467,10 @@ packages:
resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}
+ resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==}
engines: {node: '>=18'}
@@ -3143,6 +3560,9 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
+ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
+
resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}
engines: {node: '>= 0.6'}
@@ -3171,10 +3591,18 @@ packages:
resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==}
engines: {node: '>=12.20.0'}
+ resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
+ engines: {node: '>= 0.8.0'}
+
resolution: {integrity: sha512-u9UvPFTYVwQ/i1kpp/c20S/SbvLaLV0Ngzyhgi0YV4B1SlxM7RgnnePl4vY9N3Z9sTRcozL1MRStI3PlUN9RFA==}
engines: {node: ^20.19.0 || >=22.12.0}
+ resolution: {integrity: sha512-syxUKHeUll89RIABQADcI7sikYrwyssvA6gj4phSSIPezKVM8yMaLAiLLSc7fmzVvrwybfFGFbW5zme9sX87rg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+
resolution: {integrity: sha512-Z0XMofcXCGUXbcpBHnWyUiX93BGiw1B+lcHNbQDWEtOhX06ewoFfu4zXkyiLhRrNnMq0twqXRHUcJetf+GsiQQ==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -3205,6 +3633,14 @@ packages:
vite-plus:
optional: true
+ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==}
@@ -3219,6 +3655,14 @@ packages:
resolution: {integrity: sha512-e6qHKe3a9HWr0oMRVDTRhKce+bRO8VGQR3NyVwcjwrbhMmFCX9KszEV35+rn4AdilFAq9VPxP/Fe1wC9Qjd2lw==}
+ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==}
engines: {node: 18 || 20 || >=22}
@@ -3260,10 +3704,24 @@ packages:
resolution: {integrity: sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==}
engines: {node: '>=14.19.0'}
+ resolution: {integrity: sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==}
+ engines: {node: '>=12.0'}
+ peerDependencies:
+ postcss: '>=8.5.23'
+
+ resolution: {integrity: sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==}
+ engines: {node: '>=4'}
+
resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==}
engines: {node: ^10 || ^12 || >=14}
+ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
+ engines: {node: '>= 0.8.0'}
+
resolution: {integrity: sha512-WRFq3Wn3WId7LLROfMLdH7xaFr2jR62wU8nLO6rQUOLOxNZUviyJQs1M0iIhLexSFy+L+w0ch66wtoO2jRjG0A==}
engines: {node: '>=14'}
@@ -3291,6 +3749,10 @@ packages:
resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==}
+ resolution: {integrity: sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==}
+ engines: {node: '>=20'}
+
resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==}
@@ -3406,6 +3868,14 @@ packages:
peerDependencies:
svelte: ^5.0.0
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
@@ -3499,6 +3969,15 @@ packages:
peerDependencies:
svelte: ^5.0.0
+ resolution: {integrity: sha512-5zgKBqAf6V8Jyrmr1jViksyG4NKT8NheYwkdxRaMRDAqpGWi9wR8ktcGrAZbfMn/PHUp1BWzAp0cYQECkWuAMA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0, pnpm: 10.34.5}
+ peerDependencies:
+ svelte: ^3.37.0 || ^4.0.0 || ^5.0.0
+ peerDependenciesMeta:
+ svelte:
+ optional: true
+
resolution: {integrity: sha512-N00LOWb60fjKXULbpngku+7E9Krb16KpNq4/Eax5Vu7o1Dpbca55QpaLPsB+yp82JIEdFhfJuv5cVXLoe0ZtVA==}
peerDependencies:
@@ -3623,6 +4102,12 @@ packages:
resolution: {integrity: sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==}
+ resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==}
+ engines: {node: '>=18.12'}
+ peerDependencies:
+ typescript: '>=4.8.4'
+
resolution: {integrity: sha512-133O+10nJmVI8w5xeVZPEv5PIrv7iaUae07wv1aH8XJH95Ur6YIhWAPhPyP1YPlbPS9fCVcNIZTu7m8urRVF0A==}
engines: {node: '>=14.13.1'}
@@ -3642,6 +4127,10 @@ packages:
resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==}
+ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
+ engines: {node: '>= 0.8.0'}
+
resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
engines: {node: '>=12.20'}
@@ -3737,9 +4226,15 @@ packages:
webpack:
optional: true
+ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+
resolution: {integrity: sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==}
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+
resolution: {integrity: sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==}
hasBin: true
@@ -3857,11 +4352,20 @@ packages:
resolution: {integrity: sha512-VGkKJ564kzt6Ms1dbgPP/yuIoQCrsFAnRbptpC5wOEsDaNsbCB2bnfnaA8i/vRs5tjUSEOtIuvl9/MyVsvQZCg==}
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
+
resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
engines: {node: '>=8'}
hasBin: true
+ resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==}
engines: {node: '>=10.0.0'}
@@ -3886,6 +4390,10 @@ packages:
engines: {node: '>= 14.6'}
hasBin: true
+ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
+ engines: {node: '>=10'}
+
resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==}
engines: {node: '>=18'}
@@ -4067,6 +4575,18 @@ snapshots:
'@bytecodealliance/jco-node-fs': 0.3.2
'@bytecodealliance/preview2-shim': 0.25.0
+ '@cacheable/[email protected]':
+ dependencies:
+ '@cacheable/utils': 2.5.0
+ '@keyv/bigmap': 1.3.1([email protected])
+ hookified: 1.15.1
+ keyv: 5.6.0
+
+ '@cacheable/[email protected]':
+ dependencies:
+ hashery: 1.5.1
+ keyv: 5.6.0
+
'@codemirror/[email protected]':
dependencies:
'@codemirror/language': 6.12.4
@@ -4303,6 +4823,40 @@ snapshots:
'@esbuild/[email protected]':
optional: true
+ dependencies:
+ eslint: 10.11.0([email protected])
+ eslint-visitor-keys: 3.4.3
+
+ '@eslint-community/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/object-schema': 3.0.5
+ debug: 4.4.3
+ minimatch: 10.2.6
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 1.2.1
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@types/json-schema': 7.0.15
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@types/json-schema': 7.0.15
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 1.2.1
+ levn: 0.4.1
+
'@exodus/[email protected]': {}
'@exodus/[email protected]':
@@ -4369,6 +4923,22 @@ snapshots:
'@hapi/hoek': 11.0.7
optional: true
+ '@humanfs/[email protected]':
+ dependencies:
+ '@humanfs/types': 0.15.0
+
+ '@humanfs/[email protected]':
+ dependencies:
+ '@humanfs/core': 0.19.2
+ '@humanfs/types': 0.15.0
+ '@humanwhocodes/retry': 0.4.3
+
+ '@humanfs/[email protected]': {}
+
+ '@humanwhocodes/[email protected]': {}
+
+ '@humanwhocodes/[email protected]': {}
+
'@iconify/[email protected]':
dependencies:
'@iconify/types': 2.0.0
@@ -4435,6 +5005,14 @@ snapshots:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.6.0
+ dependencies:
+ hashery: 1.5.1
+ hookified: 1.15.1
+ keyv: 5.6.0
+
+ '@keyv/[email protected]': {}
+
dependencies:
'@floating-ui/dom': 1.8.0
@@ -4598,10 +5176,70 @@ snapshots:
'@oxc-minify/[email protected]':
optional: true
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
+ '@oxc-parser/[email protected]':
+ optional: true
+
'@oxc-project/[email protected]': {}
'@oxc-project/[email protected]': {}
+ '@oxc-project/[email protected]':
+ optional: true
+
'@oxc-project/[email protected]': {}
@@ -4805,6 +5443,15 @@ snapshots:
domhandler: 5.0.3
selderee: 0.11.0
+ dependencies:
+ '@eslint/core': 0.17.0
+ cn: 0.3.2
+ optionalDependencies:
+ '@typescript-eslint/parser': 8.70.1(@typescript/[email protected])([email protected]([email protected]))
+ eslint: 10.11.0([email protected])
+ oxc-parser: 0.148.0
+
'@simplewebauthn/[email protected]': {}
'@sinclair/[email protected]': {}
@@ -4881,23 +5528,23 @@ snapshots:
'@standard-schema/[email protected]': {}
+ '@svelte-put/[email protected]([email protected](@typescript-eslint/[email protected]))':
dependencies:
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
acorn: 8.18.0
dependencies:
dependencies:
'@rolldown/pluginutils': 1.0.1
'@standard-schema/spec': 1.1.0
+ '@sveltejs/vite-plugin-svelte': 7.3.0(@voidzero-dev/[email protected](@types/[email protected])(@typescript/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@typescript-eslint/[email protected]))
cookie: 1.1.1
devalue: 6.0.0
esm-env: 1.2.2
@@ -4905,19 +5552,19 @@ snapshots:
mrmime: 2.0.1
rolldown: 1.2.3
sirv: 3.0.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
optionalDependencies:
typescript: '@typescript/[email protected]'
'@sveltejs/[email protected]': {}
dependencies:
deepmerge: 4.3.1
magic-string: 1.4.1
obug: 2.2.1
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
@@ -5017,30 +5664,30 @@ snapshots:
'@tanstack/[email protected]': {}
dependencies:
'@tanstack/query-devtools': 5.103.1([email protected])
- '@tanstack/svelte-query': 6.2.1([email protected])
+ '@tanstack/svelte-query': 6.2.1([email protected](@typescript-eslint/[email protected]))
esm-env: 1.2.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
transitivePeerDependencies:
- csstype
+ '@tanstack/[email protected]([email protected](@typescript-eslint/[email protected]))':
dependencies:
'@tanstack/query-core': 5.103.1
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ '@tanstack/[email protected]([email protected](@typescript-eslint/[email protected]))':
dependencies:
'@tanstack/store': 0.11.1
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ '@tanstack/[email protected]([email protected](@typescript-eslint/[email protected]))':
dependencies:
- '@tanstack/svelte-store': 0.12.1([email protected])
+ '@tanstack/svelte-store': 0.12.1([email protected](@typescript-eslint/[email protected]))
'@tanstack/table-core': 9.2.4
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
'@tanstack/[email protected]':
dependencies:
@@ -5102,8 +5749,12 @@ snapshots:
'@types/[email protected]': {}
+ '@types/[email protected]': {}
+
'@types/[email protected]': {}
+ '@types/[email protected]': {}
+
dependencies:
undici-types: 8.9.0
@@ -5126,18 +5777,72 @@ snapshots:
dependencies:
'@types/node': 26.6.2
dependencies:
- '@typeschema/core': 0.14.0
+ '@typeschema/core': 0.14.0(@types/[email protected])
optionalDependencies:
class-validator: 0.14.4
transitivePeerDependencies:
- '@types/json-schema'
optional: true
- '@typeschema/[email protected]':
+ '@typeschema/[email protected](@types/[email protected])':
+ optionalDependencies:
+ '@types/json-schema': 7.0.15
optional: true
+ dependencies:
+ '@typescript-eslint/scope-manager': 8.70.1
+ '@typescript-eslint/types': 8.70.1
+ '@typescript-eslint/typescript-estree': 8.70.1(@typescript/[email protected])
+ '@typescript-eslint/visitor-keys': 8.70.1
+ debug: 4.4.3
+ eslint: 10.11.0([email protected])
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected](@typescript/[email protected])':
+ dependencies:
+ '@typescript-eslint/tsconfig-utils': 8.70.1(@typescript/[email protected])
+ '@typescript-eslint/types': 8.70.1
+ debug: 4.4.3
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.70.1
+ '@typescript-eslint/visitor-keys': 8.70.1
+
+ '@typescript-eslint/[email protected](@typescript/[email protected])':
+ dependencies:
+ typescript: '@typescript/[email protected]'
+
+ '@typescript-eslint/[email protected]': {}
+
+ '@typescript-eslint/[email protected](@typescript/[email protected])':
+ dependencies:
+ '@typescript-eslint/project-service': 8.70.1(@typescript/[email protected])
+ '@typescript-eslint/tsconfig-utils': 8.70.1(@typescript/[email protected])
+ '@typescript-eslint/types': 8.70.1
+ '@typescript-eslint/visitor-keys': 8.70.1
+ debug: 4.4.3
+ minimatch: 10.2.6
+ semver: 7.8.5
+ tinyglobby: 0.2.17
+ ts-api-utils: 2.5.0(@typescript/[email protected])
+ typescript: '@typescript/[email protected]'
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.70.1
+ eslint-visitor-keys: 5.0.1
+
'@typescript/[email protected]':
optional: true
@@ -5413,11 +6118,11 @@ snapshots:
'@xterm/[email protected]': {}
+ '@xyflow/[email protected]([email protected](@typescript-eslint/[email protected]))':
dependencies:
- '@svelte-put/shortcut': 4.2.0([email protected])
+ '@svelte-put/shortcut': 4.2.0([email protected](@typescript-eslint/[email protected]))
'@xyflow/system': 0.0.82
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
'@xyflow/[email protected]':
dependencies:
@@ -5510,12 +6215,23 @@ snapshots:
mime-types: 2.1.35
negotiator: 0.6.3
+ dependencies:
+ acorn: 8.18.0
+
optionalDependencies:
ajv: 8.20.0
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-json-stable-stringify: 2.1.0
+ json-schema-traverse: 0.4.1
+ uri-js: 4.4.1
+
dependencies:
fast-deep-equal: 3.1.3
@@ -5572,15 +6288,15 @@ snapshots:
dependencies:
'@floating-ui/core': 1.8.0
'@floating-ui/dom': 1.8.0
'@internationalized/date': 3.12.4
esm-env: 1.2.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
tabbable: 6.5.0
transitivePeerDependencies:
- '@sveltejs/kit'
@@ -5589,6 +6305,14 @@ snapshots:
dependencies:
balanced-match: 4.0.4
+ dependencies:
+ '@cacheable/memory': 2.2.0
+ '@cacheable/utils': 2.5.0
+ hookified: 1.15.1
+ keyv: 5.6.0
+ qified: 0.10.1
+
optional: true
@@ -5611,6 +6335,8 @@ snapshots:
+
dependencies:
'@codemirror/autocomplete': 6.20.3
@@ -5663,11 +6389,19 @@ snapshots:
+ dependencies:
+ path-key: 3.1.1
+ shebang-command: 2.0.0
+ which: 2.0.2
+
dependencies:
mdn-data: 2.27.1
source-map-js: 1.2.1
+
@@ -5728,6 +6462,8 @@ snapshots:
+
@@ -5777,11 +6513,11 @@ snapshots:
dependencies:
embla-carousel: 8.6.0
dependencies:
embla-carousel: 8.6.0
embla-carousel-reactive-utils: 8.6.0([email protected])
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
@@ -5847,18 +6583,101 @@ snapshots:
'@esbuild/win32-ia32': 0.28.2
'@esbuild/win32-x64': 0.28.2
+
+ dependencies:
+ esrecurse: 4.3.0
+ estraverse: 5.3.0
+
+ dependencies:
+ '@types/esrecurse': 4.3.1
+ '@types/estree': 1.0.9
+ esrecurse: 4.3.0
+ estraverse: 5.3.0
+
+
+
+
+ dependencies:
+ '@eslint-community/eslint-utils': 4.10.1([email protected]([email protected]))
+ '@eslint-community/regexpp': 4.12.2
+ '@eslint/config-array': 0.23.5
+ '@eslint/config-helpers': 0.7.0
+ '@eslint/core': 1.2.1
+ '@eslint/plugin-kit': 0.7.3
+ '@humanfs/node': 0.16.8
+ '@humanwhocodes/module-importer': 1.0.1
+ '@humanwhocodes/retry': 0.4.3
+ '@types/estree': 1.0.9
+ ajv: 6.15.0
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ escape-string-regexp: 4.0.0
+ eslint-scope: 9.1.2
+ eslint-visitor-keys: 5.0.1
+ espree: 11.2.0
+ esquery: 1.7.0
+ esutils: 2.0.3
+ fast-deep-equal: 3.1.3
+ file-entry-cache: 11.1.5
+ find-up: 5.0.0
+ glob-parent: 6.0.2
+ ignore: 5.3.2
+ imurmurhash: 0.1.4
+ is-glob: 4.0.3
+ json-stable-stringify-without-jsonify: 1.0.1
+ minimatch: 10.2.6
+ natural-compare: 1.4.0
+ optionator: 0.9.4
+ optionalDependencies:
+ jiti: 2.7.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ acorn: 8.18.0
+ acorn-jsx: 5.3.2([email protected])
+ eslint-visitor-keys: 4.2.1
+
+ dependencies:
+ acorn: 8.18.0
+ acorn-jsx: 5.3.2([email protected])
+ eslint-visitor-keys: 5.0.1
+
+ dependencies:
+ estraverse: 5.3.0
+
+ [email protected](@typescript-eslint/[email protected]):
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
+ optionalDependencies:
+ '@typescript-eslint/types': 8.70.1
+
+ dependencies:
+ estraverse: 5.3.0
+
dependencies:
'@types/estree': 1.0.9
+
@@ -5889,6 +6708,10 @@ snapshots:
+
+
@@ -5897,15 +6720,36 @@ snapshots:
+ dependencies:
+ flat-cache: 6.1.23
+
+ dependencies:
+ locate-path: 6.0.0
+ path-exists: 4.0.0
+
+ dependencies:
+ cacheable: 2.5.0
+ flatted: 3.4.4
+ hookified: 1.15.1
+
+
dependencies:
- svelte: 5.57.1
- svelte-toolbelt: 0.5.0([email protected])
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ svelte-toolbelt: 0.5.0([email protected](@typescript-eslint/[email protected]))
optional: true
+ dependencies:
+ is-glob: 4.0.3
+
dependencies:
minimatch: 10.2.6
@@ -5918,6 +6762,14 @@ snapshots:
+ dependencies:
+ hookified: 1.15.1
+
+
+
dependencies:
'@exodus/bytes': 1.15.1
@@ -5941,10 +6793,20 @@ snapshots:
domutils: 3.2.2
entities: 4.5.0
+
+
+
+ dependencies:
+ is-extglob: 2.1.1
+
@@ -5953,6 +6815,8 @@ snapshots:
+
dependencies:
dompurify: 3.4.15
@@ -6011,12 +6875,20 @@ snapshots:
ts-algebra: 2.0.0
optional: true
+
+
+ dependencies:
+ '@keyv/serialize': 1.1.1
+
@@ -6025,6 +6897,11 @@ snapshots:
+ dependencies:
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+
optional: true
@@ -6134,6 +7011,10 @@ snapshots:
+ dependencies:
+ p-locate: 5.0.0
+
dependencies:
is-unicode-supported: 2.1.0
@@ -6188,11 +7069,11 @@ snapshots:
pkg-types: 1.3.1
ufo: 1.6.4
dependencies:
- runed: 0.25.0([email protected])
- svelte: 5.57.1
- svelte-toolbelt: 0.7.1([email protected])
+ runed: 0.25.0([email protected](@typescript-eslint/[email protected]))
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ svelte-toolbelt: 0.7.1([email protected](@typescript-eslint/[email protected]))
@@ -6202,6 +7083,8 @@ snapshots:
+
@@ -6221,6 +7104,15 @@ snapshots:
+ dependencies:
+ deep-is: 0.1.4
+ fast-levenshtein: 2.0.6
+ levn: 0.4.1
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+ word-wrap: 1.2.5
+
optionalDependencies:
'@oxc-minify/binding-android-arm-eabi': 0.136.0
@@ -6244,7 +7136,32 @@ snapshots:
'@oxc-minify/binding-win32-ia32-msvc': 0.136.0
'@oxc-minify/binding-win32-x64-msvc': 0.136.0
+ dependencies:
+ '@oxc-project/types': 0.148.0
+ optionalDependencies:
+ '@oxc-parser/binding-android-arm-eabi': 0.148.0
+ '@oxc-parser/binding-android-arm64': 0.148.0
+ '@oxc-parser/binding-darwin-arm64': 0.148.0
+ '@oxc-parser/binding-darwin-x64': 0.148.0
+ '@oxc-parser/binding-freebsd-x64': 0.148.0
+ '@oxc-parser/binding-linux-arm-gnueabihf': 0.148.0
+ '@oxc-parser/binding-linux-arm-musleabihf': 0.148.0
+ '@oxc-parser/binding-linux-arm64-gnu': 0.148.0
+ '@oxc-parser/binding-linux-arm64-musl': 0.148.0
+ '@oxc-parser/binding-linux-ppc64-gnu': 0.148.0
+ '@oxc-parser/binding-linux-riscv64-gnu': 0.148.0
+ '@oxc-parser/binding-linux-riscv64-musl': 0.148.0
+ '@oxc-parser/binding-linux-s390x-gnu': 0.148.0
+ '@oxc-parser/binding-linux-x64-gnu': 0.148.0
+ '@oxc-parser/binding-linux-x64-musl': 0.148.0
+ '@oxc-parser/binding-openharmony-arm64': 0.148.0
+ '@oxc-parser/binding-win32-arm64-msvc': 0.148.0
+ '@oxc-parser/binding-win32-ia32-msvc': 0.148.0
+ '@oxc-parser/binding-win32-x64-msvc': 0.148.0
+ optional: true
+
dependencies:
tinypool: 2.1.2
optionalDependencies:
@@ -6267,10 +7184,10 @@ snapshots:
'@oxfmt/binding-win32-arm64-msvc': 0.68.0
'@oxfmt/binding-win32-ia32-msvc': 0.68.0
'@oxfmt/binding-win32-x64-msvc': 0.68.0
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
tinypool: 2.1.2
optionalDependencies:
@@ -6293,8 +7210,8 @@ snapshots:
'@oxfmt/binding-win32-arm64-msvc': 0.68.0
'@oxfmt/binding-win32-ia32-msvc': 0.68.0
'@oxfmt/binding-win32-x64-msvc': 0.68.0
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
optionalDependencies:
@@ -6305,7 +7222,7 @@ snapshots:
'@oxlint-tsgolint/win32-arm64': 7.0.2001
'@oxlint-tsgolint/win32-x64': 7.0.2001
optionalDependencies:
'@oxlint/binding-android-arm-eabi': 1.83.0
'@oxlint/binding-android-arm64': 1.83.0
@@ -6327,9 +7244,9 @@ snapshots:
'@oxlint/binding-win32-ia32-msvc': 1.83.0
'@oxlint/binding-win32-x64-msvc': 1.83.0
oxlint-tsgolint: 7.0.2001
optionalDependencies:
'@oxlint/binding-android-arm-eabi': 1.83.0
'@oxlint/binding-android-arm64': 1.83.0
@@ -6351,15 +7268,23 @@ snapshots:
'@oxlint/binding-win32-ia32-msvc': 1.83.0
'@oxlint/binding-win32-x64-msvc': 1.83.0
oxlint-tsgolint: 7.0.2001
+
+ dependencies:
+ yocto-queue: 0.1.0
+
+ dependencies:
+ p-limit: 3.1.0
dependencies:
- runed: 0.23.4([email protected])
- svelte: 5.57.1
- svelte-toolbelt: 0.9.3([email protected])
+ runed: 0.23.4([email protected](@typescript-eslint/[email protected]))
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ svelte-toolbelt: 0.9.3([email protected](@typescript-eslint/[email protected]))
dependencies:
@@ -6370,6 +7295,10 @@ snapshots:
leac: 0.6.0
peberminta: 0.9.0
+
+
dependencies:
lru-cache: 11.5.3
@@ -6405,12 +7334,23 @@ snapshots:
+ dependencies:
+ postcss: 8.5.28
+
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+
dependencies:
nanoid: 3.3.19
picocolors: 1.1.1
source-map-js: 1.2.1
+
@@ -6434,6 +7374,10 @@ snapshots:
optional: true
+ dependencies:
+ hookified: 2.2.0
+
@@ -6502,43 +7446,43 @@ snapshots:
'@rolldown/binding-win32-arm64-msvc': 1.2.3
'@rolldown/binding-win32-x64-msvc': 1.2.3
dependencies:
esm-env: 1.2.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
esm-env: 1.2.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
esm-env: 1.2.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
esm-env: 1.2.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
dequal: 2.0.3
esm-env: 1.2.2
lz-string: 1.5.0
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
optionalDependencies:
dependencies:
dequal: 2.0.3
esm-env: 1.2.2
lz-string: 1.5.0
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
optionalDependencies:
zod: 4.6.5
@@ -6563,13 +7507,19 @@ snapshots:
dependencies:
cn: 0.3.0
commander: 14.0.3
node-fetch-native: 1.6.7
postcss: 8.5.28
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+
+ dependencies:
+ shebang-regex: 3.0.0
+
@@ -6660,7 +7610,7 @@ snapshots:
optional: true
dependencies:
'@jridgewell/trace-mapping': 0.3.31
'@sveltejs/load-config': 0.2.3
@@ -6668,57 +7618,69 @@ snapshots:
fdir: 6.5.0([email protected])
picocolors: 1.1.1
sade: 1.8.1
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
typescript: '@typescript/[email protected]'
transitivePeerDependencies:
- picomatch
dependencies:
'@codemirror/autocomplete': 6.20.3
'@codemirror/search': 6.7.2
codemirror: 6.0.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
- runed: 0.28.0([email protected])
- svelte: 5.57.1
+ eslint-scope: 8.4.0
+ eslint-visitor-keys: 4.2.1
+ espree: 10.4.0
+ postcss: 8.5.28
+ postcss-scss: 4.0.9([email protected])
+ postcss-selector-parser: 7.1.6
+ semver: 7.8.5
+ optionalDependencies:
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ dependencies:
+ runed: 0.28.0([email protected](@typescript-eslint/[email protected]))
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+
dependencies:
clsx: 2.1.1
style-to-object: 1.0.14
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
transitivePeerDependencies:
- '@sveltejs/kit'
dependencies:
clsx: 2.1.1
style-to-object: 1.0.14
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
clsx: 2.1.1
- runed: 0.23.4([email protected])
+ runed: 0.23.4([email protected](@typescript-eslint/[email protected]))
style-to-object: 1.0.14
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
dependencies:
clsx: 2.1.1
- runed: 0.29.2([email protected])
+ runed: 0.29.2([email protected](@typescript-eslint/[email protected]))
style-to-object: 1.0.14
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ [email protected](@typescript-eslint/[email protected]):
dependencies:
'@jridgewell/remapping': 2.3.5
'@jridgewell/sourcemap-codec': 1.6.0
@@ -6730,7 +7692,7 @@ snapshots:
clsx: 2.1.1
devalue: 6.0.0
esm-env: 1.2.2
- esrap: 2.3.7
+ esrap: 2.3.7(@typescript-eslint/[email protected])
is-reference: 3.0.3
locate-character: 3.0.0
magic-string: 0.30.21
@@ -6738,17 +7700,17 @@ snapshots:
transitivePeerDependencies:
- '@typescript-eslint/types'
dependencies:
devalue: 6.0.0
memoize-weak: 1.0.2
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
ts-deepmerge: 8.0.0
optionalDependencies:
'@exodus/schemasafe': 1.3.0
'@standard-schema/spec': 1.1.0
- '@typeschema/class-validator': 0.3.0([email protected])
+ '@typeschema/class-validator': 0.3.0(@types/[email protected])([email protected])
'@valibot/to-json-schema': 1.8.0([email protected](@typescript/[email protected]))
'@vinejs/vine': 3.0.1
arktype: 2.2.3
@@ -6828,6 +7790,10 @@ snapshots:
optional: true
+ dependencies:
+ typescript: '@typescript/[email protected]'
+
@@ -6846,6 +7812,10 @@ snapshots:
+ dependencies:
+ prelude-ls: 1.2.1
+
optional: true
@@ -6889,7 +7859,7 @@ snapshots:
dependencies:
'@antfu/install-pkg': 1.1.0
'@iconify/utils': 3.1.7
@@ -6897,7 +7867,7 @@ snapshots:
obug: 2.2.1
optionalDependencies:
- svelte: 5.57.1
+ svelte: 5.57.1(@typescript-eslint/[email protected])
transitivePeerDependencies:
- '@farmfe/core'
- '@rsbuild/core'
@@ -6927,8 +7897,14 @@ snapshots:
rolldown: 1.2.3
+ dependencies:
+ punycode: 2.3.1
+
+
@@ -6940,13 +7916,13 @@ snapshots:
dependencies:
- runed: 0.23.4([email protected])
- svelte: 5.57.1
- svelte-toolbelt: 0.7.1([email protected])
+ runed: 0.23.4([email protected](@typescript-eslint/[email protected]))
+ svelte: 5.57.1(@typescript-eslint/[email protected])
+ svelte-toolbelt: 0.7.1([email protected](@typescript-eslint/[email protected]))
dependencies:
'@oxc-project/types': 0.150.0
'@oxlint/plugins': 1.79.0
@@ -6959,8 +7935,8 @@ snapshots:
'@vitest/snapshot': 4.1.11
'@vitest/spy': 4.1.11
'@vitest/utils': 4.1.11
oxlint-tsgolint: 7.0.2001
@@ -7003,7 +7979,7 @@ snapshots:
- utf-8-validate
- yaml
dependencies:
'@oxc-project/types': 0.150.0
'@oxlint/plugins': 1.79.0
@@ -7016,8 +7992,8 @@ snapshots:
'@vitest/snapshot': 4.1.11
'@vitest/spy': 4.1.11
'@vitest/utils': 4.1.11
oxlint-tsgolint: 7.0.2001
@@ -7152,11 +8128,17 @@ snapshots:
+ dependencies:
+ isexe: 2.0.0
+
dependencies:
siginfo: 2.0.0
stackback: 0.0.2
+
@@ -7165,6 +8147,8 @@ snapshots:
+
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 1fd0d279e..7c42f3c60 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -19,6 +19,7 @@ overrides:
cookie: ^1.0.2
undici: ^6.23.0
ajv: '>=8.18.0'
+ eslint>ajv: ^6.14.0
minimatch: '>=10.2.1'
socket.io-parser: '>=4.2.6'
kysely: '>=0.28.14'
diff --git a/tests/spec/system-volume-backups.spec.ts b/tests/spec/system-volume-backups.spec.ts
index 6c8ebf314..94ea5ca89 100644
--- a/tests/spec/system-volume-backups.spec.ts
+++ b/tests/spec/system-volume-backups.spec.ts
@@ -210,8 +210,8 @@ test.describe('System-managed volume backups', () => {
await page.goto('/settings/backups');
const systemCard = page.getByTestId('backup-policy-system-system-nightly');
const volumeCard = page.getByTestId('backup-policy-volume-volume-nightly');
- await expect(systemCard.getByText('System')).toHaveClass(/text-purple-/);
- await expect(volumeCard.getByText('Volume')).toHaveClass(/text-purple-/);
+ await expect(systemCard.getByText('System')).toHaveClass(/(^|\s)text-purple(\s|$)/);
+ await expect(volumeCard.getByText('Volume')).toHaveClass(/(^|\s)text-purple(\s|$)/);
await volumeCard.getByRole('button', { name: 'Edit Schedule' }).click();
const dialog = page.getByRole('dialog', { name: 'Edit Schedule' });