feat(web): surface IwoooS progress acceleration lanes

This commit is contained in:
Your Name
2026-05-20 12:47:45 +08:00
parent 2530327d5f
commit 6367cd58d7
11 changed files with 624 additions and 8 deletions

View File

@@ -31,6 +31,13 @@ type PostureMetric = {
tone: 'steady' | 'warn' | 'locked'
}
type ProgressAccelerationLane = {
key: string
lane: string
icon: typeof ShieldCheck
tone: 'steady' | 'warn' | 'locked'
}
type Pillar = {
key: string
icon: typeof ShieldCheck
@@ -307,6 +314,15 @@ const postureMetrics: PostureMetric[] = [
{ key: 'activeGates', value: '0', tone: 'locked' },
]
const progressAccelerationLanes: ProgressAccelerationLane[] = [
{ key: 'ownerResponses', lane: 'PAL1', icon: ClipboardCheck, tone: 'warn' },
{ key: 'redactedIngestion', lane: 'PAL2', icon: FileText, tone: 'warn' },
{ key: 'runtimeGate', lane: 'PAL3', icon: Lock, tone: 'locked' },
{ key: 'githubReadiness', lane: 'PAL4', icon: GitBranch, tone: 'warn' },
{ key: 'awooopLanding', lane: 'PAL5', icon: Radar, tone: 'steady' },
{ key: 'cadenceCompression', lane: 'PAL6', icon: CheckCircle2, tone: 'steady' },
]
const posturePillars: Pillar[] = [
{ key: 'exposure', icon: Radar, tone: 'warn' },
{ key: 'sourceControl', icon: GitBranch, tone: 'warn' },
@@ -784,6 +800,38 @@ function MetricCard({ item }: { item: PostureMetric }) {
)
}
function ProgressAccelerationLaneCard({ item }: { item: ProgressAccelerationLane }) {
const t = useTranslations('iwooos.progressAcceleration')
const Icon = item.icon
return (
<div style={{ ...band, minHeight: 202, 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('laneLabel')}</span>
</div>
<span style={{ fontSize: 11, color: '#9b978b' }}>{item.lane}</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('unlockLabel')}</div>
<div style={{ fontSize: 11, color: toneColors[item.tone], lineHeight: 1.45 }}>
{t(`items.${item.key}.unlock` 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 PillarCard({ item }: { item: Pillar }) {
const t = useTranslations('iwooos.pillars')
const Icon = item.icon
@@ -1968,6 +2016,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('progressAcceleration.title')}</h2>
<p style={{ fontSize: 12, color: '#6f6d66', margin: '6px 0 0', lineHeight: 1.55 }}>
{t('progressAcceleration.subtitle')}
</p>
</div>
<div
style={{
display: 'grid',
gridTemplateColumns: 'repeat(auto-fit, minmax(220px, 1fr))',
gap: 12,
}}
>
{progressAccelerationLanes.map(item => (
<ProgressAccelerationLaneCard key={item.key} item={item} />
))}
</div>
</section>
<section style={{ marginBottom: 14 }}>
<div style={{ marginBottom: 14 }}>
<h2 style={{ fontSize: 16, margin: 0 }}>{t('journey.title')}</h2>