Skip to content

this is the morning checkin code#17

Open
aajain2 wants to merge 1 commit intomainfrom
morning-checkin
Open

this is the morning checkin code#17
aajain2 wants to merge 1 commit intomainfrom
morning-checkin

Conversation

@aajain2
Copy link
Contributor

@aajain2 aajain2 commented Feb 13, 2025

Name of the PR

♻️ Current situation & Problem

The app needs a daily morning check-in feature to track users' symptoms, with data stored in Firebase. This implements the morning check-in questionnaire and ensures proper data storage.

⚙️ Release Notes

Added daily morning check-in questionnaire scheduled for 8:00 AM
Integrated with Firebase storage under MorningCheckInQuestionnaireResponse collection
Updated EventView to handle both regular check-ins and morning check-ins
Added morningCheckIn case to QuestionnaireType enum

📚 Documentation

Added inline documentation for morning check-in task configuration in CoughSyncScheduler
Updated EventView with comments explaining questionnaire type determination
Firebase storage path documented in CoughSyncStandard
Added documentation for morning check-in UI components in ScheduleView

✅ Testing

Added comprehensive test coverage:
UI Tests in SchedulerTests.swift:
testMorningCheckIn(): Verifies morning check-in questionnaire flow
testQuestionnaireTypeDetermination(): Ensures correct questionnaire type assignment
testMorningCheckInWithFirebase(): Tests Firebase storage integration with emulator
Non-testable elements:
Real Firebase cloud storage (using emulator for testing)
Actual notification delivery (testing schedule configuration only)
Time-based triggers (verifying configuration, not actual timing)
All tests follow existing patterns in the codebase and maintain consistency with other feature tests.

📝 Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Copy link
Contributor

@MiguelAFH MiguelAFH left a comment

Choose a reason for hiding this comment

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

My main concern with this PR is that we already have and onboarding and a weekly questionnaire. Users don't want to get into an app to do questionnaires all the time, so we should figure out a way to make these less often.

{
"valueCoding": {
"code": "3",
"display": "3 - Moderately severe"
Copy link
Contributor

Choose a reason for hiding this comment

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

You might want to check that the language used on this survey so that is standardize across all our surveys

@jennleww
Copy link
Contributor

  1. Please upload images of the UI after your changes, it is difficult to see the end result otherwise and we can't provide feedback.
  2. Have you checked the changes in QuestionnaireType go to different document collections in firebase?
  3. When you add a new resource, you need to add a .license file for that like we do for the other questionnaires. Otherwise you won't pass checks in the PR which prevent this from merging

@jennleww jennleww self-requested a review February 13, 2025 23:10
Copy link
Contributor

@jennleww jennleww left a comment

Choose a reason for hiding this comment

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

  1. Please upload images of the UI after your changes, it is difficult to see the end result otherwise and we can't provide feedback.
  2. Have you checked the changes in QuestionnaireType go to different document collections in firebase?
  3. When you add a new resource, you need to add a .license file for that like we do for the other questionnaires. Otherwise you won't pass checks in the PR which prevent this from merging

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.

3 participants