Repository navigation
feat(pwa): show "Limits You Set" on the recommendation report (N3) - #116
Merged
Merged
Conversation
The PDF lists the inclusion limits and custom diet limits that shaped a run (backend PR #115); the screen now shows the same card from the new optional `user_limits` key, after Cost-Effective Diet. It also shows when no diet was found, so the user can see which limits may have caused it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
satishbagali
enabled auto-merge
November 4, 2026 11:37
satishbagali
approved these changes
Nov 4, 2026
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.
What
Request N3: the report screen now shows the Limits You Set card, matching the PDF section from backend PR #115.
models.ts: optionaluser_limits(inclusion_limits,diet_limits) onRecommendationResponse.report/UserLimitsCard.tsx, placed after Cost-Effective Diet and before Environmental Impact:direction.display_name/display_label, falling back to the English name.Tests
UserLimitsCard.test.tsxcovers: both tables, one table, absent / null / empty, null → "—", and ≥ forndf_for_min. The full gate passes on Node 20: 958 tests.Check on Test
— · 2.00 · 1.88.≤ 3 · ≤ 7 · % DM.🤖 Generated with Claude Code