feat: add country filter and risk columns to traffic CSV export

- Add CountryFilter dropdown with flag emoji + node count per country
- Country filter merges with node filter for both table and CSV export
- Pass total/node GB/day thresholds to backend for risk columns in CSV
- CSV now includes Risk Level, Risk Ratio, Risk GB/day when thresholds set
This commit is contained in:
Fringg
2026-02-07 13:29:14 +03:00
parent 12663a59a7
commit 471e2c8c43
2 changed files with 200 additions and 9 deletions

View File

@@ -111,6 +111,8 @@ export const adminTrafficApi = {
tariffs?: string;
statuses?: string;
nodes?: string;
total_threshold_gb?: number;
node_threshold_gb?: number;
}): Promise<ExportCsvResponse> => {
const response = await apiClient.post('/cabinet/admin/traffic/export-csv', data);
return response.data;