How abdulsami12166/cybersave-frontend works
This repository is a React/TypeScript administrative console for CyberSave operations, rather than a backend service. An administrator enters through the routed app, authenticates, and uses operational pages to manage applications, services, users, transactions, and support; the pages fetch backend data through shared API configuration. The tree and source index document additional analytics, audit, operator, notification, and settings areas. Evidence is strongest for routing, authentication/API setup, service and application actions, and socket connectivity; the backend implementation is not present in this repository.
Main entry points: App.tsx Routed app · apiConfig.ts API client · ServiceWizard.tsx Service wizard · Applications.tsx Applications
Components 29
Application shell
- Routed app
src/App.tsx - Admin layout
src/components/Layout.tsx - Sign in
src/pages/Login.tsx - Dashboard
src/components/Dashboard.tsx
Core operations
- User management
src/pages/UserManagement.tsx - User details
src/pages/UserManagementDetail.tsx - Applications
src/pages/Applications.tsx - Application detail
src/pages/ApplicationDetail.tsx - Operator management
src/pages/Operators.tsx - Operator detail
src/pages/OperatorDetail.tsx - Transactions
src/pages/Transactions.tsx - Refunds
src/pages/Refunds.tsx
Service configuration
- Service catalog
src/pages/Services.tsx - Service wizard
src/pages/ServiceWizard.tsx - Simple service editor
src/pages/AddNewService.tsx
Monitoring and support
- Analytics
src/pages/Analytics.tsx - Audit logs
src/pages/AuditLogs.tsx - Support tickets
src/pages/SupportTickets.tsx - Ticket detail
src/pages/SupportTicketDetail.tsx - Resolve ticket
src/pages/SupportTicketResolve.tsx - Notifications
src/pages/Notifications.tsx - Send notification
src/components/SendNotificationModal.tsx - Settings
src/pages/Settings.tsx
Shared runtime
- Authentication state
src/context/AuthContext.tsx - Realtime connection
src/context/SocketContext.tsx - API client
src/utils/apiConfig.ts - Data normalization
src/utils/normalize.ts
Other components
- Administrator
- Backend service
Connections 31
- Administrator → Routed app: uses console
src/App.tsx - Routed app → Authentication state: provides auth
src/App.tsx - Routed app → Realtime connection: provides socket
src/App.tsx - Routed app → Sign in: routes to
src/App.tsx - Routed app → Admin layout: routes through
src/App.tsx - Routed app → Dashboard: routes to
src/App.tsx - Routed app → User management: routes to
src/App.tsx - Routed app → User details: routes to
src/App.tsx - Routed app → Applications: routes to
src/App.tsx - Routed app → Application detail: routes to
src/App.tsx - Routed app → Service catalog: routes to
src/App.tsx - Routed app → Service wizard: routes to
src/App.tsx - Routed app → Operator management: routes to
src/App.tsx - Routed app → Operator detail: routes to
src/App.tsx - Routed app → Transactions: routes to
src/App.tsx - Routed app → Refunds: routes to
src/App.tsx - Routed app → Analytics: routes to
src/App.tsx - Routed app → Audit logs: routes to
src/App.tsx - Routed app → Support tickets: routes to
src/App.tsx - Routed app → Ticket detail: routes to
src/App.tsx - Routed app → Resolve ticket: routes to
src/App.tsx - Routed app → Notifications: routes to
src/App.tsx - Routed app → Settings: routes to
src/App.tsx - Authentication state → API client: fetches profile
src/context/AuthContext.tsx - Applications → API client: fetches and updates
src/pages/Applications.tsx - Service wizard → API client: loads and saves
src/pages/ServiceWizard.tsx - Service wizard → Simple service editor: renders in simple mode
src/pages/ServiceWizard.tsx - Simple service editor → API client: creates service
src/pages/AddNewService.tsx - Send notification → API client: sends notification
src/components/SendNotificationModal.tsx - API client → Backend service: fetches API
src/utils/apiConfig.ts - Realtime connection → Backend service: connects realtime
src/context/SocketContext.tsx