fix(ui): показывать подтверждённые метрики участков пути
This commit is contained in:
1 parent
d4ae1c3127
commit
c3a9c00aed
9 files changed
+78
-117
No files matched your search
@@ -14,7 +14,7 @@ import { ArrowRightIcon, HomeIcon, RadioIcon, ServerIcon, GlobeIcon } from "luci
|
||||
function pathStateToServerStatus(state: InternetPathViewModel["pathState"]): ServerStatus {
|
||||
if (state === "healthy") return "online"
|
||||
if (state === "failover" || state === "degraded") return "degraded"
|
||||
return "offline"
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
function HopChip({
|
||||
@@ -89,6 +89,7 @@ export function InternetPathSummary({ model }: { model: InternetPathViewModel |
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
<p className="text-muted-foreground text-xs">JH/Exit — схема кандидатов. Default route подтверждает только WAN. Метрики — последние подтверждённые пробы участков.</p>
|
||||
<div className="flex flex-col gap-2 @3xl:flex-row @3xl:items-center">
|
||||
<HopChip
|
||||
label="Home"
|
||||
@@ -123,7 +124,7 @@ export function InternetPathSummary({ model }: { model: InternetPathViewModel |
|
||||
</div>
|
||||
|
||||
<p className="text-muted-foreground text-xs leading-relaxed">
|
||||
{model.currentPath?.reason ?? model.primaryPath?.reason ?? "Текущий путь не определён"}
|
||||
{model.currentPath?.reason ?? "Текущий маршрут не подтверждён"}
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user