feat(web): add IwoooS AwoooP landing readiness
This commit is contained in:
@@ -45,6 +45,13 @@ type ProgressHoldMovementGate = {
|
||||
tone: 'steady' | 'warn' | 'locked'
|
||||
}
|
||||
|
||||
type AwoooPReadOnlyLandingReadinessItem = {
|
||||
key: string
|
||||
item: string
|
||||
icon: typeof ShieldCheck
|
||||
tone: 'steady' | 'warn' | 'locked'
|
||||
}
|
||||
|
||||
type OwnerResponseNextActionFocusItem = {
|
||||
key: string
|
||||
focus: string
|
||||
@@ -359,6 +366,15 @@ const progressHoldMovementGates: ProgressHoldMovementGate[] = [
|
||||
{ key: 'awooopReadOnlyLanding', gate: 'G5', icon: Radar, tone: 'steady' },
|
||||
]
|
||||
|
||||
const awooopReadOnlyLandingReadinessItems: AwoooPReadOnlyLandingReadinessItem[] = [
|
||||
{ key: 'rollupSnapshotReadable', item: 'L1', icon: FileText, tone: 'steady' },
|
||||
{ key: 'evidenceRefsReadable', item: 'L2', icon: SearchCheck, tone: 'steady' },
|
||||
{ key: 'guardChecksKnown', item: 'L3', icon: ShieldCheck, tone: 'steady' },
|
||||
{ key: 'routeGroupsKnown', item: 'L4', icon: Radar, tone: 'warn' },
|
||||
{ key: 'forbiddenOutputsLocked', item: 'L5', icon: Lock, tone: 'locked' },
|
||||
{ key: 'productionHandoffPending', item: 'L6', icon: Clock3, tone: 'locked' },
|
||||
]
|
||||
|
||||
const ownerResponseNextActionFocusItems: OwnerResponseNextActionFocusItem[] = [
|
||||
{ key: 'giteaOwnerAttestation', focus: 'S4.9', icon: ClipboardCheck, tone: 'warn' },
|
||||
{ key: 'githubTargetOwnerDecision', focus: 'S4.10', icon: GitBranch, tone: 'warn' },
|
||||
@@ -924,6 +940,39 @@ function ProgressHoldMovementGateCard({ item }: { item: ProgressHoldMovementGate
|
||||
)
|
||||
}
|
||||
|
||||
function AwoooPReadOnlyLandingReadinessCard({ item }: { item: AwoooPReadOnlyLandingReadinessItem }) {
|
||||
const t = useTranslations('iwooos.awooopReadOnlyLandingReadiness')
|
||||
const Icon = item.icon
|
||||
const textWrap = { overflowWrap: 'anywhere' as const, wordBreak: 'break-word' as const }
|
||||
return (
|
||||
<div style={{ ...band, minHeight: 190, padding: 16, ...textWrap }}>
|
||||
<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('readinessLabel')}</span>
|
||||
</div>
|
||||
<span style={{ fontSize: 11, color: toneColors[item.tone] }}>{item.item}</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, ...textWrap }}>
|
||||
{t(`items.${item.key}.body` as never)}
|
||||
</p>
|
||||
<div style={{ marginTop: 10, display: 'grid', gap: 5 }}>
|
||||
<div style={{ fontSize: 11, color: '#87867f' }}>{t('requirementLabel')}</div>
|
||||
<div style={{ fontSize: 11, color: toneColors[item.tone], lineHeight: 1.45, ...textWrap }}>
|
||||
{t(`items.${item.key}.requirement` as never)}
|
||||
</div>
|
||||
<div style={{ fontSize: 11, color: '#87867f', marginTop: 4 }}>{t('guardLabel')}</div>
|
||||
<div style={{ fontSize: 11, color: '#6f6d66', lineHeight: 1.45, ...textWrap }}>
|
||||
{t(`items.${item.key}.guard` as never)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function OwnerResponseNextActionFocusCard({ item }: { item: OwnerResponseNextActionFocusItem }) {
|
||||
const t = useTranslations('iwooos.ownerResponseNextActionFocus')
|
||||
const Icon = item.icon
|
||||
@@ -2227,6 +2276,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('awooopReadOnlyLandingReadiness.title')}</h2>
|
||||
<p style={{ fontSize: 12, color: '#6f6d66', margin: '6px 0 0', lineHeight: 1.55 }}>
|
||||
{t('awooopReadOnlyLandingReadiness.subtitle')}
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(auto-fit, minmax(220px, 1fr))',
|
||||
gap: 12,
|
||||
}}
|
||||
>
|
||||
{awooopReadOnlyLandingReadinessItems.map(item => (
|
||||
<AwoooPReadOnlyLandingReadinessCard 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>
|
||||
|
||||
Reference in New Issue
Block a user