@truedat/dd 8.12.7 → 8.12.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "8.12.7",
3
+ "version": "8.12.8",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -54,14 +54,14 @@
54
54
  "@testing-library/jest-dom": "^6.6.3",
55
55
  "@testing-library/react": "^16.3.0",
56
56
  "@testing-library/user-event": "^14.6.1",
57
- "@truedat/test": "8.12.7",
57
+ "@truedat/test": "8.12.8",
58
58
  "identity-obj-proxy": "^3.0.0",
59
59
  "jest": "^29.7.0",
60
60
  "redux-saga-test-plan": "^4.0.6"
61
61
  },
62
62
  "dependencies": {
63
63
  "@apollo/client": "^3.13.8",
64
- "axios": "^1.15.0",
64
+ "axios": "^1.20.0",
65
65
  "file-saver": "^2.0.5",
66
66
  "graphql": "^16.11.0",
67
67
  "is-hotkey": "^0.2.0",
@@ -90,5 +90,5 @@
90
90
  "svg-pan-zoom": "^3.6.2",
91
91
  "swr": "^2.3.3"
92
92
  },
93
- "gitHead": "dae06fd2f915163d5f1e7e3f26c414c8ee9bf055"
93
+ "gitHead": "682b801555be3f898e0502fd70a48ea32110c327"
94
94
  }
@@ -31,7 +31,13 @@ exports[`<PendingStructureNoteRow /> matches the latest snapshot 1`] = `
31
31
  <td
32
32
  class=""
33
33
  >
34
- bar domain, baz domain
34
+ <span>
35
+ bar domain
36
+ </span>
37
+ ,
38
+ <span>
39
+ baz domain
40
+ </span>
35
41
  </td>
36
42
  <td
37
43
  class=""
@@ -135,7 +135,7 @@ exports[`<PendingStructureNotes /> matches the latest snapshot 1`] = `
135
135
  pendingStructureNotes.props.system
136
136
  </th>
137
137
  <th
138
- class="one wide disabled"
138
+ class="two wide disabled"
139
139
  >
140
140
  pendingStructureNotes.props.domain
141
141
  </th>
@@ -176,7 +176,9 @@ exports[`<PendingStructureNotes /> matches the latest snapshot 1`] = `
176
176
  <td
177
177
  class=""
178
178
  >
179
- bar domain
179
+ <span>
180
+ bar domain
181
+ </span>
180
182
  </td>
181
183
  <td
182
184
  class=""
@@ -215,7 +217,13 @@ exports[`<PendingStructureNotes /> matches the latest snapshot 1`] = `
215
217
  <td
216
218
  class=""
217
219
  >
218
- foo domain 1, foo domain 2
220
+ <span>
221
+ foo domain 1
222
+ </span>
223
+ ,
224
+ <span>
225
+ foo domain 2
226
+ </span>
219
227
  </td>
220
228
  <td
221
229
  class=""
@@ -27,7 +27,7 @@ exports[`<PendingStructureNotesTable /> matches the latest snapshot 1`] = `
27
27
  System
28
28
  </th>
29
29
  <th
30
- class="one wide disabled"
30
+ class="two wide disabled"
31
31
  >
32
32
  Domain
33
33
  </th>
@@ -68,7 +68,9 @@ exports[`<PendingStructureNotesTable /> matches the latest snapshot 1`] = `
68
68
  <td
69
69
  class=""
70
70
  >
71
- bar domain
71
+ <span>
72
+ bar domain
73
+ </span>
72
74
  </td>
73
75
  <td
74
76
  class=""
@@ -107,7 +109,13 @@ exports[`<PendingStructureNotesTable /> matches the latest snapshot 1`] = `
107
109
  <td
108
110
  class=""
109
111
  >
110
- foo domain 1, foo domain 2
112
+ <span>
113
+ foo domain 1
114
+ </span>
115
+ ,
116
+ <span>
117
+ foo domain 2
118
+ </span>
111
119
  </td>
112
120
  <td
113
121
  class=""
@@ -1,9 +1,11 @@
1
1
  import _ from "lodash/fp";
2
+ import { Fragment } from "react";
2
3
  import PropTypes from "prop-types";
3
4
  import { createSelector } from "reselect";
4
5
  import { Link } from "react-router";
5
6
  import { linkTo } from "@truedat/core/routes";
6
7
  import { FormattedMessage } from "react-intl";
8
+ import { DomainTooltip } from "@truedat/bg/taxonomy/components/DomainPath";
7
9
 
8
10
  const StructureLink = (structure) =>
9
11
  structure?.id ? (
@@ -16,7 +18,12 @@ const translateDecorator = (id) =>
16
18
  id ? <FormattedMessage id={id} defaultMessage={id} /> : null;
17
19
 
18
20
  const DomainDecorator = (domains) =>
19
- _.flow(_.map("name"), _.join(", "))(domains);
21
+ domains?.map((domain, index) => (
22
+ <Fragment key={domain.id ?? domain.name}>
23
+ {index > 0 && ", "}
24
+ <DomainTooltip domain={domain} />
25
+ </Fragment>
26
+ ));
20
27
 
21
28
  DomainDecorator.propTypes = {
22
29
  domains: PropTypes.array,
@@ -57,7 +64,7 @@ export const defaultStructureNoteColumns = [
57
64
  name: "domain",
58
65
  fieldSelector: _.pathOr([], "domains"),
59
66
  fieldDecorator: DomainDecorator,
60
- width: 1,
67
+ width: 2,
61
68
  },
62
69
  {
63
70
  name: "path",