diff --git a/frontend/src/app.css b/frontend/src/app.css index 79e2985935..3d0cb2d6e9 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -23,6 +23,10 @@ display: none !important; } + .nowrap pre code.hljs { + whitespace: normal !important; + } + svelte-virtual-list-row { overflow: visible !important; } @@ -31,8 +35,6 @@ border-top-width: 1px !important; border-bottom-width: 0px !important; } - - } @layer components { @@ -42,4 +44,3 @@ cursor: pointer !important; } } - diff --git a/frontend/src/lib/components/FlowGraphViewer.svelte b/frontend/src/lib/components/FlowGraphViewer.svelte index 5bec6a92aa..a317769afc 100644 --- a/frontend/src/lib/components/FlowGraphViewer.svelte +++ b/frontend/src/lib/components/FlowGraphViewer.svelte @@ -5,6 +5,11 @@ import IconedPath from './IconedPath.svelte' import { scriptPathToHref } from '../utils' import type { FlowModule, FlowValue } from '$lib/gen' + import { Drawer, DrawerContent } from './common' + import { Highlight } from 'svelte-highlight' + import ObjectViewer from './propertyPicker/ObjectViewer.svelte' + import typescript from 'svelte-highlight/languages/typescript' + import { cleanExpr } from './flows/utils' export let flow: { summary: string description?: string @@ -13,8 +18,60 @@ } export let overflowAuto = false let stepDetail: FlowModule | undefined = undefined + let codeViewer: Drawer + + + {#if stepDetail} + {#if stepDetail.value.type == 'script'} +
+ + + +
+
+

Step Inputs

+ +
+ {#if stepDetail.value.path.startsWith('hub/')} +
+

Code

+