fix(ui): показывать подтверждённые метрики участков пути

This commit is contained in:
Denozordec committed 2026-10-04 00:18:21 +07:00
1 parent d4ae1c3127
commit c3a9c00aed
9 files changed
+78 -117

No files matched your search

+2 -2
View File
@@ -379,11 +379,11 @@ export function InternetPathMapCanvas({ model }: { model: InternetPathViewModel
{model && (
<div className="mt-3 grid grid-cols-1 md:grid-cols-2 gap-2 text-xs">
<div className={cn("rounded-md border p-2", model.pathState === "failover" ? "border-amber-500/40 bg-amber-500/5" : "border-emerald-500/40 bg-emerald-500/5")}>
<p className="font-medium">Primary path</p>
<p className="font-medium">Рекомендация оптимизатора</p>
<p className="text-muted-foreground mt-1">{model.primaryPath?.reason ?? "Не определен"}</p>
</div>
<div className={cn("rounded-md border p-2", model.pathState === "failover" ? "border-amber-500/40 bg-amber-500/5" : "border-emerald-500/40 bg-emerald-500/5")}>
<p className="font-medium">Current path</p>
<p className="font-medium">Наблюдаемый default route</p>
<p className="text-muted-foreground mt-1">{model.currentPath?.reason ?? "Не определен"}</p>
</div>
{model.directWan.enabled && (