Migrate Dataflow interface patterns
This commit is contained in:
+75
-3
@@ -4,6 +4,7 @@ import type {
|
||||
PlatformWebModule
|
||||
} from "@govoplan/core-webui";
|
||||
import DataflowPipelinesWidget from "./features/dataflow/DataflowPipelinesWidget";
|
||||
import { generatedTranslations } from "./i18n/generatedTranslations";
|
||||
import "@xyflow/react/dist/style.css";
|
||||
import "./styles/dataflow.css";
|
||||
|
||||
@@ -57,7 +58,7 @@ const dataflowDashboardWidgets: DashboardWidgetsUiCapability = {
|
||||
|
||||
export const dataflowModule: PlatformWebModule = {
|
||||
id: "dataflow",
|
||||
label: "Dataflow",
|
||||
label: "i18n:govoplan-dataflow.dataflow",
|
||||
version: "0.1.14",
|
||||
optionalDependencies: [
|
||||
"access",
|
||||
@@ -70,23 +71,94 @@ export const dataflowModule: PlatformWebModule = {
|
||||
"risk_compliance",
|
||||
"workflow"
|
||||
],
|
||||
translations: generatedTranslations,
|
||||
viewSurfaces: [
|
||||
{
|
||||
id: "dataflow.page",
|
||||
moduleId: "dataflow",
|
||||
kind: "route",
|
||||
label: "i18n:govoplan-dataflow.dataflow",
|
||||
order: 72
|
||||
},
|
||||
{
|
||||
id: "dataflow.library",
|
||||
moduleId: "dataflow",
|
||||
kind: "section",
|
||||
label: "i18n:govoplan-dataflow.library",
|
||||
parentId: "dataflow.page",
|
||||
order: 10
|
||||
},
|
||||
{
|
||||
id: "dataflow.graph",
|
||||
moduleId: "dataflow",
|
||||
kind: "section",
|
||||
label: "i18n:govoplan-dataflow.graph",
|
||||
parentId: "dataflow.page",
|
||||
order: 20
|
||||
},
|
||||
{
|
||||
id: "dataflow.sql",
|
||||
moduleId: "dataflow",
|
||||
kind: "section",
|
||||
label: "i18n:govoplan-dataflow.sql",
|
||||
parentId: "dataflow.page",
|
||||
order: 30
|
||||
},
|
||||
{
|
||||
id: "dataflow.inspector",
|
||||
moduleId: "dataflow",
|
||||
kind: "section",
|
||||
label: "i18n:govoplan-dataflow.inspector",
|
||||
parentId: "dataflow.page",
|
||||
order: 40
|
||||
},
|
||||
{
|
||||
id: "dataflow.results",
|
||||
moduleId: "dataflow",
|
||||
kind: "section",
|
||||
label: "i18n:govoplan-dataflow.results",
|
||||
parentId: "dataflow.page",
|
||||
order: 50
|
||||
},
|
||||
{
|
||||
id: "dataflow.triggers",
|
||||
moduleId: "dataflow",
|
||||
kind: "action",
|
||||
label: "i18n:govoplan-dataflow.triggers",
|
||||
parentId: "dataflow.page",
|
||||
order: 60
|
||||
},
|
||||
{
|
||||
id: "dataflow.runs",
|
||||
moduleId: "dataflow",
|
||||
kind: "action",
|
||||
label: "i18n:govoplan-dataflow.runs",
|
||||
parentId: "dataflow.page",
|
||||
order: 70
|
||||
},
|
||||
{
|
||||
id: "dataflow.widget.pipelines",
|
||||
moduleId: "dataflow",
|
||||
kind: "section",
|
||||
label: "Dataflows widget",
|
||||
label: "i18n:govoplan-dataflow.widget",
|
||||
order: 70
|
||||
}
|
||||
],
|
||||
navItems: [
|
||||
{ to: "/dataflow", label: "Dataflow", iconName: "waypoints", anyOf: readScopes, order: 72 }
|
||||
{
|
||||
to: "/dataflow",
|
||||
label: "i18n:govoplan-dataflow.dataflow",
|
||||
iconName: "waypoints",
|
||||
anyOf: readScopes,
|
||||
order: 72
|
||||
}
|
||||
],
|
||||
routes: [
|
||||
{
|
||||
path: "/dataflow",
|
||||
anyOf: readScopes,
|
||||
order: 72,
|
||||
surfaceId: "dataflow.page",
|
||||
render: ({ settings, auth }) => createElement(DataflowPage, { settings, auth })
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user