Add physical operations and warehouse journeys
This commit is contained in:
+4
-3
@@ -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<string, string> = { '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<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()
|
||||
}
|
||||
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)
|
||||
<section v-if="selectedScenario" class="scenario-builder panel"><div><span class="eyebrow">EASY SCENARIO BUILDER</span><strong>Start with an action, then build the journey</strong><p class="muted">Connections remain reusable destinations; parallel branches share one step.</p></div><label>Starting system<select v-model="selectedScenario.startSystemId"><option v-for="system in landscape.systems" :key="system.id" :value="system.id">{{ system.name }}</option></select></label><label>Starting action<select v-model="selectedScenario.startActionId"><option value="">Choose an action</option><option v-for="action in actionsForSystem(selectedScenario.startSystemId)" :key="action.id" :value="action.id">{{ action.capabilityName }} · {{ action.name }}</option></select></label><div class="builder-actions"><button class="ghost" @click="addJourneyStep">+ Sequential step</button><button class="ghost" @click="addParallelBranch">+ Parallel branch</button></div><div class="builder-steps"><article v-for="(step, index) in selectedScenario.steps" :key="step.id"><b>{{ index + 1 }}</b><span>{{ step.explanation }}</span><input v-model="step.payload" class="code" title="Editable sample payload" /></article></div></section>
|
||||
<section class="demo-guide panel"><span class="eyebrow">MONDAY DEMO / START HERE</span><strong>Try a journey in three clicks</strong><ol><li>Open <b>Scenarios</b> and choose Contact enquiry, Sample request or Commercial order.</li><li>Press <b>▶</b> in the journey list, then use pause, next or speed controls.</li><li>Try <b>Order retry and recovery</b> to see a rejection, automatic retry and recovery message. Select a system to inspect its data history.</li></ol></section>
|
||||
<section v-if="pendingDecision" class="decision-panel panel"><div><span class="eyebrow">HUMAN DECISION REQUIRED</span><strong>{{ systemName(pendingDecision.roleSystemId) }}</strong><p>{{ pendingDecision.task }}</p></div><div class="decision-data"><div><b>Information received</b><pre>{{ pendingDecision.receivedData }}</pre></div><div><b>Editable fields</b><label v-for="(_, key) in pendingDecision.editableFields" :key="key">{{ key }}<input v-model="pendingDecision.editableFields[key]" /></label></div></div><div class="decision-actions"><button v-for="action in pendingDecision.actions" :key="action.id" class="decision-button" :class="action.name.toLowerCase()" :title="action.description" @click="chooseHumanAction(action)"><b>{{ action.name }}</b><small>{{ action.description }}</small></button></div></section>
|
||||
<div v-if="customBuilderOpen" class="modal-backdrop" @click.self="customBuilderOpen = false"><section class="custom-builder panel"><div class="inspector-header"><div><span class="eyebrow">CUSTOM SYSTEM BUILDER</span><h2>Reusable system definition</h2><p class="muted">Definitions are saved to the local preset library. Placed instances remain independent.</p></div><button class="danger-icon" @click="customBuilderOpen = false">×</button></div><div class="builder-meta"><label>Name<input v-model="customDraft.name" /></label><label>Category<select v-model="customDraft.category"><option value="application">Application</option><option value="service">Service</option><option value="data">Data</option><option value="human">Human / role</option><option value="external">External</option></select></label><label>Colour<input v-model="customDraft.color" type="color" /></label><label>Description<textarea v-model="customDraft.description" rows="2"></textarea></label></div><div class="builder-section"><div class="steps-head"><span>Actions</span><button class="icon-button" @click="addCustomAction">+</button></div><article v-for="action in customDraft.definition.actions" :key="action.id" class="definition-card"><div class="definition-grid"><label>Name<input v-model="action.name" /></label><label>Trigger<select v-model="action.trigger"><option value="button">Button</option><option value="incoming">Incoming request / event</option><option value="schedule">Simulated schedule</option></select></label></div><label>Description<input v-model="action.description" /></label><label>Example input JSON<textarea v-model="action.input" rows="2" class="code"></textarea></label><div class="steps-head"><span>Outputs</span><button class="icon-button" @click="addCustomOutput(action)">+</button></div><div v-for="output in action.outputs" :key="output.id" class="nested-row"><input v-model="output.name" placeholder="Output name" /><textarea v-model="output.payload" rows="2" class="code" placeholder="Example JSON"></textarea><input v-model="output.condition" placeholder="Outcome condition (optional)" /><label class="checkbox-label"><input v-model="output.parallel" type="checkbox" /> Parallel output</label></div></article></div><div class="builder-section"><div class="steps-head"><span>Endpoints</span><button class="icon-button" @click="addCustomEndpoint">+</button></div><article v-for="endpoint in customDraft.definition.endpoints" :key="endpoint.id" class="definition-card"><div class="definition-grid"><label>Name<input v-model="endpoint.name" /></label><label>Protocol<select v-model="endpoint.protocol"><option>HTTPS</option><option>HTTP</option><option>GraphQL</option><option>Webhook</option><option>Message queue</option></select></label><label>Method<input v-model="endpoint.method" /></label><label>Path<input v-model="endpoint.path" /></label></div><label>Example request JSON<textarea v-model="endpoint.request" rows="2" class="code"></textarea></label><label>Triggers action<select v-model="endpoint.triggersActionId"><option value="">No action</option><option v-for="action in customDraft.definition.actions" :key="action.id" :value="action.id">{{ action.name }}</option></select></label><div class="steps-head"><span>Responses</span><button class="icon-button" @click="addCustomResponse(endpoint)">+</button></div><div v-for="response in endpoint.responses" :key="response.id" class="nested-row response-row"><label>Status<input v-model.number="response.status" type="number" /></label><label>Delay ms<input v-model.number="response.delayMs" type="number" min="0" /></label><textarea v-model="response.body" rows="2" class="code" placeholder="Response body JSON"></textarea></div></article></div><div class="modal-actions"><button class="ghost" @click="customBuilderOpen = false">Cancel</button><button class="primary" @click="saveCustomBuilder">Save reusable preset</button></div></section></div>
|
||||
<div v-if="customBuilderOpen" class="modal-backdrop" @click.self="customBuilderOpen = false"><section class="custom-builder panel"><div class="inspector-header"><div><span class="eyebrow">CUSTOM SYSTEM BUILDER</span><h2>Reusable system definition</h2><p class="muted">Definitions are saved to the local preset library. Placed instances remain independent.</p></div><button class="danger-icon" @click="customBuilderOpen = false">×</button></div><div class="builder-meta"><label>Name<input v-model="customDraft.name" /></label><label>Category<select v-model="customDraft.category"><option value="application">Application</option><option value="service">Service</option><option value="data">Data</option><option value="human">Human / role</option><option value="external">External</option><option value="physical-location">Physical Location</option><option value="business-operation">Business Operation</option></select></label><label>Colour<input v-model="customDraft.color" type="color" /></label><label>Description<textarea v-model="customDraft.description" rows="2"></textarea></label></div><div class="builder-section"><div class="steps-head"><span>Actions</span><button class="icon-button" @click="addCustomAction">+</button></div><article v-for="action in customDraft.definition.actions" :key="action.id" class="definition-card"><div class="definition-grid"><label>Name<input v-model="action.name" /></label><label>Trigger<select v-model="action.trigger"><option value="button">Button</option><option value="incoming">Incoming request / event</option><option value="schedule">Simulated schedule</option></select></label></div><label>Description<input v-model="action.description" /></label><label>Example input JSON<textarea v-model="action.input" rows="2" class="code"></textarea></label><div class="steps-head"><span>Outputs</span><button class="icon-button" @click="addCustomOutput(action)">+</button></div><div v-for="output in action.outputs" :key="output.id" class="nested-row"><input v-model="output.name" placeholder="Output name" /><textarea v-model="output.payload" rows="2" class="code" placeholder="Example JSON"></textarea><input v-model="output.condition" placeholder="Outcome condition (optional)" /><label class="checkbox-label"><input v-model="output.parallel" type="checkbox" /> Parallel output</label></div></article></div><div class="builder-section"><div class="steps-head"><span>Endpoints</span><button class="icon-button" @click="addCustomEndpoint">+</button></div><article v-for="endpoint in customDraft.definition.endpoints" :key="endpoint.id" class="definition-card"><div class="definition-grid"><label>Name<input v-model="endpoint.name" /></label><label>Protocol<select v-model="endpoint.protocol"><option>HTTPS</option><option>HTTP</option><option>GraphQL</option><option>Webhook</option><option>Message queue</option></select></label><label>Method<input v-model="endpoint.method" /></label><label>Path<input v-model="endpoint.path" /></label></div><label>Example request JSON<textarea v-model="endpoint.request" rows="2" class="code"></textarea></label><label>Triggers action<select v-model="endpoint.triggersActionId"><option value="">No action</option><option v-for="action in customDraft.definition.actions" :key="action.id" :value="action.id">{{ action.name }}</option></select></label><div class="steps-head"><span>Responses</span><button class="icon-button" @click="addCustomResponse(endpoint)">+</button></div><div v-for="response in endpoint.responses" :key="response.id" class="nested-row response-row"><label>Status<input v-model.number="response.status" type="number" /></label><label>Delay ms<input v-model.number="response.delayMs" type="number" min="0" /></label><textarea v-model="response.body" rows="2" class="code" placeholder="Response body JSON"></textarea></div></article></div><div class="modal-actions"><button class="ghost" @click="customBuilderOpen = false">Cancel</button><button class="primary" @click="saveCustomBuilder">Save reusable preset</button></div></section></div>
|
||||
<section v-if="activeTab === 'containers'" class="container-editor panel"><div class="section-heading"><span>Environment containers</span><button class="primary" @click="addContainer">Add container</button></div><div class="container-list"><button v-for="container in landscape.containers" :key="container.id" class="list-item" :class="{selected: selectedContainerId === container.id}" @click="selectContainer(container.id)"><span class="system-dot" :style="{background: container.color}"></span><span><strong>{{ container.name }}</strong><small>{{ container.collapsed ? 'Collapsed' : 'Expanded' }} · {{ landscape.systems.filter((system) => system.containerId === container.id).length }} systems</small></span></button></div><div v-if="selectedContainer" class="container-form"><label>Name<input v-model="selectedContainer.name" @change="rebuildGraph" /></label><label>Colour<input v-model="selectedContainer.color" type="color" @change="rebuildGraph" /></label><label>Parent<select v-model="selectedContainer.parentId" @change="rebuildGraph"><option value="">No parent</option><option v-for="parent in landscape.containers.filter((item) => item.id !== selectedContainer.id)" :key="parent.id" :value="parent.id">{{ parent.name }}</option></select></label><label>Position X<input v-model.number="selectedContainer.position[0]" type="number" @change="rebuildGraph" /></label><label>Position Y<input v-model.number="selectedContainer.position[1]" type="number" @change="rebuildGraph" /></label><label>Width<input v-model.number="selectedContainer.size[0]" type="number" min="180" @change="rebuildGraph" /></label><label>Height<input v-model.number="selectedContainer.size[1]" type="number" min="120" @change="rebuildGraph" /></label><label class="checkbox-label"><input v-model="selectedContainer.collapsed" type="checkbox" @change="rebuildGraph" /> Collapse to summary</label><div class="container-move"><button class="ghost" @click="moveContainer(selectedContainer, -20, 0)">← Move</button><button class="ghost" @click="moveContainer(selectedContainer, 20, 0)">Move →</button><button class="ghost" @click="moveContainer(selectedContainer, 0, -20)">↑ Move</button><button class="ghost" @click="moveContainer(selectedContainer, 0, 20)">↓ Move</button></div><button class="text-danger" @click="deleteContainer(selectedContainer.id)">Delete container</button></div></section>
|
||||
<section class="tag-panel panel"><label>Filter by system tag<select v-model="tagFilter"><option value="all">All tags</option><option v-for="tag in allTags" :key="tag">{{ tag }}</option></select></label><label v-if="selectedSystem">Selected system tags<input :value="(selectedSystem.tags || []).join(', ')" @change="selectedSystem.tags = $event.target.value.split(',').map((tag) => tag.trim()).filter(Boolean); persist()" /></label></section>
|
||||
<section class="category-panel panel"><label>Filter by category<select v-model="categoryFilter"><option value="all">All categories</option><option value="application">Application</option><option value="saas-service">SaaS Service</option><option value="cloud-service">Cloud Service</option><option value="development-tool">Development Tool</option><option value="data-store">Data Store</option><option value="service">Service</option><option value="data">Data</option><option value="human">Human</option><option value="external">External</option></select></label><label>Filter connections<select v-model="connectionTypeFilter" @change="rebuildGraph"><option value="all">All relationship types</option><option value="data-flow">Data Flow</option><option value="deployment">Deployment</option><option value="dependency">Dependency</option><option value="source-repository">Source Repository</option></select></label><label v-if="selectedConnection">Selected relationship type<select v-model="selectedConnection.connectionType"><option value="data-flow">Data Flow</option><option value="deployment">Deployment</option><option value="dependency">Dependency</option><option value="source-repository">Source Repository</option></select></label></section>
|
||||
<section class="category-panel panel"><label>Filter by category<select v-model="categoryFilter"><option value="all">All categories</option><option value="application">Application</option><option value="saas-service">SaaS Service</option><option value="cloud-service">Cloud Service</option><option value="development-tool">Development Tool</option><option value="data-store">Data Store</option><option value="service">Service</option><option value="data">Data</option><option value="human">Human</option><option value="external">External</option><option value="physical-location">Physical Location</option><option value="business-operation">Business Operation</option></select></label><label>Filter connections<select v-model="connectionTypeFilter" @change="rebuildGraph"><option value="all">All relationship types</option><option value="data-flow">Data Flow</option><option value="deployment">Deployment</option><option value="dependency">Dependency</option><option value="source-repository">Source Repository</option></select></label><label v-if="selectedConnection">Selected relationship type<select v-model="selectedConnection.connectionType"><option value="data-flow">Data Flow</option><option value="deployment">Deployment</option><option value="dependency">Dependency</option><option value="source-repository">Source Repository</option></select></label></section>
|
||||
<section v-if="selectedSystem && (selectedSystem.environments?.length || activeTab === 'systems')" class="environment-panel panel"><div class="environment-header"><div><span class="eyebrow">INFRASTRUCTURE DRILL-DOWN</span><strong>{{ selectedSystem.name }} environments</strong></div><div class="environment-actions"><button class="ghost" @click="addEnvironment">+ Environment</button><button v-if="selectedEnvironment" class="ghost" @click="cloneEnvironment(selectedEnvironment)">Clone environment</button></div></div><div class="environment-tabs"><button v-for="environment in (selectedSystem.environments || [])" :key="environment.id" :class="{active: selectedEnvironment?.id === environment.id}" @click="selectEnvironment(environment.id)">{{ environment.name }}</button><span v-if="!selectedSystem.environments?.length" class="muted">No environments yet. Add Dev, QA, UAT or Prod.</span></div><div v-if="selectedEnvironment" class="environment-detail"><div class="environment-config"><label>Name<input v-model="selectedEnvironment.name" /></label><label>Hosting location<input v-model="selectedEnvironment.configuration.hostingLocation" placeholder="Azure, on-prem, etc." /></label><label>Software/version<input v-model="selectedEnvironment.configuration.softwareVersion" /></label><label>Example configuration<input :value="selectedEnvironment.exampleConfiguration ? 'Yes — fictional values' : 'No'" readonly /></label><label>Properties JSON<textarea :value="JSON.stringify(selectedEnvironment.configuration.properties, null, 2)" @change="(event) => { try { selectedEnvironment.configuration.properties = JSON.parse(event.target.value); persist() } catch { importError = 'Environment properties must be valid JSON.' } }" rows="3" class="code"></textarea></label></div><div class="environment-components"><div class="steps-head"><span>Components and instances</span><button class="icon-button" @click="addComponent">+</button></div><article v-for="component in selectedEnvironment.components" :key="component.id" class="component-card"><div class="component-head"><strong>{{ component.name }}</strong><small>{{ component.role }} · {{ component.instanceName }}</small><button class="text-danger" @click="deleteComponent(component.id)">Remove</button></div><div class="definition-grid"><label>Name<input v-model="component.name" /></label><label>Instance<input v-model="component.instanceName" /></label><label>Role<select v-model="component.role"><option value="web-application">Web Application</option><option value="content-management">Content Management</option><option value="content-delivery">Content Delivery</option><option value="database-server">Database Server</option><option value="database">Database</option><option value="search-service">Search Service</option></select></label><label>Hosting location<input v-model="component.configuration.hostingLocation" /></label><label>Hostname<input v-model="component.configuration.hostname" /></label><label>URL<input v-model="component.configuration.url" /></label><label>Software/version<input v-model="component.configuration.softwareVersion" /></label><label>Properties JSON<textarea :value="JSON.stringify(component.configuration.properties, null, 2)" @change="(event) => { try { component.configuration.properties = JSON.parse(event.target.value); persist() } catch { importError = 'Component properties must be valid JSON.' } }" rows="2" class="code"></textarea></label></div></article></div><div class="environment-topology"><div class="steps-head"><span>Internal topology</span><small>Editable example connections</small></div><div v-for="link in selectedEnvironment.connections" :key="link.id" class="topology-row"><select v-model="link.sourceComponentId"><option v-for="component in selectedEnvironment.components" :key="component.id" :value="component.id">{{ component.name }}</option></select><input v-model="link.label" /><select v-model="link.targetComponentId"><option v-for="component in selectedEnvironment.components" :key="component.id" :value="component.id">{{ component.name }}</option></select></div></div></div></section>
|
||||
<section v-if="selectedScenario" class="scenario-environment panel"><span class="eyebrow">SCENARIO ENVIRONMENT</span><label>Environment<select v-model="selectedScenario.environmentId"><option value="">Logical system view</option><option v-for="system in landscape.systems" :key="system.id" :value="system.environments?.[0]?.id" :disabled="!system.environments?.length">{{ system.name }} · {{ system.environments?.[0]?.name || 'No environment' }}</option></select></label><label class="checkbox-label"><input v-model="selectedScenario.traceInternal" type="checkbox" /> Trace internal component connections when available</label></section>
|
||||
<section v-if="pipelineTrace.length" class="pipeline-inspector panel"><div class="steps-head"><span>Middleware pipeline trace</span><small>Simulated restricted mappings</small></div><article v-for="trace in pipelineTrace" :key="trace.stepId" class="pipeline-trace-row"><div><b>{{ trace.name }}</b><small>{{ trace.type.toUpperCase() }} · {{ trace.explanation }}</small></div><div class="json-columns"><pre>{{ trace.input }}</pre><span>→</span><pre>{{ trace.output }}</pre></div><p v-if="trace.changedFields.length" class="changed-fields">Changed: {{ trace.changedFields.join(', ') }}</p></article></section>
|
||||
<section v-if="customBuilderOpen" class="pipeline-builder-overlay"><div class="pipeline-builder panel"><div class="inspector-header"><div><span class="eyebrow">ACTION PIPELINES</span><h2>Middleware mapping editor</h2><p class="muted">Optional restricted pipelines are saved inside each action definition. No arbitrary JavaScript is executed.</p></div><button class="danger-icon" @click="customBuilderOpen = false">×</button></div><article v-for="action in customDraft.definition.actions" :key="action.id" class="definition-card"><div class="steps-head"><span>{{ action.name }}</span><button v-if="!action.pipeline" class="ghost" @click="attachPipeline(action)">Add pipeline</button></div><p v-if="!action.pipeline" class="muted">Add Receive, Validate, Transform, Route and Send stages to this action.</p><div v-else><label>Pipeline name<input v-model="action.pipeline.name" /></label><label>Pipeline JSON<textarea :value="JSON.stringify(action.pipeline, null, 2)" @change="updatePipeline(action, $event)" rows="14" class="code"></textarea></label><small class="muted">Mapping ops: copy, rename, fixed, default, type-conversion, object-construction and array-item-mapping. Use <code>$ref:key</code> in a fixed value for a reference lookup.</small></div></article><div class="modal-actions"><button class="ghost" @click="customBuilderOpen = false">Continue editing</button><button class="primary" @click="saveCustomBuilder">Save reusable preset</button></div></div></section>
|
||||
<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 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>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
+14
-2
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
+28
-4
@@ -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' }
|
||||
]
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user