feat(popup): show today's meal plan in the popup - #252
Draft
mrshappy0 wants to merge 2 commits into
Draft
Conversation
Surfaces what's planned for today right in the popup — no need to open Mealie to check dinner. Recipe entries link straight to the recipe in Mealie; freeform entries (no recipe attached) render as plain text. Adds getTodaysMealPlan (GET /households/mealplans/today) to utils/network.ts, MealPlanEntry/PlanEntryType types, and a 'meal-plan' log feature.
…mbient type The TodaysMealPlan recipe-link click handler calls normalizeMealieServerBaseUrl (from utils/network), which the test file's module mock didn't provide, crashing the click in CI. Also declare MealPlanEntry as an e2e ambient type — tsconfig.e2e.json type-checks utils/network.ts transitively (via e2e-shared/mealie-api.ts) outside WXT's auto-import context, so types referenced there without an explicit import need a matching ambient declaration, same as User and RecipeSummary already have.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
utils/network.tsfunctiongetTodaysMealPlan(GET /api/households/mealplans/today); newMealPlanEntry/PlanEntryTypetypes and'meal-plan'log feature.This is an early draft of feature idea #2 from our roadmap discussion — happy to iterate on UX/scope based on feedback (e.g. whether to also surface tomorrow's plan, or add a "plan this recipe" action from the popup).
Test plan
pnpm typecheckpnpm lintpnpm test(new network + popup component tests included; pre-existingApp.test.tsxasset-resolution failure in this sandbox is unrelated — reproduces on a cleanmaincheckout too)pnpm coverage— gate passes (92.6%)🤖 Generated with Claude Code