Merge pull request #208 from itdoginfo/fix/dashboard

feat: change get latency class coloring
This commit is contained in:
Kirill Sobakin
2025-10-07 23:48:29 +03:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -50,11 +50,11 @@ export function renderDefaultState({
return 'pdk_dashboard-page__outbound-grid__item__latency--empty';
}
if (outbound.latency < 200) {
if (outbound.latency < 800) {
return 'pdk_dashboard-page__outbound-grid__item__latency--green';
}
if (outbound.latency < 400) {
if (outbound.latency < 1500) {
return 'pdk_dashboard-page__outbound-grid__item__latency--yellow';
}

View File

@@ -1274,10 +1274,10 @@ function renderDefaultState({
if (!outbound.latency) {
return "pdk_dashboard-page__outbound-grid__item__latency--empty";
}
if (outbound.latency < 200) {
if (outbound.latency < 800) {
return "pdk_dashboard-page__outbound-grid__item__latency--green";
}
if (outbound.latency < 400) {
if (outbound.latency < 1500) {
return "pdk_dashboard-page__outbound-grid__item__latency--yellow";
}
return "pdk_dashboard-page__outbound-grid__item__latency--red";