How avnipahal624/polaris_ works
POLARIS is an Antarctic expedition-operations command center. Visitors enter through the landing page, authenticate with email OTP or as a guest, then reach the protected dashboard to monitor and manage field operations. The repository also contains distinct mapping, safety, intelligence, offline-sync, and HomeLink capabilities, backed by Convex authentication and operational data functions. The route and auth relationships are visible in the entry-point and auth excerpts; most operational UI and backend modules were not sampled, so their connections are left unverified rather than inferred.
Main entry points: Dashboard.tsx Operations dashboard · lib.ts Backend core · main.tsx App routes · RequireAuth.tsx Route guard
Components 23
Access and routing
- App routes
main.tsx - Landing page
pages/Landing.tsx - Sign-in page
pages/Auth.tsx - Route guard
components/RequireAuth.tsx - Auth hook
hooks/use-auth.ts
Operations workspace
- Operations dashboard
pages/Dashboard.tsx - Operator console
components/operator-console.tsx - Module views
components/module-views.tsx - HomeLink views
components/homelink-views.tsx
Field and safety
- Antarctic map
components/antarctic-map.tsx - Field mode
components/field-mode.tsx - Safety views
components/safety-views.tsx - Offline sync
components/offline-sync.tsx
Operational data
- Geospatial logic
lib/polar-geo.ts - Intelligence logic
lib/polar-intel.ts - Operational data
lib/polar-data.ts - Local data helpers
lib/polar-db.ts
Convex backend
- Auth providers
convex/auth.ts - Backend core
convex/polaris/lib.ts - Operational queries
convex/polaris/queries.ts - Operational mutations
convex/polaris/mutations.ts - Data schema
convex/schema.ts
Other components
- Operator
Connections 24
- Operator → Landing page: opens
- Operator → Sign-in page: signs in
- App routes → Landing page: routes to
main.tsx - App routes → Sign-in page: routes to
main.tsx - App routes → Route guard: guards route
main.tsx - Route guard → Operations dashboard: renders when authorized
main.tsx - Route guard → Auth hook: checks auth
components/RequireAuth.tsx - Sign-in page → Auth hook: signs in through
pages/Auth.tsx - Auth hook → Auth providers: uses auth service
- Operations dashboard → Operator console: renders
- Operations dashboard → Module views: renders
- Operations dashboard → HomeLink views: renders
- Operations dashboard → Antarctic map: renders
- Operations dashboard → Field mode: renders
- Operations dashboard → Safety views: renders
- Operations dashboard → Offline sync: uses
- Backend core → Local data helpers: imports helpers
convex/polaris/lib.ts - Backend core → Geospatial logic: calls geospatial logic
convex/polaris/lib.ts - Backend core → Operational queries: supports
- Backend core → Operational mutations: supports
- Operational mutations → Data schema: writes records
- Operational queries → Data schema: reads records
- Operational data → Intelligence logic: uses
- Operational data → Local data helpers: uses