From dc07e497b48a1b1115b3cd1fd3182c2848fa5833 Mon Sep 17 00:00:00 2001 From: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:22:36 -0700 Subject: [PATCH] Fixed workflow detail page UX bugs (#457) Signed-off-by: saimedhi --- .../workflow_detail/components/header.tsx | 11 ++++--- .../workflow_detail/resizable_workspace.tsx | 29 +++++++++---------- public/pages/workflow_detail/tools/tools.tsx | 7 ++++- .../pages/workflow_detail/workflow_detail.tsx | 2 +- .../workflow_inputs/workflow_inputs.tsx | 16 ++++++---- .../workspace/workspace-styles.scss | 2 +- .../workflow_detail/workspace/workspace.tsx | 2 +- 7 files changed, 37 insertions(+), 32 deletions(-) diff --git a/public/pages/workflow_detail/components/header.tsx b/public/pages/workflow_detail/components/header.tsx index 294ef30f..a9853faf 100644 --- a/public/pages/workflow_detail/components/header.tsx +++ b/public/pages/workflow_detail/components/header.tsx @@ -336,7 +336,6 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) { <> {dataSourceEnabled && DataSourceComponent} {workflowName} @@ -344,7 +343,6 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) { } rightSideItems={[ { setIsExportModalOpen(true); @@ -354,7 +352,6 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) { Export , { history.replace( constructUrlWithParams( @@ -369,7 +366,6 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) { Close , { @@ -379,7 +375,6 @@ export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) { {`Save`} , , - + {`Last updated: ${workflowLastUpdated}`} , ]} bottomBorder={false} + rightSideGroupProps={{ + alignItems: 'center', + }} + paddingSize="s" /> )} diff --git a/public/pages/workflow_detail/resizable_workspace.tsx b/public/pages/workflow_detail/resizable_workspace.tsx index fee48b08..b7cf00af 100644 --- a/public/pages/workflow_detail/resizable_workspace.tsx +++ b/public/pages/workflow_detail/resizable_workspace.tsx @@ -96,8 +96,9 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) { direction="horizontal" className="stretch-absolute" style={{ - marginLeft: '-8px', - marginTop: SHOW_ACTIONS_IN_HEADER ? '-8px' : '40px', + marginTop: SHOW_ACTIONS_IN_HEADER ? '0' : '58px', + height: SHOW_ACTIONS_IN_HEADER ? '100%' : 'calc(100% - 58px)', + gap: '4px', }} > {(EuiResizablePanel, EuiResizableButton, { togglePanel }) => { @@ -112,7 +113,8 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) { mode="main" initialSize={60} minSize="25%" - paddingSize="s" + paddingSize="none" + scrollable={false} > onTogglePreviewChange()} > {(EuiResizablePanel, EuiResizableButton, { togglePanel }) => { @@ -171,12 +168,12 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) { mode="main" initialSize={60} minSize="25%" - paddingSize="s" - style={{ marginBottom: '-8px' }} + paddingSize="none" + borderRadius="l" > @@ -193,9 +190,9 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) { mode="collapsible" initialSize={50} minSize="25%" - paddingSize="s" + paddingSize="none" + borderRadius="l" onToggleCollapsedInternal={() => onToggleToolsChange()} - style={{ marginBottom: '-16px' }} > + {}} > - + + {props.uiConfig === undefined ? ( ) : ( - + )} - + diff --git a/public/pages/workflow_detail/workspace/workspace-styles.scss b/public/pages/workflow_detail/workspace/workspace-styles.scss index 9694f2d6..2fdb250e 100644 --- a/public/pages/workflow_detail/workspace/workspace-styles.scss +++ b/public/pages/workflow_detail/workspace/workspace-styles.scss @@ -1,3 +1,3 @@ .workspace-panel { - height: 95%; + height: 100%; } diff --git a/public/pages/workflow_detail/workspace/workspace.tsx b/public/pages/workflow_detail/workspace/workspace.tsx index fb795369..47b69d50 100644 --- a/public/pages/workflow_detail/workspace/workspace.tsx +++ b/public/pages/workflow_detail/workspace/workspace.tsx @@ -116,7 +116,7 @@ export function Workspace(props: WorkspaceProps) { justifyContent="spaceBetween" > {/**