@truedat/dd 4.53.11 → 4.54.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.54.0] 2022-10-21
4
+
5
+ ### Added
6
+
7
+ - [TD-5171] Show domains parents on StructureProperties
8
+
3
9
  ## [4.53.11] 2022-10-20
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.53.11",
3
+ "version": "4.54.2",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.53.11",
37
+ "@truedat/test": "4.54.0",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -88,9 +88,9 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.7.0",
91
- "@truedat/auth": "4.53.11",
92
- "@truedat/core": "4.53.11",
93
- "@truedat/df": "4.53.11",
91
+ "@truedat/auth": "4.54.2",
92
+ "@truedat/core": "4.54.2",
93
+ "@truedat/df": "4.54.2",
94
94
  "lodash": "^4.17.21",
95
95
  "path-to-regexp": "^1.7.0",
96
96
  "prop-types": "^15.8.1",
@@ -112,5 +112,5 @@
112
112
  "react-dom": ">= 16.8.6 < 17",
113
113
  "semantic-ui-react": ">= 0.88.2 < 2.1"
114
114
  },
115
- "gitHead": "f0bff07f7491edcbe2195f2ff9d0ef74736edef9"
115
+ "gitHead": "5f8e708ced0c68fbe8a38373f3cc579702f3e7e4"
116
116
  }
@@ -13,7 +13,7 @@ export const UserSearchFiltersLoader = ({
13
13
  return () => {
14
14
  clearUserSearchFilters();
15
15
  };
16
- }, [clearUserSearchFilters, fetchUserSearchFilters]);
16
+ }, [clearUserSearchFilters, fetchUserSearchFilters, scope]);
17
17
  return null;
18
18
  };
19
19
 
@@ -67,9 +67,7 @@ exports[`<StructureProperties /> matches the latest snapshot 1`] = `
67
67
  </h5>
68
68
  <div
69
69
  class="description"
70
- >
71
-
72
- </div>
70
+ />
73
71
  </div>
74
72
  </div>
75
73
  </div>
@@ -92,9 +92,7 @@ exports[`<StructureSummary /> matches the latest snapshot 1`] = `
92
92
  </h5>
93
93
  <div
94
94
  class="description"
95
- >
96
-
97
- </div>
95
+ />
98
96
  </div>
99
97
  </div>
100
98
  </div>
@@ -244,9 +242,7 @@ exports[`<StructureSummary /> matches the latest snapshot with alias 1`] = `
244
242
  </h5>
245
243
  <div
246
244
  class="description"
247
- >
248
-
249
- </div>
245
+ />
250
246
  </div>
251
247
  </div>
252
248
  </div>
@@ -2,11 +2,23 @@ import _ from "lodash/fp";
2
2
  import React from "react";
3
3
  import { createSelector } from "reselect";
4
4
  import { FormattedMessage } from "react-intl";
5
+ import { Label } from "semantic-ui-react";
5
6
  import EditDomainPopup from "../components/EditDomainPopup";
6
7
 
7
- const domainDecorator = (domainNames) => (
8
+ const domainDecorator = (domains) => (
8
9
  <>
9
- {domainNames}
10
+ {domains.map(({ name, parents }, key) => (
11
+ <Label
12
+ key={key}
13
+ title={_.flow(_.map("name"), _.union([name]), _.join(" > "))(parents)}
14
+ style={{
15
+ margin: "2px",
16
+ cursor: "default",
17
+ }}
18
+ >
19
+ {name}
20
+ </Label>
21
+ ))}
10
22
  <EditDomainPopup />
11
23
  </>
12
24
  );
@@ -20,7 +32,7 @@ const typeDecorator = ({ type, data_structure_type }) => (
20
32
  export const defaultStructureProperties = [
21
33
  {
22
34
  name: "domain",
23
- fieldSelector: _.flow(_.propOr([], "domains"), _.map("name"), _.join(", ")),
35
+ fieldSelector: _.flow(_.propOr([], "domains"), _.reject(_.isEmpty)),
24
36
  fieldDecorator: domainDecorator,
25
37
  },
26
38
  { name: "group" },