How kushal-kn-langoor/ticket-system-fe works
HelpDesk Pro is a project-based support-ticket application. Users authenticate, view and create projects, open a project to inspect its summary or board, then create and manage tickets, including ticket details and comments. The sampled pages show client requests passing through a shared API client, which adds authentication and refresh handling; Redux persists authentication state, while a separate context retains legacy demo state. Chatbot and authentication route modules are present, but their internals were not sampled, so their detailed behavior and connections are not asserted.
Main entry points: [id]/page.tsx Project workspace · apiClient.ts API client · Navbar.tsx Navigation and search · [ticketId]/page.tsx Ticket details
Components 25
Identity and session
- Home and login
app/page.tsx - Sign up
app/signup/page.tsx - Login endpoint
app/api/auth/login/route.ts - Signup endpoint
app/api/auth/signup/route.ts - Refresh endpoint
app/api/auth/refresh/route.ts
Project workspace
- Project dashboard
app/dashboard/page.tsx - Project workspace
app/project/[id]/page.tsx - Project summary
components/SummaryTab.tsx - Kanban board
components/KanbanBoard.tsx - Ticket list
components/ListTab.tsx
Ticket workflow
- Create ticket
app/create-ticket/page.tsx - Ticket details
app/project/[id]/ticket/[ticketId]/page.tsx - Chatbot
app/chatbot/page.tsx
Shared client state
- Navigation and search
components/Navbar.tsx - API client
lib/apiClient.ts - Auth state
lib/redux/slices/authSlice.ts - Redux store
lib/redux/store.ts - Store provider
lib/redux/StoreProvider.tsx - Typed Redux hooks
lib/redux/hooks.ts - Demo app context
context/AppStore.tsx - Project and ticket models
lib/data.ts - Ticket status overrides
lib/ticketStatusStore.ts - JSON store helper
lib/jsonStore.ts
Other components
- Helpdesk user
- Backend API
Connections 38
- Helpdesk user → Home and login: opens
- Helpdesk user → Sign up: registers
- Helpdesk user → Project dashboard: views
- Home and login → Auth state: reads auth
app/page.tsx - Sign up → Auth state: uses auth
app/signup/page.tsx - Project dashboard → API client: loads projects
app/dashboard/page.tsx - Project dashboard → Backend API: requests projects
app/dashboard/page.tsx - Project dashboard → Navigation and search: renders
app/dashboard/page.tsx - Project dashboard → Typed Redux hooks: reads user
app/dashboard/page.tsx - Project workspace → API client: loads project data
app/project/[id]/page.tsx - Project workspace → Backend API: requests tickets and summary
app/project/[id]/page.tsx - Project workspace → Project summary: renders
app/project/[id]/page.tsx - Project workspace → Kanban board: renders
app/project/[id]/page.tsx - Project workspace → Ticket list: selects view
- Project workspace → Ticket status overrides: applies overrides
app/project/[id]/page.tsx - Project workspace → Project and ticket models: maps tickets
app/project/[id]/page.tsx - Project workspace → Demo app context: reads demo projects
app/project/[id]/page.tsx - Project workspace → Navigation and search: renders
app/project/[id]/page.tsx - Create ticket → API client: creates ticket
app/create-ticket/page.tsx - Create ticket → Backend API: posts ticket and files
app/create-ticket/page.tsx - Create ticket → Typed Redux hooks: reads user
app/create-ticket/page.tsx - Create ticket → Navigation and search: renders
app/create-ticket/page.tsx - Ticket details → API client: loads and updates
app/project/[id]/ticket/[ticketId]/page.tsx - Ticket details → Backend API: requests ticket data
app/project/[id]/ticket/[ticketId]/page.tsx - Ticket details → Ticket status overrides: applies overrides
app/project/[id]/ticket/[ticketId]/page.tsx - Ticket details → Project and ticket models: maps ticket
app/project/[id]/ticket/[ticketId]/page.tsx - Ticket details → Typed Redux hooks: reads user
app/project/[id]/ticket/[ticketId]/page.tsx - Ticket details → Navigation and search: renders
app/project/[id]/ticket/[ticketId]/page.tsx - Chatbot → Navigation and search: renders
app/chatbot/page.tsx - Navigation and search → Demo app context: reads demo projects
components/Navbar.tsx - Navigation and search → Auth state: dispatches logout
components/Navbar.tsx - API client → Redux store: reads and updates auth
lib/apiClient.ts - API client → Auth state: dispatches credentials
lib/apiClient.ts - API client → Refresh endpoint: requests refresh
lib/apiClient.ts - API client → Backend API: sends API requests
lib/apiClient.ts - Redux store → Auth state: reduces auth state
lib/redux/store.ts - Store provider → Redux store: provides store
lib/redux/StoreProvider.tsx - Typed Redux hooks → Redux store: types hooks
lib/redux/hooks.ts