Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: accent color not reset after settings form reset
Kyle Mendell99fb83d273bc
diff --git a/docker-compose.dev.yml b/docker-compose.dev.ymlindex 5b60afbc3..f8186057d 100644--- a/docker-compose.dev.yml+++ b/docker-compose.dev.yml@@ -6,10 +6,10 @@ services:dockerfile: docker/Dockerfile.devtarget: frontend-devargs:- NODE_VERSION: '24'+ NODE_VERSION: "24"container_name: arcane-frontend-devports:- - '3000:3000'+ - "3000:3000"volumes:# Source code mounting for hot reload- ./frontend:/app/frontend:cached@@ -19,6 +19,8 @@ services:# Anonymous volumes for node_modules to avoid conflicts- /app/node_modules- /app/frontend/node_modules+ # Persistent pnpm cache+ - pnpm-cache:/root/.local/share/pnpm/storeenv_file:- .envenvironment:@@ -29,8 +31,17 @@ services:networks:- arcane-devrestart: unless-stopped+ deploy:+ resources:+ limits:+ cpus: "2"+ memory: 2G+ reservations:+ cpus: "0.5"+ memory: 512Mhealthcheck:- test: ['CMD-SHELL', 'curl -f http://localhost:3000 >/dev/null 2>&1 || exit 1']+ test:+ ["CMD-SHELL", "curl -f http://localhost:3000 >/dev/null 2>&1 || exit 1"]interval: 30stimeout: 10sretries: 3@@ -43,10 +54,10 @@ services:dockerfile: docker/Dockerfile.devtarget: backend-devargs:- GO_VERSION: '1.25'+ GO_VERSION: "1.25.2"container_name: arcane-backend-devports:- - '3552:3552'+ - "3552:3552"volumes:# Source code mounting for hot reload- ./backend:/app:cached@@ -68,8 +79,20 @@ services:networks:- arcane-devrestart: unless-stopped+ deploy:+ resources:+ limits:+ cpus: "2"+ memory: 2G+ reservations:+ cpus: "0.5"+ memory: 512Mhealthcheck:- test: ['CMD-SHELL', 'curl -fsS http://localhost:3552/api/health >/dev/null || exit 1']+ test:+ [+ "CMD-SHELL",+ "curl -fsS http://localhost:3552/api/health >/dev/null || exit 1",+ ]interval: 30stimeout: 10sretries: 3@@ -81,10 +104,10 @@ services:dockerfile: docker/Dockerfile.devtarget: backend-devargs:- GO_VERSION: '1.25'+ GO_VERSION: "1.25.2"container_name: arcane-agentports:- - '3553:3553'+ - "3553:3553"env_file:- .envenvironment:@@ -103,8 +126,20 @@ services:networks:- arcane-devrestart: unless-stopped+ deploy:+ resources:+ limits:+ cpus: "1"+ memory: 1G+ reservations:+ cpus: "0.25"+ memory: 256Mhealthcheck:- test: ['CMD-SHELL', 'curl -fsS http://localhost:3553/api/health >/dev/null || exit 1']+ test:+ [+ "CMD-SHELL",+ "curl -fsS http://localhost:3553/api/health >/dev/null || exit 1",+ ]interval: 30stimeout: 10sretries: 3@@ -124,3 +159,5 @@ volumes:name: arcane-go-build-cachego-mod-cache:name: arcane-go-mod-cache+ pnpm-cache:+ name: arcane-pnpm-cachediff --git a/frontend/src/routes/settings/general/+page.svelte b/frontend/src/routes/settings/general/+page.svelteindex 0761f21d7..508ea17e6 100644--- a/frontend/src/routes/settings/general/+page.svelte+++ b/frontend/src/routes/settings/general/+page.svelte@@ -16,13 +16,10 @@import { settingsService } from '$lib/services/settings-service';import { SettingsPageLayout } from '$lib/layouts';import AccentColorPicker from '$lib/components/accent-color/accent-color-picker.svelte';- import { Label } from '$lib/components/ui/label/index.js';+ import { applyAccentColor } from '$lib/utils/accent-color-util';let { data } = $props();- let currentSettings = $state({- ...data.settings,- accentColor: data.settings.accentColor || 'default'- });+ let currentSettings = $state(data.settings);let hasChanges = $state(false);let isLoading = $state(false);@@ -83,10 +80,11 @@}function resetForm() {- $formInputs.projectsDirectory.value = currentSettings.projectsDirectory;- $formInputs.baseServerUrl.value = currentSettings.baseServerUrl;- $formInputs.enableGravatar.value = currentSettings.enableGravatar;- $formInputs.accentColor.value = currentSettings.accentColor;+ $formInputs.projectsDirectory.value = data.settings.projectsDirectory;+ $formInputs.baseServerUrl.value = data.settings.baseServerUrl;+ $formInputs.enableGravatar.value = data.settings.enableGravatar;+ $formInputs.accentColor.value = data.settings.accentColor;+ applyAccentColor(data.settings.accentColor);}onMount(() => {