tiagobento commented on code in PR #2185:
URL:
https://github.com/apache/incubator-kie-tools/pull/2185#discussion_r1505145646
##########
packages/dmn-editor/src/diagram/DrgNodesPanel.tsx:
##########
@@ -24,43 +24,62 @@ import { Text, TextContent } from
"@patternfly/react-core/dist/js/components/Tex
import { Flex } from "@patternfly/react-core/dist/js/layouts/Flex";
import { TimesIcon } from "@patternfly/react-icons/dist/js/icons/times-icon";
import * as React from "react";
-import { useCallback, useState } from "react";
+import { useCallback, useMemo, useState } from "react";
import { DmnObjectListItem } from "../externalNodes/DmnObjectListItem";
import { DiagramLhsPanel } from "../store/Store";
import { useDmnEditorStore, useDmnEditorStoreApi } from
"../store/StoreContext";
import { Unpacked } from "../tsExt/tsExt";
import { buildXmlHref } from "../xml/xmlHrefs";
import { Divider } from "@patternfly/react-core/dist/js/components/Divider";
+import { computeContainingDecisionServiceHrefsByDecisionHrefs } from
"../store/computed/computeContainingDecisionServiceHrefsByDecisionHrefs.ts";
export const MIME_TYPE_FOR_DMN_EDITOR_DRG_NODE = "kie-dmn-editor--drg-node";
export function DrgNodesPanel() {
- const thisDmn = useDmnEditorStore((s) => s.dmn);
+ const thisDmnsDrgElements = useDmnEditorStore((s) =>
s.dmn.model.definitions.drgElement ?? []);
+ const thisDmnsNamespace = useDmnEditorStore((s) =>
s.dmn.model.definitions["@_namespace"]);
const dmnShapesByHref = useDmnEditorStore((s) =>
s.computed(s).indexedDrd().dmnShapesByHref);
const dmnEditorStoreApi = useDmnEditorStoreApi();
const [filter, setFilter] = useState("");
- const namespace = ""; // That's the default namespace.
+ const namespaceForHref = ""; // That's the default namespace.
Review Comment:
This is going to improve a lot on
https://github.com/apache/incubator-kie-issues/issues/892.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]