feat(delivery): expose p0 reboot drill readback
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 3m46s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-30 09:25:58 +08:00
parent fbea3b4626
commit a7e6de46aa
8 changed files with 401 additions and 4 deletions

View File

@@ -186,6 +186,8 @@ function CurrentP0Panel({
const { readback, rollups, operation_boundaries: boundaries } = workbench
const readiness = clampPercent(readback.current_p0_readiness_percent || rollups.current_p0_readiness_percent)
const blockers = readback.current_p0_active_blockers.length > 0 ? readback.current_p0_active_blockers : workbench.active_blockers
const drillPreflightReady = readback.current_p0_drill_preflight_ready || rollups.current_p0_drill_preflight_ready
const drillBreakGlassRequired = readback.current_p0_drill_preflight_break_glass_required || rollups.current_p0_drill_preflight_break_glass_required
const panelTone: DeliveryTone = blockers.length > 0 ? 'danger' : readiness >= 100 ? 'ok' : 'warn'
const closedP0 = readback.closed_p0_workplan_ids.length > 0
? readback.closed_p0_workplan_ids.join(' / ')
@@ -196,6 +198,8 @@ function CurrentP0Panel({
{ key: 'productData', value: rollups.current_p0_product_data_green ? t('currentP0.values.green') : t('currentP0.values.blocked') },
{ key: 'backup', value: rollups.current_p0_backup_core_green ? t('currentP0.values.green') : t('currentP0.values.blocked') },
{ key: 'stock', value: `${rollups.current_p0_stockplatform_freshness_status} / ${rollups.current_p0_stockplatform_ingestion_status}` },
{ key: 'drillPreflight', value: drillPreflightReady ? t('currentP0.values.ready') : t('currentP0.values.blocked') },
{ key: 'breakGlass', value: drillBreakGlassRequired ? t('currentP0.values.yes') : t('currentP0.values.no') },
{ key: 'github', value: readback.github_lane_status },
]
const flagRows = [