Loading compression statistics...
diff --git a/app/client/modules/repositories/routes/repository-details.tsx b/app/client/modules/repositories/routes/repository-details.tsx
index 8841c1e7..b34087b2 100644
--- a/app/client/modules/repositories/routes/repository-details.tsx
+++ b/app/client/modules/repositories/routes/repository-details.tsx
@@ -6,15 +6,18 @@ import { RepositoryInfoTabContent } from "../tabs/info";
import { RepositorySnapshotsTabContent } from "../tabs/snapshots";
import { useNavigate, useSearch } from "@tanstack/react-router";
import type { BackupSchedule, Snapshot } from "~/client/lib/types";
+import type { GetRepositoryStatsResponse } from "~/client/api-client/types.gen";
export default function RepositoryDetailsPage({
repositoryId,
initialSnapshots,
initialBackupSchedules,
+ initialStats,
}: {
repositoryId: string;
initialSnapshots?: Snapshot[];
initialBackupSchedules?: BackupSchedule[];
+ initialStats?: GetRepositoryStatsResponse;
}) {
const navigate = useNavigate();
const { tab } = useSearch({ from: "/(dashboard)/repositories/$repositoryId/" });
@@ -32,7 +35,7 @@ export default function RepositoryDetailsPage({
Snapshots
-
+
diff --git a/app/client/modules/repositories/tabs/info.tsx b/app/client/modules/repositories/tabs/info.tsx
index f8567a7b..e33838e0 100644
--- a/app/client/modules/repositories/tabs/info.tsx
+++ b/app/client/modules/repositories/tabs/info.tsx
@@ -14,6 +14,7 @@ import {
AlertDialogTitle,
} from "~/client/components/ui/alert-dialog";
import type { Repository } from "~/client/lib/types";
+import type { GetRepositoryStatsResponse } from "~/client/api-client/types.gen";
import { formatDateTime, formatTimeAgo } from "~/client/lib/datetime";
import {
cancelDoctorMutation,
@@ -30,6 +31,7 @@ import { cn } from "~/client/lib/utils";
type Props = {
repository: Repository;
+ initialStats?: GetRepositoryStatsResponse;
};
const getEffectiveLocalPath = (repository: Repository): string | null => {
@@ -37,7 +39,7 @@ const getEffectiveLocalPath = (repository: Repository): string | null => {
return repository.config.path;
};
-export const RepositoryInfoTabContent = ({ repository }: Props) => {
+export const RepositoryInfoTabContent = ({ repository, initialStats }: Props) => {
const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);
const navigate = useNavigate();
@@ -232,7 +234,7 @@ export const RepositoryInfoTabContent = ({ repository }: Props) => {
-