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

Setup entire state needed to load previous imageCaptureResult #150

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

eschramm
Copy link

Fixes https://github.com/CareEvolution/MyDataHelps-iOS/issues/1347.

Testing (through MyDataHelps)

Using the following 2 surveys (for both versions of ResearchKit) perform the following steps - may need to open disclosure triangle to see survey JSON

  1. Capture image with camera
  2. Advance to the next step
  3. Hit the back button to go to the previous step (Image Capture)
  4. Verify the image taken previously shows as expected
  5. Verify the image can be recaptured
  6. Complete the survey - verify image saved with survey is as expected
Example Survey - Version 1
{
  "type": "RKStudioOrderedTask",
  "name": "Survey",
  "identifier": "Survey",
  "steps": [
    {
      "type": "ImageCaptureStep",
      "text": "",
      "title": "",
      "identifier": "ImageCapture",
      "captureRaw": false
    },
    {
      "type": "InstructionStep",
      "text": "After capturing the image, navigate back to the previous Image Capture Step and verify the image you captured just now appears as one would expect.",
      "title": "Now Back it Up",
      "identifier": "Instructions",
    }
  ],
  "styles": {
    "progressBarColor": "#5381c3",
    "nextButtonBackgroundColor": "#5381c3",
    "nextButtonTextColor": "#FFFFFF"
  }
}
Example Survey - Version 2
{
  "type": "RKStudioOrderedTask",
  "name": "Survey",
  "identifier": "Survey",
  "rkVersion": 2,
  "steps": [
    {
      "type": "ImageCaptureStep",
      "text": "",
      "title": "",
      "identifier": "ImageCapture",
      "captureRaw": false
    },
    {
      "type": "InstructionStep",
      "text": "After capturing the image, navigate back to the previous Image Capture Step and verify the image you captured just now appears as one would expect.",
      "title": "Now Back it Up",
      "identifier": "Instructions",
    }
  ],
  "styles": {
    "progressBarColor": "#5381c3",
    "nextButtonBackgroundColor": "#5381c3",
    "nextButtonTextColor": "#FFFFFF"
  }
}

@eschramm eschramm requested a review from mmertsock October 28, 2024 16:47
Copy link
Member

@mmertsock mmertsock left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

@eschramm eschramm merged commit 8d19c86 into CEVRelease-2.x Oct 29, 2024
1 check passed
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