refactor: consolidate page titles

This commit is contained in:
Nicolas Meienberger
2025-11-08 14:04:06 +01:00
parent a1ef34118c
commit ef5d95d347
13 changed files with 56 additions and 14 deletions

View File

@@ -17,10 +17,10 @@ import { EmptyState } from "~/components/empty-state";
export function meta(_: Route.MetaArgs) {
return [
{ title: "Ironmount - Repositories" },
{ title: "Repositories" },
{
name: "description",
content: "Manage your backup repositories",
content: "Manage your backup repositories with encryption and compression.",
},
];
}

View File

@@ -27,10 +27,10 @@ import { RepositorySnapshotsTabContent } from "../tabs/snapshots";
export function meta({ params }: Route.MetaArgs) {
return [
{ title: `Ironmount - ${params.name}` },
{ title: params.name },
{
name: "description",
content: "Manage your restic backup repositories with ease.",
content: "View repository configuration, status, and snapshots.",
},
];
}

View File

@@ -7,6 +7,16 @@ import { SnapshotFileBrowser } from "~/modules/backups/components/snapshot-file-
import { getSnapshotDetails } from "~/api-client";
import type { Route } from "./+types/snapshot-details";
export function meta({ params }: Route.MetaArgs) {
return [
{ title: `Snapshot ${params.snapshotId}` },
{
name: "description",
content: "Browse and restore files from a backup snapshot.",
},
];
}
export const clientLoader = async ({ params }: Route.ClientLoaderArgs) => {
const snapshot = await getSnapshotDetails({ path: { name: params.name, snapshotId: params.snapshotId } });
if (snapshot.data) return snapshot.data;