Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve issue #289: implement NS-provided display of fat/protein #290

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

aug0211
Copy link
Contributor

@aug0211 aug0211 commented Jun 9, 2024

…otein in graph

- Resolves (Trio issue nightscout#289)[nightscout#289]
- Implements Nightscout's provided graph display for fat and protein in meal entries
- Trio had partially implemented this but did not pass fat and protein values to Nightscout (it dropped them but carried carbs)
- This PR follows the identical pattern used for carbs and carries fat and protein values along for NS to display
Copy link
Contributor

@MikePlante1 MikePlante1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review looks straightforward and clean.

Tested by making two entries and then checking Nightscout

Entry 1 Entry 2
entry1 entry2

Nightscout:
nightscout


Nightscout Report:
nightscout-report

Copy link
Contributor

@dnzxy dnzxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean and precise changes; uses given pattern and just adds the missing data to request.

LGTM.

@bjornoleh
Copy link
Contributor

Looks good! Merging with two approvals.

@bjornoleh bjornoleh merged commit fb838e4 into nightscout:alpha Jun 9, 2024
1 check passed
Copy link
Contributor

@dsnallfot dsnallfot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late to the party. But also tested. Works as described. Nice extra info to have in NS. Well done

@aug0211 aug0211 deleted the alpha-fat-protein-to-NS branch July 7, 2024 22:14
mountrcg pushed a commit to mountrcg/Trio that referenced this pull request Aug 1, 2024
* update enact bolus button description when amount exceeds maxBolus and fix insulin unit description

* reimplement continue without bolus button, delete unnecessary code in BolusStateModel

* refactor code and let add insulin button be disabled if maxBolus is exceeded

* remove unused variable
@marionbarker marionbarker self-requested a review August 17, 2024 18:10
Copy link
Contributor

@marionbarker marionbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a test - can I review a closed PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make use of Nightscout's provided display of Carbs + Protein + Fat in graph for meal entries
6 participants