From cb1eb109539345adf3e12eb798c584743e4a7441 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Thu, 5 Nov 2026 23:33:26 +0000 Subject: [PATCH] Add physical operations and warehouse journeys --- README.md | 2 ++ src/App.vue | 7 ++++--- src/model.test.ts | 16 ++++++++++++++-- src/model.ts | 32 ++++++++++++++++++++++++++++---- src/navigation.css | 1 + 5 files changed, 49 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e4c0718..943ac0d 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ The initial landscape contains Website, API, ERP, CRM and Email Platform plus tw - Drill into logical system environments such as Dev, QA, UAT and Prod. Environments have editable components, instances, safe example configuration placeholders and internal topology; Sitecore Prod is included as a fictional CM/CD/MSSQL/Solr example. - Classify systems with Application, SaaS Service, Cloud Service, Development Tool and Data Store categories, plus independent tags such as Production, Test and Customer Data. - Use typed Data Flow, Deployment, Dependency and Source Repository relationships. Development playback includes the simulated Bitbucket commit → Azure DevOps build → website deployment journey. +- Model physical operations alongside software with Physical Location and Business Operation categories, plus Physical Goods and Human Task relationships. The Warehouse preset includes receiving, storage, picking, dispatch and returns with clearly labelled physical-goods ports and fictional shipment payloads. +- Run the mixed Physical goods receipt demo: SAP purchase order → Supplier shipment → Warehouse → Warehouse Operative decision → Warehouse Management System → SAP confirmation. Physical locations remain independent from their software systems; all transfers are simulated and inspectable. - Place reusable Website, CRM, ERP, Email Platform, Analytics and API presets, selecting only the capabilities needed for each instance. - Browse the layered preset library from the Presets tab: searchable system/product catalog entries, shared capabilities, deployment layouts and starter kits. Entries include tags, version metadata and official documentation sources; favourites are stored locally. - Inspect labelled capability ports and fictional action payloads, expand node actions, and save customised systems as private browser-local presets. diff --git a/src/App.vue b/src/App.vue index 9ba8d7b..4ea4287 100644 --- a/src/App.vue +++ b/src/App.vue @@ -241,7 +241,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 = { 'data-flow': '#8795ff', deployment: '#f2a65a', dependency: '#9b76e9', 'source-repository': '#26c6a6' }; ctx.strokeStyle = typeColors[connection.connectionType || 'data-flow']; ctx.lineWidth = 2; ctx.setLineDash(connection.connectionType === 'dependency' ? [5, 5] : connection.connectionType === 'source-repository' ? [2, 5] : []); 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 = { '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() } for (const connection of currentConnections.value.filter(connectionVisible)) { const from = graph.getNodeById(visualNodeId(connection.sourceId)); const to = graph.getNodeById(visualNodeId(connection.targetId)) @@ -299,14 +299,15 @@ onUnmounted(stopAnimation)
EASY SCENARIO BUILDERStart with an action, then build the journey

Connections remain reusable destinations; parallel branches share one step.

{{ index + 1 }}{{ step.explanation }}
MONDAY DEMO / START HERETry a journey in three clicks
  1. Open Scenarios and choose Contact enquiry, Sample request or Commercial order.
  2. Press ▶ in the journey list, then use pause, next or speed controls.
  3. Try Order retry and recovery to see a rejection, automatic retry and recovery message. Select a system to inspect its data history.
HUMAN DECISION REQUIRED{{ systemName(pendingDecision.roleSystemId) }}

{{ pendingDecision.task }}

Information received
{{ pendingDecision.receivedData }}
Editable fields
- +
Environment containers
-
+
INFRASTRUCTURE DRILL-DOWN{{ selectedSystem.name }} environments
No environments yet. Add Dev, QA, UAT or Prod.
Components and instances
{{ component.name }}{{ component.role }} · {{ component.instanceName }}
Internal topologyEditable example connections
SCENARIO ENVIRONMENT
Middleware pipeline traceSimulated restricted mappings
{{ trace.name }}{{ trace.type.toUpperCase() }} · {{ trace.explanation }}
{{ trace.input }}
→
{{ trace.output }}

Changed: {{ trace.changedFields.join(', ') }}

ACTION PIPELINES

Middleware mapping editor

Optional restricted pipelines are saved inside each action definition. No arbitrary JavaScript is executed.

{{ action.name }}

Add Receive, Validate, Transform, Route and Send stages to this action.

Mapping ops: copy, rename, fixed, default, type-conversion, object-construction and array-item-mapping. Use $ref:key in a fixed value for a reference lookup.
LAYERED PRESET LIBRARYSearch → choose → review → insertVersioned fictional definitions with official documentation sources.
Systems{{ filteredLibraryPresets.length }} results · favourites are local
{{ preset.name }}

{{ preset.description }}

{{ tag }}
{{ preset.capabilities.length }} shared capabilities · v{{ preset.version || 1 }}
Official docs ↗
Shared capabilities{{ filteredCapabilityPresets.length }} reusable definitions
{{ preset.name }}

{{ preset.description }}

{{ tag }}
{{ preset.capability.inputs.length }} inputs · {{ preset.capability.outputs.length }} outputs · editable after placement
Deployment templates{{ filteredTemplates.length }} editable layouts
{{ template.name }}

{{ template.description }}

{{ tag }}
Starter kits{{ filteredKits.length }} connected journeys
{{ kit.name }}

{{ kit.description }}

{{ tag }}
+
PHYSICAL / HUMAN RELATIONSHIP

Shipment payloads should describe material, quantity, unit, batch and shipment ID.

Human-task payloads represent a simulated assignment or decision; no person or live workflow is involved.

CONNECTION LEGEND Information / Data Physical Goods Human Task Deployment
diff --git a/src/model.test.ts b/src/model.test.ts index eb8d88b..c688b5a 100644 --- a/src/model.test.ts +++ b/src/model.test.ts @@ -4,12 +4,15 @@ import { CAPABILITY_PRESETS, CATALOG_SYSTEM_PRESETS, DEPLOYMENT_TEMPLATES, START describe('landscape model', () => { it('provides the editable demo landscape', () => { const landscape = demoLandscape() - expect(landscape.systems).toHaveLength(10) - 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'])) + expect(landscape.systems).toHaveLength(15) + 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'])) 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') expect(landscape.systems.find((system) => system.id === 'sitecore')?.environments?.[0].components.map((component) => component.role)).toEqual(expect.arrayContaining(['content-management', 'content-delivery', 'database-server', 'database', 'search-service'])) + expect(landscape.systems.find((system) => system.id === 'warehouse')?.category).toBe('physical-location') + expect(landscape.connections.find((connection) => connection.id === 'supplier-warehouse-goods')?.connectionType).toBe('physical-goods') + expect(landscape.connections.find((connection) => connection.id === 'warehouse-operative-confirmation')?.connectionType).toBe('human-task') }) it('round-trips a valid landscape and preserves positions', () => { const source = demoLandscape(); const imported = validateLandscape(JSON.parse(JSON.stringify(source))) @@ -72,4 +75,13 @@ describe('landscape model', () => { placed.capabilities[0].payload = '{"edited":true}' expect(website.capabilities[0].payload).not.toBe('{"edited":true}') }) + it('models a mixed physical and information journey with a human decision pause', () => { + const scenario = demoLandscape().scenarios.find((item) => item.id === 'physical-receipt')! + expect(scenario.steps[1].connectionIds).toEqual(['supplier-warehouse-goods']) + expect(scenario.steps[2].humanDecision?.roleSystemId).toBe('warehouse-operative') + expect(scenario.steps[2].humanDecision?.actions[0].connectionId).toBe('operative-wms-receipt') + expect(scenario.steps[3].connectionIds).toEqual(['wms-sap-receipt']) + const imported = validateLandscape(JSON.parse(JSON.stringify(demoLandscape()))) + expect(imported.connections.find((connection) => connection.id === 'supplier-warehouse-goods')?.dataType).toBe('Physical goods') + }) }) diff --git a/src/model.ts b/src/model.ts index c9244ab..a9998d3 100644 --- a/src/model.ts +++ b/src/model.ts @@ -1,5 +1,5 @@ -export type SystemCategory = 'application' | 'saas-service' | 'cloud-service' | 'development-tool' | 'data-store' | 'service' | 'data' | 'human' | 'external' -export type ConnectionType = 'data-flow' | 'deployment' | 'dependency' | 'source-repository' +export type SystemCategory = 'application' | 'saas-service' | 'cloud-service' | 'development-tool' | 'data-store' | 'service' | 'data' | 'human' | 'external' | 'physical-location' | 'business-operation' +export type ConnectionType = 'data-flow' | 'deployment' | 'dependency' | 'source-repository' | 'physical-goods' | 'human-task' export interface PortModel { id: string; name: string; description: string } export interface ActionModel { id: string; name: string; description: string; payload: string } @@ -197,6 +197,7 @@ export const CAPABILITY_PRESETS: CapabilityPreset[] = [ catalogCapability('monitoring', 'Monitoring', 'Emit fictional health and telemetry events.', 'Telemetry event', 'Alert event', '{"service":"website","health":"green"}', 'https://learn.microsoft.com/en-us/azure/azure-monitor/'), catalogCapability('networking', 'Networking', 'Represent fictional routes, gateways and network boundaries.', 'Route request', 'Route result', '{"route":"api.example.test","status":"available"}', 'https://learn.microsoft.com/en-us/azure/networking/'), catalogCapability('identity', 'Identity', 'Represent fictional identities and access decisions.', 'Identity request', 'Access decision', '{"subject":"usr_204","allowed":true}', 'https://learn.microsoft.com/en-us/entra/identity/'), + capabilityPreset('warehouse-operations', 'Warehouse operations', 'Simulated physical goods receiving, storage, picking, dispatch and returns.', ['physical goods', 'operations'], capability('warehouse-operations', 'Warehouse operations', 'Physical goods are represented as simulated shipment payloads.', [port('inbound-materials', 'Inbound materials', 'Physical materials arriving at the warehouse.'), port('returned-goods', 'Returned goods', 'Physical goods returned by a customer.'), port('dispatch-instructions', 'Dispatch instructions', 'Information instructing a dispatch.'), port('human-confirmation', 'Human confirmation', 'A warehouse operative decision.')], [port('outbound-shipments', 'Outbound shipments', 'Physical goods leaving the warehouse.'), port('receipt-confirmations', 'Receipt confirmations', 'Information confirming physical receipt.'), port('stock-updates', 'Stock updates', 'A simulated stock update message.')], [action('receive-goods', 'Receive Goods', 'Record a fictional inbound material receipt.', '{"material":"steel-coils","quantity":12,"unit":"pallet","batch":"B-204","shipmentId":"SHP-4401"}'), action('store-goods', 'Store Goods', 'Place fictional goods into a storage location.', '{"material":"steel-coils","quantity":12,"unit":"pallet","location":"A-04-12"}'), action('pick-order', 'Pick Order', 'Pick fictional goods for an order.', '{"material":"steel-coils","quantity":2,"unit":"pallet","orderId":"ord_2048"}'), action('dispatch-goods', 'Dispatch Goods', 'Dispatch a fictional outbound shipment.', '{"material":"steel-coils","quantity":2,"unit":"pallet","shipmentId":"SHP-4402"}'), action('receive-return', 'Receive Return', 'Receive fictional returned goods.', '{"material":"steel-coils","quantity":1,"unit":"pallet","shipmentId":"RET-4403"}')], '{"material":"steel-coils","quantity":12,"unit":"pallet","batch":"B-204","shipmentId":"SHP-4401"}'), 'https://learn.microsoft.com/en-us/dynamics365/supply-chain/warehousing/'), ] const sharedCapability = (id: string) => CAPABILITY_PRESETS.find((item) => item.id === id)?.capability @@ -231,6 +232,10 @@ export const CATALOG_SYSTEM_PRESETS: SystemPreset[] = [ catalogSystem('gateway', 'API Gateway', 'Generic gateway and edge routing template.', 'service', '#26c6a6', ['routing', 'identity', 'monitoring'], ['infrastructure', 'gateway'], 'https://learn.microsoft.com/en-us/azure/api-management/'), catalogSystem('database-cluster', 'Database Cluster', 'Generic clustered database topology template.', 'data-store', '#61728e', ['relational-data', 'monitoring'], ['infrastructure', 'database'], 'https://learn.microsoft.com/en-us/azure/architecture/guide/technology-choices/data-store-overview'), catalogSystem('people-team', 'People / Team', 'Role or team responsible for a simulated decision.', 'human', '#f06ca9', ['approvals', 'validation'], ['people', 'governance'], 'https://learn.microsoft.com/en-us/azure/architecture/framework/'), + catalogSystem('warehouse', 'Warehouse', 'Physical location for receiving, storing, picking and dispatching goods.', 'physical-location', '#c58b52', ['warehouse-operations'], ['physical', 'location', 'operations'], 'https://learn.microsoft.com/en-us/dynamics365/supply-chain/warehousing/'), + catalogSystem('sap-s4hana', 'SAP S/4HANA', 'Simulated enterprise resource planning system.', 'application', '#0faaff', ['relational-data', 'messaging', 'monitoring'], ['ERP', 'business application'], 'https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE'), + catalogSystem('supplier', 'Supplier', 'Business operation representing a fictional materials supplier.', 'business-operation', '#d89555', ['validation', 'messaging'], ['physical', 'procurement', 'business operation'], 'https://www.gs1.org/standards/edi'), + catalogSystem('warehouse-management-system', 'Warehouse Management System', 'Simulated software system linked to a physical warehouse.', 'application', '#7b9fe8', ['messaging', 'relational-data', 'monitoring'], ['warehouse', 'application', 'operations'], 'https://learn.microsoft.com/en-us/dynamics365/supply-chain/warehousing/'), ] export const SYSTEM_PRESETS: SystemPreset[] = [...CORE_SYSTEM_PRESETS, ...CATALOG_SYSTEM_PRESETS.filter((candidate) => !CORE_SYSTEM_PRESETS.some((existing) => existing.id === candidate.id))] export const DEPLOYMENT_TEMPLATES: DeploymentTemplate[] = [ @@ -281,7 +286,12 @@ export const demoLandscape = (): LandscapeModel => ({ { id: 'bitbucket', name: 'Bitbucket', description: 'Source repository for application code.', category: 'development-tool', color: '#2684ff', position: [80, 700], tags: ['Test', 'Source Control'], providerMetadata: { provider: 'Atlassian', service: 'Bitbucket' }, presetId: 'bitbucket', capabilities: cloneCapabilities(getPreset('bitbucket')!.capabilities) }, { id: 'azure-devops', name: 'Azure DevOps', description: 'Build and release orchestration.', category: 'development-tool', color: '#0078d4', position: [360, 700], tags: ['Test', 'Deployment'], providerMetadata: { provider: 'Microsoft', service: 'Azure DevOps' }, presetId: 'azure-devops', capabilities: cloneCapabilities(getPreset('azure-devops')!.capabilities) }, { id: 'sitecore', name: 'Sitecore', description: 'Logical Sitecore content and commerce platform.', category: 'saas-service', color: '#f06ca9', position: [650, 700], tags: ['Production', 'Customer Data'], providerMetadata: { provider: 'Microsoft', service: 'Azure' }, presetId: 'sitecore-ordercloud', capabilities: cloneCapabilities(getPreset('sitecore-ordercloud')!.capabilities), environments: [sitecoreProdEnvironment()] }, - { id: 'middleware', name: 'Order Middleware', description: 'Simulated order transformation pipeline.', category: 'service', color: '#b48cff', position: [930, 500], tags: ['Production', 'Business Function'], presetId: 'middleware', capabilities: cloneCapabilities(getPreset('middleware')!.capabilities), definition: structuredClone(getPreset('middleware')!.definition) } + { id: 'middleware', name: 'Order Middleware', description: 'Simulated order transformation pipeline.', category: 'service', color: '#b48cff', position: [930, 500], tags: ['Production', 'Business Function'], presetId: 'middleware', capabilities: cloneCapabilities(getPreset('middleware')!.capabilities), definition: structuredClone(getPreset('middleware')!.definition) }, + { id: 'sap', name: 'SAP', description: 'ERP system sending a fictional purchase order.', category: 'application', color: '#0faaff', position: [80, 980], tags: ['Production', 'Business Function'], presetId: 'sap-s4hana', capabilities: cloneCapabilities(getPreset('sap-s4hana')!.capabilities) }, + { id: 'supplier', name: 'Supplier', description: 'Business operation supplying fictional raw materials.', category: 'business-operation', color: '#d89555', position: [360, 980], tags: ['Production', 'Physical'], presetId: 'supplier', capabilities: cloneCapabilities(getPreset('supplier')!.capabilities) }, + { id: 'warehouse', name: 'Warehouse', description: 'Physical location receiving and storing fictional goods.', category: 'physical-location', color: '#c58b52', position: [650, 980], tags: ['Production', 'Physical'], presetId: 'warehouse', capabilities: cloneCapabilities(getPreset('warehouse')!.capabilities) }, + { id: 'warehouse-operative', name: 'Warehouse Operative', description: 'Human role confirming physical goods receipt.', category: 'human', color: '#f06ca9', position: [930, 980], tags: ['Production', 'Physical', 'Human Task'], presetId: 'people-team', capabilities: cloneCapabilities(getPreset('people-team')!.capabilities) }, + { id: 'wms', name: 'Warehouse Management System', description: 'Software linked to the warehouse, sending goods-received information to SAP.', category: 'application', color: '#7b9fe8', position: [1200, 980], tags: ['Production', 'Physical', 'Business Function'], presetId: 'warehouse-management-system', capabilities: cloneCapabilities(getPreset('warehouse-management-system')!.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}' }, @@ -304,7 +314,12 @@ export const demoLandscape = (): LandscapeModel => ({ { id: 'azure-devops-website', sourceId: 'azure-devops', targetId: 'website', label: 'Deploy website', description: 'A successful build deploys the website.', payload: '{"buildId":"build_42","environment":"Production"}', connectionType: 'deployment', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'Event', deliveryMethod: 'scheduled', showCableLabel: true }, { id: 'website-middleware', sourceId: 'website', targetId: 'middleware', label: 'Order request', description: 'Website sends an order to middleware.', payload: '{"customerId":"cus_89","sku":"sample-blue","quantity":1}', connectionType: 'data-flow', exchangeType: 'request-response', responsePayload: '{"accepted":true}', responseStatus: 202, protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true }, { id: 'middleware-erp', sourceId: 'middleware', targetId: 'erp', label: 'ERP-ready order', description: 'Middleware sends the transformed order to ERP.', payload: '{"accountCode":"ERP-0042","sku":"sample-blue","quantity":1}', connectionType: 'data-flow', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true }, - { id: 'middleware-email', sourceId: 'middleware', targetId: 'email', label: 'Validation failure', description: 'Middleware notifies the customer when validation fails.', payload: '{"status":"rejected","reason":"invalid_order"}', connectionType: 'data-flow', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true } + { id: 'middleware-email', sourceId: 'middleware', targetId: 'email', label: 'Validation failure', description: 'Middleware notifies the customer when validation fails.', payload: '{"status":"rejected","reason":"invalid_order"}', connectionType: 'data-flow', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true }, + { id: 'sap-supplier-po', sourceId: 'sap', targetId: 'supplier', label: 'Purchase order', description: 'SAP sends a fictional purchase order to the supplier.', payload: '{"purchaseOrderId":"PO-2048","material":"steel-coils","quantity":12,"unit":"pallet"}', connectionType: 'data-flow', exchangeType: 'event-transfer', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true }, + { id: 'supplier-warehouse-goods', sourceId: 'supplier', targetId: 'warehouse', label: 'Raw materials shipment', description: 'Supplier sends physical raw materials to the warehouse.', payload: '{"material":"steel-coils","quantity":12,"unit":"pallet","batch":"B-204","shipmentId":"SHP-4401"}', connectionType: 'physical-goods', exchangeType: 'event-transfer', dataType: 'Physical goods', deliveryMethod: 'scheduled', showCableLabel: true }, + { id: 'warehouse-operative-confirmation', sourceId: 'warehouse', targetId: 'warehouse-operative', label: 'Receipt confirmation task', description: 'Warehouse asks a human operative to confirm receipt.', payload: '{"shipmentId":"SHP-4401","material":"steel-coils","quantity":12,"unit":"pallet","task":"confirm receipt"}', connectionType: 'human-task', exchangeType: 'event-transfer', dataType: 'Human task', deliveryMethod: 'manual', showCableLabel: true }, + { id: 'operative-wms-receipt', sourceId: 'warehouse-operative', targetId: 'wms', label: 'Goods received', description: 'Operative confirms the physical receipt to the warehouse system.', payload: '{"shipmentId":"SHP-4401","status":"received","confirmedBy":"warehouse-operative"}', connectionType: 'human-task', exchangeType: 'event-transfer', dataType: 'JSON', deliveryMethod: 'manual', showCableLabel: true }, + { id: 'wms-sap-receipt', sourceId: 'wms', targetId: 'sap', label: 'Goods-received confirmation', description: 'WMS sends a receipt message back to SAP.', payload: '{"purchaseOrderId":"PO-2048","shipmentId":"SHP-4401","status":"received","quantity":12,"unit":"pallet"}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true } ], scenarios: [ { @@ -374,6 +389,15 @@ export const demoLandscape = (): LandscapeModel => ({ { id: 'middleware-2', connectionIds: ['middleware-erp'], explanation: 'Middleware validates, transforms and routes the order to ERP.', payload: '{"customerId":"cus_89","sku":"sample-blue","quantity":1}', delayMs: 1000, outcome: 'success' }, { id: 'middleware-failure', connectionIds: ['middleware-email'], explanation: 'Invalid orders follow the configured validation-failure path.', payload: '{"status":"rejected","reason":"missing_customerId"}', delayMs: 700, outcome: 'rejected' } ] + }, + { + id: 'physical-receipt', name: 'Physical goods receipt', description: 'Follow a purchase order, physical shipment and human receipt confirmation back into SAP.', startSystemId: 'sap', startActionId: 'handle-request', + steps: [ + { id: 'physical-po', connectionIds: ['sap-supplier-po'], explanation: 'SAP sends a purchase order to the supplier.', payload: '{"purchaseOrderId":"PO-2048","material":"steel-coils","quantity":12,"unit":"pallet"}', delayMs: 700, outcome: 'success' }, + { id: 'physical-shipment', connectionIds: ['supplier-warehouse-goods'], explanation: 'The supplier sends raw materials to the warehouse as a physical goods shipment.', payload: '{"material":"steel-coils","quantity":12,"unit":"pallet","batch":"B-204","shipmentId":"SHP-4401"}', delayMs: 1100, outcome: 'success' }, + { id: 'physical-confirmation', connectionIds: [], explanation: 'A warehouse operative inspects the shipment and confirms receipt.', payload: '{"shipmentId":"SHP-4401","status":"awaiting_confirmation"}', delayMs: 700, humanDecision: { roleSystemId: 'warehouse-operative', task: 'Confirm whether the physical shipment arrived with the expected material and quantity.', receivedData: '{"material":"steel-coils","quantity":12,"unit":"pallet","batch":"B-204","shipmentId":"SHP-4401"}', editableFields: { note: 'Counted and visually checked at dock 4.' }, actions: [{ id: 'confirm-receipt', name: 'Confirm receipt', description: 'Send the human confirmation to the warehouse system.', payload: '{"shipmentId":"SHP-4401","status":"received","confirmedBy":"warehouse-operative"}', connectionId: 'operative-wms-receipt' }, { id: 'reject-receipt', name: 'Reject shipment', description: 'Record a simulated discrepancy for investigation.', payload: '{"shipmentId":"SHP-4401","status":"discrepancy","reason":"quantity_check"}', connectionId: 'operative-wms-receipt' }] } }, + { id: 'physical-sap-update', connectionIds: ['wms-sap-receipt'], explanation: 'The warehouse management system sends the goods-received confirmation to SAP.', payload: '{"purchaseOrderId":"PO-2048","shipmentId":"SHP-4401","status":"received","quantity":12,"unit":"pallet"}', delayMs: 900, outcome: 'success' } + ] } ] }) diff --git a/src/navigation.css b/src/navigation.css index 9a58678..29400fe 100644 --- a/src/navigation.css +++ b/src/navigation.css @@ -4,3 +4,4 @@ .scenario-environment,.environment-panel{padding:16px;margin-top:14px}.scenario-environment{display:flex;gap:14px;align-items:center}.scenario-environment label{color:#8996af;font-size:11px;font-weight:700}.scenario-environment select{display:block;min-width:240px;margin-top:5px;background:#0d1320;color:#dce4f4;border:1px solid #303d58;border-radius:4px;padding:8px}.environment-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.environment-header strong{display:block;margin-top:4px}.environment-actions{display:flex;gap:7px}.environment-tabs{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid #263149;padding:12px 0}.environment-tabs button{border:1px solid #33405a;background:#151d2d;color:#bdc8dc;border-radius:5px;padding:7px 11px}.environment-tabs button.active{background:#8795ff;color:#08101f}.environment-detail{display:grid;grid-template-columns:260px 1fr;gap:16px;padding-top:14px}.environment-config{display:flex;flex-direction:column;gap:5px}.environment-config label,.component-card label{color:#8996af;font-size:10px;font-weight:700}.environment-config input,.environment-config textarea,.component-card input,.component-card select,.component-card textarea{display:block;width:100%;margin-top:5px;background:#0d1320;color:#dce4f4;border:1px solid #303d58;border-radius:4px;padding:7px}.component-card{border:1px solid #303d58;background:#0d1320;border-radius:6px;padding:10px;margin:8px 0}.component-head{display:flex;gap:10px;align-items:center;margin-bottom:10px}.component-head strong{color:#dce4f4}.component-head small{color:#8996af;flex:1}.environment-topology{grid-column:1/-1;border-top:1px solid #263149;padding-top:12px}.topology-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin:7px 0}.topology-row input,.topology-row select{background:#0d1320;color:#dce4f4;border:1px solid #303d58;border-radius:4px;padding:7px}@media(max-width:800px){.environment-detail{grid-template-columns:1fr}.scenario-environment{display:block}.scenario-environment label{display:block;margin-top:8px}.environment-header{align-items:flex-start;flex-direction:column}} .pipeline-inspector{padding:16px;margin-top:14px}.pipeline-trace-row{border-top:1px solid #263149;padding:12px 0}.pipeline-trace-row>div:first-child{display:flex;justify-content:space-between;gap:12px}.pipeline-trace-row small{color:#8996af}.pipeline-trace-row pre{max-height:150px;overflow:auto}.changed-fields{color:#f4ca72;font-size:11px}.pipeline-builder-overlay{position:fixed;inset:0;z-index:30;background:rgba(4,8,15,.78);display:grid;place-items:center;padding:24px}.pipeline-builder{width:min(820px,96vw);max-height:90vh;overflow:auto;padding:20px}.pipeline-builder .definition-card{margin:12px 0}.pipeline-builder textarea{width:100%;box-sizing:border-box}.pipeline-builder code{color:#b9c5ff} .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}