This is the React frontend for the Smart Ticket Assignment System. It includes user authentication (login/signup), ticket creation and listing, detailed ticket views, and an admin panel for managing users and their roles/skills.
The app uses:
fetch
for API callslocalStorage
Route | Description |
---|---|
/ |
Shows all tickets or Redirects to /login if unauthenticated |
/login |
User login page |
/signup |
User signup page |
/tickets/:id |
Shows detailed view of a ticket (fields vary by role) |
/admin |
Admin panel to manage users, roles, and skill assignments |
Clone the repo:
git clone https://github.com/wajeshubham/ai-ticket-assistant-fe.git
cd ai-ticket-assistant-fe
Install dependencies:
npm install
Create .env
file:
VITE_SERVER_URL=http://localhost:3000/api
Run the dev server:
npm run dev
Helpful Notes (markdown) are rendered using:
npm i react-markdown
In TicketDetail.jsx
:
import ReactMarkdown from "react-markdown";
<ReactMarkdown>{ticket.helpfulNotes}</ReactMarkdown>;
/admin
)role
via dropdownarray of strings