Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not merge: test PR #18

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
5358203
Migrated processForm
fantonangeli Nov 15, 2023
b1c3da0
Migrate formsList
fantonangeli Nov 15, 2023
02c260d
Fix linting issues
fantonangeli Nov 15, 2023
61d7ccf
Migrate formDisplayer
fantonangeli Nov 16, 2023
5acbe55
Migrate formDetails
fantonangeli Nov 17, 2023
b834d2d
Fix linting
fantonangeli Nov 17, 2023
59acbba
Merge remote-tracking branch 'upstream/main' into KOGITO-9943-Migrate…
fantonangeli Nov 17, 2023
7a113a5
Migrated customDashboardList
fantonangeli Nov 20, 2023
2a09323
Migrated customDashboardView
fantonangeli Nov 20, 2023
f3e2dd9
Fixed customDashboardView linting issues
fantonangeli Nov 20, 2023
ccca243
Migrated monitoring
fantonangeli Nov 20, 2023
1bd7032
Rewrite FormEditor to use kie-tools editor
fantonangeli Nov 24, 2023
fde1a96
Merge branch 'KOGITO-9943-Migrate-custom-forms-from-kogito-apps-to-ki…
fantonangeli Nov 27, 2023
fb09c4c
Merge branch 'KOGITO-9956-Migrate-custom-dashboards-from-kogito-apps-…
fantonangeli Nov 27, 2023
e82ead5
Copyed DevUI src
fantonangeli Nov 28, 2023
40aaee0
Fix imports
fantonangeli Nov 28, 2023
38c584f
Removed processForm as it was already migrated as workflowForm
fantonangeli Nov 28, 2023
cc9b730
Merge branch 'KOGITO-9943-Migrate-custom-forms-from-kogito-apps-to-ki…
fantonangeli Nov 28, 2023
f329cbb
Fix imports WIP
fantonangeli Nov 28, 2023
e7d6eea
Copied @kogito-apps/consoles-common
fantonangeli Nov 28, 2023
eeb0a4e
Fixed consolesCommon imports
fantonangeli Nov 28, 2023
f4372f7
Fixed consolesCommon errors
fantonangeli Nov 28, 2023
adef181
Changed consolesCommon headers
fantonangeli Nov 28, 2023
9131939
Rm JobsManagement
fantonangeli Nov 29, 2023
d7eb8a4
rm TaskInbox and TaskForms
fantonangeli Nov 29, 2023
ffe42f5
Refined components deletion
fantonangeli Nov 29, 2023
06456d9
Merge remote-tracking branch 'origin/KOGITO-9918-Runtime-tools-featur…
fantonangeli Nov 29, 2023
3d720b7
Fixed dep mismatch
fantonangeli Nov 29, 2023
fc06b92
Fixed build errors
fantonangeli Dec 1, 2023
e24f762
Replaced headers
fantonangeli Dec 4, 2023
c868805
Moved consolesCommon components to runtime-tools packages and removed
fantonangeli Dec 4, 2023
e502789
Removed unused dependencies
fantonangeli Dec 5, 2023
c94ec22
Merge remote-tracking branch 'origin/KOGITO-9918-Runtime-tools-featur…
fantonangeli Dec 11, 2023
63f2475
Fixes comment: https://github.com/fantonangeli/kie-tools/pull/16#pull…
fantonangeli Dec 11, 2023
722d0cf
Merge remote-tracking branch 'origin/KOGITO-9918-Runtime-tools-featur…
fantonangeli Dec 11, 2023
6b27277
Merge remote-tracking branch 'origin/KOGITO-9918-Runtime-tools-featur…
fantonangeli Dec 11, 2023
deb219d
Merge remote-tracking branch 'origin/KOGITO-9918-Runtime-tools-featur…
fantonangeli Dec 11, 2023
840e638
Merge pull request #14 from fantonangeli/KOGITO-9943-Migrate-custom-f…
fantonangeli Dec 12, 2023
2d40028
Merge pull request #15 from fantonangeli/KOGITO-9956-Migrate-custom-d…
fantonangeli Dec 12, 2023
b32617b
Merge pull request #16 from fantonangeli/KOGITO-9963-Migrate-monitori…
fantonangeli Dec 12, 2023
ae850c2
Merge remote-tracking branch 'origin/KOGITO-9918-Runtime-tools-featur…
fantonangeli Dec 12, 2023
f349d71
DevUI webpack config WIP
fantonangeli Dec 13, 2023
a9185e1
webpack setup
fantonangeli Dec 14, 2023
101ae15
rn Process to Workflow
fantonangeli Dec 15, 2023
db13eb9
Reuse runtime-tools components
fantonangeli Dec 15, 2023
d0a6db6
rm QueryUtils
fantonangeli Dec 15, 2023
811236e
Reuse of runtime-tools components
fantonangeli Dec 18, 2023
9cc86d9
Workflows list and details local dev server
fantonangeli Jan 5, 2024
c8ae3f5
introduced openApiBaseUrl to show the Workflow Definitions list
fantonangeli Jan 5, 2024
1e3716a
Fixed form component and add monaco html support
fantonangeli Jan 9, 2024
06abffc
Workflow form on local dev env
fantonangeli Jan 9, 2024
403e71d
Custom dashboard on local dev ui
fantonangeli Jan 10, 2024
cedb5b0
Imported dev ui dev server
fantonangeli Jan 10, 2024
5da0f6a
Workflow from fixes
fantonangeli Jan 11, 2024
bd57b8b
Fixed bug crash on Axios errors
fantonangeli Jan 11, 2024
e1326df
getCustomDashboard() and getCustomDashboardContent() in runtime-tools…
fantonangeli Jan 12, 2024
c67700a
getForms(), getFormContent(), saveFormContent() in runtime-tools-gate…
fantonangeli Jan 12, 2024
8184a1e
Fixed regex. Prettirer was modifying single quotes to double quotes in
fantonangeli Jan 12, 2024
449c6f1
Fixes comment: https://github.com/fantonangeli/kie-tools/pull/17#disc…
fantonangeli Jan 15, 2024
65abec5
Removed Users related code
fantonangeli Jan 15, 2024
1000d29
Removed trusty param
fantonangeli Jan 15, 2024
ea60172
removed CustomLabels
fantonangeli Jan 15, 2024
7875715
Removed isTracingEnabled
fantonangeli Jan 15, 2024
0ada585
Removed unused file
fantonangeli Jan 15, 2024
0df29bf
Removed unused dependencies
fantonangeli Jan 15, 2024
978df39
Configured prod build
fantonangeli Jan 15, 2024
331a3c7
Removed unused devDependency
fantonangeli Jan 15, 2024
1f9e7f5
Removed Auth components
fantonangeli Jan 16, 2024
01bb200
Removed AboutModalBox component
fantonangeli Jan 16, 2024
b127c7e
Merge remote-tracking branch 'upstream/main' into KOGITO-9918-Runtime…
fantonangeli Jan 16, 2024
c99af9c
Merge branch 'KOGITO-9918-Runtime-tools-features-on-Serverless-Logic-…
fantonangeli Jan 16, 2024
c06c269
Merge remote-tracking branch 'origin/main' into KOGITO-9918-Runtime-t…
fantonangeli Jan 17, 2024
a42a9d0
Merge branch 'KOGITO-9918-Runtime-tools-features-on-Serverless-Logic-…
fantonangeli Jan 17, 2024
8ae6d1e
@patternfly/react-core version 4.276.12 to 4.276.6
fantonangeli Jan 17, 2024
4ef238a
Changed use from nodemon to node
fantonangeli Jan 18, 2024
a2a650c
Merge pull request #17 from fantonangeli/KOGITO-9965-Migrate-runtime-…
fantonangeli Jan 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/runtime-tools-components/config/declare.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
declare module "*.svg" {
const content: string;
export default content;
}

declare module "*.png" {
const content1: string;
export default content1;
}
17 changes: 7 additions & 10 deletions packages/runtime-tools-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,47 +26,44 @@
},
"dependencies": {
"@kie-tools-core/editor": "workspace:*",
"@kie-tools-core/envelope": "workspace:*",
"@kie-tools-core/envelope-bus": "workspace:*",
"@kie-tools-core/i18n": "workspace:*",
"@kie-tools-core/monaco-editor": "workspace:*",
"@kie-tools-core/notifications": "workspace:*",
"@kie-tools-core/operating-system": "workspace:*",
"@kie-tools-core/patternfly-base": "workspace:*",
"@kie-tools/i18n-common-dictionary": "workspace:*",
"@kie-tools/json-yaml-language-service": "workspace:*",
"@kie-tools/runtime-tools-gateway-api": "workspace:*",
"@kie-tools/uniforms-patternfly": "workspace:*",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-styles": "^4.92.6",
"@patternfly/react-table": "^4.112.39",
"ajv": "^6.12.6",
"copyfiles": "^2.4.1",
"history": "^4.9.0",
"lodash": "^4.17.21",
"monaco-editor": "^0.39.0",
"react": "^17.0.2",
"react-datetime-picker": "^3.5.0",
"react-dom": "^17.0.2",
"react-moment": "0.9.7",
"react-router": "^5.2.1",
"react-router-dom": "^5.2.1",
"uniforms": "^3.10.2",
"uniforms-bridge-json-schema": "^3.10.2",
"uuid": "^8.3.2"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@kie-tools-core/webpack-base": "workspace:*",
"@kie-tools/eslint": "workspace:*",
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@testing-library/jest-dom": "^5.16.1",
"@types/history": "^4.7.3",
"@types/jest": "^26.0.23",
"@types/jest-when": "^2.7.4",
"@types/lodash": "^4.14.168",
"@types/react": "^17.0.6",
"@types/react-datetime-picker": "^3.4.1",
"@types/react-dom": "^17.0.5",
"@types/react-router": "^5.1.14",
"@types/react-router-dom": "^5.1.7",
"@types/testing-library__jest-dom": "^5.9.1",
"@types/uuid": "^8.3.0",
"jest": "^26.6.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { Page, PageSidebar } from "@patternfly/react-core/dist/js/components/Page";
import React, { useEffect, useState } from "react";
import { componentOuiaProps, ouiaAttribute, OUIAProps } from "../../ouiaTools";
import "../styles.css";

interface IOwnProps {
children: React.ReactNode;
BrandSrc?: string;
PageNav: React.ReactNode;
pageNavOpen?: boolean;
BrandAltText?: string;
BrandClick?: () => void;
}

const PageLayout: React.FC<IOwnProps & OUIAProps> = ({
children,
BrandSrc,
PageNav,
pageNavOpen,
BrandAltText,
BrandClick,
ouiaId,
ouiaSafe,
}) => {
const pageId = "main-content-page-layout-default-nav";

const [isNavOpen, setIsNavOpen] = useState(pageNavOpen != undefined ? pageNavOpen : true);
const onNavToggle = () => {
setIsNavOpen(!isNavOpen);
};

useEffect(() => {
if (document.getElementById(pageId)) {
document.getElementById(pageId)?.setAttribute("data-ouia-main", "true");
}
});

const Sidebar = (
<PageSidebar
nav={PageNav}
isNavOpen={isNavOpen}
theme="dark"
{...ouiaAttribute("data-ouia-navigation", "true")}
data-testid="page-sidebar"
/>
);

return (
<React.Fragment>
<Page
mainContainerId={pageId}
sidebar={Sidebar}
className="kogito-consoles-common--PageLayout"
{...componentOuiaProps(ouiaId, "page", ouiaSafe)}
>
{children}
</Page>
</React.Fragment>
);
};

export default PageLayout;
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export { default as PageLayout } from "./PageLayout";
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import React from "react";
import { Link } from "react-router-dom";
import { PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { Breadcrumb, BreadcrumbItem } from "@patternfly/react-core/dist/js/components/Breadcrumb";
import { PageTitle } from "../PageTitle";
import { componentOuiaProps, OUIAProps } from "../../ouiaTools";
import * as H from "history";

type pathType = Pick<H.Location, "pathname" | "state">;
interface PageSectionHeaderProps {
titleText: string;
breadcrumbText?: string[];
breadcrumbPath?: Array<pathType | string>;
}
export const PageSectionHeader: React.FC<PageSectionHeaderProps & OUIAProps> = ({
titleText,
breadcrumbText,
breadcrumbPath,
ouiaId,
ouiaSafe,
}) => {
const renderBreadcrumb = (): JSX.Element[] => {
const items: JSX.Element[] = [];
breadcrumbText?.forEach((text, index) => {
if (index === breadcrumbText.length - 1) {
items.push(
<BreadcrumbItem key={index} isActive>
{text}
</BreadcrumbItem>
);
} else {
items.push(
<BreadcrumbItem key={index}>
<Link to={breadcrumbPath![index]}>{text}</Link>
</BreadcrumbItem>
);
}
});
return items;
};
return (
<PageSection variant="light" {...componentOuiaProps(ouiaId, "page-section-header", ouiaSafe)}>
{breadcrumbText && breadcrumbPath && <Breadcrumb>{renderBreadcrumb()}</Breadcrumb>}
<PageTitle title={titleText} />
</PageSection>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export * from "./PageSectionHeader";
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import React from "react";
import { Flex, FlexItem } from "@patternfly/react-core/dist/js/layouts/Flex";
import { Title } from "@patternfly/react-core/dist/js/components/Title";
import { componentOuiaProps, OUIAProps } from "../../ouiaTools";

export interface IOwnProps {
title: any;
extra?: JSX.Element;
}

export const PageTitle: React.FC<IOwnProps & OUIAProps> = ({ title, extra, ouiaId, ouiaSafe }) => {
return (
<Flex {...componentOuiaProps(ouiaId, "page-title", ouiaSafe)}>
<FlexItem spacer={{ default: "spacerSm" }}>
<Title headingLevel="h1" size="4xl">
{title}
</Title>
</FlexItem>
{extra ? <FlexItem spacer={{ default: "spacerSm" }}>{extra}</FlexItem> : null}
</Flex>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export * from "./PageTitle";
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@
height: 350px;
padding: 5px;
}
.kogito-consoles-common--aboutModalBox .pf-c-about-modal-box__hero {
background-attachment: unset;
}

.kogito-consoles-common--PageLayout .pf-c-page__header-brand-link .pf-c-brand {
--pf-c-page__header-brand-link--c-brand--MaxHeight: 42px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import React, { useContext } from "react";

export interface Brand {
imageSrc: string;
altText: string;
}

export const BrandContext = React.createContext<Brand>({} as Brand);

export const useBrandContext = (): Brand => useContext<Brand>(BrandContext);
33 changes: 33 additions & 0 deletions packages/runtime-tools-components/src/common/static/avatar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/runtime-tools-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"target": "es6",
"moduleResolution": "node"
},
"include": ["src"]
"include": ["src", "./config/declare.d.ts"]
}
Loading
Loading