summaryrefslogtreecommitdiff
path: root/internal/handlers/tabs.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-13 13:41:24 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-13 13:41:24 -1000
commit96a24772c4508cc7d088ee7b7a47c76858490446 (patch)
tree1006690df920a9ca5490b02babc9732e27af1cc5 /internal/handlers/tabs.go
parent81f1e7a489c62f21bb71b7402a2758735cddef57 (diff)
Fix template rendering error in notes tab (Bug 001)
Add Errors field to HandleNotes data structure to match notes-tab template expectations. The error-banner partial requires this field. - Add template_test.go with reproduction test - Update HandleNotes to include Errors field in data struct Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/handlers/tabs.go')
-rw-r--r--internal/handlers/tabs.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/handlers/tabs.go b/internal/handlers/tabs.go
index 448dfbe..b8e7bcb 100644
--- a/internal/handlers/tabs.go
+++ b/internal/handlers/tabs.go
@@ -152,9 +152,11 @@ func (h *TabsHandler) HandleNotes(w http.ResponseWriter, r *http.Request) {
}
data := struct {
- Notes []models.Note
+ Notes []models.Note
+ Errors []string
}{
- Notes: notes,
+ Notes: notes,
+ Errors: nil,
}
// Check HX-Target header for partial update