How b20dccn624/base-fe works
Behavior Analysis is a React-based administration app with login and protected navigation to dashboard, device, account, and event-management screens. The main workflow is to enter through login, reach a permission-checked page, then inspect or manage events—including filtering, paging, status changes, create/update/detail dialogs, and spreadsheet import. Redux persists authentication state, while shared layout and notification services support the screens. The README describes run modes, not product behavior; some feature and API implementations were not sampled, so uncertain links are omitted.
Main entry points: App.tsx App Routing · EventList.tsx Event List · index.tsx Route Registry · ProtectedRoute.tsx Protected Routes
Components 18
Application Shell
- App Routing
src/App.tsx - Route Registry
src/routes/index.tsx - Admin Layout
src/components/layout/LayoutPage.tsx
Identity and Access
- Login Screen
src/features/login/LoginPage.tsx - Login Callback
src/features/login/LoginCallback.tsx - Protected Routes
src/routes/ProtectedRoute.tsx - Permission Checks
src/components/Authorized/CheckPermissions.tsx - Auth State
src/features/login/authSlice.ts
Admin Features
- Dashboard
src/features/dashboard - Device Management
src/features/device - Account Management
src/features/account - Event List
src/features/event/EventList.tsx - Event Dialogs
src/features/event/EvenForm.tsx - Event API
src/features/event/api.ts
Shared UI and State
- Persisted Store
src/app/store.ts - Table and Paging
src/common/Table/index.tsx - Notifications
src/hooks/NotificationProvider.tsx
Other components
- Administrator
Connections 19
- Administrator → App Routing: opens
src/App.tsx - App Routing → Login Screen: routes to
src/App.tsx - App Routing → Login Callback: routes to
src/App.tsx - App Routing → Admin Layout: wraps pages
src/App.tsx - App Routing → Protected Routes: protects pages
src/App.tsx - App Routing → Route Registry: uses routes
src/App.tsx - Route Registry → Dashboard: registers
src/routes/index.tsx - Route Registry → Device Management: registers
src/routes/index.tsx - Route Registry → Account Management: registers
src/routes/index.tsx - Admin Layout → Route Registry: uses navigation
src/components/layout/LayoutPage.tsx - Protected Routes → Permission Checks: checks access
- Protected Routes → Persisted Store: reads auth
src/routes/ProtectedRoute.tsx - Persisted Store → Auth State: persists reducer
- Administrator → Event List: manages events
- Event List → Event API: fetches and mutates
src/features/event/EventList.tsx - Event List → Event Dialogs: opens dialogs
src/features/event/EventList.tsx - Event List → Table and Paging: renders results
src/features/event/EventList.tsx - Event List → Notifications: reports upload status
src/features/event/EventList.tsx - Administrator → Login Screen: signs in