Add Foodbook templates: models, EF migration, service, UI and planner integration#106
Open
phoneuooyd wants to merge 1 commit intomainfrom
Open
Add Foodbook templates: models, EF migration, service, UI and planner integration#106phoneuooyd wants to merge 1 commit intomainfrom
phoneuooyd wants to merge 1 commit intomainfrom
Conversation
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.
Motivation
IFeatureAccessService).Description
FoodbookTemplateandTemplateMealinFoodbookApp.App/Models/, representing templates and per-day/per-slot recipe positions.DbSet<FoodbookTemplate>andDbSet<TemplateMeal>plus model configuration (relations, indexes) inData/AppDbContext.csand created EF migrationData/Migrations/20260307120000_AddFoodbookTemplates.csto createFoodbookTemplatesandTemplateMealstables.IFoodbookTemplateServiceandFoodbookTemplateServiceimplementing template flows:Get,SaveTemplateFromPlanAsync,Update,Remove, andApplyTemplateAsyncwhich creates aPlan+PlannedMeal[]from a template.FoodbookTemplatesPage+FoodbookTemplatesViewModelandFoodbookTemplateFormPage+FoodbookTemplateFormViewModelfor listing/creating/editing/applying templates.PlannerPage(three-dot toolbar):Save current plan as template(premium-gated viaIFeatureAccessService) andApply template(select template and start date to generate aPlan); added a Foodbooks tab inPlannerListsPageand support inPlannerListsViewModel.MauiProgramfor the new service, viewmodels and pages and updatedDatabaseService.RequiredTablesto include the new tables.Localization/PlannerListsPageResources*.resxand updated project docs (DOCS/*) to mention the new feature.Testing
git diff --checkand fixed trailing whitespace issues (check passed).dotnet build FoodbookApp.App/FoodbookApp.App.csprojbut thedotnetCLI is not available in this environment so the build/migrations could not be executed here.ERR_EMPTY_RESPONSE), so visual verification was not produced.20260307120000_AddFoodbookTemplateswas generated and included in the repo, but applying migrations and running integration tests should be executed in CI / a developer machine with the .NET SDK available (rundotnet ef database updateordotnet build+ app startup to validate runtime schema).Codex Task