|
|
1f2ec97500
|
fix(suggestions): address PR review — input validation, redirect, UI fixes
- Add planId and recipeId (UUID) validation to pickSuggestion action
- Redirect to planner after successful slot pick (spec: returns to C1)
- Fix SuggestionCard recipe name truncation: truncate → line-clamp-2
- Add self-start alignment to rank number column in SuggestionCard
- Collapse SuggestionContextBanner by default (expanded → collapsed)
- Add TODO comment for hardcoded reasoning score threshold in page
- Update tests: redirect assertion, planId/recipeId validation cases
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-03 11:18:34 +02:00 |
|
|
|
c94656d998
|
feat(suggestions): implement C2 meal suggestions screen (#27)
Two-panel desktop layout (280px context panel + flex suggestions panel)
and mobile layout (sticky header + collapsible context banner + ranked list).
- SuggestionCard: rank number, recipe metadata, green/yellow reasoning badge, pick form
- SuggestionContextBanner: collapsible week-so-far list + filter reasons
- Server load: fetches week plan + variety-aware suggestions sorted by simulatedScore
- pickSuggestion action: role guard, date validation, POST to /v1/week-plans/{id}/slots
- Browse full library link passes selectFor+week params to recipe library (B1 integration point)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-04-03 11:12:26 +02:00 |
|