🚀 Release v1.4.1 - Enhanced Ticket Management Features
✨ New Features: • Added admin filter by client/organization in internal frontend • Enhanced attachments viewer with toggle button in client frontend • Added attachment counter and improved UX in ticket conversation 🔧 Backend Improvements: • New `/tickets/admin/all` endpoint for administrators • Advanced filtering by tenant, status, and priority • Rich response data with tenant and user information • Proper admin permissions validation 🎨 Frontend Enhancements: • Client filter dropdown in admin panel • Enhanced ticket table with client/organization info • Collapsible attachments section with visual indicator • Improved API parameter handling (fixed undefined filters) • Better responsive design and hover effects 🐛 Bug Fixes: • Fixed undefined URL parameters in API calls • Corrected parameter filtering in API utility • Improved error handling for admin endpoints 📱 UI/UX: • Added visual badges for attachment count • Enhanced table columns with client/creator information • Improved button styling and interaction feedback • Better organization of ticket conversation layout
This commit is contained in:
@@ -12,8 +12,15 @@ async function request<T>(endpoint: string, options: RequestOptions = {}): Promi
|
||||
|
||||
let url = `${API_BASE}${endpoint}`;
|
||||
if (params) {
|
||||
const searchParams = new URLSearchParams(params);
|
||||
url += `?${searchParams.toString()}`;
|
||||
// Filtrar parámetros undefined y null
|
||||
const filteredParams = Object.entries(params)
|
||||
.filter(([key, value]) => value !== undefined && value !== null && value !== '')
|
||||
.reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {});
|
||||
|
||||
if (Object.keys(filteredParams).length > 0) {
|
||||
const searchParams = new URLSearchParams(filteredParams);
|
||||
url += `?${searchParams.toString()}`;
|
||||
}
|
||||
}
|
||||
|
||||
const authState = get(auth);
|
||||
|
||||
Reference in New Issue
Block a user