Polish populated workflow guidance
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-21 00:57:08 +02:00
parent 2ccb2fb8e8
commit 05e29598ef
6 changed files with 66 additions and 5 deletions
+13 -5
View File
@@ -450,11 +450,13 @@ function App(): JSX.Element {
setActiveWorkspace('exports')
}
const hasAnalysisOutput = qualityChecks.length > 0 || Boolean(changeDetectionResult) || detectionItems.length > 0 || segmentationItems.length > 0
const hasMapContext = mapFeatureCount > 0 || areaFeatureCount > 0
const workflowGuidanceComplete = Boolean(selectedProjectId) && datasets.length > 0 && hasMapContext && hasAnalysisOutput && exports.length > 0
const recommendedWorkflowTarget: WorkspaceKey = !selectedProjectId
? 'data'
: datasets.length === 0
? 'data'
: mapFeatureCount === 0 && areaFeatureCount === 0
: !hasMapContext
? 'map'
: !hasAnalysisOutput
? 'analysis'
@@ -488,9 +490,13 @@ function App(): JSX.Element {
{
step: '3',
title: 'Map',
detail: mapFeatureCount > 0 || areaFeatureCount > 0 ? `${mapFeatureCount + areaFeatureCount} active map feature${mapFeatureCount + areaFeatureCount === 1 ? '' : 's'}` : 'Inspect AOI and selected layer',
status: mapFeatureCount > 0 || areaFeatureCount > 0 ? 'ready' : 'waiting',
ready: mapFeatureCount > 0 || areaFeatureCount > 0,
detail: hasMapContext
? mapFeatureCount > 0
? `${mapFeatureCount} layer feature${mapFeatureCount === 1 ? '' : 's'}${areaFeatureCount > 0 ? ' + AOI' : ''}`
: 'AOI loaded'
: 'Inspect AOI and selected layer',
status: hasMapContext ? 'ready' : 'waiting',
ready: hasMapContext,
target: 'map',
},
{
@@ -607,7 +613,9 @@ function App(): JSX.Element {
<h2>Project to export path</h2>
</div>
<span className="status-badge">
Next: {workspaceNavItems.find((item) => item.key === recommendedWorkflowTarget)?.label ?? 'Overview'}
{workflowGuidanceComplete
? 'Ready for handoff'
: `Next: ${workspaceNavItems.find((item) => item.key === recommendedWorkflowTarget)?.label ?? 'Overview'}`}
</span>
</div>
<div className="workflow-guidance-steps">