How holy-auto/ledra works
Ledra is a multitenant SaaS for automotive repair, bodywork, coating, and PPF businesses, with staff mobile/watch clients and insurer, agent, manufacturer, and customer-facing workflows. A central shop workflow progresses from job completion and photo-backed certificate issuance through customer sign-off, payment, and integrity anchoring. The graph also preserves the README’s distinct parts-integrity, AI, enterprise-sync, LINE, and billing capabilities. Evidence is limited to the supplied README and sampled excerpts; several major subsystems are represented by their documented directory paths rather than inspected implementation files.
Main entry points: admin.ts Supabase data · admin Certificates · parts Parts integrity · ingest.ts Tenant data ingest
Components 18
Shop operations
- Job workflow
src/app/admin - Certificates
src/app/admin - Customer sign-off
src/lib/signoff/state.ts - Invoices and forms
src/app/api/admin/documents/route.ts
Evidence and integrity
- Parts integrity
src/lib/parts - AI automation
src/lib/ai/automation - Blockchain anchoring
src/lib/anchoring/providers/polygon.ts - Device event intake
src/lib/edge/eventIngestion.ts
Platform services
- Tenant data ingest
src/lib/api/ingest.ts - LINE self-service
src/lib/line/flow - Subscriptions
src/app/api/stripe/webhook/route.ts - Supabase data
src/lib/supabase/admin.ts
Staff clients
- Mobile app
apps/mobile/src/app - Apple Watch app
apps/watch/LedraWatchApp
Other components
- Shop staff
- Insurer users
- Customers
- Shop operators
Connections 18
- Shop staff → Job workflow: manage jobs
- Job workflow → Certificates: issue certificates
- Certificates → Customer sign-off: request sign-off
- Customer sign-off → Invoices and forms: determine payment
- Certificates → Blockchain anchoring: anchor records
- Parts integrity → AI automation: inspect evidence
- Parts integrity → Blockchain anchoring: anchor confirmation
- Customers → Parts integrity: confirm by LINE
- Device event intake → Blockchain anchoring: anchor hash
src/lib/edge/eventIngestion.ts - Device event intake → Supabase data: store events
src/lib/edge/eventIngestion.ts - Tenant data ingest → Supabase data: upsert tenant data
src/lib/api/ingest.ts - Tenant data ingest → Supabase data: emit webhook events
src/lib/api/ingest.ts - Insurer users → AI automation: request shop matching
- LINE self-service → Customers: support reservation changes
- Subscriptions → Supabase data: sync subscription state
src/app/api/stripe/webhook/route.ts - Shop staff → Mobile app: use in field
- Shop staff → Apple Watch app: check work
- Shop operators → Tenant data ingest: push business records