diff --git a/public/general_components/multi_select_filter.tsx b/public/general_components/multi_select_filter.tsx index 815149c1..2cb59ecf 100644 --- a/public/general_components/multi_select_filter.tsx +++ b/public/general_components/multi_select_filter.tsx @@ -76,7 +76,7 @@ export function MultiSelectFilter(props: MultiSelectFilterProps) { } isOpen={isPopoverOpen} closePopover={onPopoverClose} - panelPaddingSize="none" + panelPaddingSize="s" >
{filters.map((filter, index) => ( diff --git a/public/general_components/processors_title.tsx b/public/general_components/processors_title.tsx index 87b2c75d..feebcf82 100644 --- a/public/general_components/processors_title.tsx +++ b/public/general_components/processors_title.tsx @@ -4,7 +4,7 @@ */ import React from 'react'; -import { EuiFlexItem, EuiTitle } from '@elastic/eui'; +import { EuiFlexItem, EuiText } from '@elastic/eui'; interface ProcessorsTitleProps { title: string; @@ -17,17 +17,17 @@ interface ProcessorsTitleProps { export function ProcessorsTitle(props: ProcessorsTitleProps) { return ( - +
-

{`${props.title} (${props.processorCount}) -`}

+ >{`${props.title} (${props.processorCount}) -`}   -

+

optional -

+
-
+
); } diff --git a/public/general_components/service_card/search_studio_card.tsx b/public/general_components/service_card/search_studio_card.tsx index 14506d53..6d18b842 100644 --- a/public/general_components/service_card/search_studio_card.tsx +++ b/public/general_components/service_card/search_studio_card.tsx @@ -4,7 +4,12 @@ */ import React from 'react'; -import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiIcon } from '@elastic/eui'; +import { + EuiSmallButton, + EuiFlexGroup, + EuiFlexItem, + EuiIcon, +} from '@elastic/eui'; import { i18n } from '@osd/i18n'; import { PLUGIN_ID } from '../../../common'; import { ContentManagementPluginStart } from '../../../../../src/plugins/content_management/public'; @@ -26,8 +31,7 @@ export const registerSearchStudioCard = ( const footer = ( - { core.application.navigateToApp(PLUGIN_ID); }} @@ -35,7 +39,7 @@ export const registerSearchStudioCard = ( {i18n.translate('flowFrameworkDashboards.searchStudioCard.footer', { defaultMessage: 'Try OpenSearch Studio', })} - + ); diff --git a/public/pages/workflow_detail/components/export_modal.tsx b/public/pages/workflow_detail/components/export_modal.tsx index d0e3b6ed..22c61906 100644 --- a/public/pages/workflow_detail/components/export_modal.tsx +++ b/public/pages/workflow_detail/components/export_modal.tsx @@ -83,7 +83,7 @@ export function ExportModal(props: ExportModalProps) { - + {`To build out identical resources in other environments, create and provision a workflow using the below template.`}{' '} Learn more diff --git a/public/pages/workflow_detail/resizable_workspace.tsx b/public/pages/workflow_detail/resizable_workspace.tsx index 5f68e2f7..d6a96bd1 100644 --- a/public/pages/workflow_detail/resizable_workspace.tsx +++ b/public/pages/workflow_detail/resizable_workspace.tsx @@ -276,7 +276,7 @@ export function ResizableWorkspace(props: ResizableWorkspaceProps) { titleSize="s" body={ <> - + Only valid workflows created from this OpenSearch Dashboards application are editable and viewable. diff --git a/public/pages/workflow_detail/tools/errors/errors.tsx b/public/pages/workflow_detail/tools/errors/errors.tsx index 0493b1db..a1ca60d5 100644 --- a/public/pages/workflow_detail/tools/errors/errors.tsx +++ b/public/pages/workflow_detail/tools/errors/errors.tsx @@ -19,7 +19,7 @@ export function Errors(props: ErrorsProps) { return ( <> {isEmpty(props.errorMessage) ? ( - There are no errors. + There are no errors. ) : ( {props.errorMessage} diff --git a/public/pages/workflow_detail/tools/resources/resources.tsx b/public/pages/workflow_detail/tools/resources/resources.tsx index 3a4370bd..4449d998 100644 --- a/public/pages/workflow_detail/tools/resources/resources.tsx +++ b/public/pages/workflow_detail/tools/resources/resources.tsx @@ -40,7 +40,7 @@ export function Resources(props: ResourcesProps) { titleSize="s" body={ <> - + Provision the workflow to generate resources in order to start prototyping. diff --git a/public/pages/workflow_detail/tools/tools.tsx b/public/pages/workflow_detail/tools/tools.tsx index ea324ed2..86b854ee 100644 --- a/public/pages/workflow_detail/tools/tools.tsx +++ b/public/pages/workflow_detail/tools/tools.tsx @@ -13,7 +13,7 @@ import { EuiPanel, EuiTab, EuiTabs, - EuiTitle, + EuiText, } from '@elastic/eui'; import { Workflow } from '../../../../common'; import { Resources } from './resources'; @@ -117,9 +117,9 @@ export function Tools(props: ToolsProps) { }} > - +

Tools

-
+
diff --git a/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx b/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx index 3e1ff46c..eb3be03d 100644 --- a/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx +++ b/public/pages/workflow_detail/workflow_inputs/ingest_inputs/ingest_data.tsx @@ -4,7 +4,7 @@ */ import React from 'react'; -import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; import { TextField } from '../input_fields'; import { AdvancedSettings } from './advanced_settings'; @@ -17,9 +17,9 @@ export function IngestData(props: IngestDataProps) { return ( - -

Ingest data

-
+ +

Ingest data

+
diff --git a/public/pages/workflow_detail/workflow_inputs/ingest_inputs/source_data.tsx b/public/pages/workflow_detail/workflow_inputs/ingest_inputs/source_data.tsx index 5c91e643..f99f8d9a 100644 --- a/public/pages/workflow_detail/workflow_inputs/ingest_inputs/source_data.tsx +++ b/public/pages/workflow_detail/workflow_inputs/ingest_inputs/source_data.tsx @@ -18,7 +18,6 @@ import { EuiModalHeaderTitle, EuiSpacer, EuiText, - EuiTitle, EuiFilterGroup, EuiSmallFilterButton, EuiSuperSelectOption, @@ -253,7 +252,9 @@ export function SourceData(props: SourceDataProps) { (option) => ({ value: option.name, - inputDisplay: {option.name}, + inputDisplay: ( + {option.name} + ), disabled: false, } as EuiSuperSelectOption) )} @@ -288,9 +289,9 @@ export function SourceData(props: SourceDataProps) { )} - -

Import data

-
+ +

Source data

+
{props.lastIngested !== undefined && ( diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx index 85b0f874..82f9d6cc 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/configure_prompt_modal.tsx @@ -115,6 +115,7 @@ export function ConfigurePromptModal(props: ConfigurePromptModalProps) { anchorPosition="downLeft" > - Prompt + Prompt setSchemaPopoverOpen(false)} + panelPaddingSize="s" button={ diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/input_transform_modal.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/input_transform_modal.tsx index 4ef5fee3..610beeee 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/input_transform_modal.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/input_transform_modal.tsx @@ -26,7 +26,7 @@ import { EuiCodeBlock, EuiPopoverTitle, EuiIconTip, - EuiSwitch, + EuiCompressedSwitch, EuiCallOut, } from '@elastic/eui'; import { @@ -281,7 +281,7 @@ export function InputTransformModal(props: InputTransformModalProps) { )} - Source input + Source input <> - Define transform + Define transform {transformOptions.length <= 1 ? ( - Transformed input + Transformed input ) : ( Transformed input for} + prepend={ + Transformed input for + } options={transformOptions} value={selectedTransformOption} onChange={(e) => { @@ -513,6 +515,7 @@ export function InputTransformModal(props: InputTransformModalProps) { setPopoverOpen(false)} + panelPaddingSize="s" button={ setPopoverOpen(!popoverOpen)} @@ -562,10 +565,10 @@ export function InputTransformModal(props: InputTransformModalProps) { <> - Transformed prompt + Transformed prompt - setViewPromptDetails(!viewPromptDetails)} @@ -583,7 +586,7 @@ export function InputTransformModal(props: InputTransformModalProps) { {viewPromptDetails && ( <> - diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx index 31b27cf6..c877c131 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx @@ -203,7 +203,7 @@ export function OutputTransformModal(props: OutputTransformModalProps) { )} - Source output + Source output {!isEmpty( parseModelOutputsObj(props.modelInterface, fullResponsePath) @@ -212,6 +212,7 @@ export function OutputTransformModal(props: OutputTransformModalProps) { setPopoverOpen(false)} + panelPaddingSize="s" button={ setPopoverOpen(!popoverOpen)} @@ -382,7 +383,7 @@ export function OutputTransformModal(props: OutputTransformModalProps) { <> - Define transform + Define transform <> {transformOptions.length <= 1 ? ( - Transformed output + Transformed output ) : ( Transformed output for} + prepend={Transformed output for} options={transformOptions} value={selectedTransformOption} onChange={(e) => { diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/override_query_modal.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/override_query_modal.tsx index edbab46f..b7d11e57 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/override_query_modal.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/override_query_modal.tsx @@ -112,6 +112,7 @@ export function OverrideQueryModal(props: OverrideQueryModalProps) { anchorPosition="downLeft" > - -

Configure query

-
+ +

Configure query

+
@@ -100,7 +99,7 @@ export function ConfigureSearchRequest(props: ConfigureSearchRequestProps) { (option) => ({ value: option.name, - inputDisplay: {option.name}, + inputDisplay: {option.name}, disabled: false, } as EuiSuperSelectOption) )} diff --git a/public/pages/workflow_detail/workflow_inputs/search_inputs/edit_query_modal.tsx b/public/pages/workflow_detail/workflow_inputs/search_inputs/edit_query_modal.tsx index 7794cf1c..4a639977 100644 --- a/public/pages/workflow_detail/workflow_inputs/search_inputs/edit_query_modal.tsx +++ b/public/pages/workflow_detail/workflow_inputs/search_inputs/edit_query_modal.tsx @@ -66,6 +66,7 @@ export function EditQueryModal(props: EditQueryModalProps) { anchorPosition="downLeft" > - + The resources for this workflow will be permanently deleted. This action cannot be undone. @@ -725,7 +724,7 @@ export function WorkflowInputs(props: WorkflowInputsProps) { }} > - +

{onIngestAndUnprovisioned ? ( 'Define ingest pipeline' @@ -748,7 +747,7 @@ export function WorkflowInputs(props: WorkflowInputsProps) { 'Define search pipeline' )}

-
+
{onIngest ? ( <> diff --git a/public/pages/workflow_detail/workspace/workspace.tsx b/public/pages/workflow_detail/workspace/workspace.tsx index 5c618722..fb795369 100644 --- a/public/pages/workflow_detail/workspace/workspace.tsx +++ b/public/pages/workflow_detail/workspace/workspace.tsx @@ -16,7 +16,6 @@ import ReactFlow, { import { EuiFlexItem, EuiFlexGroup, - EuiTitle, EuiFilterGroup, EuiFilterButton, EuiCodeEditor, @@ -127,14 +126,14 @@ export function Workspace(props: WorkspaceProps) {
- +

Preview

-
+
toggleSelection()} data-testid="workspaceVisualButton" @@ -142,7 +141,7 @@ export function Workspace(props: WorkspaceProps) { Visual toggleSelection()} data-testid="workspaceJSONButton" @@ -153,11 +152,11 @@ export function Workspace(props: WorkspaceProps) { {visualSelected ? ( - + {`A basic visual view representing the configured ingest & search flows.`} ) : ( - + {`The Flow Framework provisioning template describing how to build out the configured resources. `} Learn more diff --git a/public/pages/workflow_detail/workspace/workspace_components/group_component.tsx b/public/pages/workflow_detail/workspace/workspace_components/group_component.tsx index 3f34c958..359d7d4e 100644 --- a/public/pages/workflow_detail/workspace/workspace_components/group_component.tsx +++ b/public/pages/workflow_detail/workspace/workspace_components/group_component.tsx @@ -4,7 +4,7 @@ */ import React from 'react'; -import { EuiFlexGroup, EuiFlexItem, EuiTitle } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; interface GroupComponentProps { data: { label: string }; @@ -20,9 +20,9 @@ export function GroupComponent(props: GroupComponentProps) { // overlapping the group node title - +

{props.data.label}

-
+
diff --git a/public/pages/workflow_detail/workspace/workspace_components/workspace_component.tsx b/public/pages/workflow_detail/workspace/workspace_components/workspace_component.tsx index fb245a1c..41ce1ae8 100644 --- a/public/pages/workflow_detail/workspace/workspace_components/workspace_component.tsx +++ b/public/pages/workflow_detail/workspace/workspace_components/workspace_component.tsx @@ -9,7 +9,6 @@ import { EuiFlexItem, EuiCard, EuiText, - EuiTitle, EuiSpacer, } from '@elastic/eui'; import { IComponentData } from '../../../../../common'; @@ -38,9 +37,9 @@ export function WorkspaceComponent(props: WorkspaceComponentProps) { title={ - +

{component.label}

-
+
diff --git a/public/pages/workflows/empty_list_message.tsx b/public/pages/workflows/empty_list_message.tsx index e30cd343..9b02e226 100644 --- a/public/pages/workflows/empty_list_message.tsx +++ b/public/pages/workflows/empty_list_message.tsx @@ -10,7 +10,6 @@ import { EuiFlexItem, EuiSpacer, EuiText, - EuiTitle, } from '@elastic/eui'; interface EmptyListMessageProps { @@ -24,9 +23,9 @@ export function EmptyListMessage(props: EmptyListMessageProps) { - +

No workflows found

-
+
diff --git a/public/pages/workflows/new_workflow/use_case.tsx b/public/pages/workflows/new_workflow/use_case.tsx index 741b9aa1..6c74bce5 100644 --- a/public/pages/workflows/new_workflow/use_case.tsx +++ b/public/pages/workflows/new_workflow/use_case.tsx @@ -8,7 +8,6 @@ import { EuiText, EuiFlexGroup, EuiFlexItem, - EuiTitle, EuiCard, EuiHorizontalRule, EuiSmallButton, @@ -34,9 +33,9 @@ export function UseCase(props: UseCaseProps) { )} -

{props.workflow.name}

- + +

{props.workflow.name}

+
} titleSize="s" paddingSize="l" @@ -45,7 +44,7 @@ export function UseCase(props: UseCaseProps) { - {props.workflow.description} + {props.workflow.description} diff --git a/public/pages/workflows/workflow_list/delete_workflow_modal.tsx b/public/pages/workflows/workflow_list/delete_workflow_modal.tsx index 649e5723..f542ffae 100644 --- a/public/pages/workflows/workflow_list/delete_workflow_modal.tsx +++ b/public/pages/workflows/workflow_list/delete_workflow_modal.tsx @@ -83,7 +83,9 @@ export function DeleteWorkflowModal(props: DeleteWorkflowModalProps) { - The workflow will be permanently deleted. + + The workflow will be permanently deleted. + setIsResourcesFlyoutOpen(false)} > - +

{`Active resources with ${getCharacterLimitedString( selectedWorkflow.name, MAX_WORKFLOW_NAME_TO_DISPLAY )}`}

-
+
diff --git a/public/pages/workflows/workflows.tsx b/public/pages/workflows/workflows.tsx index e4b81456..e13541a8 100644 --- a/public/pages/workflows/workflows.tsx +++ b/public/pages/workflows/workflows.tsx @@ -8,7 +8,6 @@ import { RouteComponentProps, useLocation } from 'react-router-dom'; import { escape } from 'lodash'; import { EuiPageHeader, - EuiTitle, EuiPage, EuiPageBody, EuiPageContent, @@ -219,9 +218,9 @@ export function Workflows(props: WorkflowsProps) { /> ) : ( - +

{PLUGIN_NAME}

-
+ {DESCRIPTION}
); @@ -267,13 +266,13 @@ export function Workflows(props: WorkflowsProps) { +

{selectedTabId === WORKFLOWS_TAB.MANAGE ? 'Workflows' : 'Create from a template'}

- +
} rightSideItems={ selectedTabId === WORKFLOWS_TAB.MANAGE @@ -289,6 +288,7 @@ export function Workflows(props: WorkflowsProps) { dataSourceId ); }} + iconType="plus" data-testid="createWorkflowButton" > Create workflow