@truedat/bg 5.7.3 → 5.7.5

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": "5.7.3",
3
+ "version": "5.7.5",
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": "5.7.3",
37
+ "@truedat/test": "5.7.5",
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": "5.7.3",
90
- "@truedat/df": "5.7.3",
91
- "@truedat/lm": "5.7.3",
89
+ "@truedat/core": "5.7.5",
90
+ "@truedat/df": "5.7.5",
91
+ "@truedat/lm": "5.7.5",
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": "adaa367000214d1d4200c98b62aadfc84a29da07"
114
+ "gitHead": "f4ae9f5fba9c949e1d3cfb12939aa330a81e6d93"
115
115
  }
@@ -1,12 +1,21 @@
1
1
  import React from "react";
2
2
  import { Route, Switch } from "react-router-dom";
3
- import { CONCEPTS, CONCEPTS_PENDING } from "@truedat/core/routes";
3
+ import {
4
+ CONCEPTS,
5
+ CONCEPTS_PENDING,
6
+ DOMAIN_CONCEPTS,
7
+ } from "@truedat/core/routes";
4
8
  import ConceptSelectedFiltersDefault from "./ConceptSelectedFiltersDefault";
5
9
  import ConceptSelectedFiltersPending from "./ConceptSelectedFiltersPending";
6
10
  import ConceptSelectedFiltersPublished from "./ConceptSelectedFiltersPublished";
7
11
 
8
12
  export const ConceptSelectedFilters = () => (
9
13
  <Switch>
14
+ <Route
15
+ exact
16
+ path={DOMAIN_CONCEPTS}
17
+ component={ConceptSelectedFiltersPublished}
18
+ />
10
19
  <Route exact path={CONCEPTS} component={ConceptSelectedFiltersPublished} />
11
20
  <Route
12
21
  exact
@@ -4,6 +4,7 @@ import { connect } from "react-redux";
4
4
  import ConceptsPanel from "./ConceptsPanel";
5
5
  import ConceptsLoader from "./ConceptsLoader";
6
6
  import ConceptFiltersLoader from "./ConceptFiltersLoader";
7
+ import ConceptUserFiltersLoader from "./ConceptUserFiltersLoader";
7
8
 
8
9
  export const DomainConcepts = ({ domain = {} }) => {
9
10
  const defaultFilters = {
@@ -13,6 +14,7 @@ export const DomainConcepts = ({ domain = {} }) => {
13
14
  };
14
15
  return (
15
16
  <>
17
+ <ConceptUserFiltersLoader />
16
18
  <ConceptFiltersLoader defaultFilters={defaultFilters} />
17
19
  <ConceptsLoader defaultFilters={defaultFilters} />
18
20
  <ConceptsPanel />
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
- import { shallow } from "enzyme";
2
+ import { render } from "@truedat/test/render";
3
3
  import { ConceptSelectedFilters } from "../ConceptSelectedFilters";
4
4
 
5
5
  describe("<ConceptSelectedFilters />", () => {
6
6
  it("matches the latest snapshot", () => {
7
- const wrapper = shallow(<ConceptSelectedFilters />);
8
- expect(wrapper).toMatchSnapshot();
7
+ const { container } = render(<ConceptSelectedFilters />);
8
+ expect(container).toMatchSnapshot();
9
9
  });
10
10
  });
@@ -1,19 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<ConceptSelectedFilters /> matches the latest snapshot 1`] = `
4
- <Switch>
5
- <Route
6
- component={[Function]}
7
- exact={true}
8
- path="/concepts"
4
+ <div>
5
+ <div
6
+ class="selectedFilters"
9
7
  />
10
- <Route
11
- component={[Function]}
12
- exact={true}
13
- path="/pendingConcepts"
14
- />
15
- <Route
16
- component={[Function]}
17
- />
18
- </Switch>
8
+ </div>
19
9
  `;
@@ -14,6 +14,7 @@ import {
14
14
  DOMAIN_STRUCTURES,
15
15
  linkTo,
16
16
  } from "@truedat/core/routes";
17
+ import UserSearchFiltersLoader from "@truedat/dd/components/UserSearchFiltersLoader";
17
18
  import DomainConcepts from "../../concepts/components/DomainConcepts";
18
19
  import DomainActions from "./DomainActions";
19
20
  import DomainCards from "./DomainCards";
@@ -71,14 +72,28 @@ export const Domain = ({ hasChildren, domain, domainLoading }) => {
71
72
  exact
72
73
  path={DOMAIN_STRUCTURES}
73
74
  render={() =>
74
- ddAuthorized ? <DomainStructures /> : <Unauthorized />
75
+ ddAuthorized ? (
76
+ <>
77
+ <UserSearchFiltersLoader scope="data_structure" />
78
+ <DomainStructures />
79
+ </>
80
+ ) : (
81
+ <Unauthorized />
82
+ )
75
83
  }
76
84
  />
77
85
  <Route
78
86
  exact
79
87
  path={DOMAIN_IMPLEMENTATIONS}
80
88
  render={() =>
81
- dqAuthorized ? <DomainImplementations /> : <Unauthorized />
89
+ dqAuthorized ? (
90
+ <>
91
+ <UserSearchFiltersLoader scope="rule_implementation" />
92
+ <DomainImplementations />
93
+ </>
94
+ ) : (
95
+ <Unauthorized />
96
+ )
82
97
  }
83
98
  />
84
99
  </Switch>