@truedat/bg 8.12.5 → 8.12.7
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 +3 -3
- package/src/concepts/components/Concept.js +2 -1
- package/src/concepts/components/ConceptActions.js +2 -1
- package/src/concepts/components/ConceptArchiveRow.js +1 -1
- package/src/concepts/components/ConceptForm.js +3 -5
- package/src/concepts/components/ConceptLinksUploadButton.js +1 -1
- package/src/concepts/components/ConceptManageDomain.js +1 -1
- package/src/concepts/components/ConceptTaxonomy.js +1 -1
- package/src/concepts/components/ConceptsBulkUpdate.js +4 -6
- package/src/concepts/components/ConceptsPagination.js +1 -1
- package/src/concepts/components/ConceptsTable.js +1 -1
- package/src/concepts/components/ConceptsUploadButton.js +1 -1
- package/src/concepts/components/ConceptsUploadEventsTable.js +1 -1
- package/src/concepts/components/Events.js +1 -1
- package/src/concepts/components/SharedToForm.js +1 -1
- package/src/concepts/components/__tests__/ConceptActions.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptArchiveLoader.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptCompleteness.spec.js +1 -1
- package/src/concepts/components/__tests__/ConceptConfidentialButton.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptContext.spec.js +1 -1
- package/src/concepts/components/__tests__/ConceptDeleteModalBody.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptLinksUploadButton.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptLoader.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptSubscription.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptSubscriptionLoader.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptSummary.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptsLabelResults.spec.js +2 -1
- package/src/concepts/components/__tests__/ConceptsTable.spec.js +1 -1
- package/src/concepts/components/__tests__/ConceptsUploadButton.spec.js +2 -1
- package/src/concepts/components/__tests__/Events.spec.js +11 -1
- package/src/concepts/components/__tests__/SharedToDomains.spec.js +2 -1
- package/src/concepts/components/__tests__/SharedToDomainsPopup.spec.js +2 -1
- package/src/concepts/relations/components/ConceptImplementationLinks.js +2 -4
- package/src/concepts/relations/components/ConceptLinkActions.js +1 -1
- package/src/concepts/relations/components/ConceptLinksApprovalsTable.js +1 -1
- package/src/concepts/relations/components/ConceptRelationForm.js +1 -1
- package/src/concepts/relations/components/ConceptStructureLinks.js +1 -1
- package/src/concepts/relations/components/__tests__/ConceptLinkActions.spec.js +2 -1
- package/src/concepts/relations/components/__tests__/ConceptLinksApprovalsLabelResults.spec.js +2 -1
- package/src/concepts/relations/components/__tests__/ConceptLinksApprovalsRow.spec.js +2 -1
- package/src/concepts/relations/components/__tests__/ConceptLinksApprovalsTable.spec.js +2 -1
- package/src/concepts/relations/components/__tests__/SliderWithFilter.spec.js +1 -1
- package/src/concepts/selectors/__tests__/getParsedEvents.spec.js +1 -1
- package/src/taxonomy/components/DomainActions.js +2 -1
- package/src/taxonomy/components/DomainForm.js +1 -1
- package/src/taxonomy/components/DomainSearch.js +1 -1
- package/src/taxonomy/components/Domains.js +1 -1
- package/src/taxonomy/components/__tests__/DomainItem.spec.js +2 -1
- package/src/taxonomy/components/__tests__/DomainMembers.spec.js +2 -1
- package/src/taxonomy/components/__tests__/DomainPath.spec.js +2 -1
- package/src/taxonomy/components/__tests__/DomainTaxonomy.spec.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/bg",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.7",
|
|
4
4
|
"description": "Truedat Web Business Glossary",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@testing-library/jest-dom": "^6.6.3",
|
|
58
58
|
"@testing-library/react": "^16.3.0",
|
|
59
59
|
"@testing-library/user-event": "^14.6.1",
|
|
60
|
-
"@truedat/test": "8.12.
|
|
60
|
+
"@truedat/test": "8.12.7",
|
|
61
61
|
"identity-obj-proxy": "^3.0.0",
|
|
62
62
|
"jest": "^29.7.0",
|
|
63
63
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
91
91
|
"swr": "^2.3.3"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "dae06fd2f915163d5f1e7e3f26c414c8ee9bf055"
|
|
94
94
|
}
|
|
@@ -5,7 +5,8 @@ import { connect } from "react-redux";
|
|
|
5
5
|
import { Route, Routes } from "react-router";
|
|
6
6
|
import { Grid, Segment } from "semantic-ui-react";
|
|
7
7
|
import StructureGrantCart from "@truedat/dd/components/StructureGrantCart";
|
|
8
|
-
import
|
|
8
|
+
import Comments from "@truedat/core/components/Comments";
|
|
9
|
+
import CommentsLoader from "@truedat/core/components/CommentsLoader";
|
|
9
10
|
// This is only for information purposes, to know the path of the concept version
|
|
10
11
|
import { CONCEPT_VERSION } from "@truedat/core/routes";
|
|
11
12
|
import { useIntl } from "react-intl";
|
|
@@ -4,7 +4,8 @@ import { connect } from "react-redux";
|
|
|
4
4
|
import { Button, Icon } from "semantic-ui-react";
|
|
5
5
|
import { Link, useNavigate } from "react-router";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
|
-
import
|
|
7
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
8
|
+
import GroupActions from "@truedat/core/components/GroupActions";
|
|
8
9
|
import { CONCEPTS, linkTo } from "@truedat/core/routes";
|
|
9
10
|
import { conceptAction } from "../routines";
|
|
10
11
|
import { mapActionProps } from "../constants/mappings";
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { useNavigate } from "react-router";
|
|
4
4
|
import { Table } from "semantic-ui-react";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
|
-
import
|
|
6
|
+
import DateTime from "@truedat/core/components/DateTime";
|
|
7
7
|
import { linkTo } from "@truedat/core/routes";
|
|
8
8
|
|
|
9
9
|
export const ConceptArchiveRow = ({
|
|
@@ -13,11 +13,9 @@ import {
|
|
|
13
13
|
Icon,
|
|
14
14
|
} from "semantic-ui-react";
|
|
15
15
|
import { useIntl, FormattedMessage } from "react-intl";
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
HistoryBackButton,
|
|
20
|
-
} from "@truedat/core/components";
|
|
16
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
17
|
+
import LanguagesTabs from "@truedat/core/components/LanguagesTabs";
|
|
18
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
21
19
|
import { useLanguage, I18nProvider } from "@truedat/core/i18n";
|
|
22
20
|
import SuggestionsWidget from "@truedat/ai/components/suggestions/SuggestionsWidget";
|
|
23
21
|
import { useAvailabilityCheck as useTranslatableCheck } from "@truedat/ai/hooks/useTranslations";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "semantic-ui-react";
|
|
2
2
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
3
|
-
import
|
|
3
|
+
import UploadModal from "@truedat/core/components/UploadModal";
|
|
4
4
|
import { useWebContext } from "@truedat/core/webContext";
|
|
5
5
|
import { useConceptLinksUpload } from "../hooks/useConcepts";
|
|
6
6
|
import { getUploadAlertMessage } from "../selectors/messages";
|
|
@@ -4,7 +4,7 @@ import { connect } from "react-redux";
|
|
|
4
4
|
import { useForm, Controller } from "react-hook-form";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import PropTypes from "prop-types";
|
|
7
|
-
import
|
|
7
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
8
8
|
import { conceptAction } from "../routines";
|
|
9
9
|
|
|
10
10
|
export const ConceptManageDomain = ({ domainId, conceptAction, action }) => {
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { List, Header, Segment } from "semantic-ui-react";
|
|
5
5
|
import { FormattedMessage } from "react-intl";
|
|
6
|
-
import { getConceptDomainPath } from "../selectors";
|
|
6
|
+
import { getConceptDomainPath } from "../selectors/getConceptDomainPath";
|
|
7
7
|
import DomainItem from "../../taxonomy/components/DomainItem";
|
|
8
8
|
import ConceptManageDomainPopup from "./ConceptManageDomainPopup";
|
|
9
9
|
|
|
@@ -13,12 +13,10 @@ import {
|
|
|
13
13
|
Message,
|
|
14
14
|
} from "semantic-ui-react";
|
|
15
15
|
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Loading,
|
|
21
|
-
} from "@truedat/core/components";
|
|
16
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
17
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
18
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
19
|
+
import Loading from "@truedat/core/components/Loading";
|
|
22
20
|
import { useTemplate } from "@truedat/core/hooks";
|
|
23
21
|
import { applyTemplateWithoutDefaults } from "@truedat/df/utils";
|
|
24
22
|
import { bulkUpdate } from "../routines";
|
|
@@ -6,7 +6,7 @@ import { Table, Header, Icon } from "semantic-ui-react";
|
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
7
|
import { CONCEPTS_PENDING } from "@truedat/core/routes";
|
|
8
8
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
9
|
-
import { getConceptColumns } from "../selectors";
|
|
9
|
+
import { getConceptColumns } from "../selectors/getConceptColumns";
|
|
10
10
|
import ConceptRow from "./ConceptRow";
|
|
11
11
|
|
|
12
12
|
export const ConceptsTable = ({ columnsByScope, subscope }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import { Button } from "semantic-ui-react";
|
|
3
3
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
4
|
-
import
|
|
4
|
+
import UploadModal from "@truedat/core/components/UploadModal";
|
|
5
5
|
import { useWebContext } from "@truedat/core/webContext";
|
|
6
6
|
import { useConceptsUpload } from "../hooks/useConcepts";
|
|
7
7
|
import { getUploadAlertMessage } from "../selectors/messages";
|
|
@@ -7,7 +7,7 @@ import { Table } from "semantic-ui-react";
|
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
8
|
import { columnDecorator } from "@truedat/core/services";
|
|
9
9
|
import { useUploadEvents } from "../hooks/useUploadEvents";
|
|
10
|
-
import { getConceptUploadEventColumns } from "../selectors";
|
|
10
|
+
import { getConceptUploadEventColumns } from "../selectors/getConceptUploadEventColumns";
|
|
11
11
|
import "../styles/ConceptsUploadEventColumns.less";
|
|
12
12
|
|
|
13
13
|
const getColumnsWithData = (conceptsResults, columns) =>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import { Feed, Segment } from "semantic-ui-react";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
|
-
import { getParsedEvents } from "../selectors";
|
|
4
|
+
import { getParsedEvents } from "../selectors/getParsedEvents";
|
|
5
5
|
import EventRow from "./EventRow";
|
|
6
6
|
|
|
7
7
|
export const Events = ({ events, eventsLoading }) =>
|
|
@@ -5,7 +5,7 @@ import { useForm, Controller } from "react-hook-form";
|
|
|
5
5
|
import { Button, Container, Form, Header } from "semantic-ui-react";
|
|
6
6
|
import PropTypes from "prop-types";
|
|
7
7
|
import { useIntl } from "react-intl";
|
|
8
|
-
import
|
|
8
|
+
import DomainSelector from "@truedat/core/components/DomainSelector";
|
|
9
9
|
import { saveSharedTo } from "../routines";
|
|
10
10
|
|
|
11
11
|
export const SharedToForm = ({ id, saveSharedTo, saving, sharedTo }) => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ConceptActions } from "../ConceptActions";
|
|
3
4
|
|
|
4
5
|
describe("<ConceptActions />", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ConceptArchiveLoader } from "../ConceptArchiveLoader";
|
|
3
4
|
|
|
4
5
|
describe("<ConceptArchiveLoader />", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ConceptConfidentialButton } from "../ConceptConfidentialButton";
|
|
3
4
|
|
|
4
5
|
describe("<ConceptConfidentialButton />", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
|
-
import { render } from "@truedat/test/
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
3
|
import { renderHook, act } from "@testing-library/react";
|
|
4
4
|
import ConceptContext, { useConceptContext } from "../ConceptContext";
|
|
5
5
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ConceptDeleteModalBody } from "../ConceptDeleteModalBody";
|
|
3
4
|
|
|
4
5
|
describe("<ConceptDeleteModalBody />", () => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { waitFor } from "@testing-library/react";
|
|
2
2
|
import userEvent from "@testing-library/user-event";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { ConceptLinksUploadButton } from "../ConceptLinksUploadButton";
|
|
5
6
|
|
|
6
7
|
jest.mock("react-dropzone", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ConceptLoader } from "../ConceptLoader";
|
|
3
4
|
|
|
4
5
|
jest.mock("react-router", () => ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
2
|
import { waitFor } from "@testing-library/react";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { ConceptSubscription } from "../ConceptSubscription";
|
|
5
6
|
|
|
6
7
|
describe("<ConceptSubscription />", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { ConceptSubscriptionLoader } from "../ConceptSubscriptionLoader";
|
|
3
4
|
|
|
4
5
|
jest.mock("react-router", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { SearchContextProvider } from "@truedat/core/search/SearchContext";
|
|
3
4
|
import ConceptsLabelResults from "../ConceptsLabelResults";
|
|
4
5
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { waitFor } from "@testing-library/react";
|
|
2
2
|
import userEvent from "@testing-library/user-event";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { ConceptsUploadButton } from "../ConceptsUploadButton";
|
|
5
6
|
|
|
6
7
|
jest.mock("react-dropzone", () => ({
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { Events } from "../Events";
|
|
3
4
|
|
|
5
|
+
beforeAll(() => {
|
|
6
|
+
jest.useFakeTimers();
|
|
7
|
+
jest.setSystemTime(new Date("2025-01-01"));
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
afterAll(() => {
|
|
11
|
+
jest.useRealTimers();
|
|
12
|
+
});
|
|
13
|
+
|
|
4
14
|
describe("<Events />", () => {
|
|
5
15
|
it("matches the latest snapshot", async () => {
|
|
6
16
|
const events = [
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { waitFor } from "@testing-library/react";
|
|
3
4
|
import { SharedToDomains } from "../SharedToDomains";
|
|
4
5
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import userEvent from "@testing-library/user-event";
|
|
2
2
|
import { waitFor } from "@testing-library/react";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { SharedToDomainsPopup } from "../SharedToDomainsPopup";
|
|
5
6
|
|
|
6
7
|
jest.mock(
|
|
@@ -13,10 +13,8 @@ import {
|
|
|
13
13
|
IMPLEMENTATION_NEW,
|
|
14
14
|
IMPLEMENTATION_NEW_RAW,
|
|
15
15
|
} from "@truedat/core/routes";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
getBusinessConceptsLinksToImplementationsColumns,
|
|
19
|
-
} from "../selectors";
|
|
16
|
+
import { getConceptImplementationLinks } from "../selectors/getConceptImplementationLinks";
|
|
17
|
+
import { getBusinessConceptsLinksToImplementationsColumns } from "../selectors/getBusinessConceptsLinksToImplementationsColumns";
|
|
20
18
|
|
|
21
19
|
const RuleImplementationsTable = lazy(
|
|
22
20
|
() => import("@truedat/dq/components/SimpleRuleImplementationsTable"),
|
|
@@ -4,7 +4,7 @@ import { PropTypes } from "prop-types";
|
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { Button, Icon } from "semantic-ui-react";
|
|
6
6
|
import { FormattedMessage } from "react-intl";
|
|
7
|
-
import
|
|
7
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
8
8
|
import { deleteRelation } from "@truedat/lm/routines";
|
|
9
9
|
|
|
10
10
|
export const DeleteLink = ({ deleteRelation, action: { href }, loading }) => {
|
|
@@ -4,7 +4,7 @@ import { connect } from "react-redux";
|
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
6
6
|
import { Checkbox, Table, Header, Icon } from "semantic-ui-react";
|
|
7
|
-
import { getLinksSearchColumns } from "../selectors";
|
|
7
|
+
import { getLinksSearchColumns } from "../selectors/getLinksSearchColumns";
|
|
8
8
|
import { ConceptLinksApprovalsRow } from "./ConceptLinksApprovalsRow";
|
|
9
9
|
|
|
10
10
|
export const ConceptLinksApprovalsTable = ({
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { Button, Form } from "semantic-ui-react";
|
|
7
|
-
import
|
|
7
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
8
8
|
import { linkTo } from "@truedat/core/routes";
|
|
9
9
|
import { makeTagOptionsSelector } from "@truedat/core/selectors";
|
|
10
10
|
import { linkConcept } from "../routines";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
SearchContextProvider,
|
|
15
15
|
useSearchContext,
|
|
16
16
|
} from "@truedat/core/search/SearchContext";
|
|
17
|
-
import { getConceptLinks } from "../selectors";
|
|
17
|
+
import { getConceptLinks } from "../selectors/getConceptLinks";
|
|
18
18
|
import { useConceptContext } from "../../components/ConceptContext";
|
|
19
19
|
import ConceptLinksActions from "./ConceptLinksActions";
|
|
20
20
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import userEvent from "@testing-library/user-event";
|
|
3
|
-
import { render
|
|
3
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
4
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
4
5
|
import { DeleteLink } from "../ConceptLinkActions";
|
|
5
6
|
|
|
6
7
|
describe("ConceptLinkActions", () => {
|
package/src/concepts/relations/components/__tests__/ConceptLinksApprovalsLabelResults.spec.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
3
4
|
import { ConceptLinksApprovalsLabelResults } from "../ConceptLinksApprovalsLabelResults";
|
|
4
5
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { fireEvent } from "@testing-library/react";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
import { ConceptLinksApprovalsRow } from "../ConceptLinksApprovalsRow";
|
|
4
5
|
|
|
5
6
|
const renderRow = (props) =>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { useSearchContext } from "@truedat/core/search/SearchContext";
|
|
3
4
|
import { ConceptLinksApprovalsTable } from "../ConceptLinksApprovalsTable";
|
|
4
5
|
|
|
@@ -3,7 +3,8 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { Link } from "react-router";
|
|
4
4
|
import { Button, Icon } from "semantic-ui-react";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
|
-
import
|
|
6
|
+
import ConfirmModal from "@truedat/core/components/ConfirmModal";
|
|
7
|
+
import GroupActions from "@truedat/core/components/GroupActions";
|
|
7
8
|
|
|
8
9
|
const DomainActionButton = ({ action, icon, messageId, id, ...rest }) => {
|
|
9
10
|
const { formatMessage } = useIntl();
|
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { Button, Form } from "semantic-ui-react";
|
|
4
4
|
import { useIntl } from "react-intl";
|
|
5
5
|
import { useForm, Controller } from "react-hook-form";
|
|
6
|
-
import
|
|
6
|
+
import HistoryBackButton from "@truedat/core/components/HistoryBackButton";
|
|
7
7
|
import { accentInsensitiveOrder } from "@truedat/core/services/sort";
|
|
8
8
|
import { useDomains } from "../../hooks/useDomains";
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ import _ from "lodash/fp";
|
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import { useIntl } from "react-intl";
|
|
4
4
|
import { connect } from "react-redux";
|
|
5
|
-
import
|
|
5
|
+
import SearchInput from "@truedat/core/components/SearchInput";
|
|
6
6
|
import { filterDomains } from "../routines";
|
|
7
7
|
|
|
8
8
|
const DomainSearch = ({ filterDomains, domainsFilter }) => {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Image,
|
|
13
13
|
Segment,
|
|
14
14
|
} from "semantic-ui-react";
|
|
15
|
-
import
|
|
15
|
+
import Loading from "@truedat/core/components/Loading";
|
|
16
16
|
import HierarchyNodeFinder from "@truedat/core/components/HierarchyNodeFinder";
|
|
17
17
|
import { linkTo } from "@truedat/core/routes";
|
|
18
18
|
import { useParams, useNavigate } from "react-router";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { DomainItem } from "../DomainItem";
|
|
3
4
|
|
|
4
5
|
describe("<DomainItem />", () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { DomainMembers } from "../DomainMembers";
|
|
3
4
|
|
|
4
5
|
jest.mock("@truedat/core/hooks/useAclEntries", () => ({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { render
|
|
1
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
2
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
2
3
|
import { renderHook } from "@testing-library/react";
|
|
3
4
|
import { useDomainPath, DomainTooltip } from "../DomainPath";
|
|
4
5
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _ from "lodash/fp";
|
|
2
|
-
import { render
|
|
2
|
+
import { renderWithIntl as render } from "@truedat/test/renderWithIntl";
|
|
3
|
+
import { waitForLoad } from "@truedat/test/waitForLoad";
|
|
3
4
|
import { DomainTaxonomy } from "../DomainTaxonomy";
|
|
4
5
|
|
|
5
6
|
describe("<DomainTaxonomy />", () => {
|