How vianahub-pt/vianahub.global.gerit.web works
VianaHub Gerit is a multi-tenant operations and administration web application. Users sign in, establish an authenticated session and active tenant, then use workspace modules to manage clients and operational resources or view dashboards; platform administrators have separate tenant, plan, subscription, and job areas. The sampled code confirms session persistence, tenant-scoped HTTP requests, and client-detail responsibilities. The README gives no capability detail, and most feature modules were not sampled, so their internal links are omitted or marked unverified rather than inferred.
Main entry points: auth-context.tsx Auth session · clients-page.tsx Client management · local-storage.ts Browser storage · http-client.ts HTTP client
Components 23
Identity and tenancy
- Login screen
platform/auth/login-screen.tsx - Auth session
platform/auth/auth-context.tsx - Auth endpoints
app/api/auth/login/route.ts - Active tenant
platform/tenant/tenant-context.tsx - User preferences
domains/identity/preferences/user-preferences-page.tsx
Workspace operations
- Dashboard
domains/workspace/dashboard/gerit-dashboard-home.tsx - Client management
domains/operations/clients/clients-page.tsx - Client details
domains/operations/clients/clients-details.tsx - Client creation
domains/operations/clients/clients-create.tsx - Equipment types
domains/operations/equipment-types/equipment-types-page.tsx - Actions
domains/operations/actions/actions-page.tsx - Teams
domains/operations/teams/teams-page.tsx - Users and roles
domains/operations/users/users-page.tsx - Vehicles
domains/operations/vehicles/vehicles-page.tsx - Catalogs
domains/catalogs/index.ts
Platform administration
- Tenant administration
domains/platform-admin/tenants/index.ts - Plans and subscriptions
domains/platform-admin/subscriptions/index.ts - Platform jobs
domains/platform-admin/jobs/index.ts
Application platform
- Browser storage
platform/storage/local-storage.ts - HTTP client
platform/api/http/http-client.ts - Gerit API proxy
app/api/gerit/[...path]/route.ts - Localization
platform/i18n/translation-context.tsx
Other components
- User
Connections 23
- User → Login screen: signs in
- Login screen → Auth session: starts session
- Auth session → Auth endpoints: requests login
platform/auth/auth-context.tsx - Auth session → Browser storage: persists session
platform/auth/auth-context.tsx - Active tenant → Browser storage: stores selection
platform/tenant/tenant-context.tsx - HTTP client → Auth session: uses authenticated fetch
platform/api/http/http-client.ts - HTTP client → Active tenant: adds tenant header
platform/api/http/http-client.ts - Auth endpoints → Gerit API proxy: proxies upstream
- User → Dashboard: opens workspace
- User → Client management: manages clients
- Client management → Client details: opens client
- Client management → Client creation: creates client
- User → Equipment types: manages equipment types
- User → Actions: manages actions
- User → Teams: manages teams
- User → Users and roles: manages access
- User → Vehicles: manages vehicles
- User → Catalogs: views catalogs
- User → User preferences: sets preferences
- User → Tenant administration: administers tenants
- User → Plans and subscriptions: administers plans
- User → Platform jobs: views jobs
- Localization → Browser storage: reads language setting
platform/i18n/translation-context.tsx