xpeditis2.0/apps/frontend/app/dashboard
David 27caca0734
Some checks failed
CI/CD Pipeline / Backend - Build, Test & Push (push) Failing after 1m38s
CI/CD Pipeline / Frontend - Build, Test & Push (push) Successful in 25m29s
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Deployment Summary (push) Has been skipped
CI/CD Pipeline / Discord Notification (Success) (push) Has been skipped
CI/CD Pipeline / Discord Notification (Failure) (push) Has been skipped
feat: add CSV rates CRUD management to frontend dashboard
Added comprehensive CSV rates management interface to the frontend dashboard with full CRUD operations.

## Backend Changes
- Added `GET /api/v1/admin/csv-rates/files` endpoint to list all uploaded CSV files with metadata
- Added `DELETE /api/v1/admin/csv-rates/files/:filename` endpoint to delete CSV files and their configurations
- Both endpoints provide frontend-compatible responses with file info (filename, size, rowCount, uploadedAt)
- File deletion includes both filesystem cleanup and database configuration removal

## Frontend Changes
- Added "CSV Rates" navigation item to dashboard sidebar (ADMIN only)
- Moved CSV rates page from `/app/admin/csv-rates` to `/app/dashboard/admin/csv-rates` for proper dashboard integration
- Updated CsvUpload component to include required `companyEmail` field
- Component now properly validates and sends all required fields (companyName, companyEmail, file)
- Enhanced form validation with email input type

## Features
-  Upload CSV rate files with company name and email
-  List all uploaded CSV files with metadata (filename, size, row count, upload date)
-  Delete CSV files with confirmation dialog
-  Real-time file validation (format, size limit 10MB)
-  Auto-refresh after successful operations
-  ADMIN role-based access control
-  Integrated into dashboard navigation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 19:11:37 +01:00
..
admin/csv-rates feat: add CSV rates CRUD management to frontend dashboard 2025-11-17 19:11:37 +01:00
booking/new fix v0.2 2025-11-12 18:00:33 +01:00
bookings fix 2025-11-13 00:15:45 +01:00
profile feature 2025-11-04 07:30:15 +01:00
search fix 2025-11-13 00:15:45 +01:00
search-advanced fix v0.2 2025-11-12 18:00:33 +01:00
settings fix 2025-11-13 00:15:45 +01:00
layout.tsx feat: add CSV rates CRUD management to frontend dashboard 2025-11-17 19:11:37 +01:00
page.tsx fix 2025-11-13 00:15:45 +01:00