How badiaael/support-desk works
Support Desk is a ticket-management web application: clients report technical problems, technicians track ticket status and comments, and users can view monthly activity reports. The React interface routes users to ticket listing, creation, detail, and reporting workflows; its API module issues HTTP requests to the Spring application. The backend is organized around ticket, client, and report domains, with PostgreSQL persistence. The README documents the capabilities and database setup, but backend implementation was not sampled, so internal backend call relationships are not asserted.
Main entry points: api.js HTTP API client · App.jsx React app routes · TicketService.java Ticket rules and workflow · TicketListPage.jsx Ticket list
Components 26
Web interface
- React app routes
frontend/src/App.jsx - Ticket list
frontend/src/pages/TicketListPage.jsx - Ticket filters
frontend/src/components/TicketFilters.jsx - Ticket table
frontend/src/components/TicketTable.jsx - Ticket creation
frontend/src/pages/TicketCreatePage.jsx - Ticket detail
frontend/src/pages/TicketDetailPage.jsx - Report page
frontend/src/pages/ReportPage.jsx - Status and priority badges
frontend/src/components/Badge.jsx - Date formatting
frontend/src/format.js - HTTP API client
frontend/src/api.js
Ticket management
- Ticket API
src/main/java/com/example/SupportDesk/ticket/TicketController.java - Ticket rules and workflow
src/main/java/com/example/SupportDesk/ticket/TicketService.java - Ticket filtering
src/main/java/com/example/SupportDesk/ticket/TicketSpecifications.java - Ticket persistence
src/main/java/com/example/SupportDesk/ticket/TicketRepository.java - Ticket comments
src/main/java/com/example/SupportDesk/ticket/comment/Comment.java - Comment persistence
src/main/java/com/example/SupportDesk/ticket/comment/CommentRepository.java
Client management
- Client API
src/main/java/com/example/SupportDesk/client/ClientController.java - Client management
src/main/java/com/example/SupportDesk/client/ClientService.java - Client persistence
src/main/java/com/example/SupportDesk/client/ClientRepository.java
Monthly reporting
- Report API
src/main/java/com/example/SupportDesk/report/ReportController.java - Report aggregation
src/main/java/com/example/SupportDesk/report/ReportService.java - Monthly calculations
src/main/java/com/example/SupportDesk/report/MonthlyReportCalculator.java
Persistence and errors
- PostgreSQL database
- Database schema migration
src/main/resources/db/migration/V1__support_desk_tables.sql - API error handling
src/main/java/com/example/SupportDesk/shared/error/GlobalExceptionHandler.java
Other components
- Desk user
Connections 32
- Desk user → React app routes: uses
frontend/src/App.jsx - React app routes → Ticket list: routes to
frontend/src/App.jsx - React app routes → Ticket creation: routes to
frontend/src/App.jsx - React app routes → Ticket detail: routes to
frontend/src/App.jsx - React app routes → Report page: routes to
frontend/src/App.jsx - Ticket list → Ticket filters: renders
frontend/src/pages/TicketListPage.jsx - Ticket list → Ticket table: renders
frontend/src/pages/TicketListPage.jsx - Ticket list → HTTP API client: loads tickets
frontend/src/pages/TicketListPage.jsx - Ticket creation → HTTP API client: creates ticket
frontend/src/pages/TicketCreatePage.jsx - Ticket detail → HTTP API client: loads and updates
frontend/src/pages/TicketDetailPage.jsx - Report page → HTTP API client: loads report
frontend/src/pages/ReportPage.jsx - Ticket table → Status and priority badges: renders
frontend/src/components/TicketTable.jsx - Ticket table → Date formatting: formats dates
frontend/src/components/TicketTable.jsx - Ticket detail → Status and priority badges: renders
frontend/src/pages/TicketDetailPage.jsx - Ticket detail → Date formatting: formats dates
frontend/src/pages/TicketDetailPage.jsx - Report page → Status and priority badges: uses labels
frontend/src/pages/ReportPage.jsx - HTTP API client → Ticket API: HTTP requests
- HTTP API client → Client API: HTTP requests
- HTTP API client → Report API: HTTP requests
- Ticket API → Ticket rules and workflow: delegates
- Ticket rules and workflow → Ticket filtering: filters tickets
- Ticket rules and workflow → Ticket persistence: persists tickets
- Ticket rules and workflow → Comment persistence: stores comments
- Ticket rules and workflow → Ticket comments: manages comments
- Client API → Client management: delegates
- Client management → Client persistence: reads clients
- Report API → Report aggregation: delegates
- Report aggregation → Monthly calculations: calculates metrics
- Ticket persistence → PostgreSQL database: reads and writes
- Comment persistence → PostgreSQL database: reads and writes
- Client persistence → PostgreSQL database: reads and writes
- Database schema migration → PostgreSQL database: defines schema