avniproject / avni-webapp

Web application for management and data entry
https://avniproject.org
GNU Affero General Public License v3.0
11 stars 42 forks source link

Avni Web App - Code base Improvement Ideas #788

Open arjunk opened 2 years ago

arjunk commented 2 years ago

DEA

Admin and App Designer

Given that avni models is a separate module, it poses resistance to developers to add business logic there - because it involves tiresome workflows and hence one wouldn't want to do this repeatedly. We will have to think about how to make this easy. Mono-repo and doing some work with package dependencies is one idea to solve it. There could be others.

Developer in group code walkthrough of the problem is solved for each of above. I feel a mob pairing session for each type will be great after that.

Refactored code which we can look at:

petmongrels commented 2 years ago

Building blocks

UI (components, views) - models Actions/Reducers (management of state) - models Service (interaction with the server) - models Models (avni models)

Where does saga fit in this?

Learn about map state to props. useSelector, saga