From 31dad607b30f0242a262c444e6aae939a21c7e9c Mon Sep 17 00:00:00 2001 From: colpiche Date: Mon, 2 Mar 2026 18:06:56 +0100 Subject: [PATCH] feat(repositories): display snapshot paths in source column --- app/client/components/snapshots-table.tsx | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/app/client/components/snapshots-table.tsx b/app/client/components/snapshots-table.tsx index 5396eb03..d443a4dc 100644 --- a/app/client/components/snapshots-table.tsx +++ b/app/client/components/snapshots-table.tsx @@ -1,6 +1,6 @@ import { useState } from "react"; import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { Calendar, Clock, Database, HardDrive, Monitor, Tag, Trash2, X } from "lucide-react"; +import { Calendar, Clock, Database, FolderOpen, HardDrive, Monitor, Tag, Trash2, X } from "lucide-react"; import { toast } from "sonner"; import { ByteSize } from "~/client/components/bytes-size"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "~/client/components/ui/table"; @@ -145,7 +145,7 @@ export const SnapshotsTable = ({ snapshots, repositoryId, backups, listSnapshots Snapshot ID Schedule - Hostname + Source Date & Time Size Duration @@ -200,9 +200,19 @@ export const SnapshotsTable = ({ snapshots, repositoryId, backups, listSnapshots -
- - {snapshot.hostname ?? "-"} +
+ {snapshot.hostname && ( +
+ + {snapshot.hostname ?? "-"} +
+ )} + {snapshot.paths.map((path) => ( +
+ + {path} +
+ ))}