diff --git a/src/lib/server/fleet/overview.ts b/src/lib/server/fleet/overview.ts index b48dc0c..d4bd7f8 100644 --- a/src/lib/server/fleet/overview.ts +++ b/src/lib/server/fleet/overview.ts @@ -137,7 +137,7 @@ function readOperations(now: number, server?: string): FleetOperation[] { ? 'Completed with warnings' : 'Complete' : state === 'attention' - ? `${actionLabels[row.action as ProvisioningAction]} needs attention` + ? `${actionLabels[row.action as ProvisioningAction]} operation needs attention` : row.stage, detail: row.error ?? row.stage, href: `/provisioning/${encodeURIComponent(row.id)}` diff --git a/src/lib/ui/server-health.ts b/src/lib/ui/server-health.ts index 1246279..7e1a79b 100644 --- a/src/lib/ui/server-health.ts +++ b/src/lib/ui/server-health.ts @@ -73,7 +73,7 @@ function healthEvidence( if (hostOffline) return { state: 'host-offline', - reason: `${host.name ? `${host.name}'s host agent` : 'The host agent'} is unavailable. The game may still be running.`, + reason: `The host agent${host.name ? ` on ${host.name}` : ''} is unavailable. The game may still be running.`, actionLabel: hostId ? 'Check host' : 'Open diagnostics', actionHref: hostId ? `/hosts/${encodeURIComponent(hostId)}` : diagnostics, since: observedAt(host.lastHeartbeat, now) diff --git a/src/routes/campaigns/+page.svelte b/src/routes/campaigns/+page.svelte index bfc94b4..fb28640 100644 --- a/src/routes/campaigns/+page.svelte +++ b/src/routes/campaigns/+page.svelte @@ -8,6 +8,7 @@ import { page } from '$app/stores'; import { goto } from '$app/navigation'; import { pollVisible } from '$ui/poll.js'; + import { plural } from '$ui/plural.js'; import { campaignOutcome, campaignTitle, @@ -221,7 +222,7 @@ {#if showProgress}{/if} diff --git a/src/routes/plugins/+page.svelte b/src/routes/plugins/+page.svelte index c83d3dc..cb57e6d 100644 --- a/src/routes/plugins/+page.svelte +++ b/src/routes/plugins/+page.svelte @@ -21,6 +21,7 @@ import Input from '$ui/components/primitives/Input.svelte'; import Select from '$ui/components/primitives/Select.svelte'; import { libraryLimit, saveLibraryContext } from '$ui/library-context.js'; + import { plural } from '$ui/plural.js'; const editable = $derived(canOperate($page.data?.user?.role)); type ArtifactKind = 'script' | 'config' | 'plugin' | 'baseline'; @@ -353,7 +354,7 @@ {/if}
- {visible.length} of {plugins.length} plugins{visible.length} of {plugins.length} {plural(plugins.length, 'plugin')}{#if visible.length && (search || game || status)}
- {visible.length} of {scripts.length} scripts + {visible.length} of {scripts.length} {plural(scripts.length, 'script')} {#if failedCount && status !== 'failed'}