feat(web): add IwoooS AwoooP handoff packets

This commit is contained in:
Your Name
2026-05-20 14:38:12 +08:00
parent a957adde4b
commit f2e3873ed5
11 changed files with 499 additions and 9 deletions

View File

@@ -52,6 +52,13 @@ type AwoooPReadOnlyLandingReadinessItem = {
tone: 'steady' | 'warn' | 'locked'
}
type AwoooPCrossSessionHandoffPacket = {
key: string
packet: string
icon: typeof ShieldCheck
tone: 'steady' | 'warn' | 'locked'
}
type OwnerResponseNextActionFocusItem = {
key: string
focus: string
@@ -375,6 +382,15 @@ const awooopReadOnlyLandingReadinessItems: AwoooPReadOnlyLandingReadinessItem[]
{ key: 'productionHandoffPending', item: 'L6', icon: Clock3, tone: 'locked' },
]
const awooopCrossSessionHandoffPackets: AwoooPCrossSessionHandoffPacket[] = [
{ key: 'branchAndPrAnchor', packet: 'H1', icon: GitBranch, tone: 'steady' },
{ key: 'progressSemantics', packet: 'H2', icon: Radar, tone: 'warn' },
{ key: 'requiredGuardCommands', packet: 'H3', icon: ShieldCheck, tone: 'steady' },
{ key: 'forbiddenRuntimeActions', packet: 'H4', icon: Lock, tone: 'locked' },
{ key: 'awooopReadOnlyInputs', packet: 'H5', icon: FileText, tone: 'steady' },
{ key: 'nextCoordinationGate', packet: 'H6', icon: ClipboardCheck, tone: 'warn' },
]
const ownerResponseNextActionFocusItems: OwnerResponseNextActionFocusItem[] = [
{ key: 'giteaOwnerAttestation', focus: 'S4.9', icon: ClipboardCheck, tone: 'warn' },
{ key: 'githubTargetOwnerDecision', focus: 'S4.10', icon: GitBranch, tone: 'warn' },
@@ -973,6 +989,39 @@ function AwoooPReadOnlyLandingReadinessCard({ item }: { item: AwoooPReadOnlyLand
)
}
function AwoooPCrossSessionHandoffPacketCard({ item }: { item: AwoooPCrossSessionHandoffPacket }) {
const t = useTranslations('iwooos.awooopCrossSessionHandoff')
const Icon = item.icon
const textWrap = { overflowWrap: 'anywhere' as const, wordBreak: 'break-word' as const }
return (
<div style={{ ...band, minHeight: 204, 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('packetLabel')}</span>
</div>
<span style={{ fontSize: 11, color: toneColors[item.tone] }}>{item.packet}</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('handoffLabel')}</div>
<div style={{ fontSize: 11, color: toneColors[item.tone], lineHeight: 1.45, ...textWrap }}>
{t(`items.${item.key}.handoff` 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
@@ -2296,6 +2345,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('awooopCrossSessionHandoff.title')}</h2>
<p style={{ fontSize: 12, color: '#6f6d66', margin: '6px 0 0', lineHeight: 1.55 }}>
{t('awooopCrossSessionHandoff.subtitle')}
</p>
</div>
<div
style={{
display: 'grid',
gridTemplateColumns: 'repeat(auto-fit, minmax(220px, 1fr))',
gap: 12,
}}
>
{awooopCrossSessionHandoffPackets.map(item => (
<AwoooPCrossSessionHandoffPacketCard 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>