The state of the application is managed by plain Javascript Object: we refer to it as the global state. It’s dedicated to:
- Keep track of the completion of the pathways by the user.
- Keep track of the state variable defined at the protocol level.
- Store the defined metadata required by each protocol
- Allow the UI to trigger the right event when needed.
The reduced is a write-only function acting on the global state. A set of separate function define an read-only interface
This issue aims to rewrite the reducer and simplify the set of read-only functions. All the protocol and react components were impacted by these changes then it's required to migrate all the code and re-test all the pathways.
Parents issue
- LEARN-4:
Children:
- LEARN-5 => Done
- LEARN-6 => Done
- LEARN-7 => Done
- LEARN-8 => Done
- LEARN-9 => Done
- LEARN-10 => Done
- LEARN-11 => Done
- LEARN-14 => Done
- LEARN-15 => Done
- LEARN-2 => Waiting test review
- LEARN-3 => Not started yet
To simply code readibility and future maintenance of the application