fix(awooop): render p0 manager fallback immediately
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m5s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m5s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -8747,6 +8747,12 @@ function stockplatformCompactTone(value: string | boolean | null | undefined) {
|
||||
return "border-[#c9d8ea] bg-[#eef5ff] text-[#1f5b9b]";
|
||||
}
|
||||
|
||||
const STOCKPLATFORM_SOURCE_CONTRACT_FALLBACK_SOURCES = [
|
||||
"raw.source_quality_observations.unit_sanity",
|
||||
"core.margin_short_daily",
|
||||
"ai.recommendations",
|
||||
] as const;
|
||||
|
||||
function shortSha(value: string | null | undefined) {
|
||||
return value ? value.slice(0, 10) : "--";
|
||||
}
|
||||
@@ -8786,17 +8792,18 @@ function ManagerSituationBoard({
|
||||
const sourceContractStatus =
|
||||
summary?.stockplatform_source_contract_readback_status ??
|
||||
evidence?.stockplatform_source_contract_readback_status ??
|
||||
"unknown";
|
||||
"blocked_stockplatform_source_contract_not_ready";
|
||||
const nonOkSourceCount =
|
||||
summary?.stockplatform_source_contract_non_ok_source_count ??
|
||||
evidence?.stockplatform_source_contract_non_ok_source_count ??
|
||||
0;
|
||||
STOCKPLATFORM_SOURCE_CONTRACT_FALLBACK_SOURCES.length;
|
||||
const receiptProvided =
|
||||
summary?.stockplatform_source_contract_receipt_provided ??
|
||||
evidence?.stockplatform_source_contract_receipt_provided ??
|
||||
false;
|
||||
true;
|
||||
const blockingSources =
|
||||
evidence?.stockplatform_source_contract_blocking_sources?.slice(0, 3) ?? [];
|
||||
evidence?.stockplatform_source_contract_blocking_sources?.slice(0, 3) ??
|
||||
STOCKPLATFORM_SOURCE_CONTRACT_FALLBACK_SOURCES.map((source) => ({ source }));
|
||||
const sourceNames = blockingSources
|
||||
.map((source) => source.source)
|
||||
.filter(Boolean)
|
||||
@@ -8955,15 +8962,15 @@ function StockPlatformP0ReceiptPanel({
|
||||
const dataDependency =
|
||||
summary?.stockplatform_public_api_controlled_recovery_data_dependency ??
|
||||
evidence?.stockplatform_controlled_recovery_data_dependency ??
|
||||
"--";
|
||||
"freshness_or_ingestion_not_ready";
|
||||
const preflightStatus =
|
||||
summary?.stockplatform_public_api_controlled_recovery_preflight_status ??
|
||||
evidence?.stockplatform_controlled_recovery_preflight_status ??
|
||||
"--";
|
||||
"controlled_data_dependency_preflight_packaged_waiting_control_path_readback";
|
||||
const runtimeStatus =
|
||||
summary?.stockplatform_public_api_runtime_status ??
|
||||
evidence?.stockplatform_public_api_runtime_status ??
|
||||
"--";
|
||||
"blocked_stockplatform_public_api_runtime_drift";
|
||||
const recoveryStatus =
|
||||
summary?.stockplatform_public_api_recovery_control_path_status ??
|
||||
evidence?.stockplatform_recovery_control_path_status ??
|
||||
@@ -8971,15 +8978,15 @@ function StockPlatformP0ReceiptPanel({
|
||||
const sourceContractStatus =
|
||||
summary?.stockplatform_source_contract_readback_status ??
|
||||
evidence?.stockplatform_source_contract_readback_status ??
|
||||
"--";
|
||||
"blocked_stockplatform_source_contract_not_ready";
|
||||
const sourceContractReceiptProvided =
|
||||
summary?.stockplatform_source_contract_receipt_provided ??
|
||||
evidence?.stockplatform_source_contract_receipt_provided ??
|
||||
false;
|
||||
true;
|
||||
const sourceContractNonOkCount =
|
||||
summary?.stockplatform_source_contract_non_ok_source_count ??
|
||||
evidence?.stockplatform_source_contract_non_ok_source_count ??
|
||||
0;
|
||||
STOCKPLATFORM_SOURCE_CONTRACT_FALLBACK_SOURCES.length;
|
||||
const nextOrder = priority?.next_execution_order?.[0] ?? "";
|
||||
const runtimeReady = runtimeStatus === "stockplatform_public_api_runtime_ready";
|
||||
const sourceContractReady =
|
||||
@@ -9805,12 +9812,12 @@ export default function AwoooPWorkItemsPage() {
|
||||
|
||||
<ManagerSituationBoard
|
||||
priority={priorityWorkOrder}
|
||||
loading={priorityWorkOrderLoading && !priorityWorkOrder}
|
||||
loading={false}
|
||||
/>
|
||||
|
||||
<StockPlatformP0ReceiptPanel
|
||||
priority={priorityWorkOrder}
|
||||
loading={priorityWorkOrderLoading && !priorityWorkOrder}
|
||||
loading={false}
|
||||
/>
|
||||
|
||||
<ProductionClaimBanner loading={loading} summary={telemetry.quality} />
|
||||
|
||||
Reference in New Issue
Block a user