@truedat/bg 6.14.0 → 6.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "6.14.0",
3
+ "version": "6.15.0",
4
4
  "description": "Truedat Web Business Glossary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "6.8.6",
37
+ "@truedat/test": "6.15.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",
@@ -86,9 +86,9 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "6.14.0",
90
- "@truedat/df": "6.14.0",
91
- "@truedat/lm": "6.14.0",
89
+ "@truedat/core": "6.15.0",
90
+ "@truedat/df": "6.15.0",
91
+ "@truedat/lm": "6.15.0",
92
92
  "decode-uri-component": "^0.2.2",
93
93
  "file-saver": "^2.0.5",
94
94
  "moment": "^2.29.4",
@@ -111,5 +111,5 @@
111
111
  "react-dom": ">= 16.8.6 < 17",
112
112
  "semantic-ui-react": ">= 2.0.3 < 2.2"
113
113
  },
114
- "gitHead": "c93d6ae539fb9ecb3d43b63db5199726246d2024"
114
+ "gitHead": "82830ba952924ed48c558abe06b3a01880c3e17e"
115
115
  }
@@ -78,7 +78,10 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
78
78
  subheader={formatMessage({
79
79
  id: "concepts.subheader.linksManager",
80
80
  })}
81
- icon="linkify"
81
+ icon={formatMessage({
82
+ id: "concepts.header.linksManager.icon",
83
+ defaultMessage: "linkify",
84
+ })}
82
85
  />
83
86
  </>
84
87
  ) : (
@@ -97,7 +100,10 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
97
100
  defaultFilters={pendingConceptsDefaultFilters}
98
101
  header={formatMessage({ id: "concepts.header.manage" })}
99
102
  subheader={formatMessage({ id: "concepts.subheader.manage" })}
100
- icon="edit"
103
+ icon={formatMessage({
104
+ id: "concepts.header.manage.icon",
105
+ defaultMessage: "edit",
106
+ })}
101
107
  create
102
108
  upload
103
109
  />
@@ -119,7 +125,10 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
119
125
  subheader={formatMessage({
120
126
  id: "concepts.subheader.deprecated",
121
127
  })}
122
- icon="archive"
128
+ icon={formatMessage({
129
+ id: "concepts.header.deprecated.icon",
130
+ defaultMessage: "archive",
131
+ })}
123
132
  update={false}
124
133
  />
125
134
  </>
@@ -141,7 +150,10 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
141
150
  <>
142
151
  <Concepts
143
152
  header={subscope}
144
- icon="tags"
153
+ icon={formatMessage({
154
+ id: "concepts.header.icon",
155
+ defaultMessage: "tags",
156
+ })}
145
157
  defaultFilters={defaultFilters}
146
158
  />
147
159
  </>
@@ -170,7 +182,10 @@ export const ConceptRoutes = ({ concept, conceptLoaded, templatesLoaded }) => {
170
182
  subheader={formatMessage({
171
183
  id: "concepts.subheader.view",
172
184
  })}
173
- icon="tags"
185
+ icon={formatMessage({
186
+ id: "concepts.header.icon",
187
+ defaultMessage: "tags",
188
+ })}
174
189
  />
175
190
  </>
176
191
  )}
@@ -1,24 +1,33 @@
1
1
  import React from "react";
2
2
 
3
3
  import { Header, Icon, Segment } from "semantic-ui-react";
4
- import { FormattedMessage } from "react-intl";
4
+ import { FormattedMessage, useIntl } from "react-intl";
5
5
  import ConceptsUploadEventsTable from "./ConceptsUploadEventsTable";
6
6
 
7
- export const ConceptsUploadEvents = () => (
8
- <Segment>
9
- <Header as="h2">
10
- <Icon circular name="cogs" />
11
- <Header.Content>
12
- <FormattedMessage id="concepts.upload.header" />
13
- <Header.Subheader>
14
- <FormattedMessage id="concepts.upload.subheader" />
15
- </Header.Subheader>
16
- </Header.Content>
17
- </Header>
18
- <Segment attached="bottom">
19
- <ConceptsUploadEventsTable />
7
+ export const ConceptsUploadEvents = () => {
8
+ const { formatMessage } = useIntl();
9
+ return (
10
+ <Segment>
11
+ <Header as="h2">
12
+ <Icon
13
+ circular
14
+ name={formatMessage({
15
+ id: "conceptsUpload.header.icon",
16
+ defaultMessage: "cogs",
17
+ })}
18
+ />
19
+ <Header.Content>
20
+ <FormattedMessage id="concepts.upload.header" />
21
+ <Header.Subheader>
22
+ <FormattedMessage id="concepts.upload.subheader" />
23
+ </Header.Subheader>
24
+ </Header.Content>
25
+ </Header>
26
+ <Segment attached="bottom">
27
+ <ConceptsUploadEventsTable />
28
+ </Segment>
20
29
  </Segment>
21
- </Segment>
22
- );
30
+ );
31
+ };
23
32
 
24
33
  export default ConceptsUploadEvents;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
- import { FormattedMessage } from "react-intl";
3
+ import { FormattedMessage, useIntl } from "react-intl";
4
4
  import { connect } from "react-redux";
5
5
  import { Route, Switch } from "react-router-dom";
6
6
  import { Header, Icon, Segment } from "semantic-ui-react";
@@ -10,30 +10,39 @@ import DomainCards from "./DomainCards";
10
10
  import DomainForm from "./DomainForm";
11
11
  import DomainsActions from "./DomainsActions";
12
12
 
13
- export const Domains = ({ domainsLoading, createDomain }) => (
14
- <Segment>
15
- <Header as="h2">
16
- <Icon circular name="sitemap" />
17
- <Header.Content>
18
- <FormattedMessage id="navigation.glossary.taxonomy" />
19
- <Header.Subheader>
20
- <FormattedMessage id="domains.subheader" />
21
- </Header.Subheader>
22
- </Header.Content>
23
- </Header>
24
- <Segment attached="bottom" loading={domainsLoading}>
25
- <DomainsActions />
26
- <Switch>
27
- <Route path={DOMAINS} component={DomainCards} exact />
28
- <Route
29
- exact
30
- path={DOMAINS_NEW}
31
- render={() => <DomainForm onSubmit={createDomain} />}
13
+ export const Domains = ({ domainsLoading, createDomain }) => {
14
+ const { formatMessage } = useIntl();
15
+ return (
16
+ <Segment>
17
+ <Header as="h2">
18
+ <Icon
19
+ circular
20
+ name={formatMessage({
21
+ id: "domains.header.icon",
22
+ defaultMessage: "sitemap",
23
+ })}
32
24
  />
33
- </Switch>
25
+ <Header.Content>
26
+ <FormattedMessage id="navigation.glossary.taxonomy" />
27
+ <Header.Subheader>
28
+ <FormattedMessage id="domains.subheader" />
29
+ </Header.Subheader>
30
+ </Header.Content>
31
+ </Header>
32
+ <Segment attached="bottom" loading={domainsLoading}>
33
+ <DomainsActions />
34
+ <Switch>
35
+ <Route path={DOMAINS} component={DomainCards} exact />
36
+ <Route
37
+ exact
38
+ path={DOMAINS_NEW}
39
+ render={() => <DomainForm onSubmit={createDomain} />}
40
+ />
41
+ </Switch>
42
+ </Segment>
34
43
  </Segment>
35
- </Segment>
36
- );
44
+ );
45
+ };
37
46
 
38
47
  Domains.propTypes = {
39
48
  domainsLoading: PropTypes.bool,
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { shallow } from "enzyme";
2
+ import { render } from "@truedat/test/render";
3
3
  import { Domains } from "../Domains";
4
4
 
5
5
  describe("<Domains />", () => {
@@ -8,7 +8,7 @@ describe("<Domains />", () => {
8
8
  const props = { createDomain, domainsLoading };
9
9
 
10
10
  it("matches the latest snapshot", () => {
11
- const wrapper = shallow(<Domains {...props} />);
12
- expect(wrapper).toMatchSnapshot();
11
+ const { container } = render(<Domains {...props} />);
12
+ expect(container).toMatchSnapshot();
13
13
  });
14
14
  });
@@ -1,51 +1,45 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<Domains /> matches the latest snapshot 1`] = `
4
- <Segment>
5
- <Header
6
- as="h2"
4
+ <div>
5
+ <div
6
+ class="ui segment"
7
7
  >
8
- <Icon
9
- as="i"
10
- circular={true}
11
- name="sitemap"
12
- />
13
- <HeaderContent>
14
- <MemoizedFormattedMessage
15
- id="navigation.glossary.taxonomy"
8
+ <h2
9
+ class="ui header"
10
+ >
11
+ <i
12
+ aria-hidden="true"
13
+ class="sitemap circular icon"
16
14
  />
17
- <HeaderSubheader>
18
- <MemoizedFormattedMessage
19
- id="domains.subheader"
15
+ <div
16
+ class="content"
17
+ >
18
+ Taxonomy
19
+ <div
20
+ class="sub header"
21
+ >
22
+ Manage governance structure and data domains
23
+ </div>
24
+ </div>
25
+ </h2>
26
+ <div
27
+ class="ui bottom attached segment"
28
+ >
29
+ <div
30
+ class="ui icon input"
31
+ >
32
+ <input
33
+ placeholder="Search domains..."
34
+ type="text"
35
+ value=""
20
36
  />
21
- </HeaderSubheader>
22
- </HeaderContent>
23
- </Header>
24
- <Segment
25
- attached="bottom"
26
- loading={false}
27
- >
28
- <Connect(DomainsActions) />
29
- <Switch>
30
- <Route
31
- component={
32
- {
33
- "$$typeof": Symbol(react.memo),
34
- "WrappedComponent": [Function],
35
- "compare": null,
36
- "displayName": "Connect(DomainCards)",
37
- "type": [Function],
38
- }
39
- }
40
- exact={true}
41
- path="/domains"
42
- />
43
- <Route
44
- exact={true}
45
- path="/domains/new"
46
- render={[Function]}
47
- />
48
- </Switch>
49
- </Segment>
50
- </Segment>
37
+ <i
38
+ aria-hidden="true"
39
+ class="search link icon"
40
+ />
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
51
45
  `;