diff --git a/public/app.tsx b/public/app.tsx index 2e46c62a..e6afe830 100644 --- a/public/app.tsx +++ b/public/app.tsx @@ -9,7 +9,7 @@ import { Route, RouteComponentProps, Switch } from 'react-router-dom'; import { EuiPageSideBar, EuiSideNav, EuiPageTemplate } from '@elastic/eui'; import { CoreStart } from '../../../src/core/public'; import { Navigation, APP_PATH } from './utils'; -import { Overview, UseCases, Workflows } from './pages'; +import { Overview, UseCases, Workflows, WorkflowBuilder } from './pages'; import { CoreServicesConsumer } from './core_services'; // eslint-disable-next-line @typescript-eslint/no-empty-interface @@ -37,6 +37,13 @@ export const AiFlowDashboardsApp = (props: Props) => { href: `#${APP_PATH.WORKFLOWS}`, isSelected: props.location.pathname === APP_PATH.WORKFLOWS, }, + { + name: Navigation.WorkflowBuilder, + id: 3, + href: `#${APP_PATH.WORKFLOW_BUILDER}`, + isSelected: + props.location.pathname === APP_PATH.WORKFLOW_BUILDER, + }, ], }, ]} @@ -65,6 +72,12 @@ export const AiFlowDashboardsApp = (props: Props) => { path={APP_PATH.WORKFLOWS} render={(routeProps: RouteComponentProps) => } /> + ( + + )} + /> {/* Defaulting to Overview page */} { + core.chrome.setBreadcrumbs([ + BREADCRUMBS.AI_APPLICATION_BUILDER, + BREADCRUMBS.WORKFLOWS, + ]); + }); + + return ( +
+ + + + +

Workflow Builder

+
+
+
+
+ + + Placeholder for workflow builder page... + +
+ ); +} diff --git a/public/utils/constants.ts b/public/utils/constants.ts index 0bbcc29c..8db2f6dd 100644 --- a/public/utils/constants.ts +++ b/public/utils/constants.ts @@ -7,6 +7,7 @@ export enum Navigation { AiApplicationBuilder = 'AI Application Builder', UseCases = 'Use Cases', Workflows = 'Workflows', + WorkflowBuilder = 'Workflow Builder', } export enum APP_PATH { @@ -15,10 +16,15 @@ export enum APP_PATH { WORKSPACE = '/workspace', WORKFLOWS = '/workflows', WORKFLOW_DETAIL = '/workflows/:workflowId/', + WORKFLOW_BUILDER = '/workflow-builder', } export const BREADCRUMBS = Object.freeze({ AI_APPLICATION_BUILDER: { text: 'AI application builder', href: '#/' }, USE_CASES: { text: 'Use cases', href: `#${APP_PATH.USE_CASES}` }, WORKFLOWS: { text: 'Workflows', href: `#${APP_PATH.WORKFLOWS}` }, + WORKFLOW_BUILDER: { + text: 'Workflow builder', + href: `#${APP_PATH.WORKFLOW_BUILDER}`, + }, });