How ibadasadov/task-manager works
This is a React/Redux organization and task-management app with role-based access. Users register or sign in, then work in a dashboard to manage organizations, staff, and tasks; task creation loads organizations and their users before submitting. The UI calls service modules backed by a shared Axios client and a mock JSON-server API. The graph includes the documented user, organization, and task capabilities. Some page and integration wiring is based on the SOURCE INDEX or README rather than inspected implementation excerpts.
Main entry points: index.tsx Route registry · organizationService.ts Organization service · userServices.ts User service · auth Sign in and register
Components 19
Access and dashboard
- Application entry
src/App.tsx - Route registry
src/routes/index.tsx - Sign in and register
src/pages/auth - Role guards
src/components/auth/ProtectedRoute.tsx - Dashboard layout
src/components/layouts/Layout.tsx - Dashboard menu
src/components/layouts/Menu.tsx
Organizations and users
- Organization management
src/pages/organizations/OrganizationListPage.tsx - User management
src/pages/users
Task management
- Create task
src/pages/tasks/TaskCreatePage.tsx - List tasks
src/pages/tasks/TaskListPage.tsx
Application data and API
- Authentication state
src/store/authSlice.ts - Session storage helper
src/helpers/localstorage.ts - Organization service
src/services/organizationService.ts - User service
src/services/userServices.ts - Task service
src/services/taskService.ts - HTTP client
src/helpers/request.ts - JSON-server API
- Mock data
db.json
Other components
- App user
Connections 29
- App user → Route registry: uses routes
src/routes/index.tsx - Application entry → Route registry: renders router
src/App.tsx - Application entry → Authentication state: loads session user
src/App.tsx - Application entry → Session storage helper: reads session
src/App.tsx - Route registry → Sign in and register: routes to
src/routes/index.tsx - Route registry → Role guards: protects routes
src/routes/index.tsx - Route registry → Dashboard layout: opens dashboard
src/routes/index.tsx - Route registry → Organization management: routes to
src/routes/index.tsx - Route registry → User management: routes to
src/routes/index.tsx - Route registry → Create task: routes to
src/routes/index.tsx - Route registry → List tasks: routes to
src/routes/index.tsx - Dashboard layout → Dashboard menu: renders menu
src/components/layouts/Layout.tsx - Sign in and register → User service: signs in
src/pages/auth/LoginPage.tsx - Sign in and register → Organization service: registers organization
src/pages/auth/RegisterPage.tsx - Sign in and register → Authentication state: updates authentication
src/pages/auth/LoginPage.tsx - User management → User service: manages users
src/pages/users/UserCreatePage.tsx - User management → Organization service: loads organizations
src/pages/users/UserCreatePage.tsx - Organization management → Organization service: lists organizations
src/pages/organizations/OrganizationListPage.tsx - Create task → Organization service: loads organizations
src/pages/tasks/TaskCreatePage.tsx - Create task → User service: loads assignees
src/pages/tasks/TaskCreatePage.tsx - Create task → Task service: creates task
src/pages/tasks/TaskCreatePage.tsx - List tasks → Task service: loads tasks
src/pages/tasks/TaskListPage.tsx - Authentication state → User service: fetches current user
src/store/authSlice.ts - Authentication state → Session storage helper: initializes from
src/store/authSlice.ts - Organization service → HTTP client: sends API requests
src/services/organizationService.ts - User service → HTTP client: sends API requests
src/services/userServices.ts - Task service → HTTP client: sends API requests
src/services/taskService.ts - HTTP client → JSON-server API: calls API
README.md - JSON-server API → Mock data: serves mock data
README.md