How paing-tech/fyp-26-s2-34-smarttaskallocationapplication works
Smart Task Allocation is a multi-role workforce and task-management web application built with Next.js, with Supabase-backed APIs. Its central domain covers task creation and assignment, employee task views, workforce and organization administration, attendance and leave, analytics, and AI-agent features. The tree also shows workspace collaboration and platform support/content management. The supplied excerpts establish several API-to-storage and helper calls, but do not show page-to-API wiring; those UI relationships are therefore omitted rather than inferred.
Main entry points: tasks/route.js Task Management · employee-tasks/route.js Employee Tasks · serverAuth.js Server Auth · supabaseAdmin.js Supabase Admin Client
Components 25
Tasks and Workspaces
- Task Management
smart-task-allocation/src/app/api/tasks/route.js - Employee Tasks
smart-task-allocation/src/app/api/employee-tasks/route.js - Task Groups
smart-task-allocation/src/app/api/task-groups/route.js - Task Attachments
smart-task-allocation/src/app/api/task-attachments/route.js - Workspaces
smart-task-allocation/src/app/api/workspaces/route.js
Workforce and Organization
- Account Management
smart-task-allocation/src/app/api/accounts/route.js - Employee Directory
smart-task-allocation/src/app/api/employees/route.js - Organization Data
smart-task-allocation/src/app/api/my-organization/route.js - Organization Chart
smart-task-allocation/src/app/api/org-chart/route.js - User Profile
smart-task-allocation/src/app/api/my-profile/route.js - Leave Requests
smart-task-allocation/src/app/api/leave-requests/route.js - Attendance
smart-task-allocation/src/app/api/attendance/route.js - Allocation Insights
smart-task-allocation/src/app/api/insights/allocation-efficiency/route.js
AI Agents
- Agent API
smart-task-allocation/src/app/api/agent/route.js - Plan Generation
smart-task-allocation/src/app/api/agent/generate-plan/route.js - Agent Knowledge
smart-task-allocation/src/app/api/agent/knowledge/route.js
Platform and Support
- Support Inquiries
smart-task-allocation/src/app/api/support-inquiries/route.js - Marketing Content
smart-task-allocation/src/components/MarketingContentManager.js
API Runtime
- Server Auth
smart-task-allocation/src/lib/serverAuth.js - Supabase Admin Client
smart-task-allocation/src/lib/supabaseAdmin.js - Task Status Sync
smart-task-allocation/src/lib/taskStatusSync.js - Task Group Helper
smart-task-allocation/src/lib/taskGroups.js - Agent Notifications
smart-task-allocation/src/lib/agentNotifications.js
Other components
- User
- Supabase
Connections 21
- Task Management → Server Auth: authenticates
smart-task-allocation/src/app/api/tasks/route.js - Task Management → Supabase Admin Client: creates client
smart-task-allocation/src/app/api/tasks/route.js - Task Management → Task Status Sync: syncs status
smart-task-allocation/src/app/api/tasks/route.js - Task Management → Task Group Helper: ensures group
smart-task-allocation/src/app/api/tasks/route.js - Task Management → Agent Notifications: notifies owner
smart-task-allocation/src/app/api/tasks/route.js - Employee Tasks → Server Auth: authenticates
smart-task-allocation/src/app/api/employee-tasks/route.js - Employee Tasks → Supabase Admin Client: creates client
smart-task-allocation/src/app/api/employee-tasks/route.js - Employee Tasks → Task Status Sync: syncs status
smart-task-allocation/src/app/api/employee-tasks/route.js - Support Inquiries → Server Auth: checks access
smart-task-allocation/src/app/api/support-inquiries/route.js - Support Inquiries → Supabase Admin Client: creates client
smart-task-allocation/src/app/api/support-inquiries/route.js - Organization Chart → Organization Data: loads account data
smart-task-allocation/src/app/api/org-chart/route.js - Marketing Content → Supabase: loads content
- Task Management → Supabase: reads and writes
smart-task-allocation/src/app/api/tasks/route.js - Employee Tasks → Supabase: reads tasks
smart-task-allocation/src/app/api/employee-tasks/route.js - Account Management → Supabase: reads and writes
smart-task-allocation/src/app/api/accounts/route.js - Employee Directory → Supabase: reads workforce data
smart-task-allocation/src/app/api/employees/route.js - Organization Data → Supabase: reads organization data
smart-task-allocation/src/app/api/my-organization/route.js - Organization Chart → Supabase: reads and updates
smart-task-allocation/src/app/api/org-chart/route.js - User Profile → Supabase: updates profile data
smart-task-allocation/src/app/api/my-profile/route.js - Task Attachments → Supabase: manages attachments
smart-task-allocation/src/app/api/task-attachments/route.js - Workspaces → Supabase: manages workspaces
smart-task-allocation/src/app/api/workspaces/route.js