fix: ui uses "Dashboard" instead of "Spaces"

This commit is contained in:
juancwu 2026-02-18 15:06:22 +00:00
commit fbd8d6e935
4 changed files with 13 additions and 15 deletions

View file

@ -27,7 +27,7 @@ templ App(title string) {
@sidebar.MenuItem() {
@sidebar.MenuButton(sidebar.MenuButtonProps{
Size: sidebar.MenuButtonSizeLg,
Href: "/app/dashboard",
Href: "/app/spaces",
}) {
@icon.LayoutDashboard()
<div class="flex flex-col">
@ -45,12 +45,12 @@ templ App(title string) {
@sidebar.Menu() {
@sidebar.MenuItem() {
@sidebar.MenuButton(sidebar.MenuButtonProps{
Href: "/app/dashboard",
IsActive: ctxkeys.URLPath(ctx) == "/app/dashboard",
Tooltip: "Dashboard",
Href: "/app/spaces",
IsActive: ctxkeys.URLPath(ctx) == "/app/spaces",
Tooltip: "Spaces",
}) {
@icon.House(icon.Props{Class: "size-4"})
<span>Dashboard</span>
<span>Spaces</span>
}
}
}

View file

@ -28,7 +28,7 @@ templ Space(title string, space *model.Space) {
@icon.LayoutDashboard()
<div class="flex flex-col">
<span class="text-sm font-bold">{ cfg.AppName }</span>
<span class="text-xs text-muted-foreground">Back to Dashboard</span>
<span class="text-xs text-muted-foreground">Back to Spaces</span>
</div>
}
}

View file

@ -13,13 +13,13 @@ import (
)
templ Dashboard(spaces []*model.Space) {
@layouts.App("Dashboard") {
@layouts.App("Spaces") {
<div class="container max-w-7xl px-6 py-8">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8 gap-4">
<div>
<h1 class="text-3xl font-bold">Dashboard</h1>
<h1 class="text-3xl font-bold">Spaces</h1>
<p class="text-muted-foreground mt-2">
Welcome back! Here's an overview of your spaces.
Welcome back!
</p>
</div>
</div>
@ -32,12 +32,10 @@ templ Dashboard(spaces []*model.Space) {
{ space.Name }
}
@card.Description() {
Manage expenses and shopping lists in this space.
Manage expenses in this space.
}
}
@card.Content() {
// You could add some summary stats here later
}
@card.Content()
}
</a>
}
@ -57,7 +55,7 @@ templ Dashboard(spaces []*model.Space) {
Create Space
}
@dialog.Description() {
Create a new space to organize expenses and shopping lists.
Create a new space to organize expenses and more.
}
}
<form hx-post="/app/spaces" hx-swap="none" class="space-y-4">

View file

@ -10,7 +10,7 @@ templ Forbidden() {
<h2 class="text-2xl font-semibold mb-2">Access Denied</h2>
<p class="text-muted-foreground mb-8">You do not have permission to access this page.</p>
<a href="/app/dashboard" class="text-primary hover:underline">
← Back to Dashboard
← Back to Spaces
</a>
</div>
</div>