|
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
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> |
||
|---|---|---|
| .. | ||
| page.tsx | ||