Skip to content

Modern Docker Management, Designed for Everyone

chore(deps): bump @sveltejs/kit to 3.0.0-next.8

Kyle Mendellf75cd062b6f0
diff --git a/frontend/package.json b/frontend/package.json
index 68bb9093a..f2eff9ad1 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,91 +1,91 @@
{
- "name": "arcane-frontend",
- "private": true,
- "version": "2.4.0",
- "type": "module",
- "scripts": {
- "dev": "vite dev --port 3000 --host",
- "build": "vite build",
- "preview": "vite preview --port 3000",
- "check": "pnpm paraglide:compile && svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json",
- "format": "prettier --write ./src",
- "format:check": "prettier --check ./src",
- "check:watch": "pnpm paraglide:compile && svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json --watch",
- "paraglide:compile": "paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide --strategy cookie preferredLanguage baseLocale --silent",
- "fallow": "fallow"
- },
- "dependencies": {
- "@codemirror/autocomplete": "^6.20.3",
- "@codemirror/lang-javascript": "^6.2.5",
- "@codemirror/lang-json": "^6.0.2",
- "@codemirror/lang-markdown": "^6.5.0",
- "@codemirror/lang-yaml": "^6.1.3",
- "@codemirror/language": "^6.12.3",
- "@codemirror/legacy-modes": "^6.5.3",
- "@codemirror/lint": "^6.9.6",
- "@codemirror/merge": "^6.12.2",
- "@codemirror/state": "^6.6.0",
- "@codemirror/view": "^6.43.6",
- "@fontsource-variable/geist-mono": "^5.2.8",
- "@fontsource-variable/montserrat": "^5.2.8",
- "@lezer/highlight": "^1.2.3",
- "@sveltejs/kit": "^3.0.0-next.7",
- "@tanstack/svelte-query": "^6.1.36",
- "@tanstack/svelte-table": "^9.0.0-beta.38",
- "@tanstack/table-core": "9.0.0-beta.38",
- "@tanstack/virtual-core": "^3.17.3",
- "@uiw/codemirror-themes": "^4.25.11",
- "@xterm/addon-fit": "^0.11.0",
- "@xterm/xterm": "^6.0.0",
- "@xyflow/svelte": "^1.6.2",
- "ajv": "^8.20.0",
- "ansi-to-html": "^0.7.2",
- "date-fns": "^4.4.0",
- "embla-carousel-svelte": "^8.6.0",
- "ky": "^2.0.2",
- "marked": "^18.0.6",
- "prettier": "^3.9.3",
- "prettier-plugin-svelte": "^4.1.1",
- "prettier-plugin-tailwindcss": "^0.8.0",
- "svelte": "^5.56.4",
- "svelte-codemirror-editor": "^2.1.0",
- "svelte-easy-crop": "^5.0.1",
- "yaml": "^2.9.0"
- },
- "devDependencies": {
- "@iconify/json": "^2.2.498",
- "@inlang/paraglide-js": "2.21.0",
- "@internationalized/date": "^3.12.2",
- "@prettier/plugin-oxc": "^0.2.1",
- "@sveltejs/adapter-static": "^4.0.0-next.0",
- "@sveltejs/vite-plugin-svelte": "^7.2.0",
- "@tailwindcss/vite": "^4.3.2",
- "@tanstack/svelte-query-devtools": "^6.1.36",
- "@types/node": "^26.1.0",
- "@typescript/native-preview": "7.0.0-dev.20260707.2",
- "bits-ui": "^2.18.1",
- "clsx": "^2.1.1",
- "fallow": "^3.3.0",
- "formsnap": "^2.0.1",
- "isomorphic-dompurify": "^3.18.0",
- "mode-watcher": "^1.1.0",
- "paneforge": "^1.0.2",
- "runed": "^0.37.1",
- "shadcn-svelte": "^1.4.1",
- "svelte-check-rs": "^0.10.2",
- "svelte-sonner": "^1.1.1",
- "svelte-toolbelt": "^0.10.6",
- "sveltekit-superforms": "^2.30.2",
- "tailwind-merge": "^3.6.0",
- "tailwind-variants": "^3.2.2",
- "tailwindcss": "^4.3.2",
- "tsx": "^4.23.0",
- "tw-animate-css": "^1.4.0",
- "typescript": "npm:@typescript/typescript6@^6.0.0",
- "typescript-7": "npm:typescript@rc",
- "unplugin-icons": "^23.0.1",
- "vaul-svelte": "1.0.0-next.7",
- "vite": "^8.1.4",
- "zod": "^4.4.3"
- }
+ "name": "arcane-frontend",
+ "private": true,
+ "version": "2.4.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite dev --port 3000 --host",
+ "build": "vite build",
+ "preview": "vite preview --port 3000",
+ "check": "pnpm paraglide:compile && svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json",
+ "format": "prettier --write ./src",
+ "format:check": "prettier --check ./src",
+ "check:watch": "pnpm paraglide:compile && svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json --watch",
+ "paraglide:compile": "paraglide-js compile --project ./project.inlang --outdir ./src/lib/paraglide --strategy cookie preferredLanguage baseLocale --silent",
+ "fallow": "fallow"
+ },
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.20.3",
+ "@codemirror/lang-javascript": "^6.2.5",
+ "@codemirror/lang-json": "^6.0.2",
+ "@codemirror/lang-markdown": "^6.5.0",
+ "@codemirror/lang-yaml": "^6.1.3",
+ "@codemirror/language": "^6.12.3",
+ "@codemirror/legacy-modes": "^6.5.3",
+ "@codemirror/lint": "^6.9.6",
+ "@codemirror/merge": "^6.12.2",
+ "@codemirror/state": "^6.6.0",
+ "@codemirror/view": "^6.43.6",
+ "@fontsource-variable/geist-mono": "^5.2.8",
+ "@fontsource-variable/montserrat": "^5.2.8",
+ "@lezer/highlight": "^1.2.3",
+ "@sveltejs/kit": "^3.0.0-next.8",
+ "@tanstack/svelte-query": "^6.1.36",
+ "@tanstack/svelte-table": "^9.0.0-beta.38",
+ "@tanstack/table-core": "9.0.0-beta.38",
+ "@tanstack/virtual-core": "^3.17.3",
+ "@uiw/codemirror-themes": "^4.25.11",
+ "@xterm/addon-fit": "^0.11.0",
+ "@xterm/xterm": "^6.0.0",
+ "@xyflow/svelte": "^1.6.2",
+ "ajv": "^8.20.0",
+ "ansi-to-html": "^0.7.2",
+ "date-fns": "^4.4.0",
+ "embla-carousel-svelte": "^8.6.0",
+ "ky": "^2.0.2",
+ "marked": "^18.0.6",
+ "prettier": "^3.9.3",
+ "prettier-plugin-svelte": "^4.1.1",
+ "prettier-plugin-tailwindcss": "^0.8.0",
+ "svelte": "^5.56.4",
+ "svelte-codemirror-editor": "^2.1.0",
+ "svelte-easy-crop": "^5.0.1",
+ "yaml": "^2.9.0"
+ },
+ "devDependencies": {
+ "@iconify/json": "^2.2.498",
+ "@inlang/paraglide-js": "2.21.0",
+ "@internationalized/date": "^3.12.2",
+ "@prettier/plugin-oxc": "^0.2.1",
+ "@sveltejs/adapter-static": "^4.0.0-next.0",
+ "@sveltejs/vite-plugin-svelte": "^7.2.0",
+ "@tailwindcss/vite": "^4.3.2",
+ "@tanstack/svelte-query-devtools": "^6.1.36",
+ "@types/node": "^26.1.0",
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
+ "bits-ui": "^2.18.1",
+ "clsx": "^2.1.1",
+ "fallow": "^3.3.0",
+ "formsnap": "^2.0.1",
+ "isomorphic-dompurify": "^3.18.0",
+ "mode-watcher": "^1.1.0",
+ "paneforge": "^1.0.2",
+ "runed": "^0.37.1",
+ "shadcn-svelte": "^1.4.1",
+ "svelte-check-rs": "^0.10.2",
+ "svelte-sonner": "^1.1.1",
+ "svelte-toolbelt": "^0.10.6",
+ "sveltekit-superforms": "^2.30.2",
+ "tailwind-merge": "^3.6.0",
+ "tailwind-variants": "^3.2.2",
+ "tailwindcss": "^4.3.2",
+ "tsx": "^4.23.0",
+ "tw-animate-css": "^1.4.0",
+ "typescript": "npm:@typescript/typescript6@^6.0.0",
+ "typescript-7": "npm:typescript@rc",
+ "unplugin-icons": "^23.0.1",
+ "vaul-svelte": "1.0.0-next.7",
+ "vite": "^8.1.4",
+ "zod": "^4.4.3"
+ }
}
diff --git a/frontend/src/lib/components/action-buttons.svelte b/frontend/src/lib/components/action-buttons.svelte
index bd58b1a34..fcf66794f 100644
--- a/frontend/src/lib/components/action-buttons.svelte
+++ b/frontend/src/lib/components/action-buttons.svelte
@@ -2,7 +2,7 @@
import { onMount } from 'svelte';
import type { Snippet } from 'svelte';
import { openConfirmDialog } from './confirm-dialog';
- import { goto, invalidateAll } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import { toast } from 'svelte-sonner';
import { tryCatch } from '$lib/utils/api';
import { handleApiResultWithCallbacks } from '$lib/utils/api';
@@ -264,7 +264,7 @@
type: type
}),
onSuccess: async () => {
- await invalidateAll();
+ await refreshAll();
goto(type === 'project' ? '/projects' : '/containers');
}
});
@@ -323,7 +323,7 @@
try {
await projectService.deployProject(id, () => {}, options ?? deployOptionsStore.getRequestOptions());
- await invalidateAll();
+ await refreshAll();
itemState = 'running';
onActionComplete('running');
} catch (e: any) {
@@ -365,7 +365,7 @@
projectService
.pullProjectImages(id, () => {})
.then(async () => {
- await invalidateAll();
+ await refreshAll();
onActionComplete(itemState);
})
.catch((error: any) => {
@@ -393,7 +393,7 @@
() => {}
)
.then(async () => {
- await invalidateAll();
+ await refreshAll();
})
.catch((error: any) => {
const message = error?.message || m.build_failed();
diff --git a/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte b/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte
index a570d1618..7ba7ee27a 100644
--- a/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte
+++ b/frontend/src/lib/components/compose/ComposeEditorWrapper.svelte
@@ -4,7 +4,7 @@
import { AlertIcon, ExternalLinkIcon } from '$lib/icons';
import * as m from '$lib/paraglide/messages';
import { toast } from 'svelte-sonner';
- import { invalidateAll } from '$app/navigation';
+ import { refreshAll } from '$app/navigation';
import type { Snippet } from 'svelte';
let {
@@ -35,7 +35,7 @@
try {
await onSave();
toast.success(m.container_compose_save_success());
- await invalidateAll();
+ await refreshAll();
} catch (err: unknown) {
const message = err instanceof Error ? err.message : m.container_compose_save_failed();
toast.error(message);
diff --git a/frontend/src/lib/services/auth-service.ts b/frontend/src/lib/services/auth-service.ts
index 6edb08adf..5c9ef89f6 100644
--- a/frontend/src/lib/services/auth-service.ts
+++ b/frontend/src/lib/services/auth-service.ts
@@ -1,4 +1,4 @@
-import { goto, invalidateAll } from '$app/navigation';
+import { goto, refreshAll } from '$app/navigation';
import BaseAPIService, { APIError } from './api-service';
import userStore from '$lib/stores/user-store';
import type { User } from '$lib/types/auth';
@@ -136,7 +136,7 @@ class AuthService extends BaseAPIService {
}
userStore.setUser(user);
- await invalidateAll();
+ await refreshAll();
goto('/dashboard');
return user;
diff --git a/frontend/src/lib/stores/environment.store.svelte.ts b/frontend/src/lib/stores/environment.store.svelte.ts
index acfee9293..fda11b5f4 100644
--- a/frontend/src/lib/stores/environment.store.svelte.ts
+++ b/frontend/src/lib/stores/environment.store.svelte.ts
@@ -1,5 +1,5 @@
import { PersistedState } from 'runed';
-import { goto, invalidateAll } from '$app/navigation';
+import { goto, refreshAll } from '$app/navigation';
import { page } from '$app/state';
import type { Environment } from '$lib/types/environment';
import { isEnvironmentOnline } from '$lib/utils/docker';
@@ -160,7 +160,7 @@ function createEnvironmentManagementStore() {
if (listPage) {
await goto(listPage);
} else {
- await invalidateAll();
+ await refreshAll();
}
}
},
diff --git a/frontend/src/routes/(app)/containers/[containerId]/+page.svelte b/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
index 15f1fdb37..18d1f0b13 100644
--- a/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
+++ b/frontend/src/routes/(app)/containers/[containerId]/+page.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
- import { invalidateAll } from '$app/navigation';
+ import { refreshAll } from '$app/navigation';
import ActionButtons from '$lib/components/action-buttons.svelte';
import StatusBadge from '$lib/components/badges/status-badge.svelte';
import { bytes } from '$lib/utils/formatting';
@@ -129,7 +129,7 @@
const primaryIpAddress = $derived(getPrimaryIpAddress(container?.networkSettings));
async function refreshData() {
- await invalidateAll();
+ await refreshAll();
}
const hasEnvVars = $derived(!!(container?.config?.env && container.config.env.length > 0));
@@ -165,7 +165,7 @@
setStatus: (status) => {
lifecycleStatus = status === 'pausing' ? status : '';
},
- onRefresh: () => invalidateAll()
+ onRefresh: () => refreshAll()
});
}
@@ -177,7 +177,7 @@
setStatus: (status) => {
lifecycleStatus = status === 'unpausing' ? status : '';
},
- onRefresh: () => invalidateAll()
+ onRefresh: () => refreshAll()
});
}
const showStats = $derived(!!container?.state?.running);
@@ -516,7 +516,7 @@
containerId={container.id}
containerName={containerDisplayName}
onClose={() => (killDialogOpen = false)}
- onComplete={() => invalidateAll()}
+ onComplete={() => refreshAll()}
/>
{/if}
{#if commitDialogOpen && canCommitImage}
@@ -524,7 +524,7 @@
bind:open={commitDialogOpen}
containerId={container.id}
containerName={containerDisplayName}
- onCommitted={() => invalidateAll()}
+ onCommitted={() => refreshAll()}
/>
{/if}
{:else}
diff --git a/frontend/src/routes/(app)/containers/components/container-detail-stats-sync.svelte b/frontend/src/routes/(app)/containers/components/container-detail-stats-sync.svelte
index 271a031d8..1bc2accdd 100644
--- a/frontend/src/routes/(app)/containers/components/container-detail-stats-sync.svelte
+++ b/frontend/src/routes/(app)/containers/components/container-detail-stats-sync.svelte
@@ -2,7 +2,7 @@
import { createContainerStatsWebSocket, type ReconnectingWebSocket } from '$lib/utils/ws';
import { environmentStore } from '$lib/stores/environment.store.svelte';
import type { ContainerStats as ContainerStatsType } from '$lib/types/docker';
- import { invalidateAll } from '$app/navigation';
+ import { refreshAll } from '$app/navigation';
import { onDestroy } from 'svelte';
let {
@@ -38,7 +38,7 @@
containerId,
onMessage: (statsData) => {
if (statsData.removed) {
- void invalidateAll();
+ void refreshAll();
return;
}
diff --git a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
index 74911b486..f7b1b01a9 100644
--- a/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
+++ b/frontend/src/routes/(app)/customize/templates/[id]/+page.svelte
@@ -5,7 +5,7 @@
import CodeEditor from '$lib/components/code-editor/editor.svelte';
import FormInput from '$lib/components/form/form-input.svelte';
import IconImage from '$lib/components/icon-image.svelte';
- import { goto, invalidateAll } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import { m } from '$lib/paraglide/messages.js';
import { templateService } from '$lib/services/template-service';
import { openConfirmDialog } from '$lib/components/confirm-dialog';
@@ -101,7 +101,7 @@
originalDescription = validated.description ?? '';
originalCompose = validated.composeContent;
originalEnv = validated.envContent ?? '';
- await invalidateAll();
+ await refreshAll();
}
});
}
@@ -144,7 +144,7 @@
if (downloadedTemplate?.id) {
await goto(`/customize/templates/${downloadedTemplate.id}`, { replaceState: true });
} else {
- await invalidateAll();
+ await refreshAll();
}
} catch (error) {
console.error('Error downloading template:', error);
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 77a567331..75b9bbda8 100644
--- a/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
+++ b/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { goto, invalidateAll } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import { resolve } from '$app/paths';
import { formatDistanceToNow } from 'date-fns';
import { onDestroy, onMount, untrack } from 'svelte';
@@ -399,7 +399,7 @@
async function refreshOverview() {
isRefreshing = true;
try {
- await invalidateAll();
+ await refreshAll();
await dashboardStore.refresh();
reloadVersion += 1;
} finally {
diff --git a/frontend/src/routes/(app)/environments/[id]/+page.svelte b/frontend/src/routes/(app)/environments/[id]/+page.svelte
index 931f5f806..78b9e2764 100644
--- a/frontend/src/routes/(app)/environments/[id]/+page.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/+page.svelte
@@ -9,7 +9,7 @@
import { Switch } from '$lib/components/ui/switch/index.js';
import { CopyButton } from '$lib/components/ui/copy-button';
import { cn } from '$lib/utils';
- import { goto, invalidateAll } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import { toast } from 'svelte-sonner';
import { m } from '$lib/paraglide/messages';
import { environmentManagementService } from '$lib/services/env-mgmt-service.js';
@@ -433,7 +433,7 @@
isRefreshing = true;
statusOverride = null;
remoteVersion = null;
- await invalidateAll();
+ await refreshAll();
} catch (err) {
console.error('Failed to refresh environment:', err);
toast.error(m.common_refresh_failed({ resource: m.resource_environment() }));
@@ -474,7 +474,7 @@
// If testing with saved URL (not custom), refresh to get backend's updated status
if (!customUrl) {
- await invalidateAll();
+ await refreshAll();
}
} catch (error) {
statusOverride = environment.isEdge ? null : 'offline';
@@ -497,7 +497,7 @@
if (result.apiKey) {
regeneratedApiKey = result.apiKey;
toast.success(m.environments_regenerate_key_success());
- await invalidateAll();
+ await refreshAll();
} else {
toast.error(m.environments_regenerate_key_failed());
}
diff --git a/frontend/src/routes/(app)/projects/new/+page.svelte b/frontend/src/routes/(app)/projects/new/+page.svelte
index 8a097ff39..2d1fe709f 100644
--- a/frontend/src/routes/(app)/projects/new/+page.svelte
+++ b/frontend/src/routes/(app)/projects/new/+page.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import { ArrowLeftIcon } from '$lib/icons';
- import { goto, invalidateAll } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import { toast } from 'svelte-sonner';
import { preventDefault, createForm } from '$lib/utils/settings';
import TemplateSelectionDialog from '$lib/components/dialogs/template-selection-dialog.svelte';
@@ -552,5 +552,5 @@
bind:open={ui.showTemplateDialog}
templates={data.composeTemplates || []}
onSelect={composeHandlers.handleTemplateSelect}
- onDownloadSuccess={invalidateAll}
+ onDownloadSuccess={refreshAll}
/>
diff --git a/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte b/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
index 24f3f44fa..ba995ecd1 100644
--- a/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/services/[serviceId]/+page.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
- import { invalidateAll, goto } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import StatusBadge from '$lib/components/badges/status-badge.svelte';
import { m } from '$lib/paraglide/messages';
import TabbedPageLayout from '$lib/layouts/tabbed-page-layout.svelte';
@@ -199,7 +199,7 @@
}
async function refreshData() {
- await invalidateAll();
+ await refreshAll();
}
// Editor
diff --git a/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte b/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
index fa7729716..b78a8f10d 100644
--- a/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
+++ b/frontend/src/routes/(app)/swarm/stacks/new/+page.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
- import { goto, invalidateAll } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import { toast } from 'svelte-sonner';
import { preventDefault, createForm } from '$lib/utils/settings';
import TemplateSelectionDialog from '$lib/components/dialogs/template-selection-dialog.svelte';
@@ -322,5 +322,5 @@
bind:open={ui.showTemplateDialog}
templates={data.composeTemplates || []}
onSelect={composeHandlers.handleTemplateSelect}
- onDownloadSuccess={invalidateAll}
+ onDownloadSuccess={refreshAll}
/>
diff --git a/frontend/src/routes/(auth)/oidc/callback/+page.svelte b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
index f7786925d..78f5a2a68 100644
--- a/frontend/src/routes/(auth)/oidc/callback/+page.svelte
+++ b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
- import { goto, invalidateAll } from '$app/navigation';
+ import { goto, refreshAll } from '$app/navigation';
import { page } from '$app/state';
import { toast } from 'svelte-sonner';
import userStore from '$lib/stores/user-store';
@@ -94,7 +94,7 @@
},
onSuccess: async ({ authResult, redirectTo }) => {
// Build a placeholder user from the OIDC response. The real user
- // (with role assignments + permissions) is fetched by invalidateAll
+ // (with role assignments + permissions) is fetched by refreshAll
// below, which re-runs the root +layout.ts loader.
const user: User = {
id: authResult.user!.sub || authResult.user!.email || '',
@@ -115,11 +115,11 @@
};
userStore.setUser(user);
- // invalidateAll re-runs the root +layout.ts loader, which fetches
+ // refreshAll re-runs the root +layout.ts loader, which fetches
// settings (with a graceful catch). We don't fetch them here directly
// — a user with zero/limited permissions would 403 on settings:read
// and crash this handler, leaving them stuck on a white screen.
- await invalidateAll();
+ await refreshAll();
try {
const settings = await queryClient.fetchQuery({
queryKey: queryKeys.settings.global(),
@@ -137,7 +137,7 @@
// (app) layout's auth-redirect superseding this navigation: an interrupted
// goto() never resolves, which would hang this callback on "Processing
// Login…". Environment-scoped users (no global perms) would otherwise bounce
- // to /no-access mid-navigation. invalidateAll() above has repopulated
+ // to /no-access mid-navigation. refreshAll() above has repopulated
// page.data (user + permissions manifest) and the environment store.
const landingUser = page.data['user'] ?? user;
const target =
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index b29c5b855..a7442811b 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import { browser, dev } from '$app/env';
- import { invalidateAll } from '$app/navigation';
+ import { refreshAll } from '$app/navigation';
import { navigating, page } from '$app/state';
import ConfirmDialog from '$lib/components/confirm-dialog/confirm-dialog.svelte';
import FirstLoginPasswordDialog from '$lib/components/dialogs/first-login-password-dialog.svelte';
@@ -46,7 +46,7 @@
);
function handlePasswordChangeSuccess() {
- invalidateAll();
+ refreshAll();
}
const pageTitle = $derived(
diff --git a/types/go.sum b/types/go.sum
index 14f0b959b..3360c21b7 100644
--- a/types/go.sum
+++ b/types/go.sum
@@ -45,6 +45,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w=
github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g=
+github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
+github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=