-
-
-
Created
-
{new Date(data.createdAt * 1000).toLocaleString()}
-
-
-
Last Updated
-
{new Date(data.updatedAt * 1000).toLocaleString()}
-
+ <>
+
+
+
- )}
+ >
diff --git a/app/client/modules/notifications/routes/notifications.tsx b/app/client/modules/notifications/routes/notifications.tsx
index d838aaa9..546c8883 100644
--- a/app/client/modules/notifications/routes/notifications.tsx
+++ b/app/client/modules/notifications/routes/notifications.tsx
@@ -157,7 +157,7 @@ export default function Notifications({ loaderData }: Route.ComponentProps) {
{notification.name}
{notification.type}
-
+
))
diff --git a/app/client/modules/volumes/routes/volume-details.tsx b/app/client/modules/volumes/routes/volume-details.tsx
index ed803345..1cd1e079 100644
--- a/app/client/modules/volumes/routes/volume-details.tsx
+++ b/app/client/modules/volumes/routes/volume-details.tsx
@@ -24,6 +24,7 @@ import { DockerTabContent } from "../tabs/docker";
import { Tooltip, TooltipContent, TooltipTrigger } from "~/client/components/ui/tooltip";
import { useSystemInfo } from "~/client/hooks/use-system-info";
import { getVolume } from "~/client/api-client";
+import type { VolumeStatus } from "~/client/lib/types";
import {
deleteVolumeMutation,
getVolumeOptions,
@@ -31,6 +32,16 @@ import {
unmountVolumeMutation,
} from "~/client/api-client/@tanstack/react-query.gen";
+const getVolumeStatusVariant = (status: VolumeStatus): "success" | "neutral" | "error" | "warning" => {
+ const statusMap = {
+ mounted: "success" as const,
+ unmounted: "neutral" as const,
+ error: "error" as const,
+ unknown: "warning" as const,
+ };
+ return statusMap[status];
+};
+
export const handle = {
breadcrumb: (match: Route.MetaArgs) => [{ label: "Volumes", href: "/volumes" }, { label: match.params.name }],
};
@@ -124,7 +135,12 @@ export default function VolumeDetails({ loaderData }: Route.ComponentProps) {
- {volume.status[0].toUpperCase() + volume.status.slice(1)}
+
+
+ {volume.status[0].toUpperCase() + volume.status.slice(1)}
diff --git a/app/client/modules/volumes/routes/volumes.tsx b/app/client/modules/volumes/routes/volumes.tsx
index 2f903852..fc8bbda4 100644
--- a/app/client/modules/volumes/routes/volumes.tsx
+++ b/app/client/modules/volumes/routes/volumes.tsx
@@ -13,6 +13,17 @@ import { VolumeIcon } from "~/client/components/volume-icon";
import type { Route } from "./+types/volumes";
import { listVolumes } from "~/client/api-client";
import { listVolumesOptions } from "~/client/api-client/@tanstack/react-query.gen";
+import type { VolumeStatus } from "~/client/lib/types";
+
+const getVolumeStatusVariant = (status: VolumeStatus): "success" | "neutral" | "error" | "warning" => {
+ const statusMap = {
+ mounted: "success" as const,
+ unmounted: "neutral" as const,
+ error: "error" as const,
+ unknown: "warning" as const,
+ };
+ return statusMap[status];
+};
export const handle = {
breadcrumb: () => [{ label: "Volumes" }],
@@ -157,7 +168,10 @@ export default function Volumes({ loaderData }: Route.ComponentProps) {
-
+
))