[CI] Keep line cards visible and time windows current; add 24h to 96h ranges
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/dev-image Pipeline failed

This commit is contained in:
justme committed 2026-10-20 20:44:04 +08:00
1 parent a7ebf61551
commit cc64df3e70
3 files changed
+15 -27

No files matched your search

+3 -3
View File
@@ -152,7 +152,7 @@ function LineCard({ l, range, infos }: { l: OverviewLineDto; range: OverviewRang
? 'QUIC 正在连接'
: null
return (
<Link to={`/line/${encodeURIComponent(l.id)}`} className={`line-link line-card${connectionIssue ? ' disconnected' : ''}`}>
<Link to={`/line/${encodeURIComponent(l.id)}`} className="line-link line-card">
<div className="line-top">
<span className="line-name" title={[l.probe_name, probeInfo?.tag || probeInfo?.version].filter(Boolean).join(' · ')}>
{probeInfo?.country ? <Flag code={probeInfo.country} /> : null}
@@ -163,7 +163,7 @@ function LineCard({ l, range, infos }: { l: OverviewLineDto; range: OverviewRang
<span className="name">{l.name}</span>
</span>
<span
className={connectionIssue ? 'line-range disconnected-label' : 'faint line-range'}
className={connectionIssue ? 'line-range connection-issue' : 'faint line-range'}
title={l.quic_health?.state === 'retry_wait' ? `Probe 正在等待退避重试${l.quic_health.retry_in_ms ? `(约 ${Math.ceil(l.quic_health.retry_in_ms / 1000)} 秒)` : ''}。` : !l.probe_connected && l.online ? 'Agent 在线,但 Probe 尚未建立测量会话。' : undefined}
>
{connectionIssue ? `${connectionIssue} · ${rangeLabel}` : rangeLabel}
@@ -179,7 +179,7 @@ export function Overview() {
const [sort, setSort] = useState<SortKey>('name')
const { hosts, live } = useHosts()
const infos = useNodeInfos()
// 近多久的汇总和走势:3 / 6 / 12 小时,记在链接里(?range=6h)
// 汇总和走势使用同一个时间范围,记在链接里(例如 ?range=48h)。
const [params, setParams] = useSearchParams()
const ipVersion = ipVersionOf(params.get('ip_version'))
const ipv6 = useQuery(() => ipVersion === 'ipv6' ? api.get<Page<AgentIpv6Dto>>('/api/public/ipv6') : Promise.resolve(undefined), [ipVersion], 15_000)