summaryrefslogtreecommitdiff
path: root/internal/api/plantoeat.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-08-14 08:12:29 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-08-14 08:12:29 +0000
commitb55cfbbd433bed6035dfa228ee700e2cca060ca4 (patch)
tree53e9575785fdce504fa9ee1184dd057ed3fc7676 /internal/api/plantoeat.go
parentdcfb7204d654c98657b0638a569e8ec69bb5d852 (diff)
Fix integration papercuts found in cross-source review
getAtomDetails's gtasks case was a stub returning a hardcoded "Google Task" title, so every gtask completed via the web Tasks/Timeline tab or the Agent API logged into completed-tasks history with no real title or due date -- now calls findGoogleTask like every other gtasks call site already does. Gtasks completion also skipped cache invalidation in two call sites (HandleCompleteAtom, the Agent API's handleAgentTaskToggle) that already had it for trello; both now invalidate CacheKeyGoogleTasks the same way the widget handlers do. HandleTaskDetailPage (the widget deep-link fallback page) hand -duplicated loadTaskDetailData's lookup instead of calling it, so it never got this session's earlier gtasks-detail fix -- now delegates. Also deleted PlanToEatAPI.GetRecipes, dead code since its introduction ("for Phase 2," never called). Adds a running .agent/critiques.md tracking structural/process critiques surfaced in conversation, separate from a concrete plan.
Diffstat (limited to 'internal/api/plantoeat.go')
-rw-r--r--internal/api/plantoeat.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/api/plantoeat.go b/internal/api/plantoeat.go
index 770987a..edd494a 100644
--- a/internal/api/plantoeat.go
+++ b/internal/api/plantoeat.go
@@ -184,11 +184,6 @@ func normalizeMealType(mealType string) string {
}
}
-// GetRecipes fetches recipes (for Phase 2)
-func (c *PlanToEatClient) GetRecipes(ctx context.Context) error {
- return fmt.Errorf("not implemented yet")
-}
-
// GetShoppingList fetches the shopping list by scraping the web interface
// Requires a valid session cookie set via SetSessionCookie
func (c *PlanToEatClient) GetShoppingList(ctx context.Context) ([]models.ShoppingItem, error) {