Skip to content

Modern Docker Management, Designed for Everyone

fix: remove badges on detail pages

Kyle Mendell4404bd268b61
diff --git a/src/routes/containers/IdCell.svelte b/src/routes/containers/IdCell.svelte
deleted file mode 100644
index 9ea4ebb64..000000000
--- a/src/routes/containers/IdCell.svelte
+++ /dev/null
@@ -1,6 +0,0 @@
-<script lang="ts">
- let { id }: { id: string } = $props();
- let shortId = $derived(id.substring(0, 12));
-</script>
-
-<span class="font-mono text-xs">{shortId}</span>
diff --git a/src/routes/containers/[id]/+page.svelte b/src/routes/containers/[id]/+page.svelte
index 63803e778..62438c201 100644
--- a/src/routes/containers/[id]/+page.svelte
+++ b/src/routes/containers/[id]/+page.svelte
@@ -89,16 +89,6 @@
<h1 class="text-2xl font-bold tracking-tight">
{container?.name || "Container Details"}
</h1>
- {#if container}
- <CustomBadge
- variant="status"
- text={capitalizeFirstLetter(container.state?.Status || "unknown")}
- bgColor={getStatusColor(container.state?.Status || "unknown").bg}
- textColor={getStatusColor(container.state?.Status || "unknown")
- .text}
- iconClass="w-3 h-3 mr-1"
- />
- {/if}
</div>
</div>
diff --git a/src/routes/containers/columns.ts b/src/routes/containers/columns.ts
index aec752c0f..abf48b5cc 100644
--- a/src/routes/containers/columns.ts
+++ b/src/routes/containers/columns.ts
@@ -5,8 +5,8 @@ import DataTableActions from "./ContainerActions.svelte";
import { capitalizeFirstLetter } from "$lib/utils";
import { statusConfig } from "$lib/types/statuses";
import CustomBadge from "$lib/components/badges/custom-badge.svelte";
-import IdCell from "./IdCell.svelte";
-import CellName from "./components/cell-name.svelte";
+import IdCell from "./components/IdCell.svelte";
+import CellName from "./components/NameCell.svelte";
export const columns: ColumnDef<ServiceContainer>[] = [
{
diff --git a/src/routes/containers/components/cell-name.svelte b/src/routes/containers/components/cell-name.svelte
deleted file mode 100644
index d8e33eb58..000000000
--- a/src/routes/containers/components/cell-name.svelte
+++ /dev/null
@@ -1,12 +0,0 @@
-<script lang="ts">
- interface Props {
- id: string;
- name: string;
- }
-
- let { id, name }: Props = $props();
-</script>
-
-<a href="/containers/{id}" class="font-medium hover:underline">
- {name}
-</a>
diff --git a/src/routes/stacks/[stackId]/+page.svelte b/src/routes/stacks/[stackId]/+page.svelte
index d72f2e835..944ae9626 100644
--- a/src/routes/stacks/[stackId]/+page.svelte
+++ b/src/routes/stacks/[stackId]/+page.svelte
@@ -87,17 +87,6 @@
<h1 class="text-2xl font-bold tracking-tight">
{stack?.name || "Stack Details"}
</h1>
- {#if stack}
- <Badge
- variant={stack.status === "running"
- ? "default"
- : stack.status === "partially running"
- ? "secondary"
- : "destructive"}
- >
- {stack.status}
- </Badge>
- {/if}
</div>
</div>