fix(web): render ready asset matrix metrics
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 3m26s
CD Pipeline / build-and-deploy (push) Successful in 11m54s
CD Pipeline / post-deploy-checks (push) Successful in 2m8s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 3m26s
CD Pipeline / build-and-deploy (push) Successful in 11m54s
CD Pipeline / post-deploy-checks (push) Successful in 2m8s
This commit is contained in:
@@ -12456,6 +12456,7 @@ function AssetCapabilityMatrixPanel({
|
||||
}) {
|
||||
const t = useTranslations("awooop.workItems.assetCapabilityMatrix");
|
||||
const matrix = priority?.ai_automation_asset_capability_matrix;
|
||||
const isLoading = loading && !matrix;
|
||||
const summary = matrix?.summary;
|
||||
const assets = matrix?.assets ?? [];
|
||||
const scopeRollups = matrix?.scope_rollups ?? [];
|
||||
@@ -12529,7 +12530,7 @@ function AssetCapabilityMatrixPanel({
|
||||
) : (
|
||||
<TriangleAlert className="h-4 w-4" aria-hidden="true" />
|
||||
)}
|
||||
{loading ? "--" : matrix?.closed ? t("closed") : t("open")}
|
||||
{isLoading ? "--" : matrix?.closed ? t("closed") : t("open")}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12561,7 +12562,7 @@ function AssetCapabilityMatrixPanel({
|
||||
{metric.label}
|
||||
</div>
|
||||
<div className="mt-1 font-mono text-xl font-semibold text-[#141413]">
|
||||
{loading ? "--" : metric.value ?? 0}
|
||||
{isLoading ? "--" : metric.value ?? 0}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
@@ -12685,7 +12686,7 @@ function AssetCapabilityMatrixPanel({
|
||||
})}
|
||||
</div>
|
||||
))}
|
||||
{!loading && filteredAssets.length === 0 ? (
|
||||
{!isLoading && filteredAssets.length === 0 ? (
|
||||
<div className="bg-white px-4 py-8 text-center text-xs text-[#77736a]">
|
||||
{t("empty")}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user