feat(web): explain IwoooS progress hold

This commit is contained in:
Your Name
2026-05-20 14:05:14 +08:00
parent 6ab9a09212
commit 4d9d44e6d3
11 changed files with 552 additions and 9 deletions

View File

@@ -38,6 +38,13 @@ type ProgressAccelerationLane = {
tone: 'steady' | 'warn' | 'locked'
}
type ProgressHoldMovementGate = {
key: string
gate: string
icon: typeof ShieldCheck
tone: 'steady' | 'warn' | 'locked'
}
type OwnerResponseNextActionFocusItem = {
key: string
focus: string
@@ -344,6 +351,14 @@ const progressAccelerationLanes: ProgressAccelerationLane[] = [
{ key: 'cadenceCompression', lane: 'PAL6', icon: CheckCircle2, tone: 'steady' },
]
const progressHoldMovementGates: ProgressHoldMovementGate[] = [
{ key: 'ownerResponseAccepted', gate: 'G1', icon: ClipboardCheck, tone: 'warn' },
{ key: 'redactedPayloadIngested', gate: 'G2', icon: FileText, tone: 'warn' },
{ key: 'activeRuntimeGate', gate: 'G3', icon: Lock, tone: 'locked' },
{ key: 'githubPrimaryReady', gate: 'G4', icon: GitBranch, tone: 'warn' },
{ key: 'awooopReadOnlyLanding', gate: 'G5', icon: Radar, tone: 'steady' },
]
const ownerResponseNextActionFocusItems: OwnerResponseNextActionFocusItem[] = [
{ key: 'giteaOwnerAttestation', focus: 'S4.9', icon: ClipboardCheck, tone: 'warn' },
{ key: 'githubTargetOwnerDecision', focus: 'S4.10', icon: GitBranch, tone: 'warn' },
@@ -877,6 +892,38 @@ function ProgressAccelerationLaneCard({ item }: { item: ProgressAccelerationLane
)
}
function ProgressHoldMovementGateCard({ item }: { item: ProgressHoldMovementGate }) {
const t = useTranslations('iwooos.progressHoldMovementGates')
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('gateLabel')}</span>
</div>
<span style={{ fontSize: 11, color: toneColors[item.tone] }}>{item.gate}</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('moveLabel')}</div>
<div style={{ fontSize: 11, color: toneColors[item.tone], lineHeight: 1.45 }}>
{t(`items.${item.key}.move` as never)}
</div>
<div style={{ fontSize: 11, color: '#87867f', marginTop: 4 }}>{t('guardLabel')}</div>
<div style={{ fontSize: 11, color: '#6f6d66', lineHeight: 1.45 }}>
{t(`items.${item.key}.guard` as never)}
</div>
</div>
</div>
)
}
function OwnerResponseNextActionFocusCard({ item }: { item: OwnerResponseNextActionFocusItem }) {
const t = useTranslations('iwooos.ownerResponseNextActionFocus')
const Icon = item.icon
@@ -2160,6 +2207,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('progressHoldMovementGates.title')}</h2>
<p style={{ fontSize: 12, color: '#6f6d66', margin: '6px 0 0', lineHeight: 1.55 }}>
{t('progressHoldMovementGates.subtitle')}
</p>
</div>
<div
style={{
display: 'grid',
gridTemplateColumns: 'repeat(auto-fit, minmax(220px, 1fr))',
gap: 12,
}}
>
{progressHoldMovementGates.map(item => (
<ProgressHoldMovementGateCard key={item.key} item={item} />
))}
</div>
</section>
<section style={{ marginBottom: 14 }}>
<div style={{ marginBottom: 14 }}>
<h2 style={{ fontSize: 16, margin: 0 }}>{t('progressAcceleration.title')}</h2>