+
+
+
+ {testMessage && (
+
+ {testMessage}
+
+ )}
+
+ )}
);
diff --git a/apps/client/app/components/volume-icon.tsx b/apps/client/app/components/volume-icon.tsx
index 0a5ceab..7f7015f 100644
--- a/apps/client/app/components/volume-icon.tsx
+++ b/apps/client/app/components/volume-icon.tsx
@@ -1,5 +1,5 @@
import type { BackendType } from "@ironmount/schemas";
-import { Folder, Server, Share2 } from "lucide-react";
+import { Cloud, Folder, Server, Share2 } from "lucide-react";
type VolumeIconProps = {
backend: BackendType;
@@ -26,6 +26,12 @@ const getIconAndColor = (backend: BackendType) => {
color: "text-purple-600 dark:text-purple-400",
label: "SMB",
};
+ case "webdav":
+ return {
+ icon: Cloud,
+ color: "text-green-600 dark:text-green-400",
+ label: "WebDAV",
+ };
default:
return {
icon: Folder,
diff --git a/apps/client/app/modules/details/components/storage-chart.tsx b/apps/client/app/modules/details/components/storage-chart.tsx
index 684154c..fe5be08 100644
--- a/apps/client/app/modules/details/components/storage-chart.tsx
+++ b/apps/client/app/modules/details/components/storage-chart.tsx
@@ -18,7 +18,7 @@ export function StorageChart({ statfs }: Props) {
{
name: "Used",
value: statfs.used,
- fill: "blue",
+ fill: "#2B7EFF",
},
{
name: "Free",
@@ -29,19 +29,7 @@ export function StorageChart({ statfs }: Props) {
[statfs],
);
- const chartConfig = {
- value: {
- label: "Storage",
- },
- used: {
- label: "Used",
- color: "hsl(var(--destructive))",
- },
- free: {
- label: "Free",
- color: "hsl(var(--primary))",
- },
- } satisfies ChartConfig;
+ const chartConfig = {} satisfies ChartConfig;
const usagePercentage = React.useMemo(() => {
return Math.round((statfs.used / statfs.total) * 100);
@@ -75,37 +63,70 @@ export function StorageChart({ statfs }: Props) {