summaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-08-23 17:43:49 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-08-23 17:43:49 +0000
commitc46c135f52090a082660cb06131282796f5cd592 (patch)
tree59930d5950aa64f24efcd38fbdd727c2a68d4e26 /internal/handlers
parent18783b813af946e1e940bfeb1a0bdc1e7ce9f95f (diff)
Remove unused /tabs/conditions partial and route
Only the standalone /conditions page was ever meant to exist; the HTMX tab variant was dead weight, reachable only via an unlinked ?tab=conditions query param with no button in the tab bar. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GMEkHeqKz6FLkmizowBTK
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/handlers.go5
-rw-r--r--internal/handlers/handlers_test.go15
2 files changed, 0 insertions, 20 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index fc66f84..fc75b61 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -1262,11 +1262,6 @@ func mealTypeOrder(mealType string) int {
}
}
-// HandleTabConditions renders the Conditions tab with live feeds
-func (h *Handler) HandleTabConditions(w http.ResponseWriter, r *http.Request) {
- HTMLResponse(w, h.renderer, "conditions-tab", nil)
-}
-
// HandleConditionsPage renders the standalone Conditions page with live feeds
func (h *Handler) HandleConditionsPage(w http.ResponseWriter, r *http.Request) {
if err := h.renderer.Render(w, "conditions.html", nil); err != nil {
diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go
index 93afba5..ca24778 100644
--- a/internal/handlers/handlers_test.go
+++ b/internal/handlers/handlers_test.go
@@ -1320,21 +1320,6 @@ func TestParseFormOr400(t *testing.T) {
// Timeline and Conditions Handler Tests
// =============================================================================
-func TestHandleTabConditions(t *testing.T) {
- h, cleanup := setupTestHandler(t)
- defer cleanup()
-
- req := httptest.NewRequest("GET", "/tabs/conditions", nil)
- w := httptest.NewRecorder()
-
- h.HandleTabConditions(w, req)
-
- // May return 500 if template not found, but the handler is executed
- if w.Code != http.StatusOK && w.Code != http.StatusInternalServerError {
- t.Errorf("Expected status 200 or 500, got %d", w.Code)
- }
-}
-
func TestHandleConditionsPage(t *testing.T) {
h, cleanup := setupTestHandler(t)
defer cleanup()