fix: ui uses "Dashboard" instead of "Spaces"
This commit is contained in:
parent
d6b9eb9c59
commit
fbd8d6e935
4 changed files with 13 additions and 15 deletions
|
|
@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue