How lanzmallorca14/aquareg2 works
AquaReg is a vessel-registration and maritime permit application with public registration/verification and authenticated admin and inspector portals. The principal workflow runs from registration and supporting documents, through inspection and permit issuance, to permit verification; the app also includes renewals, records, analytics, account administration, and offline persistence/sync. Routing and the sampled context establish the main structure; unsampled feature-page internals are represented by their exact paths, and edges are limited to documented routing or visible references.
Main entry points: routes.tsx Route dispatch · adminlayout.tsx Admin workspace · AquaRegCONTEXT.tsx Shared registry state · PermitGeneration.tsx Permit generation
Components 26
App entry and access
- Route dispatch
src/app/routes.tsx - Application bootstrap
src/main.tsx - Sign-in and registration
src/app/login.tsx - Public landing
src/app/heropage.tsx
Vessel registry
- Vessel registration
src/app/pages/home/NewRegistration.tsx - Permit renewal
src/app/pages/home/renewal.tsx - Permit verification
src/app/pages/VerifyPermit.tsx - QR permit lookup
src/app/pages/admin/qr_permit.tsx
Admin and inspections
- Admin workspace
src/app/components/adminlayout.tsx - Admin dashboard
src/app/pages/admin/Dashboard.tsx - Audit queue
src/app/pages/admin/AuditQueuePage.tsx - Permit generation
src/app/pages/admin/PermitGeneration.tsx - Analytics reports
src/app/pages/admin/Analytics.tsx - Registry records
src/app/pages/admin/records.tsx - Account administration
src/app/pages/admin/accounts.tsx - Inspector workspace
src/app/components/inspectorlayout.tsx - Inspector dashboard
src/app/pages/inspector/inspectordashboard.tsx - Vessel inspection
src/app/pages/inspector/InspectionCOI.tsx - Inspection records
src/app/pages/inspector/tally.tsx
Offline data
- Offline database
src/offline/db.tsx - Offline synchronization
src/offline/sync.tsx - Sync queue
src/offline/queue.tsx
Shared application state
- Shared registry state
src/app/components/context/AquaRegCONTEXT.tsx - Supabase client
src/supabaseClient.tsx
Other components
- Applicant or staff
- Supabase services
Connections 34
- Applicant or staff → Route dispatch: navigates
src/app/routes.tsx - Application bootstrap → Route dispatch: mounts routes
src/main.tsx - Route dispatch → Public landing: routes to
src/app/routes.tsx - Route dispatch → Sign-in and registration: routes to
src/app/routes.tsx - Route dispatch → Vessel registration: routes to
src/app/routes.tsx - Route dispatch → Permit renewal: routes to
src/app/routes.tsx - Route dispatch → Permit verification: routes to
src/app/routes.tsx - Route dispatch → QR permit lookup: routes to
src/app/routes.tsx - Route dispatch → Admin workspace: routes to
src/app/routes.tsx - Route dispatch → Inspector workspace: routes to
src/app/routes.tsx - Admin workspace → Admin dashboard: renders
src/app/routes.tsx - Admin workspace → Audit queue: renders
src/app/routes.tsx - Admin workspace → Permit generation: renders
src/app/routes.tsx - Admin workspace → Analytics reports: renders
src/app/routes.tsx - Admin workspace → Registry records: renders
src/app/routes.tsx - Admin workspace → Account administration: renders
src/app/routes.tsx - Admin workspace → Permit renewal: renders
src/app/routes.tsx - Admin workspace → Vessel inspection: renders
src/app/routes.tsx - Inspector workspace → Inspector dashboard: renders
src/app/routes.tsx - Inspector workspace → Vessel inspection: renders
src/app/routes.tsx - Inspector workspace → Inspection records: renders
src/app/routes.tsx - Application bootstrap → Shared registry state: provides context
src/main.tsx - Application bootstrap → Supabase client: configures
src/main.tsx - Supabase client → Supabase services: connects
src/supabaseClient.tsx - Shared registry state → Offline database: reads and writes
src/app/components/context/AquaRegCONTEXT.tsx - Shared registry state → Offline synchronization: loads
src/app/components/context/AquaRegCONTEXT.tsx - Offline synchronization → Offline database: uses
src/offline/sync.tsx - Vessel registration → Shared registry state: adds vessels
src/app/pages/home/NewRegistration.tsx - Vessel registration → Offline database: saves images
src/app/pages/home/NewRegistration.tsx - Permit generation → Shared registry state: updates vessel
src/app/pages/admin/PermitGeneration.tsx - Permit generation → Supabase client: queries permits
src/app/pages/admin/PermitGeneration.tsx - Permit generation → Offline database: caches permits
src/app/pages/admin/PermitGeneration.tsx - Permit verification → Shared registry state: uses registry context
src/app/pages/VerifyPermit.tsx - Sign-in and registration → Shared registry state: uses auth context
src/app/login.tsx