feat(web): add IwoooS host evidence readiness

This commit is contained in:
Your Name
2026-05-19 21:33:33 +08:00
parent fb66ac47fc
commit c0eeca2ec6
11 changed files with 520 additions and 4 deletions

View File

@@ -88,6 +88,13 @@ type HostActionGateItem = {
tone: 'steady' | 'warn' | 'locked'
}
type HostEvidenceReadinessItem = {
key: string
gate: string
icon: typeof ShieldCheck
tone: 'steady' | 'warn' | 'locked'
}
const postureMetrics: PostureMetric[] = [
{ key: 'overall', value: '58%', tone: 'warn' },
{ key: 'framework', value: '80-85%', tone: 'steady' },
@@ -199,6 +206,16 @@ const hostActionGateItems: HostActionGateItem[] = [
{ key: 'runtimeBlocking', gate: 'S3.4', icon: ShieldCheck, tone: 'locked' },
]
const hostEvidenceReadinessItems: HostEvidenceReadinessItem[] = [
{ key: 'scopeBoundary', gate: 'S1.6', icon: Radar, tone: 'warn' },
{ key: 'ownerDecision', gate: 'S3.1', icon: ClipboardCheck, tone: 'warn' },
{ key: 'credentialHandling', gate: 'S1.6', icon: Lock, tone: 'locked' },
{ key: 'maintenanceWindow', gate: 'S3.4', icon: Clock3, tone: 'warn' },
{ key: 'rollbackPlan', gate: 'S3.4', icon: FileWarning, tone: 'warn' },
{ key: 'validationMetrics', gate: 'S3.4', icon: CheckCircle2, tone: 'warn' },
{ key: 'redactedIngestion', gate: 'S1.6', icon: ShieldCheck, tone: 'locked' },
]
const evidenceItems = [
'iwooos-posture-projection.snapshot.json',
'security-rollout-policy.snapshot.json',
@@ -501,6 +518,34 @@ function HostActionGateCard({ item, index }: { item: HostActionGateItem; index:
)
}
function HostEvidenceReadinessCard({ item, index }: { item: HostEvidenceReadinessItem; index: number }) {
const t = useTranslations('iwooos.hostEvidenceReadiness')
const Icon = item.icon
return (
<div style={{ ...band, minHeight: 184, padding: 16 }}>
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 9 }}>
<Icon size={18} color={toneColors[item.tone]} />
<span style={{ fontSize: 11, color: '#87867f' }}>{item.gate}</span>
</div>
<span style={{ fontSize: 11, color: '#9b978b' }}>{String(index + 1).padStart(2, '0')}</span>
</div>
<h2 style={{ fontSize: 14, margin: '12px 0 6px', color: '#141413' }}>
{t(`items.${item.key}.title` as never)}
</h2>
<p style={{ fontSize: 12, lineHeight: 1.55, color: '#6f6d66', margin: 0 }}>
{t(`items.${item.key}.body` as never)}
</p>
<div style={{ marginTop: 10, display: 'grid', gap: 5 }}>
<div style={{ fontSize: 11, color: '#87867f' }}>{t('evidenceLabel')}</div>
<div style={{ fontSize: 11, color: toneColors[item.tone], lineHeight: 1.45 }}>
{t(`items.${item.key}.evidence` as never)}
</div>
</div>
</div>
)
}
export default function IwoooSPage({ params }: { params: { locale: string } }) {
const t = useTranslations('iwooos')
@@ -613,6 +658,26 @@ export default function IwoooSPage({ params }: { params: { locale: string } }) {
</div>
</section>
<section style={{ marginBottom: 14 }}>
<div style={{ marginBottom: 14 }}>
<h2 style={{ fontSize: 16, margin: 0 }}>{t('hostEvidenceReadiness.title')}</h2>
<p style={{ fontSize: 12, color: '#6f6d66', margin: '6px 0 0', lineHeight: 1.55 }}>
{t('hostEvidenceReadiness.subtitle')}
</p>
</div>
<div
style={{
display: 'grid',
gridTemplateColumns: 'repeat(auto-fit, minmax(210px, 1fr))',
gap: 12,
}}
>
{hostEvidenceReadinessItems.map((item, index) => (
<HostEvidenceReadinessCard key={item.key} item={item} index={index} />
))}
</div>
</section>
<section
style={{
display: 'grid',