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

@@ -175,6 +175,8 @@
"productData": "產品資料",
"backup": "備份核心",
"stock": "StockPlatform",
"drillPreflight": "Drill preflight",
"breakGlass": "Break-glass required",
"github": "GitHub lane"
},
"flags": {
@@ -188,6 +190,7 @@
"values": {
"yes": "是",
"no": "否",
"ready": "ready",
"green": "green",
"blocked": "blocked",
"open": "open",

View File

@@ -175,6 +175,8 @@
"productData": "產品資料",
"backup": "備份核心",
"stock": "StockPlatform",
"drillPreflight": "Drill preflight",
"breakGlass": "Break-glass required",
"github": "GitHub lane"
},
"flags": {
@@ -188,6 +190,7 @@
"values": {
"yes": "是",
"no": "否",
"ready": "ready",
"green": "green",
"blocked": "blocked",
"open": "open",

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 = [

View File

@@ -2701,6 +2701,11 @@ export interface DeliveryClosureWorkbenchSnapshot {
current_p0_safe_next_step: string
current_p0_active_blockers: string[]
current_p0_readiness_percent: number
current_p0_drill_preflight_status: string
current_p0_drill_preflight_ready: boolean
current_p0_drill_preflight_safe_next_step: string
current_p0_drill_preflight_break_glass_required: boolean
current_p0_drill_preflight_execution_authorized_by_this_endpoint: boolean
closed_p0_workplan_ids: string[]
github_lane_status: string
secret_value_collection_allowed: boolean
@@ -2720,6 +2725,12 @@ export interface DeliveryClosureWorkbenchSnapshot {
current_p0_backup_core_green: boolean
current_p0_stockplatform_freshness_status: string
current_p0_stockplatform_ingestion_status: string
current_p0_drill_preflight_ready: boolean
current_p0_drill_preflight_ready_count: number
current_p0_drill_preflight_blocker_count: number
current_p0_drill_preflight_break_glass_required: boolean
current_p0_drill_preflight_execution_authorized_by_this_endpoint: boolean
current_p0_drill_preflight_runtime_write_allowed: boolean
gitea_private_inventory_blocker_count: number
credential_escrow_blocker_count: number
production_deploy_hard_blocker_count: number