lemoudelamou / mindLab-Frontend

Frontend
1 stars 0 forks source link

add data to demo mode #25

Closed omaralhasan closed 10 months ago

omaralhasan commented 10 months ago

Why can't new groups or new patients be added in demo mode? When I start a session and conduct an experiment, regardless of whether I have completed the session, I should have data stored somewhere at the end and see this under patient info. Is there backend implementation for this?

lemoudelamou commented 10 months ago

@omaralhasan it's a demo mode. I find it unnecessary to save data when testing the website. maybe i can find a way to save data somewhere without saving it to the data base

lemoudelamou commented 10 months ago

@omaralhasan so now we are able to add data in demo mode. I used local storage to make it possible. so now we are able to add only one patient and only one group to show user how our website works without saving unnecessary data to the database. (in addition to the dummy data retrieved from the JSON file)

lemoudelamou commented 10 months ago

@omaralhasan note that:

  1. when clicking on Quit Demo the added group and patient in the demo mode are automatically deleted.
  2. when you create another group and patient the previous one is automatically replaced with the new one.
  3. since it's only for demo purposes i think it is enough

(Ps: I added your pie chart to demo and normal mode)

omaralhasan commented 10 months ago

Why are we constantly limiting ourselves to demo functionality? It's about having a functional application, and in many places, it seems to me that this is not implemented. The demo should not be an important specific goal of our system. I thought our application (the code) should be capable of saving new patients and groups in the database, but we haven't implemented this logic anywhere! If we want to hand over or release the software, then can users create new groups and patients and save them permanently? Or was the demo idea just a way out so we don't have to do complicated tasks?

omaralhasan commented 10 months ago

done