Skip to content

Meal Editor Logging - #648

Merged
lynnfaraday merged 8 commits into
release/3.xfrom
linda/meal-logging2
Aug 4, 2026
Merged

Meal Editor Logging#648
lynnfaraday merged 8 commits into
release/3.xfrom
linda/meal-logging2

Conversation

@lynnfaraday

Copy link
Copy Markdown
Contributor

Overview

Add custom event logging to the meal editor for troubleshooting image uploads.

Security

Consider potential security impacts and complete the following checklist.
REMINDER: All file contents are public.

  • I have ensured no secure credentials or sensitive information remain in code, metadata, comments, etc.
    • Please verify that you double checked that .storybook/preview.js does not contain your participant access key details.
    • There are no temporary testing changes committed such as API base URLs, access tokens, print/log statements, etc.
  • These changes do not introduce any security risks, or any such risks have been properly mitigated.

Testing

Consider whether the changes might have device-specific behaviors (screen padding, new APIs, etc.) and check one of the following boxes:

  • This change can be adequately tested using the MDH Storybook.
  • This change requires additional testing in the MDH iOS/Android/Web apps. (Create a pre-release tag/build and test in a ViewBuilder PR.)

Test meal editor in web/mobile and ensure custom events are logged.

Documentation

Consider whether there are any documentation impacts and check one of the following boxes:

  • I have added relevant Storybook updates to this PR.
  • If this feature requires a developer doc update, I have tagged @CareEvolution/api-docs.
  • This change does not impact documentation or Storybook.

Reviewers

Assign to the appropriate reviewer(s). Minimally, a second set of eyes is needed ensure no non-public information is published. Consider also including:

  • Subject-matter experts
  • Style/editing reviewers
  • Others requested by the content owner

Consider "Squash and merge" as needed to keep the commit history reasonable on main.

@lynnfaraday
lynnfaraday changed the base branch from main to release/3.x July 30, 2026 21:40
@lynnfaraday lynnfaraday mentioned this pull request Jul 30, 2026
9 tasks
Comment thread src/components/container/MealEditor/MealEditor.tsx Outdated
Comment thread src/components/container/MealEditor/MealEditor.tsx
Comment thread src/components/container/MealEditor/MealEditor.tsx
Comment thread src/components/container/MealEditor/MealEditor.tsx Outdated

@greinard greinard left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

setDeviceInfo(info);
getMealToEdit().then(mealReference => {
if (mealReference) {
logMealEvent("editing-started", undefined, info, `Editing meal id=${mealReference.id}`);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If you update logMealEvent to accept a meal id instead of a meal, you could just pass mealReference.id here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's true, but I think in general it's cleaner to pass the meal. Plus it gives us flexibility if we need to log other things about the meal.

@lynnfaraday
lynnfaraday merged commit 948f00b into release/3.x Aug 4, 2026
4 checks passed
@lynnfaraday
lynnfaraday deleted the linda/meal-logging2 branch August 4, 2026 17:32
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.

2 participants