How jonaslavaautomation/erie-insurance works
This is a browser-based insurance agency portal for quoting and servicing personal and commercial policies. An agent starts from the portal, selects a product, completes quote details, and relies on rating and validation before the quote is managed in shared portal state. The application also covers customers, policies, claims, billing, endorsements, reporting, and agency resources. The excerpts and source index support the main route and dependency connections; several page implementations were not sampled, so their internal interactions are not inferred.
Main entry points: App.tsx Application routes · store.tsx Portal state · QuoteWizard.tsx Quote wizard · PolicyPage.tsx Policy servicing
Components 34
Portal experience
- Application routes
src/App.tsx - Portal layout
src/components/PortalLayout.tsx - Shared UI
src/components/ui.tsx
Quoting
- Product selection
src/ProductSelectionPage.tsx - Quote wizard
src/pages/QuoteWizard.tsx - Quote steps
src/pages/QuoteSteps.tsx - Personal quote flow
src/pages/pl/PersonalQuote.tsx - Personal quote steps
src/pages/pl - Commercial quoting
src/pages/CommercialQuotePage.tsx - Quote search
src/QuoteSearchPage.tsx
Insurance domain
- Policy rating
src/lib/rating.ts - Commercial rating
src/data/commercial.ts - Quote validation
src/lib/validation.ts - Personal lines logic
src/lib/personalLines.ts - Document generation
src/lib/documents.ts - Billing rules
src/lib/billing.ts - Endorsement rules
src/lib/endorsements.ts - Quote templates
src/lib/templates.ts
Policy servicing
- Customer management
src/pages/CustomerPages.tsx - Policy servicing
src/pages/PolicyPage.tsx - Endorsements
src/pages/EndorsePage.tsx - Claims
src/pages/ClaimsPages.tsx - Billing workflows
src/pages/BillingWorkflows.tsx - Billing overview
src/pages/BillingPages.tsx - Reports
src/pages/ReportsPage.tsx - Agency resources
src/pages/InfoPages.tsx - Work queue
src/pages/WorkQueuePage.tsx
Portal data
- Portal state
src/data/store.tsx - Demo data
src/data/seed.ts - Quote synchronization
src/lib/quoteSync.ts - Work queue rules
src/data/workqueue.ts - Portal content
src/data/content.ts
Other components
- Insurance agent
- Supabase
Connections 48
- Insurance agent → Application routes: uses
src/App.tsx - Application routes → Product selection: routes to
src/App.tsx - Application routes → Quote wizard: routes to
src/App.tsx - Application routes → Quote search: routes to
src/App.tsx - Application routes → Customer management: routes to
src/App.tsx - Application routes → Policy servicing: routes to
src/App.tsx - Application routes → Claims: routes to
src/App.tsx - Application routes → Billing overview: routes to
src/App.tsx - Application routes → Billing workflows: routes to
src/App.tsx - Application routes → Endorsements: routes to
src/App.tsx - Application routes → Reports: routes to
src/App.tsx - Application routes → Work queue: routes to
src/App.tsx - Product selection → Portal state: reads and updates
src/ProductSelectionPage.tsx - Product selection → Quote templates: uses
src/ProductSelectionPage.tsx - Product selection → Personal lines logic: uses
src/ProductSelectionPage.tsx - Quote wizard → Quote steps: renders
src/pages/QuoteWizard.tsx - Quote wizard → Personal quote flow: renders
src/pages/QuoteWizard.tsx - Quote wizard → Portal state: reads and updates
src/pages/QuoteWizard.tsx - Quote wizard → Policy rating: rates
src/pages/QuoteWizard.tsx - Quote wizard → Quote validation: validates
src/pages/QuoteWizard.tsx - Quote wizard → Document generation: generates documents
src/pages/QuoteWizard.tsx - Personal quote flow → Personal quote steps: renders
src/pages/pl/PersonalQuote.tsx - Personal quote flow → Portal state: reads and updates
src/pages/pl/PersonalQuote.tsx - Personal quote flow → Personal lines logic: uses
src/pages/pl/PersonalQuote.tsx - Commercial quoting → Portal state: uses
- Quote search → Portal state: reads and updates
src/QuoteSearchPage.tsx - Quote search → Personal lines logic: uses
src/QuoteSearchPage.tsx - Quote search → Quote validation: validates
src/QuoteSearchPage.tsx - Policy rating → Commercial rating: rates commercial
- Policy rating → Billing rules: uses payment plans
src/lib/billing.ts - Customer management → Portal state: reads and updates
src/pages/CustomerPages.tsx - Policy servicing → Portal state: reads and updates
src/pages/PolicyPage.tsx - Policy servicing → Endorsement rules: uses
src/pages/PolicyPage.tsx - Policy servicing → Billing rules: uses
src/pages/PolicyPage.tsx - Policy servicing → Document generation: generates documents
src/pages/PolicyPage.tsx - Endorsements → Portal state: reads and updates
src/pages/EndorsePage.tsx - Endorsements → Endorsement rules: uses
src/pages/EndorsePage.tsx - Endorsements → Policy rating: rates changes
src/pages/EndorsePage.tsx - Endorsements → Document generation: generates documents
src/pages/EndorsePage.tsx - Claims → Portal state: reads and updates
src/pages/ClaimsPages.tsx - Claims → Quote validation: validates
src/pages/ClaimsPages.tsx - Billing workflows → Portal state: reads and updates
src/pages/BillingWorkflows.tsx - Billing workflows → Billing rules: uses
src/pages/BillingWorkflows.tsx - Billing workflows → Document generation: generates documents
src/pages/BillingWorkflows.tsx - Billing overview → Portal state: reads
src/pages/BillingPages.tsx - Billing overview → Billing rules: uses
src/pages/BillingPages.tsx - Work queue → Work queue rules: uses
src/data/workqueue.ts - Portal state → Demo data: loads
src/data/store.tsx