How iain-crowe/atlas-web works
Atlas is a browser-based homelab control console. Users sign in, then inspect host and managed-service status, select a service for details or controls, and view network or historical telemetry. The React app coordinates polling and API requests; dedicated panels render service-specific telemetry and charts. The README is the default Vite template and documents no additional Atlas capabilities, so this map reflects the supplied source index and excerpts; backend behavior is not shown.
Main entry points: App.tsx Atlas App · api.tsx API Client · ServiceDetail.tsx Service Detail · useAuth.ts Authentication
Components 26
Console
- Atlas App
src/App.tsx - Login View
src/LoginView.tsx - Authentication
src/hooks/useAuth.ts - API Client
src/api.tsx
Service Management
- Service Polling
src/hooks/useServices.ts - Polling Hook
src/hooks/usePolling.ts - Service Cards
src/components/ServiceCard.tsx - Service Detail
src/components/ServiceDetail.tsx - Service Identity
src/components/ServiceIdentity.tsx - Status Mapping
src/utils/serviceStatus.ts - Action Confirmation
src/components/ConfirmServiceAction.tsx
Telemetry
- Host Status
src/hooks/useSystemStatus.ts - Minecraft Status
src/hooks/useMinecraftStatus.ts - History Fetching
src/hooks/useHistory.ts - History Charts
src/components/HistoryPanel.tsx - Media Panel
src/components/MediaPanel.tsx - Network Panel
src/components/NetworkPanel.tsx - Pi-hole Panel
src/components/PiHolePanel.tsx - Jellyfin Panel
src/components/JellyfinPanel.tsx - System Overview
src/components/SystemOverview.tsx - Runtime Summary
src/components/RuntimeSummary.tsx
Shared UI
- Freshness Indicator
src/components/Freshness.tsx - Status Banner
src/components/StatusBanner.tsx - Clock Hook
src/hooks/useNow.ts
Other components
- Operator
- Atlas API
Connections 39
- Operator → Atlas App: uses console
src/App.tsx - Atlas App → Authentication: checks session
src/App.tsx - Atlas App → Login View: shows sign-in
src/App.tsx - Login View → Authentication: submits credentials
src/LoginView.tsx - Authentication → API Client: checks session
src/hooks/useAuth.ts - Authentication → Atlas API: authenticates
src/hooks/useAuth.ts - API Client → Atlas API: sends API requests
src/api.tsx - Atlas App → Service Polling: loads services
src/App.tsx - Atlas App → Host Status: loads host status
src/App.tsx - Atlas App → Minecraft Status: loads game status
src/App.tsx - Service Polling → Polling Hook: polls services
src/hooks/useServices.ts - Host Status → Polling Hook: polls status
src/hooks/useSystemStatus.ts - Minecraft Status → API Client: fetches telemetry
src/hooks/useMinecraftStatus.ts - Polling Hook → API Client: fetches data
src/hooks/usePolling.ts - Atlas App → Service Cards: renders services
src/App.tsx - Atlas App → Service Detail: renders selection
src/App.tsx - Atlas App → Action Confirmation: confirms action
src/App.tsx - Atlas App → API Client: posts service action
src/App.tsx - Atlas App → Media Panel: renders media view
src/App.tsx - Atlas App → Network Panel: renders network view
src/App.tsx - Atlas App → History Charts: renders host history
src/App.tsx - Atlas App → System Overview: renders overview
src/App.tsx - Atlas App → Runtime Summary: renders summary
src/App.tsx - Service Detail → Service Identity: renders identity
src/components/ServiceDetail.tsx - Service Detail → Minecraft Status: displays status
src/App.tsx - Service Detail → History Charts: renders game history
src/components/ServiceDetail.tsx - Service Detail → Jellyfin Panel: renders service panel
src/components/ServiceDetail.tsx - Service Detail → Pi-hole Panel: renders service panel
src/components/ServiceDetail.tsx - Service Cards → Status Mapping: maps runtime state
src/components/ServiceCard.tsx - Service Identity → Status Mapping: labels runtime state
src/components/ServiceIdentity.tsx - History Charts → History Fetching: loads history
src/components/HistoryPanel.tsx - History Fetching → API Client: fetches history
src/hooks/useHistory.ts - Media Panel → API Client: fetches telemetry
src/components/MediaPanel.tsx - Network Panel → API Client: fetches telemetry
src/components/NetworkPanel.tsx - Pi-hole Panel → API Client: fetches telemetry
src/components/PiHolePanel.tsx - Jellyfin Panel → API Client: fetches telemetry
src/components/JellyfinPanel.tsx - System Overview → Status Banner: shows status
src/components/SystemOverview.tsx - History Charts → Freshness Indicator: shows freshness
src/components/HistoryPanel.tsx - Freshness Indicator → Clock Hook: reads current time
src/components/Freshness.tsx