forge
Explore
Log in

Don't you dare go Hollow

🧹 add shared PageHeader to the page

Browse files at this commit

7122d71744bea23bd00bcfe91b997c19fba1e4d6Burak BoduroğluParent: 85410a9
  • refactor
    • 🧹 add shared PageHeader to the page
Show full message
refactor(work-log): 🧹 add shared PageHeader to the page

page had no top-level header; add <PageHeader title/description> to match
convention. the status <h2> stays — it is a live check-in widget, not a
page title. drop the now-duplicate DataTable description
src/pages/work-log-page.tsxmodified+3 -1
@@ -5,6 +5,7 @@ import { postWorkCheckIn } from "@/api/work";
55 import { postWorkCheckOut } from "@/api/work";
66 import { formatApiError } from "@/api/client";
77 import { RouteGuard } from "@/components/layout/route-guard";
8+import { PageHeader } from "@/components/layout/page-header";
89 import { Alert } from "@/components/ui/alert";
910 import { Badge } from "@/components/ui/badge";
1011 import { Button } from "@/components/ui/button";
@@ -97,6 +98,8 @@ function WorkLogContent() {
9798
9899 return (
99100 <div class="space-y-6">
101+ <PageHeader title={t("work.title")} description={t("work.subtitle")} />
102+
100103 <Show when={flash()}>
101104 <Alert variant="success">{flash()}</Alert>
102105 </Show>
@@ -129,7 +132,6 @@ function WorkLogContent() {
129132 >
130133 <DataTable
131134 title={t("work.entries")}
132- description={t("work.subtitle")}
133135 actions={<Badge variant="secondary" class="mono rounded-lg px-3 py-1">{total()}</Badge>}
134136 columns={columns()}
135137 data={pageItems()}