How sarai1209/app_movil_sentinel_face works
Sentinel Face is a mobile app for biometric access control, with administrator-facing access-event monitoring and system management. The documented login-to-role-based navigation is only partly reflected in the supplied tree: it contains admin routes, but no user tab routes or face-scan screen, so those workflow stages are not represented as implemented components. Admin screens call the API and use shared session, settings, and alert state. Several screen implementations were not excerpted; their documented capabilities are preserved, but uncertain calls are omitted.
Main entry points: api.ts Backend API client · authStore.ts Auth session · alerts.tsx Alert center · users.tsx User and role management
Components 22
Identity and session
- Login
app/index.tsx - Auth session
store/authStore.ts - Token validation
utils/jwtUtils.ts - Admin route guard
app/(admin)/_layout.tsx
Admin operations
- Dashboard
app/(admin)/dashboard.tsx - User and role management
app/(admin)/users.tsx - Employee registration
app/(admin)/register.tsx - Face gallery
app/(admin)/gallery.tsx - Alert center
app/(admin)/alerts.tsx - Alert details
app/(admin)/alert-detail.tsx - Audit records
app/(admin)/audit.tsx - Access history
app/(admin)/history.tsx - System settings
app/(admin)/settings.tsx - Admin profile
app/(admin)/profile.tsx
API and shared state
- Backend API client
services/api.ts - Alert state
store/alertStore.ts - Preference state
store/settingsStore.ts - Domain types
types/domain.ts
Shared interface
- Theme colors
constants/theme.ts - Custom alert dialog
components/ui/CustomAlert.tsx
Other components
- Administrator
- Backend service
Connections 24
- Administrator → Login: signs in
README.md - Login → Auth session: submits credentials
app/index.tsx - Auth session → Backend API client: requests login
store/authStore.ts - Auth session → Token validation: checks expiry
store/authStore.ts - Admin route guard → Auth session: checks role
app/(admin)/_layout.tsx - Auth session → Backend API client: refreshes token
services/api.ts - Backend API client → Auth session: updates session
services/api.ts - Backend API client → Backend service: sends requests
services/api.ts - Dashboard → Backend API client: fetches dashboard data
app/(admin)/dashboard.tsx - User and role management → Backend API client: manages users and roles
app/(admin)/users.tsx - User and role management → Domain types: uses user types
app/(admin)/users.tsx - Employee registration → Backend API client: registers employees
app/(admin)/register.tsx - Face gallery → Backend API client: loads gallery data
app/(admin)/gallery.tsx - Alert center → Backend API client: loads and resolves alerts
app/(admin)/alerts.tsx - Alert center → Alert state: raises notices
app/(admin)/alerts.tsx - Alert center → Domain types: uses alert types
app/(admin)/alerts.tsx - Alert details → Backend API client: loads alert details
app/(admin)/alert-detail.tsx - Audit records → Backend API client: loads audit records
app/(admin)/audit.tsx - Access history → Backend API client: loads access logs
app/(admin)/history.tsx - System settings → Backend API client: updates system settings
app/(admin)/settings.tsx - System settings → Preference state: reads preferences
app/(admin)/settings.tsx - Admin profile → Auth session: reads session
app/(admin)/profile.tsx - Theme colors → Preference state: reads dark mode
constants/theme.ts - Custom alert dialog → Alert state: displays alert state
components/ui/CustomAlert.tsx