BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
12 stars 10 forks source link

Autosave entries #763

Closed Tuna9129 closed 11 months ago

Tuna9129 commented 1 year ago

Is your feature request related to a problem? Please describe. We have received numerous comments from users saying that it is frustrating that their responses (especially free responses such as when journaling) are not autosaved. Currently, if users exit from the activity or fully close the app, users have to start over.

Describe the solution you'd like We would like for there to be an autosave option (for activities in progress) such that when a user starts an activity, their responses are automatically saved. Even after completely closing the app, if the user returns to the same activity, they should be able to pick up from where they left off.

sarithapillai8 commented 1 year ago

@Tuna9129 @avaidyam Do you mean to save it as incomplete activity events or to resume the activity when the user re-opens the application? Is this change applies to all the activities including games?

michaelmenon commented 1 year ago

@carlan1 please see above

Tuna9129 commented 1 year ago

@sarithapillai8 resume the activity when the user re-opens the application. Instead of all activities, can we just do activities with user text responses?

sarithapillai8 commented 1 year ago

@carlan1 @michaelmenon @ZCOEngineer @Tuna9129 @avaidyam As per the discussion, we will be implementing this for activities like - Journals, surveys, and DBT diary cards. We will be saving the activity data locally for resuming the activity. Once the user saves the activity, these data will be saved as activity events and local data will be cleared.

avaidyam commented 1 year ago

@sarithapillai8 I think the clarification for this issue is that we need to store the application state so if the user or system reopens the app/dashboard we return them to where they were. This is not about saving activity-specific data locally (meaning, there should only ever be one active activity and event data bundle saved offline at a time, i.e. if there is an incomplete survey there CANNOT ALSO be an incomplete jewels game).

divyav2020 commented 11 months ago

We have updated the following changes in Dashboard Staging. Please Confirm.

carlan1 commented 11 months ago

This does not appear functional in staging - the data does not save, nor is there a dialog

divyav2020 commented 11 months ago

The functionlity was working. This may be due to update of some current fixes. We will fix and update you as early as possible.

carlan1 commented 11 months ago

Just to clarify, we do not want to save any partial or incomplete ActivityEvent here. There should only be an ActivityEvent saved if a participant chooses to submit their response.

ZCOEngineer commented 11 months ago

Yes @carlan1

divyav2020 commented 11 months ago

We have updated the fix in Dashboard Staging. Please Confirm.

carlan1 commented 11 months ago

Could you change the dialog text to: "Would you like to resume this activity where you left off?"

ZCOEngineer commented 11 months ago

We shall change this and update

sarithapillai8 commented 11 months ago

@carlan1 Updated the dialog text in staging.