feat: show money accounts in overview page
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m1s

This commit is contained in:
juancwu 2026-02-13 01:11:38 +00:00
commit 364f8dc682
2 changed files with 39 additions and 2 deletions

View file

@ -99,7 +99,14 @@ func (h *SpaceHandler) DashboardPage(w http.ResponseWriter, r *http.Request) {
return
}
ui.Render(w, r, pages.SpaceOverviewPage(space, lists, tags, listsWithItems))
accounts, err := h.accountService.GetAccountsForSpace(spaceID)
if err != nil {
slog.Error("failed to get accounts for space", "error", err, "space_id", spaceID)
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
return
}
ui.Render(w, r, pages.SpaceOverviewPage(space, lists, tags, listsWithItems, accounts))
}
func (h *SpaceHandler) ListsPage(w http.ResponseWriter, r *http.Request) {