How ghanshyam-sys/fnp works
Fit and Proper Assessment is a portal where applicants submit a 15-question case and supporting documents, the backend sends evidence to the Data Authentication API, reviewers resolve flagged answers, and completed cases receive a score and decision. The frontend supports applicant and reviewer flows, plus questionnaire configuration and administration. Backend workflow and model relationships are grounded in excerpts and the SOURCE INDEX; several feature branches and their links are included where the README documents them, without assuming unseen implementation details.
Main entry points: urls.py Django API · workflow.py Case workflow · assessments.py Assessment endpoints · App.tsx Portal routing
Components 24
Applicant and reviewer portals
- Portal routing
frontend/src/App.tsx - Application forms
frontend/src/pages/ApplyPage.tsx - Review and rulings
frontend/src/pages/ReviewerAuthenticationPage.tsx - Case results
frontend/src/pages/ReviewerResultPage.tsx - API queries
frontend/src/api/queries.ts - API client
frontend/src/api/client.ts
Case management
- Django API
backend/config/urls.py - Sessions and access
backend/cases/views/session.py - Assessment endpoints
backend/cases/views/assessments.py - Case endpoints
backend/cases/views/case.py - Questionnaire endpoints
backend/cases/views/catalogue.py - Evidence handling
backend/cases/views/evidence.py - Submission validation
backend/cases/validation.py - Case workflow
backend/cases/workflow.py - Case records
backend/cases/models.py - Document storage
backend/cases/storage.py
Authentication and scoring
- Authentication API client
backend/engine/client.py - Case scoring
backend/cases/scoring.py
Administration and audit
- Audit trail
backend/cases/audit.py - Administration
backend/cases/views/admin_panel.py - Question configuration
frontend/src/pages/QuestionConfigPage.tsx
Other components
- Applicant
- Reviewer
- Data Authentication API
Connections 31
- Applicant → Portal routing: uses portal
README.md - Reviewer → Portal routing: uses portal
README.md - Portal routing → Application forms: routes to
frontend/src/App.tsx - Portal routing → Review and rulings: routes to
frontend/src/App.tsx - Portal routing → Case results: routes to
frontend/src/App.tsx - Application forms → API queries: uses queries
- Review and rulings → API queries: loads case data
frontend/src/pages/ReviewerAuthenticationPage.tsx - Case results → API queries: loads results
- API queries → API client: sends requests
frontend/src/api/queries.ts - API client → Django API: calls /api
frontend/src/api/client.ts - Django API → Sessions and access: routes session
- Django API → Assessment endpoints: routes assessments
- Django API → Case endpoints: routes case actions
- Django API → Questionnaire endpoints: routes catalogue
- Django API → Evidence handling: routes evidence
- Assessment endpoints → Submission validation: validates submissions
backend/cases/views/assessments.py - Assessment endpoints → Case workflow: invokes workflow
backend/cases/views/assessments.py - Assessment endpoints → Case records: reads and writes
backend/cases/views/assessments.py - Assessment endpoints → Document storage: deletes documents
backend/cases/views/assessments.py - Case workflow → Case records: updates case state
backend/cases/workflow.py - Case workflow → Authentication API client: submits and polls
backend/cases/workflow.py - Case workflow → Case scoring: requests score
backend/cases/workflow.py - Case workflow → Audit trail: records events
backend/cases/workflow.py - Authentication API client → Data Authentication API: verifies evidence
backend/engine/client.py - Questionnaire endpoints → Django API: serves configuration
- Question configuration → API queries: reads and saves
- Reviewer → Question configuration: configures questions
- Reviewer → Administration: administers users
- Sessions and access → Case records: reads and writes
backend/cases/views/session.py - Case endpoints → Case workflow: invokes workflow
- Evidence handling → Document storage: manages documents