hise-flow-graphs 1.0.21 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.dev +1 -0
- package/.env.prod +1 -0
- package/.env.stage +1 -0
- package/dist/main.js +1 -1
- package/package.json +7 -2
- package/src/@types/CertificateTypes.ts +25 -15
- package/src/components/Certificates/CertificateGraph/LayerBackButton.tsx +1 -1
- package/src/components/Certificates/CertificateGraph/NodeAttributes.tsx +10 -10
- package/src/components/Certificates/CertificateGraph/helpers.tsx +24 -17
- package/src/components/Certificates/CertificateGraph/index.tsx +23 -28
- package/src/components/Certificates/EditCertificate/EditNode.tsx +8 -12
- package/src/components/Certificates/EditCertificate/{EditNodeModal.jsx → EditNodeModal.tsx} +57 -50
- package/src/components/Certificates/EditCertificate/MaskMetadataModal/EMRMaskingTables.tsx +69 -0
- package/src/components/Certificates/EditCertificate/MaskMetadataModal/MaskMetadataTable.tsx +105 -0
- package/src/components/Certificates/EditCertificate/MaskMetadataModal/helpers.ts +41 -0
- package/src/components/Certificates/EditCertificate/MaskMetadataModal/index.tsx +167 -0
- package/src/components/Certificates/EditCertificate/helpers.ts +2 -44
- package/src/components/Certificates/EditCertificate/{index.jsx → index.tsx} +9 -4
- package/src/components/Certificates/FileLayerNode/index.tsx +12 -23
- package/src/components/Certificates/ReadCertificate/MetadataModal/MetadataTable.tsx +100 -0
- package/src/components/Certificates/ReadCertificate/MetadataModal/helpers.tsx +46 -0
- package/src/components/Certificates/ReadCertificate/MetadataModal/index.tsx +142 -0
- package/src/components/Certificates/ReadCertificate/ReadNode.tsx +7 -2
- package/src/components/Certificates/ReadCertificate/index.tsx +2 -3
- package/src/components/Certificates/ReviewCertificate/RestrictNode/index.tsx +161 -0
- package/src/components/Certificates/ReviewCertificate/ReviewNode.tsx +8 -5
- package/src/components/Certificates/ReviewCertificate/ReviewNodes/index.tsx +5 -4
- package/src/components/Certificates/ReviewCertificate/helpers.ts +18 -60
- package/src/components/Certificates/ReviewCertificate/{index.jsx → index.tsx} +14 -10
- package/src/components/Certificates/WorkspaceCertificate/ReplicaIDENode/index.tsx +5 -2
- package/src/components/Certificates/WorkspaceCertificate/ReplicaPipelineNode/index.tsx +4 -2
- package/src/components/Certificates/WorkspaceCertificate/RestrictedNode/index.tsx +106 -0
- package/src/components/Certificates/WorkspaceCertificate/WorkspaceFileNode/index.tsx +6 -2
- package/src/components/Certificates/WorkspaceCertificate/WorkspaceIDENode/index.tsx +10 -5
- package/src/components/Certificates/WorkspaceCertificate/WorkspaceNode/index.tsx +9 -3
- package/src/components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/index.tsx +5 -5
- package/src/components/Certificates/WorkspaceCertificate/helpers.ts +7 -41
- package/src/components/Certificates/WorkspaceCertificate/index.tsx +10 -11
- package/src/components/Certificates/WorkspaceCertificate/style.css +0 -10
- package/src/index.ts +2 -2
- package/src/state/GraphContext.tsx +23 -22
- package/src/utils/getCertificateBody.ts +89 -0
- package/webpack.config.js +71 -54
- package/src/components/Certificates/EditCertificate/MaskMetadataModal.jsx +0 -299
- package/src/components/Certificates/FileLayerNode/helpers.ts +0 -31
- package/src/components/Certificates/ReadCertificate/MetadataModal/helpers.jsx +0 -22
- package/src/components/Certificates/ReadCertificate/MetadataModal/index.jsx +0 -169
- package/src/components/Certificates/ReadCertificate/helpers.ts +0 -38
- package/src/components/Certificates/ReviewCertificate/ReviewNodes/AllNodesModal.jsx +0 -63
- package/src/components/Certificates/ReviewCertificate/ReviewNodes/SingleNodeModal.jsx +0 -83
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { Button } from 'hise-components';
|
|
3
|
-
import ReviewNodesModal from './index';
|
|
4
|
-
|
|
5
|
-
const AllNodesModal = ({
|
|
6
|
-
isOpen,
|
|
7
|
-
loading,
|
|
8
|
-
toggle,
|
|
9
|
-
userEmail,
|
|
10
|
-
assetReviews,
|
|
11
|
-
certificate,
|
|
12
|
-
handleUpdate,
|
|
13
|
-
refresh,
|
|
14
|
-
}) => {
|
|
15
|
-
const initialForm = {
|
|
16
|
-
reviewNotes: '',
|
|
17
|
-
restrictionInstructions: '',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const [form, setForm] = useState(initialForm);
|
|
21
|
-
const clear = () => setForm(initialForm);
|
|
22
|
-
|
|
23
|
-
const getSubmissionBody = (reviewStatus) => ({
|
|
24
|
-
...certificate,
|
|
25
|
-
assetReviews: assetReviews.map((review) => ({
|
|
26
|
-
...review,
|
|
27
|
-
...form,
|
|
28
|
-
reviewStatus,
|
|
29
|
-
approverEmail: userEmail,
|
|
30
|
-
reviewDate: new Date().toISOString(),
|
|
31
|
-
})),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<>
|
|
36
|
-
<Button
|
|
37
|
-
id="review-all-nodes-btn"
|
|
38
|
-
key="review-all-nodes-btn"
|
|
39
|
-
color="warning"
|
|
40
|
-
onClick={toggle}
|
|
41
|
-
>
|
|
42
|
-
Review All Nodes
|
|
43
|
-
</Button>
|
|
44
|
-
|
|
45
|
-
<ReviewNodesModal
|
|
46
|
-
id="review-all-nodes-modal"
|
|
47
|
-
header="Review All Nodes"
|
|
48
|
-
isOpen={isOpen}
|
|
49
|
-
loading={loading}
|
|
50
|
-
form={form}
|
|
51
|
-
setForm={setForm}
|
|
52
|
-
clear={clear}
|
|
53
|
-
certId={certificate.id}
|
|
54
|
-
getSubmissionBody={getSubmissionBody}
|
|
55
|
-
toggle={toggle}
|
|
56
|
-
handleUpdate={handleUpdate}
|
|
57
|
-
refresh={refresh}
|
|
58
|
-
/>
|
|
59
|
-
</>
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export default AllNodesModal;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import * as R from 'ramda';
|
|
3
|
-
import { Button, KeyValPair } from 'hise-components';
|
|
4
|
-
import { useGraph } from '../../../../state/GraphContext';
|
|
5
|
-
import ReviewNodesModal from './index';
|
|
6
|
-
|
|
7
|
-
const SingleNodeModal = ({
|
|
8
|
-
isOpen,
|
|
9
|
-
loading,
|
|
10
|
-
userEmail,
|
|
11
|
-
toggle,
|
|
12
|
-
handleUpdate,
|
|
13
|
-
refresh,
|
|
14
|
-
}) => {
|
|
15
|
-
const { node } = useGraph();
|
|
16
|
-
const {
|
|
17
|
-
certificate, assetReview, link, linkLabel, description,
|
|
18
|
-
} = node;
|
|
19
|
-
|
|
20
|
-
if (R.isNil(node) || R.isEmpty(node)) return null;
|
|
21
|
-
|
|
22
|
-
const initialForm = {
|
|
23
|
-
reviewNotes: assetReview.reviewNotes,
|
|
24
|
-
restrictionInstructions: assetReview.restrictionInstructions,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const [form, setForm] = useState(initialForm);
|
|
28
|
-
const clear = () => setForm(initialForm);
|
|
29
|
-
|
|
30
|
-
useEffect(() => setForm(initialForm), [assetReview]);
|
|
31
|
-
|
|
32
|
-
const getSubmissionBody = (reviewStatus) => ({
|
|
33
|
-
...certificate,
|
|
34
|
-
assetReviews: [
|
|
35
|
-
{
|
|
36
|
-
...assetReview,
|
|
37
|
-
...form,
|
|
38
|
-
reviewStatus,
|
|
39
|
-
approverEmail: userEmail,
|
|
40
|
-
reviewDate: new Date().toISOString(),
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<ReviewNodesModal
|
|
47
|
-
id="review-single-node-modal"
|
|
48
|
-
header="Review Node"
|
|
49
|
-
isOpen={isOpen}
|
|
50
|
-
toggle={toggle}
|
|
51
|
-
handleUpdate={handleUpdate}
|
|
52
|
-
loading={loading}
|
|
53
|
-
form={form}
|
|
54
|
-
setForm={setForm}
|
|
55
|
-
clear={clear}
|
|
56
|
-
certId={certificate.id}
|
|
57
|
-
getSubmissionBody={getSubmissionBody}
|
|
58
|
-
refresh={refresh}
|
|
59
|
-
>
|
|
60
|
-
<div>
|
|
61
|
-
<Button
|
|
62
|
-
to={link}
|
|
63
|
-
color="link"
|
|
64
|
-
icon="fas fa-long-arrow-alt-right"
|
|
65
|
-
target="_blank"
|
|
66
|
-
>
|
|
67
|
-
{linkLabel}
|
|
68
|
-
</Button>
|
|
69
|
-
|
|
70
|
-
<div className="my-2">
|
|
71
|
-
{Object.entries(description).map(([k, v]) => (
|
|
72
|
-
<KeyValPair
|
|
73
|
-
label={k}
|
|
74
|
-
items={[v]}
|
|
75
|
-
/>
|
|
76
|
-
))}
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</ReviewNodesModal>
|
|
80
|
-
);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export default SingleNodeModal;
|