From 84fe48a6728bda859ef800129899e3816157dd6c Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Thu, 5 Nov 2026 23:49:44 +0000 Subject: [PATCH] Add flow purpose categories and deployment demo --- README.md | 6 +++++- src/App.vue | 33 +++++++++++++++++++++++---------- src/model.test.ts | 19 ++++++++++++++++--- src/model.ts | 38 ++++++++++++++++++++++++++++++++++++-- src/navigation.css | 1 + 5 files changed, 81 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a8c288f..1c567b1 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ The initial landscape contains Website, API, ERP, CRM and Email Platform plus tw - **Place order:** Website → API → ERP, followed by parallel CRM and Email Platform updates. - **Register customer:** Website → API → CRM → Email Platform. - **Monday demo journeys:** Contact enquiry, Sample request, Commercial order, and Order retry and recovery. +- **Deployment demo:** Build Server → Octopus release → Sitecore CM and two CD targets, with parallel target outcomes. ## Features @@ -26,6 +27,9 @@ The initial landscape contains Website, API, ERP, CRM and Email Platform plus tw - 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. - Model persistent database integrations separately from activity: Direct Database Access, Scheduled Import, Replication / Sync and File Transfer. Configure access mode, trigger/frequency, source tables/views/queries, destination, authoritative source and an optional simulated mapping. Live query requests and returned database rows are separate connections; scheduled imports identify downstream copies such as Sitecore items. +- Separate flow purpose from cable relationship, payload type and integration mechanism. Scenarios have editable purposes for Business Transactions, Content & Reference Data, Build & Deployment, Operations & Monitoring, Identity & Access and Physical Logistics; individual transfers can override the scenario purpose and connections can carry multiple purposes without duplicating cables. +- Filter flow purposes independently from system categories, colour active packets by purpose and use the accessible purpose legend. Deployment cables retain their relationship styling while the packet colour communicates Build & Deployment. +- The deployment demo carries fictional package, release, version, environment and target fields through a sequential package/release step and a parallel CM/CD target step. Each target has an independent simulated outcome; no build or deployment system is contacted. - Compare the example Sitecore live-query and scheduled-import scenarios for the fictional Product / Literature / Webinar Management application and MSSQL database. Database payloads are sample rows/JSON only; no database connection or inventory/accounting engine is implemented. - 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. @@ -46,4 +50,4 @@ npm run build ## Limitations -This is intentionally a local simulation prototype. It has no authentication, collaboration, server persistence, external API calls, real payload delivery, or production-grade graph editing. Custom definitions and placed instances are stored in browser local storage; playback state is transient and is not included in saved JSON. LiteGraph supplies canvas rendering and cable interaction; scenario semantics are managed by the Vue application. The minimap is diagnostic rather than a full viewport navigator, and transformation highlighting currently compares top-level JSON fields. Pipeline mappings are deliberately limited to the listed rule operations; arbitrary JavaScript, network lookups and live middleware execution are not supported. The custom builder exposes pipeline definitions as validated JSON so advanced step graphs can be edited without adding another runtime dependency. Preset documentation URLs are reference metadata only; the simulator does not inspect or synchronize vendor products. +This is intentionally a local simulation prototype. It has no authentication, collaboration, server persistence, external API calls, real payload delivery, or production-grade graph editing. Custom definitions and placed instances are stored in browser local storage; playback state is transient and is not included in saved JSON. LiteGraph supplies canvas rendering and cable interaction; scenario semantics are managed by the Vue application. The minimap is diagnostic rather than a full viewport navigator, and transformation highlighting currently compares top-level JSON fields. Pipeline mappings are deliberately limited to the listed rule operations; arbitrary JavaScript, network lookups and live middleware execution are not supported. The custom builder exposes pipeline definitions as validated JSON so advanced step graphs can be edited without adding another runtime dependency. Flow categories are simulation metadata and do not enforce model behaviour; a packet can be displayed on one selected category at a time even when a connection supports multiple categories. Preset documentation URLs are reference metadata only; the simulator does not inspect or synchronize vendor products. diff --git a/src/App.vue b/src/App.vue index 1d08bcf..9413a4d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@ @@ -282,7 +294,7 @@ onUnmounted(stopAnimation) @@ -295,7 +307,7 @@ onUnmounted(stopAnimation)
STEP OUTCOMESFailure and recovery routing

Choose how a simulated step behaves. Retry is limited to one automatic attempt per reset.

{{ index + 1 }}. {{ step.explanation }}
CONNECTION PROPERTIES
ENDPOINT ROUTING

{{ connectionCompatibility(selectedConnection) }}

- +
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
@@ -309,5 +321,6 @@ onUnmounted(stopAnimation)
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.

PERSISTENT INTEGRATION
CONNECTION LEGEND Information / Data Physical Goods Human Task Deployment
+
FLOW METADATA

Purpose, payload type and integration mechanism are separate fields. Existing cable styles continue to describe the relationship type.

FLOW PURPOSE LEGEND{{ category.icon }} {{ category.name }}
diff --git a/src/model.test.ts b/src/model.test.ts index a050ba7..d79a3ab 100644 --- a/src/model.test.ts +++ b/src/model.test.ts @@ -1,11 +1,11 @@ import { describe, expect, it } from 'vitest' -import { CAPABILITY_PRESETS, CATALOG_SYSTEM_PRESETS, DEPLOYMENT_TEMPLATES, STARTER_KITS, definitionFromCapabilities, demoLandscape, executePipeline, getPreset, systemFromPreset, validateLandscape } from './model' +import { CAPABILITY_PRESETS, CATALOG_SYSTEM_PRESETS, DEPLOYMENT_TEMPLATES, FLOW_CATEGORIES, STARTER_KITS, definitionFromCapabilities, demoLandscape, executePipeline, getPreset, systemFromPreset, validateLandscape } from './model' describe('landscape model', () => { it('provides the editable demo landscape', () => { const landscape = demoLandscape() - expect(landscape.systems).toHaveLength(17) - 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'])) + 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.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') @@ -13,6 +13,10 @@ describe('landscape model', () => { 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') + expect(landscape.scenarios.find((scenario) => scenario.id === 'sitecore-deployment')?.flowCategory).toBe('build-deployment') + expect(landscape.scenarios.find((scenario) => scenario.id === 'sitecore-deployment')?.steps[1].connectionIds).toHaveLength(3) + expect(landscape.connections.find((connection) => connection.id === 'build-octopus-release')?.payloadType).toBe('Versioned deployment package') + expect(FLOW_CATEGORIES).toHaveLength(6) }) it('round-trips a valid landscape and preserves positions', () => { const source = demoLandscape(); const imported = validateLandscape(JSON.parse(JSON.stringify(source))) @@ -94,4 +98,13 @@ describe('landscape model', () => { expect(request.integration?.authoritativeSource).toBe('MSSQL') expect(landscape.scenarios.find((scenario) => scenario.id === 'sitecore-scheduled-import')?.steps[0].connectionIds).toEqual(['mssql-sitecore-import']) }) + it('keeps flow purpose, payload type and mechanism independent', () => { + const landscape = demoLandscape() + const deployment = landscape.connections.find((connection) => connection.id === 'octopus-cm-release')! + expect(deployment.flowCategories).toEqual(['build-deployment']) + expect(deployment.payloadType).toBe('Release deployment') + expect(deployment.integration).toBeUndefined() + const imported = validateLandscape(JSON.parse(JSON.stringify(landscape))) + expect(imported.connections.find((connection) => connection.id === deployment.id)).toEqual(deployment) + }) }) diff --git a/src/model.ts b/src/model.ts index 96eed57..9190a34 100644 --- a/src/model.ts +++ b/src/model.ts @@ -2,6 +2,15 @@ export type SystemCategory = 'application' | 'saas-service' | 'cloud-service' | export type ConnectionType = 'data-flow' | 'deployment' | 'dependency' | 'source-repository' | 'physical-goods' | 'human-task' export type IntegrationMechanism = 'direct-database-access' | 'scheduled-import' | 'replication-sync' | 'file-transfer' export type DatabaseAccess = 'read' | 'write' | 'read-write' | 'unknown' +export type FlowCategory = 'business-transactions' | 'content-reference-data' | 'build-deployment' | 'operations-monitoring' | 'identity-access' | 'physical-logistics' +export const FLOW_CATEGORIES: { id: FlowCategory; name: string; color: string; icon: string }[] = [ + { id: 'business-transactions', name: 'Business Transactions', color: '#8795ff', icon: '↔' }, + { id: 'content-reference-data', name: 'Content & Reference Data', color: '#8f7cf2', icon: '▤' }, + { id: 'build-deployment', name: 'Build & Deployment', color: '#f2a65a', icon: '⇧' }, + { id: 'operations-monitoring', name: 'Operations & Monitoring', color: '#26c6a6', icon: '◉' }, + { id: 'identity-access', name: 'Identity & Access', color: '#dd6bca', icon: '◆' }, + { id: 'physical-logistics', name: 'Physical Logistics', color: '#d89555', icon: '□' } +] export interface PortModel { id: string; name: string; description: string } export interface ActionModel { id: string; name: string; description: string; payload: string } @@ -76,6 +85,9 @@ export interface ConnectionModel { responseStatus?: number connectionType?: ConnectionType integration?: { mechanism: IntegrationMechanism; access: DatabaseAccess; trigger?: string; frequency?: string; sourceObjects?: string[]; destination?: string; authoritativeSource?: string; transformation?: string } + flowCategories?: FlowCategory[] + payloadType?: string + scope?: 'internal' | 'external' | 'unknown' } export interface ScenarioStep { @@ -88,6 +100,9 @@ export interface ScenarioStep { retryStepId?: string recoveryStepId?: string humanDecision?: HumanDecisionModel + flowCategories?: FlowCategory[] + transferOutcomes?: Record + parallelGroup?: string } export interface ScenarioModel { @@ -98,6 +113,8 @@ export interface ScenarioModel { startActionId?: string environmentId?: string traceInternal?: boolean + flowCategory?: FlowCategory + flowCategoryOverrides?: Record steps: ScenarioStep[] } @@ -223,6 +240,7 @@ export const CATALOG_SYSTEM_PRESETS: SystemPreset[] = [ catalogSystem('azure-storage-catalog', 'Azure Storage', 'Blob, file and queue storage template.', 'cloud-service', '#86bc25', ['object-storage', 'monitoring'], ['Azure', 'storage'], 'https://learn.microsoft.com/en-us/azure/storage/'), catalogSystem('azure-sql', 'Azure SQL Database', 'Managed relational database template.', 'cloud-service', '#0078d4', ['relational-data', 'monitoring', 'identity'], ['Azure', 'database'], 'https://learn.microsoft.com/en-us/azure/azure-sql/'), catalogSystem('azure-service-bus-catalog', 'Azure Service Bus', 'Managed messaging template.', 'cloud-service', '#5d8ee8', ['messaging', 'routing', 'monitoring'], ['Azure', 'messaging'], 'https://learn.microsoft.com/en-us/azure/service-bus-messaging/'), + catalogSystem('build-server', 'Build Server', 'Simulated build and packaging server for versioned deployment artifacts.', 'development-tool', '#f2a65a', ['build', 'tests', 'packaging'], ['development', 'build', 'deployment'], 'https://learn.microsoft.com/en-us/azure/devops/pipelines/'), catalogSystem('azure-monitor', 'Azure Monitor', 'Metrics, logs and alerting template.', 'cloud-service', '#5c2d91', ['monitoring', 'analytics'], ['Azure', 'operations'], 'https://learn.microsoft.com/en-us/azure/azure-monitor/'), catalogSystem('bitbucket-catalog', 'Bitbucket', 'Source repository template.', 'development-tool', '#2684ff', ['build', 'tests'], ['development', 'repository', 'Atlassian'], 'https://support.atlassian.com/bitbucket-cloud/docs/'), catalogSystem('github', 'GitHub', 'Source repository and collaboration template.', 'development-tool', '#f0f0f0', ['build', 'tests'], ['development', 'repository'], 'https://docs.github.com/en/repositories'), @@ -297,7 +315,12 @@ export const demoLandscape = (): LandscapeModel => ({ { 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) }, { id: 'product-management', name: 'Product / Literature / Webinar Management', description: 'Application writing product and content records to MSSQL.', category: 'application', color: '#8f7cf2', position: [80, 1260], tags: ['Production', 'Content', 'Business Function'], presetId: 'product-literature-webinar', capabilities: cloneCapabilities(getPreset('product-literature-webinar')!.capabilities) }, - { id: 'mssql', name: 'MSSQL', description: 'Authoritative fictional database for content and product records.', category: 'data-store', color: '#a91d22', position: [430, 1260], tags: ['Production', 'Database', 'Authoritative source'], presetId: 'sql-server', capabilities: cloneCapabilities(getPreset('sql-server')!.capabilities) } + { id: 'mssql', name: 'MSSQL', description: 'Authoritative fictional database for content and product records.', category: 'data-store', color: '#a91d22', position: [430, 1260], tags: ['Production', 'Database', 'Authoritative source'], presetId: 'sql-server', capabilities: cloneCapabilities(getPreset('sql-server')!.capabilities) }, + { id: 'build-server', name: 'Build Server', description: 'Builds and packages a versioned website artifact.', category: 'development-tool', color: '#f2a65a', position: [80, 1540], tags: ['Production', 'Build & Deployment'], presetId: 'build-server', capabilities: cloneCapabilities(getPreset('build-server')!.capabilities) }, + { 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) } ], 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}' }, @@ -329,7 +352,11 @@ export const demoLandscape = (): LandscapeModel => ({ { id: 'product-mssql-write', sourceId: 'product-management', targetId: 'mssql', label: 'Write product and content data', description: 'The management application writes authoritative product, literature and webinar records.', payload: '{"table":"Products","rows":[{"productId":"prod_42","title":"Blue range"}]}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true, integration: { mechanism: 'direct-database-access', access: 'write', trigger: 'Application save', sourceObjects: ['Products', 'Literature', 'Webinars'], destination: 'MSSQL tables', authoritativeSource: 'MSSQL' } }, { id: 'sitecore-mssql-query', sourceId: 'sitecore', targetId: 'mssql', label: 'Live query request', description: 'Sitecore requests selected content from MSSQL.', payload: '{"query":"SELECT productId,title FROM Products WHERE published=1","parameters":{"locale":"en-GB"}}', connectionType: 'data-flow', exchangeType: 'request-response', dataType: 'SQL query', deliveryMethod: 'immediate', showCableLabel: true, integration: { mechanism: 'direct-database-access', access: 'read', trigger: 'Sitecore page request', sourceObjects: ['Products', 'Literature'], destination: 'Sitecore items', authoritativeSource: 'MSSQL', transformation: 'Map selected rows to Sitecore item fields.' }, responsePayload: '{"rows":[{"productId":"prod_42","title":"Blue range"}],"rowCount":1}', responseStatus: 200 }, { id: 'mssql-sitecore-result', sourceId: 'mssql', targetId: 'sitecore', label: 'Live query result', description: 'MSSQL returns selected rows to Sitecore.', payload: '{"rows":[{"productId":"prod_42","title":"Blue range"}],"rowCount":1}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'SQL result rows', deliveryMethod: 'immediate', showCableLabel: true, integration: { mechanism: 'direct-database-access', access: 'read', sourceObjects: ['Products', 'Literature'], destination: 'Sitecore items', authoritativeSource: 'MSSQL', transformation: 'Map rows to Sitecore item fields.' } }, - { id: 'mssql-sitecore-import', sourceId: 'mssql', targetId: 'sitecore', label: 'Scheduled content import', description: 'A scheduled job copies selected authoritative rows into Sitecore items.', payload: '{"rows":[{"productId":"prod_42","title":"Blue range"}],"importedAt":"2026-11-05T09:00:00Z"}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON rows', deliveryMethod: 'scheduled', showCableLabel: true, integration: { mechanism: 'scheduled-import', access: 'read', trigger: 'Scheduler', frequency: 'Every 15 minutes', sourceObjects: ['Products', 'Literature', 'Webinars'], destination: 'Sitecore items', authoritativeSource: 'MSSQL', transformation: 'Copy published rows; map productId to item ID.' } } + { id: 'mssql-sitecore-import', sourceId: 'mssql', targetId: 'sitecore', label: 'Scheduled content import', description: 'A scheduled job copies selected authoritative rows into Sitecore items.', payload: '{"rows":[{"productId":"prod_42","title":"Blue range"}],"importedAt":"2026-11-05T09:00:00Z"}', connectionType: 'data-flow', exchangeType: 'event-transfer', dataType: 'JSON rows', deliveryMethod: 'scheduled', showCableLabel: true, integration: { mechanism: 'scheduled-import', access: 'read', trigger: 'Scheduler', frequency: 'Every 15 minutes', sourceObjects: ['Products', 'Literature', 'Webinars'], destination: 'Sitecore items', authoritativeSource: 'MSSQL', transformation: 'Copy published rows; map productId to item ID.' } }, + { 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 } ], scenarios: [ { @@ -421,6 +448,13 @@ export const demoLandscape = (): LandscapeModel => ({ steps: [ { id: 'scheduled-import', connectionIds: ['mssql-sitecore-import'], explanation: 'The scheduler reads authoritative MSSQL rows and copies them into Sitecore items.', payload: '{"rows":[{"productId":"prod_42","title":"Blue range"}],"importedAt":"2026-11-05T09:00:00Z"}', delayMs: 1200, outcome: 'success' } ] + }, + { + id: 'sitecore-deployment', name: 'Sitecore production deployment', description: 'Build a versioned package, create an Octopus release and deploy independently to CM and two CD instances.', startSystemId: 'build-server', startActionId: 'build-shared-action', flowCategory: 'build-deployment', + steps: [ + { 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' } } + ] } ] }) diff --git a/src/navigation.css b/src/navigation.css index 29400fe..523272e 100644 --- a/src/navigation.css +++ b/src/navigation.css @@ -5,3 +5,4 @@ .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} +.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}