Add end-to-end process analysis

This commit is contained in:
2026-11-06 00:07:58 +00:00
parent 84fe48a672
commit 6b85a173f7
5 changed files with 133 additions and 8 deletions
+8 -2
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
import { LGraph, LGraphCanvas, LiteGraph } from 'litegraph.js'
import { CAPABILITY_PRESETS, CATALOG_SYSTEM_PRESETS, DEPLOYMENT_TEMPLATES, FLOW_CATEGORIES, STARTER_KITS, cloneCapabilities, demoLandscape, executePipeline, SYSTEM_PRESETS, systemFromPreset, type CapabilityModel, type ComponentRole, type ConnectionModel, type DefinitionActionModel, type DeploymentTemplate, type EndpointModel, type EndpointResponseModel, type EnvironmentContainerModel, type EnvironmentModel, type FlowCategory, type InfrastructureComponent, type LandscapeModel, type PipelineTrace, type ScenarioModel, type ScenarioStep, type SystemDefinition, type SystemModel, type SystemPreset, uid, validateLandscape } from './model'
import { CAPABILITY_PRESETS, CATALOG_SYSTEM_PRESETS, DEPLOYMENT_TEMPLATES, FLOW_CATEGORIES, STARTER_KITS, analyzeProcess, cloneCapabilities, demoLandscape, executePipeline, SYSTEM_PRESETS, systemFromPreset, type CapabilityModel, type ComponentRole, type ConnectionModel, type DefinitionActionModel, type DeploymentTemplate, type EndpointModel, type EndpointResponseModel, type EnvironmentContainerModel, type EnvironmentModel, type FlowCategory, type InfrastructureComponent, type LandscapeModel, type PipelineTrace, type ProcessStepAnalysis, type ScenarioModel, type ScenarioStep, type SystemDefinition, type SystemModel, type SystemPreset, uid, validateLandscape } from './model'
const STORAGE_KEY = 'dumas-system-landscape-v1'
const PRESET_STORAGE_KEY = 'dumas-system-presets-v1'
@@ -63,8 +63,13 @@ const selectedSystem = computed(() => landscape.value.systems.find((item) => ite
const selectedConnection = computed(() => landscape.value.connections.find((item) => item.id === selectedConnectionId.value))
const selectedScenario = computed(() => landscape.value.scenarios.find((item) => item.id === selectedScenarioId.value))
const currentStep = computed(() => selectedScenario.value?.steps[stepIndex.value])
const processVersion = computed(() => selectedScenario.value?.process?.versions[selectedScenario.value.process.activeVersion] || selectedScenario.value?.process?.versions.current)
const processFindings = computed(() => selectedScenario.value ? analyzeProcess(selectedScenario.value, landscape.value.connections) : [])
const processPathConnectionIds = computed(() => { const process = selectedScenario.value?.process; const version = processVersion.value; if (!process || !version || !selectedScenario.value) return new Set<string>(); const intended = version.outcomes.find((outcome) => outcome.type === 'intended'); const endIndex = Math.max(...(intended?.stepIds || []).map((stepId) => selectedScenario.value!.steps.findIndex((step) => step.id === stepId)), -1); return new Set(selectedScenario.value.steps.slice(0, endIndex + 1).filter((step) => !processStepAnalysis(step.id).sideEffect && !processStepAnalysis(step.id).notification).flatMap((step) => step.connectionIds)) })
const currentConnections = computed(() => { const ids = runtimeConnectionIds.value.length ? runtimeConnectionIds.value : currentStep.value?.connectionIds || []; return ids.map((id) => landscape.value.connections.find((item) => item.id === id)).filter(Boolean) as ConnectionModel[] })
function flowCategoryMeta(id: FlowCategory) { return FLOW_CATEGORIES.find((item) => item.id === id) || FLOW_CATEGORIES[0] }
function processStepAnalysis(stepId: string): ProcessStepAnalysis { const analysis = processVersion.value?.stepAnalysis[stepId]; return analysis || { operation: 'automatic', evidenceStatus: 'unknown' } }
function saveProcessStepAnalysis(stepId: string, changes: Partial<ProcessStepAnalysis>) { const scenario = selectedScenario.value; const version = processVersion.value; if (!scenario?.process || !version) return; version.stepAnalysis[stepId] = { ...processStepAnalysis(stepId), ...changes }; persist() }
function categoriesForConnection(connection: ConnectionModel, scenario = selectedScenario.value): FlowCategory[] {
if (currentStep.value?.flowCategories?.length && currentStep.value.connectionIds.includes(connection.id)) return currentStep.value.flowCategories
return scenario?.flowCategoryOverrides?.[connection.id] || connection.flowCategories || (scenario?.flowCategory ? [scenario.flowCategory] : ['business-transactions'])
@@ -252,7 +257,7 @@ function drawPackets() {
if (!connection.showCableLabel) continue
const from = graph.getNodeById(visualNodeId(connection.sourceId)); const to = graph.getNodeById(visualNodeId(connection.targetId))
if (!from || !to) continue
ctx.save(); const typeColors: Record<string, string> = { 'data-flow': '#8795ff', deployment: '#f2a65a', dependency: '#9b76e9', 'source-repository': '#26c6a6', 'physical-goods': '#d89555', 'human-task': '#f06ca9' }; ctx.strokeStyle = typeColors[connection.connectionType || 'data-flow']; ctx.lineWidth = 2; ctx.setLineDash(connection.connectionType === 'dependency' ? [5, 5] : connection.connectionType === 'source-repository' ? [2, 5] : connection.connectionType === 'physical-goods' ? [10, 4] : connection.connectionType === 'human-task' ? [3, 3] : []); ctx.beginPath(); ctx.moveTo(from.pos[0] + from.size[0] / 2, from.pos[1] + 50); ctx.lineTo(to.pos[0] + to.size[0] / 2, to.pos[1] + 50); ctx.stroke(); ctx.fillStyle = '#7887a2'; ctx.font = '10px Inter, sans-serif'; ctx.fillText(connectionLabel(connection), (from.pos[0] + to.pos[0]) / 2, (from.pos[1] + to.pos[1]) / 2 - 8); ctx.restore()
ctx.save(); const typeColors: Record<string, string> = { 'data-flow': '#8795ff', deployment: '#f2a65a', dependency: '#9b76e9', 'source-repository': '#26c6a6', 'physical-goods': '#d89555', 'human-task': '#f06ca9' }; ctx.strokeStyle = typeColors[connection.connectionType || 'data-flow']; ctx.lineWidth = processPathConnectionIds.value.has(connection.id) ? 4 : 2; ctx.globalAlpha = processPathConnectionIds.value.size && !processPathConnectionIds.value.has(connection.id) ? .35 : 1; ctx.setLineDash(connection.connectionType === 'dependency' ? [5, 5] : connection.connectionType === 'source-repository' ? [2, 5] : connection.connectionType === 'physical-goods' ? [10, 4] : connection.connectionType === 'human-task' ? [3, 3] : []); ctx.beginPath(); ctx.moveTo(from.pos[0] + from.size[0] / 2, from.pos[1] + 50); ctx.lineTo(to.pos[0] + to.size[0] / 2, to.pos[1] + 50); ctx.stroke(); ctx.fillStyle = '#7887a2'; ctx.font = '10px Inter, sans-serif'; ctx.fillText(connectionLabel(connection), (from.pos[0] + to.pos[0]) / 2, (from.pos[1] + to.pos[1]) / 2 - 8); ctx.restore()
}
for (const connection of currentConnections.value.filter(connectionVisible)) {
const from = graph.getNodeById(visualNodeId(connection.sourceId)); const to = graph.getNodeById(visualNodeId(connection.targetId))
@@ -322,5 +327,6 @@ onUnmounted(stopAnimation)
<section v-if="activeTab === 'presets'" class="catalog-panel panel"><div class="section-heading"><div><span class="eyebrow">LAYERED PRESET LIBRARY</span><strong>Search → choose → review → insert</strong><small>Versioned fictional definitions with official documentation sources.</small></div><button class="ghost" @click="openCustomBuilder">Custom preset</button></div><div class="catalog-controls"><input v-model="presetQuery" placeholder="Search products, capabilities or tags" /><select v-model="presetLayer"><option value="all">All layers</option><option value="system">Systems</option><option value="capability">Capabilities</option><option value="template">Deployments</option><option value="kit">Starter kits</option></select></div><div v-if="presetLayer === 'all' || presetLayer === 'system'" class="catalog-section"><div class="steps-head"><span>Systems</span><small>{{ filteredLibraryPresets.length }} results · favourites are local</small></div><div class="catalog-grid"><article v-for="preset in filteredLibraryPresets" :key="preset.id" class="catalog-card"><div class="catalog-title"><span class="system-dot" :style="{background: preset.color}"></span><strong>{{ preset.name }}</strong><button class="favourite" @click="togglePresetFavourite(preset.id)">{{ favouritePresetIds.includes(preset.id) ? '★' : '☆' }}</button></div><p>{{ preset.description }}</p><div class="catalog-tags"><span v-for="tag in (preset.tags || []).slice(0, 4)" :key="tag">{{ tag }}</span></div><small>{{ preset.capabilities.length }} shared capabilities · v{{ preset.version || 1 }}</small><div class="catalog-actions"><button class="run-mini" @click="openPreset(preset)">Review & place</button><a v-if="preset.sources?.[0]" :href="preset.sources[0].url" target="_blank" rel="noreferrer">Official docs ↗</a></div></article></div></div><div v-if="presetLayer === 'all' || presetLayer === 'capability'" class="catalog-section"><div class="steps-head"><span>Shared capabilities</span><small>{{ filteredCapabilityPresets.length }} reusable definitions</small></div><div class="catalog-grid compact"><article v-for="preset in filteredCapabilityPresets" :key="preset.id" class="catalog-card"><strong>{{ preset.name }}</strong><p>{{ preset.description }}</p><div class="catalog-tags"><span v-for="tag in preset.tags" :key="tag">{{ tag }}</span></div><small>{{ preset.capability.inputs.length }} inputs · {{ preset.capability.outputs.length }} outputs · editable after placement</small></article></div></div><div v-if="presetLayer === 'all' || presetLayer === 'template'" class="catalog-section"><div class="steps-head"><span>Deployment templates</span><small>{{ filteredTemplates.length }} editable layouts</small></div><div class="catalog-grid compact"><article v-for="template in filteredTemplates" :key="template.id" class="catalog-card"><strong>{{ template.name }}</strong><p>{{ template.description }}</p><div class="catalog-tags"><span v-for="tag in template.tags" :key="tag">{{ tag }}</span></div><button class="run-mini" @click="placeDeploymentTemplate(template)">Insert layout</button></article></div></div><div v-if="presetLayer === 'all' || presetLayer === 'kit'" class="catalog-section"><div class="steps-head"><span>Starter kits</span><small>{{ filteredKits.length }} connected journeys</small></div><div class="catalog-grid compact"><article v-for="kit in filteredKits" :key="kit.id" class="catalog-card"><strong>{{ kit.name }}</strong><p>{{ kit.description }}</p><div class="catalog-tags"><span v-for="tag in kit.tags" :key="tag">{{ tag }}</span></div><button class="run-mini" @click="placeStarterKit(kit)">Insert kit systems</button></article></div></div></section>
<section v-if="selectedConnection" class="physical-properties panel"><span class="eyebrow">PHYSICAL / HUMAN RELATIONSHIP</span><label>Connection type<select v-model="selectedConnection.connectionType" @change="rebuildGraph"><option value="data-flow">Information / Data Flow</option><option value="physical-goods">Physical Goods</option><option value="human-task">Human Task</option><option value="deployment">Deployment</option><option value="dependency">Dependency</option><option value="source-repository">Source Repository</option></select></label><p v-if="selectedConnection.connectionType === 'physical-goods'" class="muted">Shipment payloads should describe material, quantity, unit, batch and shipment ID.</p><p v-else-if="selectedConnection.connectionType === 'human-task'" class="muted">Human-task payloads represent a simulated assignment or decision; no person or live workflow is involved.</p></section><section v-if="selectedConnection && selectedConnection.integration" class="integration-properties panel"><span class="eyebrow">PERSISTENT INTEGRATION</span><label>Mechanism<select v-model="selectedConnection.integration!.mechanism"><option value="direct-database-access">Direct Database Access</option><option value="scheduled-import">Scheduled Import</option><option value="replication-sync">Replication / Sync</option><option value="file-transfer">File Transfer</option></select></label><label>Access<select v-model="selectedConnection.integration!.access"><option value="read">Read</option><option value="write">Write</option><option value="read-write">Read / Write</option><option value="unknown">Unknown</option></select></label><label>Trigger<input v-model="selectedConnection.integration!.trigger" placeholder="Application save, scheduler, event..." /></label><label>Frequency<input v-model="selectedConnection.integration!.frequency" placeholder="Every 15 minutes / Unknown" /></label><label>Source objects<textarea :value="(selectedConnection.integration!.sourceObjects || []).join('\n')" @change="selectedConnection.integration!.sourceObjects = ($event.target as HTMLTextAreaElement).value.split('\n').map((item) => item.trim()).filter(Boolean)" rows="2" placeholder="Tables, views or queries"></textarea></label><label>Destination<input v-model="selectedConnection.integration!.destination" placeholder="Sitecore items, cache, search index..." /></label><label>Authoritative source<input v-model="selectedConnection.integration!.authoritativeSource" placeholder="MSSQL / Unknown" /></label><label>Mapping / transformation<textarea v-model="selectedConnection.integration!.transformation" rows="2" placeholder="Optional simulated mapping"></textarea></label></section><section class="connection-legend panel"><span class="eyebrow">CONNECTION LEGEND</span><span><i class="legend-line data"></i> Information / Data</span><span><i class="legend-line goods"></i> Physical Goods</span><span><i class="legend-line human"></i> Human Task</span><span><i class="legend-line deploy"></i> Deployment</span></section>
<section v-if="selectedConnection" class="flow-properties panel"><span class="eyebrow">FLOW METADATA</span><label>Payload type<input v-model="selectedConnection.payloadType" placeholder="JSON order, package, SQL rows..." /></label><label>Scope<select v-model="selectedConnection.scope"><option value="internal">Internal</option><option value="external">External</option><option value="unknown">Unknown</option></select></label><label>Flow purposes<select v-model="selectedConnection.flowCategories" multiple><option v-for="category in FLOW_CATEGORIES" :key="category.id" :value="category.id">{{ category.icon }} {{ category.name }}</option></select></label><p class="muted">Purpose, payload type and integration mechanism are separate fields. Existing cable styles continue to describe the relationship type.</p></section><section class="flow-category-legend panel"><span class="eyebrow">FLOW PURPOSE LEGEND</span><span v-for="category in FLOW_CATEGORIES" :key="category.id" class="flow-legend"><i class="legend-dot" :style="{background: category.color}"></i>{{ category.icon }} {{ category.name }}</span></section>
<section v-if="selectedScenario?.process" class="process-analysis panel"><div class="process-header"><div><span class="eyebrow">END-TO-END PROCESS ANALYSIS</span><strong>{{ selectedScenario.process.startEvent }}</strong><p>Intended outcome: {{ selectedScenario.process.intendedOutcome }}</p></div><label>Version<select v-model="selectedScenario.process.activeVersion"><option value="current">Current State</option><option v-if="selectedScenario.process.versions.proposed" value="proposed">Proposed State</option></select></label></div><div class="process-summary"><span><b>Correlation</b> {{ selectedScenario.process.correlationId }}</span><span><b>Milestones</b> {{ processVersion?.milestones.length || 0 }}</span><span><b>Review findings</b> {{ processFindings.length }}</span></div><details><summary>Local record mappings</summary><pre>{{ JSON.stringify(selectedScenario.process.localRecordMappings, null, 2) }}</pre></details><div class="process-outcomes"><div><b>Outcomes</b><span v-for="outcome in (processVersion?.outcomes || [])" :key="outcome.id" class="process-outcome" :class="outcome.type">{{ outcome.name }} · {{ outcome.type }} · {{ outcome.evidenceStatus }}</span></div><div><b>Milestones</b><span v-for="milestone in (processVersion?.milestones || [])" :key="milestone.id" class="process-milestone">{{ milestone.name }} · {{ milestone.evidenceStatus }}</span></div></div><div class="process-steps"><article v-for="step in selectedScenario.steps" :key="step.id" class="process-step"><div><b>{{ step.explanation }}</b><small>{{ step.connectionIds.map((id) => landscape.connections.find((connection) => connection.id === id)?.label || id).join(' · ') }}</small></div><div class="process-fields"><label>Owner<select :value="processStepAnalysis(step.id).ownerId || ''" @change="saveProcessStepAnalysis(step.id, {ownerId: ($event.target as HTMLSelectElement).value || undefined})"><option value="">Unassigned</option><option v-for="system in landscape.systems" :key="system.id" :value="system.id">{{ system.name }}</option></select></label><label>Operation<select :value="processStepAnalysis(step.id).operation" @change="saveProcessStepAnalysis(step.id, {operation: ($event.target as HTMLSelectElement).value as 'automatic' | 'manual'})"><option value="automatic">Automatic</option><option value="manual">Manual</option></select></label><label>Trigger<input :value="processStepAnalysis(step.id).trigger || ''" @change="saveProcessStepAnalysis(step.id, {trigger: ($event.target as HTMLInputElement).value})" /></label><label>Queue<input :value="processStepAnalysis(step.id).queue || ''" @change="saveProcessStepAnalysis(step.id, {queue: ($event.target as HTMLInputElement).value})" /></label><label>Process min<input :value="processStepAnalysis(step.id).estimatedProcessingMinutes ?? ''" type="number" min="0" @change="saveProcessStepAnalysis(step.id, {estimatedProcessingMinutes: Number(($event.target as HTMLInputElement).value) || 0})" /></label><label>Wait min<input :value="processStepAnalysis(step.id).estimatedWaitingMinutes ?? ''" type="number" min="0" @change="saveProcessStepAnalysis(step.id, {estimatedWaitingMinutes: Number(($event.target as HTMLInputElement).value) || 0})" /></label><label>Evidence<select :value="processStepAnalysis(step.id).evidenceStatus" @change="saveProcessStepAnalysis(step.id, {evidenceStatus: ($event.target as HTMLSelectElement).value as 'confirmed' | 'assumed' | 'unknown'})"><option value="confirmed">Confirmed</option><option value="assumed">Assumed</option><option value="unknown">Unknown</option></select></label></div><small v-if="processStepAnalysis(step.id).notification || processStepAnalysis(step.id).sideEffect || processStepAnalysis(step.id).decision" class="process-flags">{{ processStepAnalysis(step.id).notification ? 'Notification' : '' }} {{ processStepAnalysis(step.id).sideEffect ? 'Side effect' : '' }} {{ processStepAnalysis(step.id).decision ? 'Decision' : '' }}</small></article></div><div v-if="processFindings.length" class="process-findings"><b>Review findings — modelled review prompts, not proven failures</b><p v-for="finding in processFindings" :key="finding.id">{{ finding.message }}</p></div><p class="muted">Processing and waiting times are modelled estimates unless marked Confirmed by measured data.</p></section>
</main>
</template>
+14 -3
View File
@@ -1,11 +1,11 @@
import { describe, expect, it } from 'vitest'
import { CAPABILITY_PRESETS, CATALOG_SYSTEM_PRESETS, DEPLOYMENT_TEMPLATES, FLOW_CATEGORIES, STARTER_KITS, definitionFromCapabilities, demoLandscape, executePipeline, getPreset, systemFromPreset, validateLandscape } from './model'
import { CAPABILITY_PRESETS, CATALOG_SYSTEM_PRESETS, DEPLOYMENT_TEMPLATES, FLOW_CATEGORIES, STARTER_KITS, analyzeProcess, definitionFromCapabilities, demoLandscape, executePipeline, getPreset, systemFromPreset, validateLandscape } from './model'
describe('landscape model', () => {
it('provides the editable demo landscape', () => {
const landscape = demoLandscape()
expect(landscape.systems).toHaveLength(22)
expect(landscape.scenarios.map((scenario) => scenario.name)).toEqual(expect.arrayContaining(['Place order', 'Register customer', 'Contact enquiry', 'Sample request', 'Commercial order', 'Order retry and recovery', 'Commit, build and deploy', 'Website → Middleware → ERP order', 'Physical goods receipt', 'Sitecore live database query', 'Sitecore scheduled import', 'Sitecore production deployment']))
expect(landscape.systems).toHaveLength(26)
expect(landscape.scenarios.map((scenario) => scenario.name)).toEqual(expect.arrayContaining(['Place order', 'Register customer', 'Contact enquiry', 'Sample request', 'Commercial order', 'Order retry and recovery', 'Commit, build and deploy', 'Website → Middleware → ERP order', 'Physical goods receipt', 'Sitecore live database query', 'Sitecore scheduled import', 'Sitecore production deployment', 'Sample request process analysis']))
expect(landscape.scenarios[0].steps[2].connectionIds).toHaveLength(2)
expect(getPreset('bitbucket')?.category).toBe('development-tool')
expect(landscape.connections.find((connection) => connection.id === 'azure-devops-website')?.connectionType).toBe('deployment')
@@ -107,4 +107,15 @@ describe('landscape model', () => {
const imported = validateLandscape(JSON.parse(JSON.stringify(landscape)))
expect(imported.connections.find((connection) => connection.id === deployment.id)).toEqual(deployment)
})
it('analyses current and proposed process states with review findings', () => {
const landscape = demoLandscape()
const scenario = landscape.scenarios.find((item) => item.id === 'sample-request-process')!
expect(scenario.process?.activeVersion).toBe('current')
expect(scenario.process?.versions.proposed?.stepAnalysis['sample-process-crm'].operation).toBe('automatic')
expect(scenario.process?.localRecordMappings['CRM']).toBe('CRM-8821')
expect(analyzeProcess(scenario, landscape.connections).some((finding) => finding.type === 'manual-re-entry')).toBe(true)
expect(scenario.steps.find((step) => step.id === 'sample-process-notifications')?.connectionIds).toHaveLength(2)
const imported = validateLandscape(JSON.parse(JSON.stringify(landscape)))
expect(imported.scenarios.find((item) => item.id === scenario.id)?.process).toEqual(scenario.process)
})
})
+106 -2
View File
@@ -105,6 +105,48 @@ export interface ScenarioStep {
parallelGroup?: string
}
export type EvidenceStatus = 'confirmed' | 'assumed' | 'unknown'
export type ProcessOperation = 'automatic' | 'manual'
export type ProcessOutcomeType = 'intended' | 'alternative-success' | 'rejection' | 'cancellation'
export interface ProcessStepAnalysis {
ownerId?: string
operation: ProcessOperation
trigger?: string
queue?: string
estimatedProcessingMinutes?: number
estimatedWaitingMinutes?: number
evidenceStatus: EvidenceStatus
correlationId?: string
localRecordMappings?: Record<string, string>
sideEffect?: boolean
notification?: boolean
decision?: boolean
notes?: string
}
export interface ProcessMilestone { id: string; name: string; description: string; stepIds: string[]; required: boolean; evidenceStatus: EvidenceStatus }
export interface ProcessOutcome { id: string; name: string; description: string; type: ProcessOutcomeType; stepIds: string[]; evidenceStatus: EvidenceStatus }
export interface ProcessVersion { id: string; label: string; description: string; stepAnalysis: Record<string, ProcessStepAnalysis>; milestones: ProcessMilestone[]; outcomes: ProcessOutcome[] }
export interface ProcessAnalysis { startEvent: string; intendedOutcome: string; correlationId: string; localRecordMappings: Record<string, string>; activeVersion: 'current' | 'proposed'; versions: { current: ProcessVersion; proposed?: ProcessVersion } }
export interface ProcessFinding { id: string; type: 'missing-onward-path' | 'unowned-handoff' | 'manual-re-entry' | 'untracked-notification' | 'unknown-transition'; message: string; stepId?: string; status: 'review' }
export function analyzeProcess(scenario: ScenarioModel, connections: ConnectionModel[] = []): ProcessFinding[] {
const findings: ProcessFinding[] = []
const version = scenario.process?.versions[scenario.process.activeVersion] || scenario.process?.versions.current
if (!version) return findings
const steps = scenario.steps
for (const step of steps) {
const analysis = version.stepAnalysis[step.id]
const nextSources = new Set(steps.slice(steps.indexOf(step) + 1).flatMap((candidate) => candidate.connectionIds.map((connectionId) => connections.find((connection) => connection.id === connectionId)?.sourceId).filter(Boolean)))
const targetIds = step.connectionIds.map((connectionId) => connections.find((connection) => connection.id === connectionId)?.targetId).filter(Boolean)
if (targetIds.length && !step.outcome && !step.humanDecision && !targetIds.some((targetId) => nextSources.has(targetId))) findings.push({ id: `missing-${step.id}`, type: 'missing-onward-path', message: `No onward process path is modelled after “${step.explanation}”. Review whether this handoff ends the request intentionally.`, stepId: step.id, status: 'review' })
if (analysis && !analysis.ownerId) findings.push({ id: `owner-${step.id}`, type: 'unowned-handoff', message: `No owner is recorded for “${step.explanation}”.`, stepId: step.id, status: 'review' })
if (analysis?.operation === 'manual' && /re-?enter|copy|key/i.test(`${analysis.notes || ''} ${step.explanation}`)) findings.push({ id: `reentry-${step.id}`, type: 'manual-re-entry', message: `Manual re-entry is modelled at “${step.explanation}”.`, stepId: step.id, status: 'review' })
if (analysis?.notification && !analysis.sideEffect) findings.push({ id: `notification-${step.id}`, type: 'untracked-notification', message: `Notification-based handoff “${step.explanation}” has no explicit side-effect path.`, stepId: step.id, status: 'review' })
if (analysis?.evidenceStatus === 'unknown' || !analysis) findings.push({ id: `unknown-${step.id}`, type: 'unknown-transition', message: `Evidence for “${step.explanation}” is unknown.`, stepId: step.id, status: 'review' })
}
return findings
}
export interface ScenarioModel {
id: string
name: string
@@ -115,6 +157,7 @@ export interface ScenarioModel {
traceInternal?: boolean
flowCategory?: FlowCategory
flowCategoryOverrides?: Record<string, FlowCategory[]>
process?: ProcessAnalysis
steps: ScenarioStep[]
}
@@ -320,7 +363,11 @@ export const demoLandscape = (): LandscapeModel => ({
{ id: 'octopus', name: 'Octopus Deploy', description: 'Creates a release and coordinates simulated environment deployments.', category: 'development-tool', color: '#2f93e0', position: [360, 1540], tags: ['Production', 'Build & Deployment'], presetId: 'octopus-deploy', capabilities: cloneCapabilities(getPreset('octopus-deploy')!.capabilities) },
{ id: 'sitecore-cm-deploy', name: 'Sitecore CM', description: 'Production content management deployment target.', category: 'application', color: '#f06ca9', position: [650, 1450], tags: ['Production', 'Build & Deployment'], presetId: 'sitecore', capabilities: cloneCapabilities(getPreset('sitecore')!.capabilities) },
{ id: 'sitecore-cd-1-deploy', name: 'Sitecore CD 1', description: 'First production content delivery deployment target.', category: 'application', color: '#f06ca9', position: [900, 1400], tags: ['Production', 'Build & Deployment'], presetId: 'sitecore', capabilities: cloneCapabilities(getPreset('sitecore')!.capabilities) },
{ id: 'sitecore-cd-2-deploy', name: 'Sitecore CD 2', description: 'Second production content delivery deployment target.', category: 'application', color: '#f06ca9', position: [900, 1550], tags: ['Production', 'Build & Deployment'], presetId: 'sitecore', capabilities: cloneCapabilities(getPreset('sitecore')!.capabilities) }
{ id: 'sitecore-cd-2-deploy', name: 'Sitecore CD 2', description: 'Second production content delivery deployment target.', category: 'application', color: '#f06ca9', position: [900, 1550], tags: ['Production', 'Build & Deployment'], presetId: 'sitecore', capabilities: cloneCapabilities(getPreset('sitecore')!.capabilities) },
{ id: 'sample-request-application', name: 'Sample Request Application', description: 'Simulated application that receives and tracks customer sample requests.', category: 'application', color: '#6d7cff', position: [80, 1840], tags: ['Production', 'Sample Request'], presetId: 'api', capabilities: cloneCapabilities(getPreset('api')!.capabilities) },
{ id: 'customer-service', name: 'Customer Service', description: 'Customer service team handling sample-request follow-up.', category: 'business-operation', color: '#f06ca9', position: [650, 1840], tags: ['Production', 'Sample Request', 'Manual'], presetId: 'people-team', capabilities: cloneCapabilities(getPreset('people-team')!.capabilities) },
{ id: 'lab-warehouse', name: 'Lab / Warehouse', description: 'Simulated lab and warehouse operation preparing a customer sample.', category: 'physical-location', color: '#c58b52', position: [930, 1840], tags: ['Production', 'Sample Request', 'Physical'], presetId: 'warehouse', capabilities: cloneCapabilities(getPreset('warehouse')!.capabilities) },
{ id: 'sample-shipment', name: 'Sample Shipment', description: 'Simulated outbound shipment handoff to the customer.', category: 'business-operation', color: '#d89555', position: [1200, 1840], tags: ['Production', 'Sample Request', 'Physical'], presetId: 'supplier', capabilities: cloneCapabilities(getPreset('supplier')!.capabilities) }
],
connections: [
{ id: 'website-api', sourceId: 'website', targetId: 'api', label: 'Order request', description: 'Website submits a new order to the API.', payload: '{"orderId":"ord_1042","total":129.5}' },
@@ -356,7 +403,15 @@ export const demoLandscape = (): LandscapeModel => ({
{ id: 'build-octopus-release', sourceId: 'build-server', targetId: 'octopus', label: 'Versioned package', description: 'Build Server hands a versioned package to Octopus for release creation.', payload: '{"package":"website.2026.11.05.1.zip","version":"2026.11.05.1","commit":"abc123"}', connectionType: 'deployment', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'Package', payloadType: 'Versioned deployment package', scope: 'internal', deliveryMethod: 'immediate', flowCategories: ['build-deployment'], showCableLabel: true },
{ id: 'octopus-cm-release', sourceId: 'octopus', targetId: 'sitecore-cm-deploy', label: 'Deploy to CM', description: 'Octopus deploys the release package to the production content management instance.', payload: '{"release":"rel-2026.11.05.1","package":"website.2026.11.05.1.zip","version":"2026.11.05.1","environment":"Production","target":"CM-01"}', connectionType: 'deployment', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'Deployment', payloadType: 'Release deployment', scope: 'internal', deliveryMethod: 'scheduled', flowCategories: ['build-deployment'], showCableLabel: true },
{ id: 'octopus-cd-1-release', sourceId: 'octopus', targetId: 'sitecore-cd-1-deploy', label: 'Deploy to CD 1', description: 'Octopus deploys the release package to the first production delivery instance.', payload: '{"release":"rel-2026.11.05.1","package":"website.2026.11.05.1.zip","version":"2026.11.05.1","environment":"Production","target":"CD-01"}', connectionType: 'deployment', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'Deployment', payloadType: 'Release deployment', scope: 'internal', deliveryMethod: 'scheduled', flowCategories: ['build-deployment'], showCableLabel: true },
{ id: 'octopus-cd-2-release', sourceId: 'octopus', targetId: 'sitecore-cd-2-deploy', label: 'Deploy to CD 2', description: 'Octopus deploys the release package to the second production delivery instance.', payload: '{"release":"rel-2026.11.05.1","package":"website.2026.11.05.1.zip","version":"2026.11.05.1","environment":"Production","target":"CD-02"}', connectionType: 'deployment', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'Deployment', payloadType: 'Release deployment', scope: 'internal', deliveryMethod: 'scheduled', flowCategories: ['build-deployment'], showCableLabel: true }
{ id: 'octopus-cd-2-release', sourceId: 'octopus', targetId: 'sitecore-cd-2-deploy', label: 'Deploy to CD 2', description: 'Octopus deploys the release package to the second production delivery instance.', payload: '{"release":"rel-2026.11.05.1","package":"website.2026.11.05.1.zip","version":"2026.11.05.1","environment":"Production","target":"CD-02"}', connectionType: 'deployment', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'Deployment', payloadType: 'Release deployment', scope: 'internal', deliveryMethod: 'scheduled', flowCategories: ['build-deployment'], showCableLabel: true },
{ id: 'sitecore-sample-request', sourceId: 'sitecore', targetId: 'sample-request-application', label: 'Sample request', description: 'Sitecore sends a customer sample request to the request application.', payload: '{"correlationId":"SR-2048","sitecoreRequestId":"SC-REQ-2048","sku":"sample-blue","customerEmail":"sam@example.test"}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON', payloadType: 'Sample request', scope: 'internal', deliveryMethod: 'immediate', flowCategories: ['business-transactions'], showCableLabel: true },
{ id: 'sample-app-crm', sourceId: 'sample-request-application', targetId: 'crm', label: 'Manual CRM entry', description: 'A service user manually re-enters the request into the CRM.', payload: '{"correlationId":"SR-2048","requestAppId":"REQ-2048","crmCaseId":"CRM-8821","status":"open"}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON', payloadType: 'CRM case', scope: 'internal', deliveryMethod: 'manual', flowCategories: ['business-transactions'], showCableLabel: true },
{ id: 'crm-sap-sample', sourceId: 'crm', targetId: 'sap', label: 'Sample fulfilment request', description: 'CRM forwards the approved sample request to SAP.', payload: '{"correlationId":"SR-2048","crmCaseId":"CRM-8821","sapRequestId":"SAP-SR-771","sku":"sample-blue","quantity":1}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON', payloadType: 'Fulfilment request', scope: 'internal', deliveryMethod: 'scheduled', flowCategories: ['business-transactions'], showCableLabel: true },
{ id: 'sap-customer-service-sample', sourceId: 'sap', targetId: 'customer-service', label: 'Customer service task', description: 'SAP creates a customer service task for fulfilment follow-up.', payload: '{"correlationId":"SR-2048","sapRequestId":"SAP-SR-771","taskId":"TASK-5501","status":"awaiting preparation"}', connectionType: 'human-task', exchangeType: 'event-transfer', dataType: 'JSON', payloadType: 'Service task', scope: 'internal', deliveryMethod: 'manual', flowCategories: ['business-transactions'], showCableLabel: true },
{ id: 'customer-service-lab-sample', sourceId: 'customer-service', targetId: 'lab-warehouse', label: 'Prepare sample', description: 'Customer Service sends a preparation request to the lab and warehouse.', payload: '{"correlationId":"SR-2048","taskId":"TASK-5501","labWorkOrderId":"LAB-304","sku":"sample-blue","quantity":1}', connectionType: 'human-task', exchangeType: 'event-transfer', dataType: 'JSON', payloadType: 'Preparation task', scope: 'internal', deliveryMethod: 'manual', flowCategories: ['physical-logistics'], showCableLabel: true },
{ id: 'lab-sample-shipment', sourceId: 'lab-warehouse', targetId: 'sample-shipment', label: 'Sample shipment', description: 'The lab and warehouse dispatch the prepared sample.', payload: '{"correlationId":"SR-2048","labWorkOrderId":"LAB-304","shipmentId":"SHP-SR-2048","material":"sample-blue","quantity":1,"unit":"parcel"}', connectionType: 'physical-goods', exchangeType: 'event-transfer', dataType: 'Physical goods', payloadType: 'Sample shipment', scope: 'external', deliveryMethod: 'scheduled', flowCategories: ['physical-logistics'], showCableLabel: true },
{ id: 'sample-customer-notification', sourceId: 'customer-service', targetId: 'email', label: 'Customer email', description: 'Customer Service sends a notification about the request status.', payload: '{"correlationId":"SR-2048","template":"sample-request-update","to":"sam@example.test","requestId":"CRM-8821"}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON', payloadType: 'Notification', scope: 'external', deliveryMethod: 'immediate', flowCategories: ['business-transactions'], showCableLabel: true },
{ id: 'sample-sales-notification', sourceId: 'sample-request-application', targetId: 'email', label: 'Sales notification', description: 'The request application notifies Sales about a new sample request.', payload: '{"correlationId":"SR-2048","template":"sales-sample-request","requestAppId":"REQ-2048"}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON', payloadType: 'Notification', scope: 'internal', deliveryMethod: 'immediate', flowCategories: ['business-transactions'], showCableLabel: true }
],
scenarios: [
{
@@ -455,6 +510,55 @@ export const demoLandscape = (): LandscapeModel => ({
{ id: 'deployment-package', connectionIds: ['build-octopus-release'], explanation: 'The Build Server produces a versioned package and hands it to Octopus.', payload: '{"package":"website.2026.11.05.1.zip","version":"2026.11.05.1","commit":"abc123"}', delayMs: 900, outcome: 'success', flowCategories: ['build-deployment'] },
{ id: 'deployment-targets', connectionIds: ['octopus-cm-release', 'octopus-cd-1-release', 'octopus-cd-2-release'], explanation: 'Octopus creates the Production release and deploys to CM and both CD instances in parallel. Each target reports its own simulated outcome.', payload: '{"release":"rel-2026.11.05.1","package":"website.2026.11.05.1.zip","version":"2026.11.05.1","environment":"Production"}', delayMs: 1400, outcome: 'success', parallelGroup: 'sitecore-production-targets', flowCategories: ['build-deployment'], transferOutcomes: { 'octopus-cm-release': 'success', 'octopus-cd-1-release': 'success', 'octopus-cd-2-release': 'success' } }
]
},
{
id: 'sample-request-process', name: 'Sample request process analysis', description: 'Trace a customer sample request from Sitecore through manual CRM entry, SAP, customer service, preparation and shipment, with separate notification branches.', startSystemId: 'sitecore', startActionId: 'place-sample', flowCategory: 'business-transactions',
steps: [
{ id: 'sample-process-request', connectionIds: ['sitecore-sample-request'], explanation: 'Sitecore creates a customer sample request in the request application.', payload: '{"correlationId":"SR-2048","sitecoreRequestId":"SC-REQ-2048","sku":"sample-blue","customerEmail":"sam@example.test"}', delayMs: 800, outcome: 'success' },
{ id: 'sample-process-notifications', connectionIds: ['sample-sales-notification', 'sample-customer-notification'], explanation: 'Sales and the customer receive status notifications as side effects of the request.', payload: '{"correlationId":"SR-2048","template":"sample-request-received"}', delayMs: 500, outcome: 'success', parallelGroup: 'sample-notifications' },
{ id: 'sample-process-crm', connectionIds: ['sample-app-crm'], explanation: 'A service user manually re-enters the request into CRM.', payload: '{"correlationId":"SR-2048","requestAppId":"REQ-2048","crmCaseId":"CRM-8821","status":"open"}', delayMs: 1200, outcome: 'success' },
{ id: 'sample-process-sap', connectionIds: ['crm-sap-sample'], explanation: 'CRM sends the sample fulfilment request to SAP.', payload: '{"correlationId":"SR-2048","crmCaseId":"CRM-8821","sapRequestId":"SAP-SR-771","sku":"sample-blue","quantity":1}', delayMs: 1000, outcome: 'success' },
{ id: 'sample-process-service', connectionIds: ['sap-customer-service-sample'], explanation: 'SAP creates a customer service task for fulfilment follow-up.', payload: '{"correlationId":"SR-2048","sapRequestId":"SAP-SR-771","taskId":"TASK-5501","status":"awaiting preparation"}', delayMs: 900, outcome: 'success' },
{ id: 'sample-process-preparation', connectionIds: ['customer-service-lab-sample'], explanation: 'Customer Service sends a preparation task to the lab and warehouse.', payload: '{"correlationId":"SR-2048","taskId":"TASK-5501","labWorkOrderId":"LAB-304","sku":"sample-blue","quantity":1}', delayMs: 1100, outcome: 'success' },
{ id: 'sample-process-shipment', connectionIds: ['lab-sample-shipment'], explanation: 'The lab and warehouse prepare and dispatch the sample shipment to the customer.', payload: '{"correlationId":"SR-2048","labWorkOrderId":"LAB-304","shipmentId":"SHP-SR-2048","material":"sample-blue","quantity":1,"unit":"parcel"}', delayMs: 1300, outcome: 'success' }
],
process: {
startEvent: 'Customer submits a sample request on Sitecore.',
intendedOutcome: 'The requested sample is prepared and shipped to the customer.',
correlationId: 'SR-2048',
localRecordMappings: { 'Sitecore request': 'SC-REQ-2048', 'Request application': 'REQ-2048', CRM: 'CRM-8821', SAP: 'SAP-SR-771', 'Customer service task': 'TASK-5501', 'Lab work order': 'LAB-304', Shipment: 'SHP-SR-2048' },
activeVersion: 'current',
versions: {
current: {
id: 'sample-process-current', label: 'Current State', description: 'Existing model with manual CRM re-entry and notification side effects.',
stepAnalysis: {
'sample-process-request': { ownerId: 'sitecore', operation: 'automatic', trigger: 'Customer submits form', queue: 'Sample request queue', estimatedProcessingMinutes: 1, estimatedWaitingMinutes: 5, evidenceStatus: 'confirmed', correlationId: 'SR-2048', localRecordMappings: { Sitecore: 'SC-REQ-2048', RequestApp: 'REQ-2048' } },
'sample-process-notifications': { ownerId: 'sample-request-application', operation: 'automatic', trigger: 'Request accepted', estimatedProcessingMinutes: 1, estimatedWaitingMinutes: 0, evidenceStatus: 'assumed', correlationId: 'SR-2048', sideEffect: true, notification: true, notes: 'Notification delivery is modelled; delivery confirmation is not verified.' },
'sample-process-crm': { operation: 'manual', trigger: 'User checks request queue', queue: 'Customer service work queue', estimatedProcessingMinutes: 5, estimatedWaitingMinutes: 30, evidenceStatus: 'assumed', correlationId: 'SR-2048', localRecordMappings: { CRM: 'CRM-8821' }, notes: 'Copy request details into CRM; manual re-entry is an analysis finding.' },
'sample-process-sap': { ownerId: 'crm', operation: 'automatic', trigger: 'CRM case approved', queue: 'SAP integration queue', estimatedProcessingMinutes: 2, estimatedWaitingMinutes: 10, evidenceStatus: 'unknown', correlationId: 'SR-2048', localRecordMappings: { SAP: 'SAP-SR-771' } },
'sample-process-service': { ownerId: 'customer-service', operation: 'manual', trigger: 'SAP task created', queue: 'Customer service queue', estimatedProcessingMinutes: 10, estimatedWaitingMinutes: 60, evidenceStatus: 'assumed', correlationId: 'SR-2048', localRecordMappings: { Task: 'TASK-5501' }, decision: true },
'sample-process-preparation': { ownerId: 'customer-service', operation: 'manual', trigger: 'Customer service releases task', queue: 'Lab preparation queue', estimatedProcessingMinutes: 20, estimatedWaitingMinutes: 120, evidenceStatus: 'assumed', correlationId: 'SR-2048', localRecordMappings: { 'Lab work order': 'LAB-304' } },
'sample-process-shipment': { ownerId: 'lab-warehouse', operation: 'manual', trigger: 'Sample passes preparation check', queue: 'Dispatch queue', estimatedProcessingMinutes: 10, estimatedWaitingMinutes: 240, evidenceStatus: 'unknown', correlationId: 'SR-2048', localRecordMappings: { Shipment: 'SHP-SR-2048' } }
},
milestones: [
{ id: 'request-logged', name: 'Request logged', description: 'The customer request has an application record.', stepIds: ['sample-process-request'], required: true, evidenceStatus: 'confirmed' },
{ id: 'crm-recorded', name: 'CRM case recorded', description: 'Customer service has a CRM case to work from.', stepIds: ['sample-process-crm'], required: true, evidenceStatus: 'assumed' },
{ id: 'sample-shipped', name: 'Sample shipped', description: 'The sample has left the lab/warehouse.', stepIds: ['sample-process-shipment'], required: true, evidenceStatus: 'assumed' }
],
outcomes: [
{ id: 'sample-success', name: 'Sample shipped', description: 'The customer receives the requested sample.', type: 'intended', stepIds: ['sample-process-shipment'], evidenceStatus: 'assumed' },
{ id: 'sample-rejected', name: 'Request rejected', description: 'Customer service rejects the request and sends a notification.', type: 'rejection', stepIds: ['sample-process-service'], evidenceStatus: 'unknown' },
{ id: 'sample-cancelled', name: 'Request cancelled', description: 'The request is cancelled before shipment.', type: 'cancellation', stepIds: ['sample-process-service'], evidenceStatus: 'unknown' }
]
},
proposed: {
id: 'sample-process-proposed', label: 'Proposed State', description: 'Proposed alternative with automatic CRM creation and explicit status updates.',
stepAnalysis: { 'sample-process-request': { ownerId: 'sitecore', operation: 'automatic', trigger: 'Customer submits form', evidenceStatus: 'assumed', correlationId: 'SR-2048' }, 'sample-process-crm': { ownerId: 'sample-request-application', operation: 'automatic', trigger: 'Request accepted', queue: 'Integration queue', estimatedProcessingMinutes: 1, estimatedWaitingMinutes: 0, evidenceStatus: 'assumed', correlationId: 'SR-2048', notes: 'Create CRM case from the request payload instead of manual re-entry.' } },
milestones: [{ id: 'proposed-crm', name: 'CRM case created automatically', description: 'The request application creates the CRM case without clerical copying.', stepIds: ['sample-process-crm'], required: true, evidenceStatus: 'assumed' }],
outcomes: [{ id: 'proposed-success', name: 'Sample shipped', description: 'The customer receives the requested sample.', type: 'intended', stepIds: ['sample-process-shipment'], evidenceStatus: 'assumed' }]
}
}
}
}
]
})
+1
View File
@@ -6,3 +6,4 @@
.catalog-panel{padding:16px;margin-top:14px}.catalog-panel small{display:block;color:#8996af;margin-top:4px}.catalog-controls{display:grid;grid-template-columns:1fr 180px;gap:8px;margin:14px 0}.catalog-controls input,.catalog-controls select{background:#0d1320;color:#dce4f4;border:1px solid #303d58;border-radius:4px;padding:9px}.catalog-section{border-top:1px solid #263149;padding-top:14px;margin-top:14px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.catalog-grid.compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.catalog-card{border:1px solid #303d58;background:#0d1320;border-radius:5px;padding:12px}.catalog-title{display:flex;align-items:center;gap:8px}.catalog-title strong{flex:1}.catalog-card p{color:#aab5c9;font-size:11px;line-height:1.45;min-height:34px}.catalog-tags{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0}.catalog-tags span{font-size:9px;color:#b9c5ff;border:1px solid #39486a;border-radius:10px;padding:3px 6px}.catalog-actions{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.catalog-actions a{color:#91a4ff;font-size:10px}.favourite{background:transparent;border:0;color:#f4ca72;font-size:18px;cursor:pointer}@media(max-width:700px){.catalog-controls{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr}}
.physical-properties,.connection-legend{display:flex;align-items:center;gap:14px;padding:12px 16px;margin-top:14px}.physical-properties label{display:flex;align-items:center;gap:8px;color:#aab5c9;font-size:11px;font-weight:700}.physical-properties select{background:#0d1320;color:#dce4f4;border:1px solid #303d58;border-radius:4px;padding:7px}.connection-legend{flex-wrap:wrap;color:#aab5c9;font-size:11px}.connection-legend .eyebrow{margin-right:4px}.legend-line{display:inline-block;width:28px;border-top:2px solid currentColor;margin-right:5px;vertical-align:middle}.legend-line.goods{color:#d89555;border-top-style:dashed}.legend-line.human{color:#f06ca9;border-top-style:dotted}.legend-line.deploy{color:#f2a65a;border-top-style:dashed}.legend-line.data{color:#8795ff}
.flow-properties,.flow-category-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-top:14px}.flow-properties label{display:flex;align-items:center;gap:7px;color:#aab5c9;font-size:11px;font-weight:700}.flow-properties input,.flow-properties select{background:#0d1320;color:#dce4f4;border:1px solid #303d58;border-radius:4px;padding:7px}.flow-properties select[multiple]{min-width:210px;min-height:62px}.flow-properties .muted{flex-basis:100%;margin:0}.flow-category-legend{color:#aab5c9;font-size:11px}.flow-legend{display:inline-flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.process-analysis{padding:16px;margin-top:14px}.process-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.process-header strong{display:block;color:#f2f5fb;font-size:15px;margin-top:5px}.process-header p{color:#aab5c9;margin:7px 0}.process-header label{display:flex;align-items:center;gap:8px;color:#aab5c9;font-size:11px;font-weight:700}.process-header select,.process-fields input,.process-fields select{background:#0d1320;color:#dce4f4;border:1px solid #303d58;border-radius:4px;padding:6px}.process-summary{display:flex;gap:18px;flex-wrap:wrap;color:#aab5c9;font-size:11px;margin:12px 0}.process-summary b,.process-outcomes>b{color:#eef2fa}.process-analysis details{color:#aab5c9;font-size:11px}.process-analysis pre{background:#0b101a;padding:8px;overflow:auto}.process-outcomes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;color:#aab5c9;font-size:11px}.process-outcomes>div{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.process-outcome,.process-milestone{padding:4px 7px;border-radius:4px;background:#192338}.process-outcome.intended{border-left:3px solid #26c6a6}.process-outcome.rejection,.process-outcome.cancellation{border-left:3px solid #ef627d}.process-step{border-top:1px solid #27344c;padding:10px 0}.process-step>b,.process-step strong{color:#eef2fa}.process-step>div:first-child small{display:block;color:#7887a2;margin-top:4px}.process-fields{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:7px;margin-top:8px}.process-fields label{display:flex;flex-direction:column;gap:4px;color:#8996af;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.process-flags{display:block;color:#f2a65a;margin-top:7px}.process-findings{margin-top:13px;border-left:3px solid #f2a65a;background:#1c1a1a;padding:10px;color:#f4c27a;font-size:11px}.process-findings p{margin:6px 0;color:#d6bf9a}@media(max-width:900px){.process-fields{grid-template-columns:repeat(2,minmax(120px,1fr))}.process-outcomes{grid-template-columns:1fr}}