feat(delivery): expose dispatch channel readback
Some checks failed
E2E Health Check / e2e-health (push) Failing after 0s
AI 技術雷達監控 / ai-technology-watch (push) Failing after 1s

This commit is contained in:
Your Name
2026-06-28 21:19:26 +08:00
parent b754e8a1a4
commit 88607eae4d
8 changed files with 150 additions and 29 deletions

View File

@@ -288,6 +288,7 @@ export default function DeliveryPage({ params }: { params: { locale: string } })
return workbench.lanes.map(lane => {
const iconMap = {
release: Rocket,
production_deploy: Rocket,
github: GitBranch,
gitea: PackageCheck,
runtime: Server,
@@ -298,6 +299,11 @@ export default function DeliveryPage({ params }: { params: { locale: string } })
? t('lanes.release.metric', { blocked: lane.metric.blocked })
: lane.metric.kind === 'private_backup_verified'
? t('lanes.github.metric', { verified: lane.metric.verified, total: lane.metric.total })
: lane.metric.kind === 'deploy_readback'
? t('lanes.production_deploy.metric', {
run: lane.metric.latest_visible_cd_run_id,
status: lane.metric.latest_visible_cd_run_status,
})
: lane.metric.kind === 'workflow_count'
? t('lanes.gitea.metric', { count: lane.metric.count })
: lane.metric.kind === 'surface_count'

View File

@@ -2543,6 +2543,27 @@ export interface DeliveryClosureWorkbenchSnapshot {
visibility_change_authorized: boolean
refs_sync_authorized: boolean
workflow_trigger_authorized: boolean
production_deploy_status: string
production_deploy_source_control_main_ready: boolean
production_deploy_image_tag_matches_main: boolean
production_deploy_governance_fields_present: boolean
production_deploy_authorized_dispatch_channel_ready: boolean
production_deploy_manual_run_button_visible: boolean
production_deploy_gitea_sign_in_required: boolean
production_deploy_dispatch_without_token_http_status: number
production_deploy_dispatch_without_token_message: string
production_deploy_hard_blocker_count: number
production_deploy_latest_visible_cd_run_id: string
production_deploy_latest_visible_cd_run_status: string
production_deploy_latest_visible_cd_run_jobs_total_count: number
production_deploy_non110_runner_ready: boolean
production_deploy_non110_runner_prepare_only_source_ready: boolean
production_deploy_non110_runner_safe_registration_helper_ready: boolean
production_deploy_non110_runner_registration_condition_required: boolean
production_deploy_non110_runner_ready_config_count: number
production_deploy_non110_runner_ready_service_count: number
production_deploy_non110_runner_ready_registration_count: number
production_deploy_non110_runner_remaining_blocker_count: number
github_write_channel_ready: boolean
github_account_status: string
github_account_suspended: boolean
@@ -2561,13 +2582,36 @@ export interface DeliveryClosureWorkbenchSnapshot {
missing_reason: string
}>
lanes: Array<{
id: 'release' | 'github' | 'gitea' | 'runtime' | 'backup'
id: 'release' | 'production_deploy' | 'github' | 'gitea' | 'runtime' | 'backup'
source_id: string
completion_percent: number
status: string
blocker_count: number
metric:
| { kind: 'blocked_gate'; blocked: number; total: number }
| {
kind: 'deploy_readback'
observed_source_control_main_short_sha: string
production_image_tag_short_sha: string
production_image_tag_matches_main: boolean
current_main_cd_run_visible: boolean
authorized_dispatch_channel_ready: boolean
manual_run_button_visible: boolean
gitea_sign_in_required: boolean
dispatch_without_token_http_status: number
dispatch_without_token_message: string
latest_visible_cd_run_id: string
latest_visible_cd_run_status: string
latest_visible_cd_run_jobs_total_count: number
non110_runner_ready: boolean
non110_runner_prepare_only_source_ready: boolean
non110_runner_safe_registration_helper_ready: boolean
non110_runner_registration_condition_required: boolean
non110_runner_ready_config_count: number
non110_runner_ready_service_count: number
non110_runner_ready_registration_count: number
non110_runner_remaining_blocker_count: number
}
| {
kind: 'private_backup_verified'
verified: number