> = ({
+ children,
+}) => {
const navBar = document.getElementById(navBarContentId);
if (navBar == null) {
log.warn(`
diff --git a/packages/console/src/components/common/index.ts b/packages/console/src/components/common/index.ts
new file mode 100644
index 000000000..1d7d32d99
--- /dev/null
+++ b/packages/console/src/components/common/index.ts
@@ -0,0 +1,5 @@
+export { useCommonStyles } from './styles';
+export { withRouteParams } from './withRouteParams';
+export { WaitForData } from './WaitForData';
+export { WaitForQuery } from './WaitForQuery';
+export { DetailsGroup } from './DetailsGroup';
diff --git a/packages/console/src/components/index.ts b/packages/console/src/components/index.ts
index fb4007b3f..e62525c3c 100644
--- a/packages/console/src/components/index.ts
+++ b/packages/console/src/components/index.ts
@@ -1,2 +1,22 @@
+export * from './common';
+
export * from './Navigation';
export * from './App/App';
+
+export { NavBarContent } from './Navigation/NavBarContent';
+export { useNodeExecution } from './hooks/useNodeExecution';
+export { useConditionalQuery } from './hooks/useConditionalQuery';
+
+export * from './Executions/types';
+export { type ExecutionDetailsRouteParams } from './Executions/ExecutionDetails/ExecutionDetails';
+export { ExecutionStatusBadge } from './Executions/ExecutionStatusBadge';
+export { formatRetryAttempt } from './Executions/TaskExecutionsList/utils';
+export { TaskExecutionDetails } from './Executions/TaskExecutionsList/TaskExecutionDetails';
+export { makeTaskExecutionListQuery } from './Executions/taskExecutionQueries';
+export { useWorkflowExecutionQuery } from './Executions/useWorkflowExecution';
+export { NodeExecutionDetailsContextProvider } from './Executions/contextProvider/NodeExecutionDetails';
+export { getNodeFrontendPhase } from './Executions/utils';
+export { useWorkflowExecutionData } from './Executions/useWorkflowExecution';
+export { useNodeExecutionContext } from './Executions/contextProvider/NodeExecutionDetails';
+export { ExecutionDetailsActions } from './Executions/ExecutionDetails/ExecutionDetailsActions';
+export { makeNodeExecutionQuery } from './Executions/nodeExecutionQueries';
diff --git a/packages/console/src/index.ts b/packages/console/src/index.ts
index bfaee7070..585e1a880 100644
--- a/packages/console/src/index.ts
+++ b/packages/console/src/index.ts
@@ -1,4 +1,7 @@
import './common/setupProtobuf';
-import './models';
export * from './components';
+export * from './routes';
+export * from './models';
+export * from './common';
+export * from './basics';
diff --git a/packages/console/src/models/index.ts b/packages/console/src/models/index.ts
index d9754150a..a410e4922 100644
--- a/packages/console/src/models/index.ts
+++ b/packages/console/src/models/index.ts
@@ -1 +1,5 @@
export * from './AdminEntity';
+export * from './Execution/enums';
+export * from './Execution/types';
+export { taskSortFields } from './Task/constants';
+export * from './Common/types';
diff --git a/packages/console/src/routes/ApplicationRouter.tsx b/packages/console/src/routes/ApplicationRouter.tsx
index 9d3f50b12..2c31cefae 100644
--- a/packages/console/src/routes/ApplicationRouter.tsx
+++ b/packages/console/src/routes/ApplicationRouter.tsx
@@ -5,10 +5,11 @@ import {
import { withSideNavigation } from 'components/Navigation/withSideNavigation';
import * as React from 'react';
import { Route, Switch } from 'react-router-dom';
+import { useExternalConfigurationContext } from 'basics/ExternalConfigurationProvider';
import { components } from './components';
import { Routes } from './routes';
-function withContentContainer(
+export function withContentContainer
(
WrappedComponent: React.FC
,
contentContainerProps?: ContentContainerProps,
) {
@@ -19,9 +20,12 @@ function withContentContainer
(
);
}
-export const ApplicationRouter: React.FC = () => (
- <>
+export const ApplicationRouter: React.FC = () => {
+ const additionalRoutes =
+ useExternalConfigurationContext()?.registry?.additionalRoutes || null;
+ return (
+ {additionalRoutes}
(
/>
- >
-);
+ );
+};
diff --git a/packages/console/src/routes/NavBarRouter.tsx b/packages/console/src/routes/NavBarRouter.tsx
index 07e9fe248..af6d1eb58 100644
--- a/packages/console/src/routes/NavBarRouter.tsx
+++ b/packages/console/src/routes/NavBarRouter.tsx
@@ -1,23 +1,23 @@
import { NavBar } from 'components/Navigation/NavBar';
import * as React from 'react';
import { Route, Switch } from 'react-router-dom';
+import { useExternalConfigurationContext } from 'basics/ExternalConfigurationProvider';
import { Routes } from './routes';
const CustomNavBar = () => ;
-interface NavBarRouterProps {
- registry?: {
- nav?: React.FC;
- };
-}
+interface NavBarRouterProps {}
/** Handles the routing for content displayed in the NavBar */
-export const NavBarRouter: React.FC = (
- props: NavBarRouterProps,
-) => (
- <>
-
-
-
-
- >
-);
+export const NavBarRouter: React.FC = () => {
+ const { registry } = useExternalConfigurationContext();
+
+ const ExternalNav = registry?.nav;
+ return (
+ <>
+
+
+
+
+ >
+ );
+};
diff --git a/packages/console/src/routes/index.ts b/packages/console/src/routes/index.ts
new file mode 100644
index 000000000..3ae21e10d
--- /dev/null
+++ b/packages/console/src/routes/index.ts
@@ -0,0 +1,3 @@
+export * from './routes';
+export * from './ApplicationRouter';
+export * from './constants';
diff --git a/website/package.json b/website/package.json
index ee73c71ff..2242f70b5 100644
--- a/website/package.json
+++ b/website/package.json
@@ -37,7 +37,7 @@
},
"dependencies": {
"@flyteorg/common": "^0.0.3",
- "@flyteorg/console": "^0.0.15",
+ "@flyteorg/console": "^0.0.16",
"long": "^4.0.0",
"protobufjs": "~6.11.3",
"react-ga4": "^1.4.1",
diff --git a/yarn.lock b/yarn.lock
index f6f3db62c..a5618970a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1995,7 +1995,7 @@ __metadata:
resolution: "@flyteconsole/client-app@workspace:website"
dependencies:
"@flyteorg/common": ^0.0.3
- "@flyteorg/console": ^0.0.15
+ "@flyteorg/console": ^0.0.16
"@types/long": ^3.0.32
long: ^4.0.0
protobufjs: ~6.11.3
@@ -2034,7 +2034,7 @@ __metadata:
languageName: unknown
linkType: soft
-"@flyteorg/console@^0.0.15, @flyteorg/console@workspace:packages/console":
+"@flyteorg/console@^0.0.16, @flyteorg/console@workspace:packages/console":
version: 0.0.0-use.local
resolution: "@flyteorg/console@workspace:packages/console"
dependencies:
@@ -2055,7 +2055,7 @@ __metadata:
"@rjsf/validator-ajv8": ^5.1.0
"@types/d3-shape": ^1.2.6
"@types/debug": ^0.0.30
- "@types/dom-helpers": ^3.4.1
+ "@types/dom-helpers": ^5.0.1
"@types/js-yaml": ^3.10.1
"@types/linkify-it": ^2.1.0
"@types/lodash": ^4.14.68
@@ -2084,7 +2084,7 @@ __metadata:
dagre: 0.8.5
dagre-d3: ^0.6.4
debug: 2.6.9
- dom-helpers: ^3.4.0
+ dom-helpers: 5.2.1
fuzzysort: ^1.1.1
intersection-observer: ^0.7.0
js-yaml: ^3.13.1
@@ -5030,10 +5030,12 @@ __metadata:
languageName: node
linkType: hard
-"@types/dom-helpers@npm:^3.4.1":
- version: 3.4.1
- resolution: "@types/dom-helpers@npm:3.4.1"
- checksum: 6386baf650eb80903312691882e53012d431ef1686c5b1a6d0593a2a130162bce1adccc21aa67ba6066536cbc95841719051b58648963d73653913f7be23eef8
+"@types/dom-helpers@npm:^5.0.1":
+ version: 5.0.1
+ resolution: "@types/dom-helpers@npm:5.0.1"
+ dependencies:
+ dom-helpers: "*"
+ checksum: 9e79b97b31e0a1ad805bd192f19856cb7b38042083c92a2bc54f3ae8432b7e7a5f92f605b705979b82b4b234f711599c79892d291d7c74f3999d054effefc21c
languageName: node
linkType: hard
@@ -10081,16 +10083,7 @@ __metadata:
languageName: node
linkType: hard
-"dom-helpers@npm:^3.4.0":
- version: 3.4.0
- resolution: "dom-helpers@npm:3.4.0"
- dependencies:
- "@babel/runtime": ^7.1.2
- checksum: 58d9f1c4a96daf77eddc63ae1236b826e1cddd6db66bbf39b18d7e21896d99365b376593352d52a60969d67fa4a8dbef26adc1439fa2c1b355efa37cacbaf637
- languageName: node
- linkType: hard
-
-"dom-helpers@npm:^5.0.1, dom-helpers@npm:^5.1.3":
+"dom-helpers@npm:*, dom-helpers@npm:5.2.1, dom-helpers@npm:^5.0.1, dom-helpers@npm:^5.1.3":
version: 5.2.1
resolution: "dom-helpers@npm:5.2.1"
dependencies: