Initialize governed Dataflow module
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
import { createElement, lazy } from "react";
|
||||
import type { PlatformWebModule } from "@govoplan/core-webui";
|
||||
import "./styles/dataflow.css";
|
||||
import "@xyflow/react/dist/style.css";
|
||||
|
||||
const DataflowPage = lazy(() => import("./features/dataflow/DataflowPage"));
|
||||
|
||||
const readScopes = ["dataflow:pipeline:read", "dataflow:pipeline:admin"];
|
||||
|
||||
export const dataflowModule: PlatformWebModule = {
|
||||
id: "dataflow",
|
||||
label: "Dataflow",
|
||||
version: "0.1.14",
|
||||
optionalDependencies: [
|
||||
"access",
|
||||
"audit",
|
||||
"connectors",
|
||||
"files",
|
||||
"notifications",
|
||||
"policy",
|
||||
"reporting",
|
||||
"risk_compliance",
|
||||
"workflow"
|
||||
],
|
||||
navItems: [
|
||||
{ to: "/dataflow", label: "Dataflow", iconName: "waypoints", anyOf: readScopes, order: 72 }
|
||||
],
|
||||
routes: [
|
||||
{
|
||||
path: "/dataflow",
|
||||
anyOf: readScopes,
|
||||
order: 72,
|
||||
render: ({ settings, auth }) => createElement(DataflowPage, { settings, auth })
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default dataflowModule;
|
||||
Reference in New Issue
Block a user