fix(web): 首席架構師審查修復 (82/100 → Pass)
Some checks failed
E2E Health Check / e2e-health (push) Successful in 18s
CD Pipeline / build-and-deploy (push) Has been cancelled

- 字體遷移遺漏: host-grid (2處), sidebar (1處) → var(--font-body)
- time-series-chart tick → var(--font-mono) (圖表軸標籤保留等寬意圖)
- i18n key 重複: 移除 incident.anomaly, 保留 incident.card.anomaly
- 全站 inline fontFamily: 'monospace' 歸零

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-02 13:56:43 +08:00
parent f0f9cc87a1
commit 1ec342db0c
5 changed files with 6 additions and 8 deletions

View File

@@ -308,8 +308,7 @@
"authorize": "Authorize",
"reject": "Reject",
"anomaly": "anomaly"
},
"anomaly": "anomaly"
}
},
"status": {
"idle": "Idle",

View File

@@ -309,8 +309,7 @@
"authorize": "授權",
"reject": "拒絕",
"anomaly": "異常"
},
"anomaly": "異常"
}
},
"status": {
"idle": "待命",

View File

@@ -166,7 +166,7 @@ export function TimeSeriesChart({
<YAxis
axisLine={false}
tickLine={false}
tick={{ fill: '#6b7280', fontSize: 10, fontFamily: 'monospace' }}
tick={{ fill: '#6b7280', fontSize: 10, fontFamily: 'var(--font-mono)' }}
width={28}
tickFormatter={(value) => `${value}${unit ? unit : ''}`}
/>

View File

@@ -64,7 +64,7 @@ export function HostGrid({ hosts }: HostGridProps) {
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 4 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}>
<div style={{ width: 7, height: 7, borderRadius: '50%', background: '#22C55E', flexShrink: 0 }} />
<span style={{ fontSize: 12, fontWeight: 700, color: '#141413', fontFamily: 'monospace' }}>
<span style={{ fontSize: 12, fontWeight: 700, color: '#141413', fontFamily: 'var(--font-body), monospace' }}>
{host.hostname}
</span>
</div>
@@ -90,7 +90,7 @@ export function HostGrid({ hosts }: HostGridProps) {
background: svc.healthy ? '#22C55E' : '#cc2200',
flexShrink: 0,
}} />
<span style={{ fontSize: 12, color: '#87867f', fontFamily: 'monospace' }}>
<span style={{ fontSize: 12, color: '#87867f', fontFamily: 'var(--font-body), monospace' }}>
{svc.name}
</span>
</div>

View File

@@ -236,7 +236,7 @@ export function Sidebar({
letterSpacing: '1.5px',
textTransform: 'uppercase' as const,
padding: '8px 12px 3px',
fontFamily: 'monospace',
fontFamily: 'var(--font-body), monospace',
}}>
{tSection(section.sectionKey)}
</div>