How avniproject/avni-webapp works
Avni Webapp is a multi-role application for configuring Avni deployments and supporting field data work. The documented user journey starts with a signed-in user reaching a role-appropriate route: administrators manage organisations and app metadata, while field users enter data; other routes provide assignment, reporting, exports, translations, and documentation. Within administration, deployment management is a distinct stage from organisation-level app design. The graph follows README capability descriptions and visible route registrations; unsampled feature internals are represented only at their known directory paths, without inferred calls.
Main entry points: Routes.jsx Route selection · App.jsx Application · ducks.js Auth and app state · OrgManager.jsx Organisation manager
Components 19
Application shell
- Application
src/rootApp/App.jsx - Route selection
src/rootApp/Routes.jsx - Auth and app state
src/rootApp/ducks.js - HTTP client
src/common/utils/httpClient.js
Administration
- Organisation manager
src/adminApp/OrgManager.jsx - Deployment manager
src/adminApp/DeploymentManager.jsx - App designer
src/adminApp/OrgManagerAppDesigner.jsx - Metadata editing
src/adminApp/EncounterType/EditEncounterTypeFields.jsx - Admin state
src/adminApp/Reducers.js - Admin styles
src/adminApp/Util/Styles.js - Form mapping
src/adminApp/domain/formMapping.js
Field operations
- Data entry
src/dataEntryApp/DataEntry.jsx - Task assignment
src/assignment/taskAssignment/TaskAssignment.jsx - Subject assignment
src/assignment/subjectAssignment/SubjectAssignment.jsx
Reporting and support
- Self-service reports
src/reports/SelfServiceReports.jsx - Report export
src/reports/export/Export.jsx - Translations
src/i18nTranslations/TranslationSaga.js - Documentation
src/common/components/DocumentationContainer.jsx
Other components
- Web user
Connections 14
- Web user → Application: opens
- Application → Route selection: renders
src/rootApp/App.jsx - Application → Auth and app state: loads user
src/rootApp/App.jsx - Auth and app state → HTTP client: uses
src/rootApp/ducks.js - Organisation manager → Deployment manager: renders for admins
src/adminApp/OrgManager.jsx - Route selection → Organisation manager: routes admin
src/rootApp/Routes.jsx - Route selection → Data entry: routes fieldwork
src/rootApp/Routes.jsx - Route selection → Task assignment: routes tasks
src/rootApp/Routes.jsx - Route selection → Subject assignment: routes subjects
src/rootApp/Routes.jsx - Route selection → Self-service reports: routes reports
src/rootApp/Routes.jsx - Route selection → Report export: routes export
src/rootApp/Routes.jsx - Route selection → Translations: routes translations
src/rootApp/Routes.jsx - Route selection → Documentation: routes documentation
src/rootApp/Routes.jsx - App designer → Metadata editing: edits metadata
src/adminApp/OrgManagerAppDesigner.jsx