diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-27 07:02:33 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-27 07:02:33 -1000 |
| commit | 59c360c3c33a55447f08e95fed4714959300850c (patch) | |
| tree | bdcd7fa0f98fa8ab874e63f888d7dc5528aee763 /cmd | |
| parent | f8757aef930a22669255359ff50908e0f7a941af (diff) | |
Fix z-index, conditions auth, and meal combining (#62, #63, #64)
Bug fixes:
- #62: Increase FAB button z-index from z-40 to z-50
- #63: Combine multiple meals per date+mealType in Meals tab
- #64: Make /conditions route public (no auth required)
Changes:
- FAB button now z-50 (same as modals, appears on top when scrolling)
- Meals tab groups meals by date+mealType, joins recipe names with " + "
- Conditions page moved outside protected routes group
DESIGN.md updates:
- Updated z-index hierarchy table
- Added Meals View section
- Noted conditions page is public
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/dashboard/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 920ccf2..ce91e6e 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -145,13 +145,15 @@ func main() { fileServer := http.FileServer(http.Dir(cfg.StaticDir)) r.Handle("/static/*", http.StripPrefix("/static/", fileServer)) + // Conditions page (public - no auth required) + r.Get("/conditions", h.HandleConditionsPage) + // Protected routes (auth required) r.Group(func(r chi.Router) { r.Use(authHandlers.Middleware().RequireAuth) // Dashboard r.Get("/", h.HandleDashboard) - r.Get("/conditions", h.HandleConditionsPage) r.Post("/api/refresh", h.HandleRefresh) r.Get("/api/tasks", h.HandleGetTasks) r.Get("/api/meals", h.HandleGetMeals) |
