feat: Add admin navigation, fix modals, clickable stats, update docs

- Add admin dropdown menu in dashboard header with links to all admin pages
- Fix template modal: larger size (800px), responsive grid, type/priority dropdowns
- Fix recurring tickets modal: add Type and Assign To fields, larger size
- Make dashboard stat cards clickable for quick filtering
- Fix user-activity query (remove is_active requirement)
- Add table existence check in ticket_dependencies API
- Fix table overflow on dashboard
- Update Claude.md and README.md with current project status
- Remove migrations directory (all migrations completed)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-20 21:11:49 -05:00
parent 08d6808bc3
commit 0046721fde
9 changed files with 406 additions and 751 deletions

View File

@@ -1,12 +1,14 @@
# Tinker Tickets
A feature-rich PHP-based ticketing system designed for tracking and managing data center infrastructure issues with enterprise-grade workflow management.
A feature-rich PHP-based ticketing system designed for tracking and managing data center infrastructure issues with enterprise-grade workflow management and a retro terminal aesthetic.
## Core Features
### Dashboard & Ticket Management
- **Smart Dashboard**: Sortable columns, advanced filtering by status/priority/category/type
- **Stats Widgets**: Clickable cards for quick filtering (Open, Critical, Unassigned, Today's tickets)
- **Full-Text Search**: Search across tickets, descriptions, and metadata
- **Advanced Search**: Date ranges, priority ranges, user filters with saved filter support
- **Ticket Assignment**: Assign tickets to specific users with quick-assign from dashboard
- **Priority Tracking**: P1 (Critical) to P5 (Minimal Impact) with color-coded indicators
- **Custom Categories**: Hardware, Software, Network, Security, General
@@ -57,14 +59,16 @@ A feature-rich PHP-based ticketing system designed for tracking and managing dat
- **Bulk Status**: Change status for multiple tickets
### Admin Pages
Access all admin pages via the **Admin dropdown** in the dashboard header.
| Route | Description |
|-------|-------------|
| `/admin/templates` | Create and edit ticket templates |
| `/admin/workflow` | Visual workflow transition designer |
| `/admin/recurring-tickets` | Manage recurring ticket schedules |
| `/admin/custom-fields` | Define custom fields per category |
| `/admin/workflow` | Visual workflow transition designer |
| `/admin/templates` | Create and edit ticket templates |
| `/admin/audit-log` | Browse all audit log entries |
| `/admin/user-activity` | View per-user activity statistics |
| `/admin/audit-log` | Browse all audit log entries |
### Notifications
- **Discord Integration**: Webhook notifications for ticket creation and updates
@@ -86,9 +90,10 @@ A feature-rich PHP-based ticketing system designed for tracking and managing dat
- **Architecture**: MVC pattern with models, views, controllers
### Frontend
- **HTML5/CSS3**: Semantic markup with modern CSS
- **HTML5/CSS3**: Semantic markup with retro terminal styling
- **JavaScript**: Vanilla JS with Fetch API for AJAX
- **Markdown**: Custom markdown parser with toolbar
- **Terminal UI**: Box-drawing characters, monospace fonts, CRT effects
### Database Tables
| Table | Purpose |
@@ -137,7 +142,7 @@ DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...
### 2. Database Setup
The database schema is managed through migrations. For a fresh install, run all migrations in order using the migration runner.
The database schema should already be configured. For a fresh install, contact the system administrator for database setup instructions.
### 3. Cron Jobs
@@ -188,7 +193,6 @@ tinker_tickets/
├── uploads/ # File upload storage
├── views/ # View templates
│ └── admin/ # Admin panel views
├── migrations/ # Database migrations
├── index.php # Main router
└── .env # Environment configuration
```