@truedat/bg 7.7.0 → 7.7.1

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/bg",
3
- "version": "7.7.0",
3
+ "version": "7.7.1",
4
4
  "description": "Truedat Web Business Glossary",
5
5
  "sideEffects": false,
6
6
  "module": "src/index.js",
@@ -48,7 +48,7 @@
48
48
  "@testing-library/jest-dom": "^6.6.3",
49
49
  "@testing-library/react": "^16.3.0",
50
50
  "@testing-library/user-event": "^14.6.1",
51
- "@truedat/test": "7.7.0",
51
+ "@truedat/test": "7.7.1",
52
52
  "identity-obj-proxy": "^3.0.0",
53
53
  "jest": "^29.7.0",
54
54
  "redux-saga-test-plan": "^4.0.6"
@@ -81,5 +81,5 @@
81
81
  "semantic-ui-react": "^3.0.0-beta.2",
82
82
  "swr": "^2.3.3"
83
83
  },
84
- "gitHead": "758c330b9a55bf81463dc4d97e4850d713ba8c76"
84
+ "gitHead": "b0bbab1ace5acb5a0c670137a51d21456f5eecae"
85
85
  }
@@ -6,12 +6,21 @@ import { createSelector } from "reselect";
6
6
  import { accentInsensitivePathOrder } from "@truedat/core/services/sort";
7
7
  import { linkTo } from "@truedat/core/routes";
8
8
  import { getBusinessConceptsLinksToStructuresColumns } from "@truedat/dd/selectors";
9
+ import OriginLabel from "@truedat/core/components/OriginLabel";
9
10
  import Moment from "react-moment";
10
11
  import ConceptLinkActions from "../components/ConceptLinkActions";
11
12
 
12
- export const StructureLink = ({ resource_type, resource_id: id, name }) =>
13
+ export const StructureLink = ({
14
+ resource_type,
15
+ resource_id: id,
16
+ name,
17
+ origin,
18
+ }) =>
13
19
  _.isEqual(resource_type, "data_structure") ? (
14
- <Link to={linkTo.STRUCTURE({ id })}>{name}</Link>
20
+ <Link to={linkTo.STRUCTURE({ id })}>
21
+ {name}
22
+ <OriginLabel origin={origin} />
23
+ </Link>
15
24
  ) : (
16
25
  name
17
26
  );
@@ -20,6 +29,7 @@ StructureLink.propTypes = {
20
29
  resource_type: PropTypes.string,
21
30
  resource_id: PropTypes.number,
22
31
  name: PropTypes.string,
32
+ origin: PropTypes.string,
23
33
  };
24
34
 
25
35
  const dateDecorator = (date) => (
@@ -37,7 +47,12 @@ const mapColumn = (column) =>
37
47
  _.propEq("name", "name")(column)
38
48
  ? {
39
49
  ...column,
40
- fieldSelector: _.pick(["resource_type", "resource_id", "name"]),
50
+ fieldSelector: _.pick([
51
+ "resource_type",
52
+ "resource_id",
53
+ "name",
54
+ "origin",
55
+ ]),
41
56
  fieldDecorator: StructureLink,
42
57
  }
43
58
  : column;