From 2c12ad212df1dd4225929abde1271ee410f18d29 Mon Sep 17 00:00:00 2001 From: Jamie Waese <120480244+jamiewaese-uncharted@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:55:52 -0400 Subject: [PATCH 01/14] moved simulation wizard form into a collapsable side panel --- .../tera-simulate-ciemss-drilldown.vue | 190 +++++++++++------- 1 file changed, 112 insertions(+), 78 deletions(-) diff --git a/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue b/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue index dc1e0339ca..65cc0efcb7 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue +++ b/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue @@ -5,79 +5,90 @@ @update:selection="onSelection" @on-close-clicked="emit('close')" @update-state="(state: any) => emit('update-state', state)" + class="drilldown" > -
- - -
-
- Simulation settings - -
- - -
-
- - -
+ +
+ + +
+ +
- @@ -172,6 +176,7 @@ import { computed, onMounted, onUnmounted, ref, watch } from 'vue'; import Button from 'primevue/button'; import Dropdown from 'primevue/dropdown'; import TeraInputNumber from '@/components/widgets/tera-input-number.vue'; +import TeraSliderPanel from '@/components/widgets/tera-slider-panel.vue'; import type { CsvAsset, SimulationRequest, TimeSpan } from '@/types/Types'; import type { WorkflowNode } from '@/types/workflow'; import { @@ -209,6 +214,7 @@ import { getModelConfigurationById } from '@/services/model-configurations'; import { SimulateCiemssOperationState } from './simulate-ciemss-operation'; import TeraChartControl from '../../tera-chart-control.vue'; +const isSidebarOpen = ref(false); const props = defineProps<{ node: WorkflowNode; }>(); @@ -228,8 +234,6 @@ const llmQuery = ref(''); const numSamples = ref(props.node.state.numSamples); const method = ref(props.node.state.method); -const simulationSettingsToolTip: string = 'TODO'; - enum OutputView { Charts = 'Charts', Data = 'Data' @@ -540,6 +544,39 @@ onUnmounted(() => kernelManager.shutdown()); + From c096a9259b18c3c2ac6b911181a0b4b4eddf05bf Mon Sep 17 00:00:00 2001 From: Jamie Waese <120480244+jamiewaese-uncharted@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:22:10 -0400 Subject: [PATCH 04/14] added empty state to page --- .../tera-simulate-ciemss-drilldown.vue | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue b/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue index bbe30eef86..9a91ceb884 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue +++ b/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue @@ -118,6 +118,7 @@ + + +
+ +

Click 'Run' to start the simulation

+
@@ -187,6 +194,8 @@ import _ from 'lodash'; import { computed, onMounted, onUnmounted, ref, watch } from 'vue'; import Button from 'primevue/button'; import Dropdown from 'primevue/dropdown'; +import { Vue3Lottie } from 'vue3-lottie'; +import EmptySeed from '@/assets/images/lottie-empty-seed.json'; import TeraInputNumber from '@/components/widgets/tera-input-number.vue'; import TeraSliderPanel from '@/components/widgets/tera-slider-panel.vue'; import type { CsvAsset, SimulationRequest, TimeSpan } from '@/types/Types'; @@ -641,4 +650,17 @@ onUnmounted(() => kernelManager.shutdown()); flex: 1; } } + +.emptyState { + position: absolute; + width: calc(100% - 240px); + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: var(--gap); + text-align: center; + pointer-events: none; +} From a6708932adf3b436c8cbba92a8a41a8402d42ef7 Mon Sep 17 00:00:00 2001 From: Jamie Waese <120480244+jamiewaese-uncharted@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:43:28 -0400 Subject: [PATCH 05/14] added empty state image to nodes --- .../tera-simulate-ciemss-drilldown.vue | 5 +++-- .../tera-simulate-node-ciemss.vue | 21 ++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue b/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue index 9a91ceb884..c166d5924f 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue +++ b/packages/client/hmi-client/src/components/workflow/ops/simulate-ciemss/tera-simulate-ciemss-drilldown.vue @@ -165,7 +165,7 @@
-

No variables selected

+

Select one or more variables for this chart

kernelManager.shutdown()); grid-template-columns: auto 1fr; } +/* Override top and bottom padding of content-container */ +.overlay-container:deep(section.drilldown main .content-container) { + padding: 0 var(--gap); +} + .empty-chart { display: flex; flex-direction: column; @@ -664,4 +676,8 @@ onUnmounted(() => kernelManager.shutdown()); text-align: center; pointer-events: none; } + +.p-button-icon-left { + color: var(--text-color-primary); +} From d219b1339c1c1fb8e008b12216708bf6f036761e Mon Sep 17 00:00:00 2001 From: Jamie Waese <120480244+jamiewaese-uncharted@users.noreply.github.com> Date: Thu, 5 Sep 2024 11:49:54 -0400 Subject: [PATCH 07/14] added padding between tabs and notes --- .../src/components/drilldown/tera-drilldown-header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue b/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue index 9a2c6c8cea..e70bd47f56 100644 --- a/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue +++ b/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue @@ -75,7 +75,7 @@ header .title { header .tabs-row { justify-content: space-between; align-items: end; - gap: var(--gap-1); + gap: var(--gap-6); } header .tabs-row:deep(.p-tabview .p-tabview-panels) { From a6f0e285014360c151f95ab4558fbf1db639dafb Mon Sep 17 00:00:00 2001 From: Jamie Waese <120480244+jamiewaese-uncharted@users.noreply.github.com> Date: Thu, 5 Sep 2024 11:59:34 -0400 Subject: [PATCH 08/14] decreased size of tabs --- .../src/components/drilldown/tera-drilldown-header.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue b/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue index e70bd47f56..7c3634c06d 100644 --- a/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue +++ b/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue @@ -98,12 +98,15 @@ a { :deep(.p-tabview .p-tabview-nav li .p-tabview-nav-link:focus) { background-color: var(--surface-section); } +:deep(.p-tabview .p-tabview-nav li .p-tabview-nav-link) { + padding: var(--gap-3) var(--gap-6); +} .actions { display: flex; justify-content: flex-end; gap: var(--gap-small); - padding-bottom: var(--gap-small); + padding-bottom: var(--gap-1); flex: 1; } From 1fbc80b70dc4da8299938f362d10d24d0d9c3aa2 Mon Sep 17 00:00:00 2001 From: Jamie Waese <120480244+jamiewaese-uncharted@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:09:40 -0400 Subject: [PATCH 09/14] finesse annotation position, make pencil secondary color --- .../src/components/drilldown/tera-drilldown-header.vue | 2 +- .../src/components/operator/tera-operator-annotation.vue | 8 +++++++- .../components/operator/tera-operator-output-summary.vue | 7 ++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue b/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue index 7c3634c06d..50b856326c 100644 --- a/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue +++ b/packages/client/hmi-client/src/components/drilldown/tera-drilldown-header.vue @@ -75,7 +75,7 @@ header .title { header .tabs-row { justify-content: space-between; align-items: end; - gap: var(--gap-6); + gap: var(--gap-4); } header .tabs-row:deep(.p-tabview .p-tabview-panels) { diff --git a/packages/client/hmi-client/src/components/operator/tera-operator-annotation.vue b/packages/client/hmi-client/src/components/operator/tera-operator-annotation.vue index 23aa74dc92..bd109e0253 100644 --- a/packages/client/hmi-client/src/components/operator/tera-operator-annotation.vue +++ b/packages/client/hmi-client/src/components/operator/tera-operator-annotation.vue @@ -17,7 +17,7 @@
-

{{ annotation }}

+

{{ annotation }}