forked from opensearch-project/dashboards-flow-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove workflow builder; add workflow details
Signed-off-by: Tyler Ohlsen <[email protected]>
- Loading branch information
Showing
17 changed files
with
114 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiPageHeader, EuiButton } from '@elastic/eui'; | ||
|
||
interface WorkflowDetailHeaderProps { | ||
componentName: string; | ||
} | ||
|
||
export function WorkflowDetailHeader(props: WorkflowDetailHeaderProps) { | ||
return ( | ||
<div> | ||
<EuiPageHeader | ||
pageTitle={props.componentName} | ||
description="Some description of this workflow..." | ||
rightSideItems={[ | ||
<EuiButton fill={false} onClick={() => {}}> | ||
Prototype | ||
</EuiButton>, | ||
<EuiButton fill={false} onClick={() => {}}> | ||
Save | ||
</EuiButton>, | ||
]} | ||
/> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export * from './header'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export * from './workflow_detail'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React, { useEffect } from 'react'; | ||
import { RouteComponentProps } from 'react-router-dom'; | ||
import { EuiFlexItem, EuiText, EuiSpacer } from '@elastic/eui'; | ||
import { BREADCRUMBS } from '../../utils'; | ||
import { getCore } from '../../services'; | ||
import { WorkflowDetailHeader } from './components'; | ||
|
||
export interface WorkflowDetailRouterProps { | ||
workflowId: string; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
interface WorkflowDetailProps | ||
extends RouteComponentProps<WorkflowDetailRouterProps> {} | ||
|
||
export function WorkflowDetail(props: WorkflowDetailProps) { | ||
useEffect(() => { | ||
getCore().chrome.setBreadcrumbs([ | ||
BREADCRUMBS.AI_APPLICATION_BUILDER, | ||
BREADCRUMBS.WORKFLOWS, | ||
{ text: 'workflow-name-placeholder' }, | ||
]); | ||
}); | ||
|
||
return ( | ||
<div> | ||
<WorkflowDetailHeader componentName="component 1" /> | ||
<EuiSpacer size="l" /> | ||
<EuiFlexItem> | ||
<EuiText>Put ReactFlow canvas here...</EuiText> | ||
</EuiFlexItem> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters