How chungcb4444-alt/scamgraph-demo works
ScamGraph is a simulated, browser-only case review application. Residents submit reports; reception staff review and route them for analysis; analysts inspect extracted details and links, then create cases for assignment, handling, and report review. Leaders manage assignments and review reports; supervisors inspect audit history, while administrators manage accounts and permissions. State is stored in origin-scoped localStorage. The supplied excerpts show only parts of the application coordinator and operations layer, so documented workflow links are cited to the README; unsampled implementation details are not inferred.
Main entry points: App.tsx Application workspace · CaseWorkPanel.tsx Casework and reports · operations.ts Business operations · ReportPeople.tsx Report people
Components 22
Application and access
- React entry
src/main.tsx - Application workspace
src/App.tsx - Login
src/Login.tsx - Access rules
src/access.ts - Business operations
src/operations.ts - Domain data types
src/types.ts
Report intake and analysis
- Report intake
src/ReportIntake.tsx - Report people
src/ReportPeople.tsx - Sensitive data controls
src/ReportPrivacy.tsx - Sensitive value display
src/SensitiveValue.tsx - Link analysis graph
src/LinkGraph.tsx - Reception workflow
src/ReceptionPanel.tsx
Casework and review
- Casework and reports
src/CaseWorkPanel.tsx - Opinions and requests
src/CaseMessages.tsx - Source requests
src/SourceRequests.tsx - Role workspaces
src/RoleWork.tsx - Report history
src/ReportHistory.tsx - Receipt workflow rules
src/receiptWorkflow.ts
Administration and audit
- Account administration
src/AccountManager.tsx - Work summary
src/WorkSummary.tsx
Other components
- Residents and staff
- Browser localStorage
Connections 29
- React entry → Application workspace: renders
src/main.tsx - Residents and staff → Login: signs in
README.md - Login → Application workspace: enters workspace
README.md - Application workspace → Access rules: checks access
src/App.tsx - Application workspace → Report intake: opens intake
src/App.tsx - Application workspace → Reception workflow: routes report work
README.md - Residents and staff → Report intake: submits report
README.md - Report intake → Reception workflow: creates report for review
README.md - Reception workflow → Link analysis graph: hands off for analysis
README.md - Application workspace → Link analysis graph: opens link view
src/App.tsx - Application workspace → Report people: shows report parties
src/App.tsx - Report people → Sensitive value display: renders values
src/ReportPeople.tsx - Report people → Sensitive data controls: uses privacy controls
src/ReportPeople.tsx - Link analysis graph → Business operations: supports link decisions
- Application workspace → Casework and reports: opens casework
src/App.tsx - Casework and reports → Receipt workflow rules: checks receipt status
src/CaseWorkPanel.tsx - Casework and reports → Business operations: submits case actions
README.md - Casework and reports → Opinions and requests: shows case opinions
README.md - Casework and reports → Source requests: handles source requests
README.md - Residents and staff → Role workspaces: works by role
README.md - Role workspaces → Casework and reports: opens assigned cases
README.md - Casework and reports → Report history: preserves report versions
README.md - Business operations → Access rules: enforces permissions
src/operations.ts - Business operations → Receipt workflow rules: checks receipt rules
src/operations.ts - Application workspace → Account administration: opens administration
README.md - Account administration → Business operations: submits account changes
src/AccountManager.tsx - Application workspace → Work summary: shows work overview
src/App.tsx - Application workspace → Browser localStorage: persists application state
README.md - Business operations → Domain data types: uses domain records
src/operations.ts