ai-ticket-assistant-fe Tailwind Templates

Ai Ticket Assistant Fe

Frontend built using vite, tailwind, daisyUI for ticket triage agent using inngest, express, gemini, inngest agent kit

Ticket Management System (TMS) Frontend

๐Ÿ“Œ Overview

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:

  • โšก๏ธ Vite for fast build and development
  • ๐ŸŽจ DaisyUI (based on Tailwind CSS) for UI components
  • ๐Ÿ“ก fetch for API calls
  • ๐Ÿ› ๏ธ Simple client-side auth via localStorage

๐Ÿงพ Pages Overview

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

๐Ÿ”ง Setup Instructions

  1. Clone the repo:

    git clone https://github.com/wajeshubham/ai-ticket-assistant-fe.git
    cd ai-ticket-assistant-fe
    
  2. Install dependencies:

    npm install
    
  3. Create .env file:

    VITE_SERVER_URL=http://localhost:3000/api
    
  4. Run the dev server:

    npm run dev
    

โœ… Markdown Rendering

Helpful Notes (markdown) are rendered using:

npm i react-markdown

In TicketDetail.jsx:

import ReactMarkdown from "react-markdown";

<ReactMarkdown>{ticket.helpfulNotes}</ReactMarkdown>;

๐Ÿ‘‘ Admin Panel (/admin)

  • Lists all users with their:
    • Name, Email, Role, Skills
  • Admin can:
    • Change user role via dropdown
    • Assign comma-separated skills โ†’ submitted as array of strings
  • Live email-based search bar

Top categories

Loading Svelte Themes