Skip to content

Modern Docker Management, Designed for Everyone

fix: make System username red on event table

Kyle Mendell0a8bff618624
diff --git a/frontend/src/routes/images/image-table.svelte b/frontend/src/routes/images/image-table.svelte
index 7271c7ab9..c2633678e 100644
--- a/frontend/src/routes/images/image-table.svelte
+++ b/frontend/src/routes/images/image-table.svelte
@@ -2,16 +2,7 @@
import type { EnhancedImageInfo } from '$lib/models/image.type';
import ArcaneTable from '$lib/components/arcane-table.svelte';
import { Button } from '$lib/components/ui/button/index.js';
- import {
- Download,
- HardDrive,
- Trash2,
- Loader2,
- ChevronDown,
- Ellipsis,
- ScanSearch,
- Funnel
- } from '@lucide/svelte';
+ import { Download, HardDrive, Trash2, Loader2, Ellipsis, ScanSearch } from '@lucide/svelte';
import * as Card from '$lib/components/ui/card/index.js';
import { goto } from '$app/navigation';
import { toast } from 'svelte-sonner';
@@ -272,6 +263,7 @@
onClick={() => handleDeleteSelected()}
loading={isLoading.removing}
disabled={isLoading.removing}
+ label="Remove Selected"
/>
{/if}
<ArcaneButton action="pull" label="Pull Image" onClick={onPullDialogOpen} />
diff --git a/frontend/src/routes/networks/network-table.svelte b/frontend/src/routes/networks/network-table.svelte
index a16eb49c8..1977cfff8 100644
--- a/frontend/src/routes/networks/network-table.svelte
+++ b/frontend/src/routes/networks/network-table.svelte
@@ -16,7 +16,6 @@
import type { SearchPaginationSortRequest, Paginated } from '$lib/types/pagination.type';
import * as Table from '$lib/components/ui/table';
import StatusBadge from '$lib/components/badges/status-badge.svelte';
- import { formatFriendlyDate } from '$lib/utils/date.utils';
interface NetworkWithId extends NetworkSummary {
id: string;
diff --git a/frontend/src/routes/settings/events/event-table.svelte b/frontend/src/routes/settings/events/event-table.svelte
index 16bcfafd7..8b0319404 100644
--- a/frontend/src/routes/settings/events/event-table.svelte
+++ b/frontend/src/routes/settings/events/event-table.svelte
@@ -16,6 +16,7 @@
import { eventAPI } from '$lib/services/api';
import type { Paginated, SearchPaginationSortRequest } from '$lib/types/pagination.type';
import type { Event } from '$lib/types/event.type';
+ import { capitalizeFirstLetter } from '$lib/utils/string.utils';
let {
events,
@@ -177,7 +178,10 @@
>
{#snippet rows({ item })}
<Table.Cell>
- <StatusBadge text={item.severity} variant={getSeverityBadgeVariant(item.severity)} />
+ <StatusBadge
+ text={capitalizeFirstLetter(item.severity)}
+ variant={getSeverityBadgeVariant(item.severity)}
+ />
</Table.Cell>
<Table.Cell>
<Badge variant="outline">{item.type}</Badge>
@@ -194,7 +198,13 @@
-
{/if}
</Table.Cell>
- <Table.Cell>{item.username || '-'}</Table.Cell>
+ <Table.Cell>
+ {#if item.username === 'System'}
+ <span class="text-red-500/50">{item.username || '-'}</span>
+ {:else}
+ {item.username || '-'}
+ {/if}
+ </Table.Cell>
<Table.Cell>
<span class="text-sm">{formatTimestamp(item.timestamp)}</span>
</Table.Cell>