feat(web): add IwoooS reviewer checklist
This commit is contained in:
@@ -123,6 +123,13 @@ type HostEvidenceReviewHandoffPacket = {
|
||||
tone: 'steady' | 'warn' | 'locked'
|
||||
}
|
||||
|
||||
type HostEvidenceReviewerChecklistItem = {
|
||||
key: string
|
||||
check: string
|
||||
icon: typeof ShieldCheck
|
||||
tone: 'steady' | 'warn' | 'locked'
|
||||
}
|
||||
|
||||
const postureMetrics: PostureMetric[] = [
|
||||
{ key: 'overall', value: '58%', tone: 'warn' },
|
||||
{ key: 'framework', value: '80-85%', tone: 'steady' },
|
||||
@@ -284,6 +291,16 @@ const hostEvidenceReviewHandoffPackets: HostEvidenceReviewHandoffPacket[] = [
|
||||
{ key: 'runtimeGatePacket', packet: 'H7', icon: FileWarning, tone: 'locked' },
|
||||
]
|
||||
|
||||
const hostEvidenceReviewerChecklistItems: HostEvidenceReviewerChecklistItem[] = [
|
||||
{ key: 'scopeBoundaryMatch', check: 'C1', icon: Radar, tone: 'warn' },
|
||||
{ key: 'ownerDecisionScopeExpiry', check: 'C2', icon: ClipboardCheck, tone: 'warn' },
|
||||
{ key: 'credentialHandlingMetadataOnly', check: 'C3', icon: Lock, tone: 'locked' },
|
||||
{ key: 'redactionAttestationPass', check: 'C4', icon: ShieldCheck, tone: 'locked' },
|
||||
{ key: 'maintenanceRollbackComplete', check: 'C5', icon: Clock3, tone: 'warn' },
|
||||
{ key: 'validationMetricsLinked', check: 'C6', icon: CheckCircle2, tone: 'warn' },
|
||||
{ key: 'runtimeGateSeparated', check: 'C7', icon: FileWarning, tone: 'locked' },
|
||||
]
|
||||
|
||||
const evidenceItems = [
|
||||
'iwooos-posture-projection.snapshot.json',
|
||||
'security-rollout-policy.snapshot.json',
|
||||
@@ -726,6 +743,34 @@ function HostEvidenceReviewHandoffCard({ item }: { item: HostEvidenceReviewHando
|
||||
)
|
||||
}
|
||||
|
||||
function HostEvidenceReviewerChecklistCard({ item }: { item: HostEvidenceReviewerChecklistItem }) {
|
||||
const t = useTranslations('iwooos.hostEvidenceReviewerChecklist')
|
||||
const Icon = item.icon
|
||||
return (
|
||||
<div style={{ ...band, minHeight: 190, 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' }}>{t('checkLabel')}</span>
|
||||
</div>
|
||||
<span style={{ fontSize: 11, color: '#9b978b' }}>{item.check}</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('verifyLabel')}</div>
|
||||
<div style={{ fontSize: 11, color: toneColors[item.tone], lineHeight: 1.45 }}>
|
||||
{t(`items.${item.key}.verify` as never)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default function IwoooSPage({ params }: { params: { locale: string } }) {
|
||||
const t = useTranslations('iwooos')
|
||||
|
||||
@@ -938,6 +983,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('hostEvidenceReviewerChecklist.title')}</h2>
|
||||
<p style={{ fontSize: 12, color: '#6f6d66', margin: '6px 0 0', lineHeight: 1.55 }}>
|
||||
{t('hostEvidenceReviewerChecklist.subtitle')}
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(auto-fit, minmax(210px, 1fr))',
|
||||
gap: 12,
|
||||
}}
|
||||
>
|
||||
{hostEvidenceReviewerChecklistItems.map(item => (
|
||||
<HostEvidenceReviewerChecklistCard key={item.key} item={item} />
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section
|
||||
style={{
|
||||
display: 'grid',
|
||||
|
||||
Reference in New Issue
Block a user