feat: add tariff checkbox filter, column resizing to traffic page

- TariffFilter dropdown with checkboxes for filtering by tariff
- Column resizing via TanStack Table resize handles
- Add allTariffs locale key to all 4 languages
- Pass tariffs param to API
This commit is contained in:
Fringg
2026-02-07 09:30:23 +03:00
parent 8c8fa407f5
commit cfb7ce72f2
6 changed files with 205 additions and 14 deletions

View File

@@ -26,6 +26,7 @@ export interface TrafficUsageResponse {
offset: number;
limit: number;
period_days: number;
available_tariffs: string[];
}
export interface ExportCsvResponse {
@@ -41,6 +42,7 @@ export const adminTrafficApi = {
search?: string;
sort_by?: string;
sort_desc?: boolean;
tariffs?: string;
}): Promise<TrafficUsageResponse> => {
const response = await apiClient.get('/cabinet/admin/traffic', { params });
return response.data;