How andrewarzola/lossrun works
This repository is a React admin dashboard template customized with a loss-run intake and review workflow. Users navigate routed pages, enter loss-run details, and the backend API translates submissions into CSV records; the API also exposes CSV reads and record edits/deletions. The route definitions, API handlers, and calendar behavior were sampled, but frontend API-call wiring and most page implementations were not, so those connections are not asserted. The README documents broader dashboard, chart, profile, authentication, form, and UI capabilities.
Main entry points: App.tsx React routes · FormLossRun.tsx Loss-run intake · loss_run_api.py Loss-run API · main.tsx App entry
Components 28
App routing
- React routes
src/App.tsx - App layout
src/layout/AppLayout.tsx
Loss-run workflow
- Loss-run intake
src/pages/Forms/FormLossRun.tsx - Claim fields
src/components/form/formLossRun/DefaultInputs.tsx - Claim details
src/components/form/formLossRun/Claim.tsx - Claimant details
src/components/form/formLossRun/Claimant.tsx - Policy details
src/components/form/formLossRun/Policy.tsx - Accrual details
src/components/form/formLossRun/Accrual.tsx - Payment details
src/components/form/formLossRun/Paid.tsx - Suit details
src/components/form/formLossRun/Suit.tsx - Claim notes
src/components/form/formLossRun/Notes.tsx - Loss-run API
backend/loss_run_api.py - Loss-run CSV
backend/loss_run_api.py - Full view
src/pages/Tables/FullView.tsx - Trial view
src/pages/Tables/TrialView.tsx - Loss-run view
src/pages/Tables/LossRunView.tsx - Edit loss-run
src/components/tables/edit/EditLossRun.tsx
Dashboard features
- Dashboard
src/pages/Dashboard/Home.tsx - Charts
src/pages/Charts/LineChart.tsx - Calendar
src/pages/Calendar.tsx - User profile
src/pages/UserProfiles.tsx - Sign-in/up
src/pages/AuthPages/SignIn.tsx - General forms
src/pages/Forms/FormElements.tsx - UI examples
src/pages/UiElements/Alerts.tsx
Shared interface
- Navigation sidebar
src/layout/AppSidebar.tsx - Theme state
src/context/ThemeContext.tsx - App entry
src/main.tsx
Other components
- Admin user
Connections 30
- Admin user → App entry: opens dashboard
- App entry → React routes: renders
- React routes → App layout: routes dashboard
- React routes → Sign-in/up: routes auth
- React routes → Loss-run intake: routes intake
- React routes → Full view: routes table
- React routes → Trial view: routes table
- React routes → Loss-run view: routes table
- React routes → Dashboard: routes home
- React routes → Charts: routes charts
- React routes → Calendar: routes calendar
- React routes → User profile: routes profile
- React routes → General forms: routes forms
- React routes → UI examples: routes examples
- App layout → Navigation sidebar: renders navigation
- App entry → Theme state: provides theme
- Loss-run intake → Claim fields: uses fields
- Loss-run intake → Claim details: uses section
- Loss-run intake → Claimant details: uses section
- Loss-run intake → Policy details: uses section
- Loss-run intake → Accrual details: uses section
- Loss-run intake → Payment details: uses section
- Loss-run intake → Suit details: uses section
- Loss-run intake → Claim notes: uses section
- Loss-run API → Loss-run CSV: reads and writes
- Edit loss-run → Loss-run API: updates record
- Full view → Loss-run API: loads CSV
- Trial view → Loss-run API: loads CSV
- Loss-run view → Loss-run API: loads CSV
- Loss-run intake → Loss-run API: submits record