summaryrefslogtreecommitdiff
path: root/internal/handlers/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handlers.go')
-rw-r--r--internal/handlers/handlers.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index fc75b61..69e1c65 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -787,23 +787,6 @@ func (h *Handler) HandleUnifiedAdd(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}
-// HandleGetListsOptions returns HTML options for lists in a given board
-func (h *Handler) HandleGetListsOptions(w http.ResponseWriter, r *http.Request) {
- boardID := r.URL.Query().Get("board_id")
- if boardID == "" {
- JSONError(w, http.StatusBadRequest, "board_id is required", nil)
- return
- }
-
- lists, err := h.trelloClient.GetLists(r.Context(), boardID)
- if err != nil {
- JSONError(w, http.StatusInternalServerError, "Failed to fetch lists", err)
- return
- }
-
- HTMLResponse(w, h.renderer, "lists-options", lists)
-}
-
// taskDetailData is what the "task-detail" template renders (the modal
// opened from any tab's task card). Recurrence fields are doot-native only.
type taskDetailData struct {
@@ -1234,20 +1217,6 @@ type CombinedMeal struct {
Meals []models.Meal // original meal records
}
-// HandleTabMeals renders the Meals tab (PlanToEat)
-func (h *Handler) HandleTabMeals(w http.ResponseWriter, r *http.Request) {
- startDate := config.Today()
- endDate := startDate.AddDate(0, 0, 7)
-
- meals, err := h.store.GetMeals(startDate, endDate)
- if err != nil {
- JSONError(w, http.StatusInternalServerError, "Failed to fetch meals", err)
- return
- }
-
- HTMLResponse(w, h.renderer, "meals-tab", struct{ Meals []CombinedMeal }{groupMeals(meals)})
-}
-
// mealTypeOrder returns sort order for meal types
func mealTypeOrder(mealType string) int {
switch mealType {