Giter Site home page Giter Site logo

Comments (3)

algodave avatar algodave commented on September 24, 2024

@lmerriam I put checkin creation logic on the backend because I think it's safer. It basically initializes checkin with all currently tracked conditions and symptoms, with no values, and all currently tracked treatments, with a "not taken" state and their most recent dose if present in user's profile. I would like to keep this logic on the backend, so that it doesn't need to be replicated by mobile apps.
With that said, individual checkin steps and summary screens on the Ember app are currently created based on an existing checkin record. So basically, if user is for example on symptoms step of today's checkin, and moves back to yesterday, the Ember app doesn't know which symptoms to show if checkin for that day doesn't exist yet.

So I think, if the actual issue is that you want to get rid of empty summaries, I would suggest we put in place one of the following logics:

  • make the app aware of when a checkin is empty (i.e. user has never entered data in it) and, when user clicks on a day on the graph: if checkin is empty, show the checkin start screen; else, show the summary screen
  • make the app aware of when a user has completed all checkin steps (i.e. for a given day, user has reached the checkin summary screen) and, when user clicks on a day on the graph, take him to the last step he completed, or to the summary if he completed all steps

Let me know what you think about my proposals.

from flaredown.

lmerriam avatar lmerriam commented on September 24, 2024

Sounds good to me! First bullet point definitely, but I don't think we actually need to worry about the second one -- if someone decides to leave their check-in and come back later I'm fine with them completing it through the summary screen.

from flaredown.

algodave avatar algodave commented on September 24, 2024

@lmerriam Implemented first solution, as per your suggestion

from flaredown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.