How spectorharvey147/site-connect works
ClaimFlow is a role-based expense-claim and accounting application. Users authenticate, submit claims with expenses and attachments, and claims proceed through role-specific approval and accounts processing toward SAP/accounting and payment workflows. The README also identifies vendor GST verification, duplicate detection, attachment/PDF handling, and approval identity limits as product concerns. The graph includes documented major capabilities, but several views and backend functions were not sampled; their internal calls are therefore omitted where evidence is unavailable.
Main entry points: App.tsx App routing · claims-api.ts Claim workflows · ApprovalView.tsx Claim approvals · AccountsProcessingView.tsx Accounts processing
Components 23
Application and identity
- App routing
src/App.tsx - Role workspace
src/pages/Index.tsx - Login interface
src/components/LoginPage.tsx - Session context
src/contexts/AuthContext.tsx - Authentication service
src/lib/auth.ts
Claims and approvals
- Claim submission
src/components/views/SubmitClaimView.tsx - Claim workflows
src/lib/claims-api.ts - Claim approvals
src/components/views/ApprovalView.tsx - Email approval
src/pages/ClaimAction.tsx - Expense approval editor
src/components/views/ExpenseApprovalEditor.tsx - Approval timeline
src/components/views/ClaimApprovalTimeline.tsx - Attachment preview
src/components/views/AttachmentPreview.tsx - Claim history
src/components/views/ClaimHistoryView.tsx
Accounting operations
- Accounts processing
src/components/views/AccountsProcessingView.tsx - Accounting services
src/lib/accounting-api.ts - SAP journal
src/lib/sap-journal.ts - Accounting setup
src/components/views/AccountingSetupView.tsx - Payment voucher
src/components/views/PaymentVoucherView.tsx
Backend and files
- Supabase client
src/integrations/supabase/client.ts - Supabase services
- Storage access function
supabase/functions/storage-access/index.ts - Email notifications
supabase/functions/send-notification/index.ts
Other components
- Claim user
Connections 30
- Claim user → App routing: opens
- App routing → Role workspace: routes to
src/App.tsx - Role workspace → Login interface: shows when signed out
src/pages/Index.tsx - Role workspace → Session context: reads session
src/pages/Index.tsx - Session context → Authentication service: calls
src/contexts/AuthContext.tsx - Authentication service → Supabase client: uses
src/lib/auth.ts - Login interface → Authentication service: requests reset
src/components/LoginPage.tsx - App routing → Claim submission: routes to
src/App.tsx - App routing → Claim history: routes to
src/App.tsx - App routing → Claim approvals: routes to
src/App.tsx - App routing → Accounts processing: routes to
src/App.tsx - App routing → Accounting setup: routes to
src/App.tsx - App routing → Payment voucher: routes to
src/App.tsx - Claim submission → Claim workflows: submits claims
src/lib/claims-api.ts - Claim workflows → Supabase client: queries
src/lib/claims-api.ts - Claim workflows → Accounting services: resolves work
src/lib/claims-api.ts - Claim approvals → Claim workflows: uses workflows
src/components/views/ApprovalView.tsx - Claim approvals → Expense approval editor: renders
src/components/views/ApprovalView.tsx - Claim approvals → Approval timeline: renders
src/components/views/ApprovalView.tsx - Claim approvals → Attachment preview: renders
src/components/views/ApprovalView.tsx - Email approval → Claim workflows: approves claims
src/pages/ClaimAction.tsx - Email approval → Expense approval editor: renders
src/pages/ClaimAction.tsx - Email approval → Attachment preview: renders
src/pages/ClaimAction.tsx - Accounts processing → Claim workflows: uses claim data
src/components/views/AccountsProcessingView.tsx - Accounts processing → Accounting services: uses accounting services
src/components/views/AccountsProcessingView.tsx - Accounts processing → SAP journal: uses journal logic
src/components/views/AccountsProcessingView.tsx - Supabase client → Supabase services: queries and stores
src/integrations/supabase/client.ts - Supabase client → Storage access function: dispatches storage requests
src/integrations/supabase/client.ts - Storage access function → Supabase services: accesses storage
- Email notifications → Supabase services: uses backend