How dhinesh25-12/ui-repo works
This is an Angular insurance-policy management portal for customers, agents, claims officers, and administrators. Users authenticate, enter a role-aware application shell, and use workflows for products and policies, claims, payments, customer records, reports, and account administration. Domain services call a companion REST API; shared models and UI utilities support those workflows. The README documents the product areas and API contract, while only selected feature/service sources were excerpted, so unverified feature-to-service links are omitted.
Main entry points: shell.ts Application shell · main.ts Application bootstrap · app.config.ts Router and HTTP setup · app.routes.ts Role-aware routes
Components 27
Application access
- Application bootstrap
src/main.ts - Router and HTTP setup
src/app/app.config.ts - Role-aware routes
src/app/app.routes.ts - Login and registration
src/app/features/auth - Authentication and role guards
src/app/core/guards - HTTP interceptors
src/app/core/interceptors - Application shell
src/app/layout/shell/shell.ts - Root application
src/app/app.ts
Insurance workflows
- Product discovery and management
src/app/features/products - Product service
src/app/core/services/product.service.ts - Policy purchase and lifecycle
src/app/features/policies - Policy service
src/app/core/services/policy.service.ts - Claim filing and review
src/app/features/claims - Claim service
src/app/core/services/claim.service.ts - Premium payments and history
src/app/features/payments - Payment service
src/app/core/services/payment.service.ts
Operations and insights
- Customer records
src/app/features/customers - Dashboard
src/app/features/dashboard/dashboard.ts - Customer and admin reports
src/app/features/reports - Users and platform settings
src/app/features/admin - Profile management
src/app/features/profile/profile.ts - Other domain services
src/app/core/services
Shared application foundation
- Domain models
src/app/core/models - Shared UI and utilities
src/app/shared - Notifications
src/app/core/services/notification.service.ts
Other components
- Portal user
- Backend REST API
Connections 29
- Portal user → Application bootstrap: opens portal
README.md - Application bootstrap → Root application: bootstraps
src/main.ts - Application bootstrap → Router and HTTP setup: configures
src/main.ts - Router and HTTP setup → Role-aware routes: provides routes
src/app/app.config.ts - Router and HTTP setup → HTTP interceptors: registers
src/app/app.config.ts - Role-aware routes → Authentication and role guards: protects routes
README.md - Portal user → Login and registration: signs in
README.md - Login and registration → Backend REST API: authenticates
README.md - HTTP interceptors → Backend REST API: authorizes requests
README.md - Role-aware routes → Application shell: enters shell
- Application shell → Product discovery and management: navigates
- Application shell → Policy purchase and lifecycle: navigates
- Application shell → Claim filing and review: navigates
- Application shell → Premium payments and history: navigates
- Product discovery and management → Product service: uses service
- Product service → Backend REST API: requests products
src/app/core/services/product.service.ts - Policy purchase and lifecycle → Policy service: uses service
- Policy service → Backend REST API: manages policies
src/app/core/services/policy.service.ts - Claim filing and review → Claim service: uses service
- Claim service → Backend REST API: files and reviews claims
src/app/core/services/claim.service.ts - Premium payments and history → Payment service: uses service
src/app/features/payments/payment-history/payment-history.ts - Payment service → Backend REST API: handles payments
README.md - Dashboard → Other domain services: loads summary
src/app/features/dashboard/dashboard.ts - Other domain services → Backend REST API: requests domain data
README.md - Profile management → Other domain services: loads profile
src/app/features/profile/profile.ts - Profile management → Notifications: reports updates
src/app/features/profile/profile.ts - Premium payments and history → Shared UI and utilities: downloads documents
src/app/features/payments/payment-history/payment-history.ts - Dashboard → Shared UI and utilities: renders insights
src/app/features/dashboard/dashboard.ts - Backend REST API → Domain models: returns domain data