chore(ui): set dashboard page title and description

This commit is contained in:
peaklabs-dev 2026-03-04 21:14:34 +01:00
parent 5ae756f441
commit 164c3ce9ad
No known key found for this signature in database
3 changed files with 12 additions and 1 deletions

View file

@ -49,6 +49,7 @@ final class HandleInertiaRequests extends Middleware
{
return [
...parent::share($request),
'appName' => config('app.name'),
];
}
}

View file

@ -1,7 +1,8 @@
declare module "@inertiajs/core" {
export interface InertiaConfig {
sharedPageProps: {
};
appName: string
}
// flashDataType: {
// toast?: { type: "success" | "error"; message: string };
// };

View file

@ -1,3 +1,12 @@
<script lang="ts">
import { page } from '@inertiajs/svelte'
</script>
<svelte:head>
<title>Dashboard - {$page.props.appName}</title> <!-- the TS type of appName is currently incorrect, which is likely an Inertia bug. -->
<meta name="description" content="The {$page.props.appName} dashboard" />
</svelte:head>
<div class="min-h-screen bg-background text-foreground p-8">
<h1 class="text-3xl font-bold mb-6">Dashboard</h1>
</div>