@truedat/dd 8.10.2 → 8.10.3
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/package.json +3 -3
- package/src/components/Graphs.js +109 -0
- package/src/components/LineageDomainSelectorSkeleton.js +8 -0
- package/src/components/LineageDownloadButton.js +29 -6
- package/src/components/LineageEventsPanel.js +206 -0
- package/src/components/LineageForm.js +265 -144
- package/src/components/LineageGraph.js +0 -1
- package/src/components/LineageHeader.js +33 -0
- package/src/components/LineageResourceToggle.js +56 -0
- package/src/components/LineageRoutes.js +2 -31
- package/src/components/LineageSelectionPanel.js +165 -0
- package/src/components/__tests__/LineageForm.spec.js +343 -3
- package/src/components/__tests__/LineageRoutes.spec.js +62 -76
- package/src/components/__tests__/__snapshots__/LineageForm.spec.js.snap +291 -250
- package/src/components/__tests__/__snapshots__/LineageRoutes.spec.js.snap +19 -43
- package/src/components/index.js +12 -0
- package/src/components/lineageDomainCache.js +101 -0
- package/src/components/lineageEventHelpers.js +195 -0
- package/src/styles/lineageGraph.less +1213 -47
- package/src/components/Lineage.js +0 -20
- package/src/components/LineageSample.js +0 -20
- package/src/components/__tests__/Lineage.spec.js +0 -16
- package/src/components/__tests__/__snapshots__/Lineage.spec.js.snap +0 -163
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Header, Icon, Segment } from "semantic-ui-react";
|
|
2
|
-
import { FormattedMessage } from "react-intl";
|
|
3
|
-
import LineageForm from "./LineageForm";
|
|
4
|
-
|
|
5
|
-
const Lineage = () => (
|
|
6
|
-
<Segment>
|
|
7
|
-
<Header as="h2">
|
|
8
|
-
<Icon name="share alternate" circular />
|
|
9
|
-
<Header.Content>
|
|
10
|
-
<FormattedMessage id="navigation.lineage" />
|
|
11
|
-
<Header.Subheader>
|
|
12
|
-
<FormattedMessage id="navigation.lineage.subheader" />
|
|
13
|
-
</Header.Subheader>
|
|
14
|
-
</Header.Content>
|
|
15
|
-
</Header>
|
|
16
|
-
<LineageForm />
|
|
17
|
-
</Segment>
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
export default Lineage;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import { connect } from "react-redux";
|
|
4
|
-
import { createGraph } from "../routines";
|
|
5
|
-
import GraphRedirector from "./GraphRedirector";
|
|
6
|
-
|
|
7
|
-
export const LineageSample = ({ createGraph }) => {
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
createGraph({ type: "sample" });
|
|
10
|
-
}, [createGraph]);
|
|
11
|
-
return <GraphRedirector />;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
LineageSample.propTypes = {
|
|
15
|
-
createGraph: PropTypes.func,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const mapStateToProps = ({ graphLoading }) => ({ graphLoading });
|
|
19
|
-
|
|
20
|
-
export default connect(mapStateToProps, { createGraph })(LineageSample);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { render, waitForLoad } from "@truedat/test/render";
|
|
2
|
-
import Lineage from "../Lineage";
|
|
3
|
-
|
|
4
|
-
describe("<Lineage />", () => {
|
|
5
|
-
const renderOpts = {
|
|
6
|
-
state: {
|
|
7
|
-
userPermissions: { update: true },
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
it("matches the latest snapshot", async () => {
|
|
12
|
-
const rendered = render(<Lineage />, renderOpts);
|
|
13
|
-
await waitForLoad(rendered);
|
|
14
|
-
expect(rendered.container).toMatchSnapshot();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`<Lineage /> matches the latest snapshot 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<div
|
|
6
|
-
class="ui segment"
|
|
7
|
-
>
|
|
8
|
-
<h2
|
|
9
|
-
class="ui header"
|
|
10
|
-
>
|
|
11
|
-
<i
|
|
12
|
-
aria-hidden="true"
|
|
13
|
-
class="share alternate circular icon"
|
|
14
|
-
/>
|
|
15
|
-
<div
|
|
16
|
-
class="content"
|
|
17
|
-
>
|
|
18
|
-
navigation.lineage
|
|
19
|
-
<div
|
|
20
|
-
class="sub header"
|
|
21
|
-
>
|
|
22
|
-
navigation.lineage.subheader
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</h2>
|
|
26
|
-
<div
|
|
27
|
-
class="ui segment"
|
|
28
|
-
>
|
|
29
|
-
<div
|
|
30
|
-
class="accordion ui"
|
|
31
|
-
>
|
|
32
|
-
<div
|
|
33
|
-
class="active title noselect"
|
|
34
|
-
>
|
|
35
|
-
<h4
|
|
36
|
-
class="ui header"
|
|
37
|
-
>
|
|
38
|
-
<i
|
|
39
|
-
aria-hidden="true"
|
|
40
|
-
class="dropdown icon"
|
|
41
|
-
/>
|
|
42
|
-
lineage.form.header
|
|
43
|
-
</h4>
|
|
44
|
-
</div>
|
|
45
|
-
<div
|
|
46
|
-
class="content active"
|
|
47
|
-
>
|
|
48
|
-
<form
|
|
49
|
-
class="ui small form"
|
|
50
|
-
>
|
|
51
|
-
<h5
|
|
52
|
-
class="ui header"
|
|
53
|
-
>
|
|
54
|
-
lineage.form.levels.header
|
|
55
|
-
</h5>
|
|
56
|
-
<div
|
|
57
|
-
class="fields"
|
|
58
|
-
>
|
|
59
|
-
<div
|
|
60
|
-
class="field"
|
|
61
|
-
>
|
|
62
|
-
<div
|
|
63
|
-
class="disabled field"
|
|
64
|
-
>
|
|
65
|
-
<div
|
|
66
|
-
class="ui checked disabled radio checkbox"
|
|
67
|
-
>
|
|
68
|
-
<input
|
|
69
|
-
checked=""
|
|
70
|
-
class="hidden"
|
|
71
|
-
disabled=""
|
|
72
|
-
name="allLevels"
|
|
73
|
-
readonly=""
|
|
74
|
-
tabindex="-1"
|
|
75
|
-
type="radio"
|
|
76
|
-
value="all"
|
|
77
|
-
/>
|
|
78
|
-
<label>
|
|
79
|
-
lineage.form.levels.all.label
|
|
80
|
-
</label>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<div
|
|
85
|
-
class="field"
|
|
86
|
-
>
|
|
87
|
-
<div
|
|
88
|
-
class="disabled field"
|
|
89
|
-
>
|
|
90
|
-
<div
|
|
91
|
-
class="ui disabled radio checkbox"
|
|
92
|
-
>
|
|
93
|
-
<input
|
|
94
|
-
class="hidden"
|
|
95
|
-
disabled=""
|
|
96
|
-
name="selectLevels"
|
|
97
|
-
readonly=""
|
|
98
|
-
tabindex="-1"
|
|
99
|
-
type="radio"
|
|
100
|
-
value="select"
|
|
101
|
-
/>
|
|
102
|
-
<label>
|
|
103
|
-
lineage.form.levels.select.label
|
|
104
|
-
</label>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
<div
|
|
110
|
-
class="disabled field"
|
|
111
|
-
>
|
|
112
|
-
<div
|
|
113
|
-
class="field"
|
|
114
|
-
>
|
|
115
|
-
<input
|
|
116
|
-
autocomplete="off"
|
|
117
|
-
min="1"
|
|
118
|
-
placeholder="lineage.form.levels.select.input"
|
|
119
|
-
type="number"
|
|
120
|
-
value=""
|
|
121
|
-
/>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
<button
|
|
125
|
-
class="ui small secondary disabled right floated button"
|
|
126
|
-
disabled=""
|
|
127
|
-
tabindex="-1"
|
|
128
|
-
>
|
|
129
|
-
navigation.lineage.clean
|
|
130
|
-
</button>
|
|
131
|
-
<button
|
|
132
|
-
class="ui small primary disabled button"
|
|
133
|
-
disabled=""
|
|
134
|
-
tabindex="-1"
|
|
135
|
-
>
|
|
136
|
-
navigation.lineage.impact
|
|
137
|
-
</button>
|
|
138
|
-
<button
|
|
139
|
-
class="ui small primary disabled button"
|
|
140
|
-
disabled=""
|
|
141
|
-
tabindex="-1"
|
|
142
|
-
>
|
|
143
|
-
navigation.lineage.lineage
|
|
144
|
-
</button>
|
|
145
|
-
<span>
|
|
146
|
-
<button
|
|
147
|
-
class="ui icon secondary disabled button"
|
|
148
|
-
disabled=""
|
|
149
|
-
tabindex="-1"
|
|
150
|
-
>
|
|
151
|
-
<i
|
|
152
|
-
aria-hidden="true"
|
|
153
|
-
class="download icon"
|
|
154
|
-
/>
|
|
155
|
-
</button>
|
|
156
|
-
</span>
|
|
157
|
-
</form>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
</div>
|
|
163
|
-
`;
|