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

@ -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>