- {t(
- 'System',
- 'Search Tips: wildcard',
- 'Use an * for wildcard search. Ie: "juris*" will match words ' +
- 'such as jurisdiction, jurisdictional, jurists, jurisprudence, etc.',
- false
- )}
-
-
- {t(
- 'System',
- 'Search Tips: one char wildcard',
- '? for one character wildcard. Ie: "198?" will match 1980 to 1989 and also 198a, 198b, etc.',
- false
- )}
-
-
- {t(
- 'System',
- 'Search Tips: exact term',
- 'Exact term match by enclosing your search string with quotes. Ie. "Costa Rica"' +
- ' will toss different results compared to Costa Rica without quotes.',
- false
- )}
-
-
- {t(
- 'System',
- 'Search Tips: proximity',
- '~ for proximity searches. Ie: "the status"~5 will find anything having "the" and' +
- '"status" within a distance of 5 words, such as "the procedural status", "the specific legal status".',
- false
- )}
-
-
- {t(
- 'System',
- 'Search Tips: boolean',
- 'AND, OR and NOT for boolean searches. Ie. "status AND women NOT Nicaragua" will match anything ' +
- 'containing both the words status and women, and necessarily not containing the word Nicaragua.',
- false
- )}
-
-
- );
-};
+const SearchTipsContent = () => (
+
+
+ {t(
+ 'System',
+ 'Search Tips: wildcard',
+ 'Use an * for wildcard search. Ie: "juris*" will match words ' +
+ 'such as jurisdiction, jurisdictional, jurists, jurisprudence, etc.',
+ false
+ )}
+
+
+ {t(
+ 'System',
+ 'Search Tips: one char wildcard',
+ '? for one character wildcard. Ie: "198?" will match 1980 to 1989 and also 198a, 198b, etc.',
+ false
+ )}
+
+
+ {t(
+ 'System',
+ 'Search Tips: exact term',
+ 'Exact term match by enclosing your search string with quotes. Ie. "Costa Rica"' +
+ ' will toss different results compared to Costa Rica without quotes.',
+ false
+ )}
+
+
+ {t(
+ 'System',
+ 'Search Tips: proximity',
+ '~ for proximity searches. Ie: "the status"~5 will find anything having "the" and' +
+ '"status" within a distance of 5 words, such as "the procedural status", "the specific legal status".',
+ false
+ )}
+
+
+ {t(
+ 'System',
+ 'Search Tips: boolean',
+ 'AND, OR and NOT for boolean searches. Ie. "status AND women NOT Nicaragua" will match anything ' +
+ 'containing both the words status and women, and necessarily not containing the word Nicaragua.',
+ false
+ )}
+
@@ -58,9 +58,9 @@ exports[`AttachmentsList should render a sorted list of attachments (files) 1`]
}
>
-
+
Supporting files
-
+
-
+
Supporting files
-
+
-
+
Supporting files
-
+
-
+
Supporting files
-
+
diff --git a/app/react/Attachments/components/specs/__snapshots__/AttachmentsModal.spec.tsx.snap b/app/react/Attachments/components/specs/__snapshots__/AttachmentsModal.spec.tsx.snap
index c009fe2f1a..1f6d43f296 100644
--- a/app/react/Attachments/components/specs/__snapshots__/AttachmentsModal.spec.tsx.snap
+++ b/app/react/Attachments/components/specs/__snapshots__/AttachmentsModal.spec.tsx.snap
@@ -12,7 +12,7 @@ exports[`Attachments Modal Attachment from web Should match render of web form 1
>
Supporting files
@@ -38,7 +38,7 @@ exports[`Attachments Modal Attachment from web Should match render of web form 1
Cancel
@@ -62,7 +62,7 @@ exports[`Attachments Modal Attachment from web Should match render of web form 1
style=""
>
Upload from computer
@@ -77,7 +77,7 @@ exports[`Attachments Modal Attachment from web Should match render of web form 1
style="font-weight: bold;"
>
Add from web
@@ -155,7 +155,7 @@ exports[`Attachments Modal Attachment from web Should match render of web form 1
Add from URL
@@ -181,7 +181,7 @@ exports[`Attachments Modal Should match render of upload form 1`] = `
>
Supporting files
@@ -207,7 +207,7 @@ exports[`Attachments Modal Should match render of upload form 1`] = `
Cancel
@@ -231,7 +231,7 @@ exports[`Attachments Modal Should match render of upload form 1`] = `
style="font-weight: bold;"
>
Upload from computer
@@ -245,7 +245,7 @@ exports[`Attachments Modal Should match render of upload form 1`] = `
role="tab"
>
Add from web
@@ -286,7 +286,7 @@ exports[`Attachments Modal Should match render of upload form 1`] = `
Upload and select file
@@ -300,7 +300,7 @@ exports[`Attachments Modal Should match render of upload form 1`] = `
class="attachments-modal__dropzone-title"
>
Drag and drop file in this window to upload
diff --git a/app/react/Attachments/components/specs/__snapshots__/WebMediaResourceForm.spec.tsx.snap b/app/react/Attachments/components/specs/__snapshots__/WebMediaResourceForm.spec.tsx.snap
index 7a728abf7e..e181110ade 100644
--- a/app/react/Attachments/components/specs/__snapshots__/WebMediaResourceForm.spec.tsx.snap
+++ b/app/react/Attachments/components/specs/__snapshots__/WebMediaResourceForm.spec.tsx.snap
@@ -40,9 +40,9 @@ exports[`Should match render of wem media form 1`] = `
icon="link"
/>
-
+
Add from URL
-
+
`;
@@ -105,9 +105,9 @@ exports[`should also display a name field when hasName is true 1`] = `
icon="link"
/>
-
+
Add from URL
-
+
`;
diff --git a/app/react/ConnectionsList/components/specs/ConnectionsGroup.spec.js b/app/react/ConnectionsList/components/specs/ConnectionsGroup.spec.js
index 63527f9028..5cb30aefeb 100644
--- a/app/react/ConnectionsList/components/specs/ConnectionsGroup.spec.js
+++ b/app/react/ConnectionsList/components/specs/ConnectionsGroup.spec.js
@@ -1,9 +1,7 @@
-import { fromJS as Immutable } from 'immutable';
import React from 'react';
-
+import { fromJS as Immutable } from 'immutable';
import { shallow } from 'enzyme';
import ShowIf from 'app/App/ShowIf';
-
import { ConnectionsGroup } from '../ConnectionsGroup';
describe('ConnectionsGroup', () => {
@@ -58,12 +56,16 @@ describe('ConnectionsGroup', () => {
expect(subItem1.props().title).toBe('template 1');
expect(subItem1.find('input').props().checked).toBe(false);
- expect(subItem1.find('.multiselectItem-name').text()).toBe('template 1');
+ expect(subItem1.find('.multiselectItem-name').children().children().text()).toBe(
+ 'template 1'
+ );
expect(subItem1.find('.multiselectItem-results').text()).toBe('1');
expect(subItem2.props().title).toBe('template 2');
expect(subItem2.find('input').props().checked).toBe(false);
- expect(subItem2.find('.multiselectItem-name').text()).toBe('template 2');
+ expect(subItem2.find('.multiselectItem-name').children().children().text()).toBe(
+ 'template 2'
+ );
expect(subItem2.find('.multiselectItem-results').text()).toBe('2');
});
diff --git a/app/react/Documents/components/specs/__snapshots__/DocumentContentSnippets.spec.js.snap b/app/react/Documents/components/specs/__snapshots__/DocumentContentSnippets.spec.js.snap
index d78695d607..b956b0df0b 100644
--- a/app/react/Documents/components/specs/__snapshots__/DocumentContentSnippets.spec.js.snap
+++ b/app/react/Documents/components/specs/__snapshots__/DocumentContentSnippets.spec.js.snap
@@ -5,7 +5,11 @@ exports[`SnippetList should render all document snippets 1`] = `
- Document contents
+
+ Document contents
+
-
+
Edit
-
+
`;
diff --git a/app/react/Documents/components/specs/__snapshots__/MetadataFieldSnippets.spec.js.snap b/app/react/Documents/components/specs/__snapshots__/MetadataFieldSnippets.spec.js.snap
index 618af0de66..43f296cb90 100644
--- a/app/react/Documents/components/specs/__snapshots__/MetadataFieldSnippets.spec.js.snap
+++ b/app/react/Documents/components/specs/__snapshots__/MetadataFieldSnippets.spec.js.snap
@@ -8,7 +8,11 @@ exports[`SnippetList should properly render title snippets with Title label as h
- Summary
+
+ Summary
+
- Summary
+
+ Summary
+
- Search text
+
+ Search text
+
- Search text description
+
+ Search text description
+
`;
@@ -24,10 +32,18 @@ exports[`SearchText blankState when there is search term should render a no matc
icon="search"
/>
- No text match
+
+ No text match
+
- No text match description
+
+ No text match description
+
`;
diff --git a/app/react/Forms/components/specs/MediaField.spec.tsx b/app/react/Forms/components/specs/MediaField.spec.tsx
index b2d035c3bf..6d91ffbd81 100644
--- a/app/react/Forms/components/specs/MediaField.spec.tsx
+++ b/app/react/Forms/components/specs/MediaField.spec.tsx
@@ -174,9 +174,7 @@ describe('MediaField', () => {
await render(imageProps);
const img = renderResult.container.getElementsByTagName('img')[0];
fireEvent.error(img);
- expect(
- await screen.findByText('This file type is not supported on media fields')
- ).toBeInTheDocument();
+ expect(await screen.findByText('Error loading your image')).toBeInTheDocument();
});
});
});
diff --git a/app/react/Forms/components/specs/Switcher.spec.tsx b/app/react/Forms/components/specs/Switcher.spec.tsx
index 8d5906823a..1a09c57a4d 100644
--- a/app/react/Forms/components/specs/Switcher.spec.tsx
+++ b/app/react/Forms/components/specs/Switcher.spec.tsx
@@ -40,7 +40,7 @@ describe('Switcher', () => {
it('should receive alternative elements for values', () => {
render({ leftLabel: ALL, rightLabel: NONE });
- const labels = component.find('Connect(Translate)');
+ const labels = component.find('Translate');
expect(labels.at(0).props().children).toEqual('ALL');
expect(labels.at(1).props().children).toEqual('NONE');
});
@@ -54,7 +54,7 @@ describe('Switcher', () => {
it('should render default labels AND/OR', () => {
render();
- const labels = component.find('Connect(Translate)');
+ const labels = component.find('Translate');
expect(labels.at(0).props().children).toEqual('AND');
expect(labels.at(1).props().children).toEqual('OR');
});
diff --git a/app/react/Forms/components/specs/__snapshots__/DateRange.spec.js.snap b/app/react/Forms/components/specs/__snapshots__/DateRange.spec.js.snap
index 224a91aca5..cb1d26c690 100644
--- a/app/react/Forms/components/specs/__snapshots__/DateRange.spec.js.snap
+++ b/app/react/Forms/components/specs/__snapshots__/DateRange.spec.js.snap
@@ -8,11 +8,11 @@ exports[`DateRange should allow using the local timezone 1`] = `
-
From:
-
+
-
To:
-
+
-
From:
-
+
-
To:
-
+
- No options found
+
+ No options found
+
- This file type is not supported on media fields
+ Error loading your image
);
}
- if (imageExists === null) {
- return Loading;
- }
-
- return setErrorFlag(true)} alt={alt} />;
+ return setErrorFlag(true)} alt={props.alt} />;
};
export { ImageViewer, type ImageViewerProps };
diff --git a/app/react/Metadata/components/specs/ImageViewer.spec.tsx b/app/react/Metadata/components/specs/ImageViewer.spec.tsx
index f16619b36f..4e09edafb5 100644
--- a/app/react/Metadata/components/specs/ImageViewer.spec.tsx
+++ b/app/react/Metadata/components/specs/ImageViewer.spec.tsx
@@ -28,13 +28,6 @@ describe('ImageViewer', () => {
});
};
- it('should render loading state initially', async () => {
- //delay the fetch response
- (global.fetch as jest.Mock).mockImplementation(async () => new Promise(() => {}));
- await renderComponent();
- expect(screen.getByText('Loading')).toBeInTheDocument();
- });
-
it('should render the image if it exists', async () => {
(global.fetch as jest.Mock).mockResolvedValue({ ok: true });
@@ -45,14 +38,6 @@ describe('ImageViewer', () => {
expect(img).toHaveAttribute('src', props.src);
});
- it('should render an error message if the image does not exist', async () => {
- (global.fetch as jest.Mock).mockResolvedValue({ ok: false });
-
- await renderComponent();
-
- expect(screen.getByText('Image not found')).toBeInTheDocument();
- });
-
it('should handle image load errors with onError', async () => {
(global.fetch as jest.Mock).mockResolvedValue({ ok: true });
@@ -66,6 +51,6 @@ describe('ImageViewer', () => {
img.dispatchEvent(new Event('error'));
});
- expect(screen.getByText('This file type is not supported on media fields')).toBeInTheDocument();
+ expect(screen.getByText('Error loading your image')).toBeInTheDocument();
});
});
diff --git a/app/react/Metadata/components/specs/__snapshots__/GeolocationViewer.spec.js.snap b/app/react/Metadata/components/specs/__snapshots__/GeolocationViewer.spec.js.snap
index 78f252d949..32d98e666a 100644
--- a/app/react/Metadata/components/specs/__snapshots__/GeolocationViewer.spec.js.snap
+++ b/app/react/Metadata/components/specs/__snapshots__/GeolocationViewer.spec.js.snap
@@ -12,15 +12,15 @@ exports[`GeolocationViewer should not fail if points is just an empty array 1`]
className="print-view-alt"
>
-
+
Latitude
-
+
:
-
+
Longitude
-
+
:
@@ -66,16 +66,16 @@ exports[`GeolocationViewer should render a map with markers when onlyForCards is
className="print-view-alt"
>
-
+
Latitude
-
+
:
13
-
+
Longitude
-
+
:
7
diff --git a/app/react/Metadata/components/specs/__snapshots__/IconField.spec.js.snap b/app/react/Metadata/components/specs/__snapshots__/IconField.spec.js.snap
index 16586ee119..ebd6b15b40 100644
--- a/app/react/Metadata/components/specs/__snapshots__/IconField.spec.js.snap
+++ b/app/react/Metadata/components/specs/__snapshots__/IconField.spec.js.snap
@@ -7,9 +7,9 @@ exports[`IconField should be open when has value 1`] = `
-
+
remove icon
-
+
@@ -19,9 +19,9 @@ exports[`IconField should be open when has value 1`] = `
open={true}
showLabel={
-
+
add icon
-
+
@@ -33,13 +33,13 @@ exports[`IconField should be open when has value 1`] = `
>
-
Semantic search is a technique to provide contextual results. Its ability to capture concepts and word associations in human language enables the retrieval of related information such as synonyms, connected categories or entities, etc. .
-
+
-
The threshold determines how close the results match the search concept. Move the slider to the right to narrow down the concept of the search query. The obtained results will be more precise. Move the slider to the left to more broaden the concept and explore related content.
-
+
-
Semantic search is applied to each sentence in a document. Filter the documents by the minimum number of sentences that exceed the threshold.
-
+
diff --git a/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchMultieditPanel.spec.js.snap b/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchMultieditPanel.spec.js.snap
index 628dcd9b04..5c362bf7b7 100644
--- a/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchMultieditPanel.spec.js.snap
+++ b/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchMultieditPanel.spec.js.snap
@@ -51,17 +51,17 @@ exports[`SemanticSearchMultieditPanel open should not open side panel if there a
size="2x"
/>
-
+
Warning: you are editing multiple entities. Fields marked with a
-
+
-
+
will be updated with the same value.
-
+
- Cancel
+
+ Cancel
+
@@ -153,17 +161,17 @@ exports[`SemanticSearchMultieditPanel should render multi edit form for semantic
size="2x"
/>
-
+
Warning: you are editing multiple entities. Fields marked with a
-
+
-
+
will be updated with the same value.
-
+
- Cancel
+
+ Cancel
+
diff --git a/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchResults.spec.js.snap b/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchResults.spec.js.snap
index 46235b5664..a55ad71855 100644
--- a/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchResults.spec.js.snap
+++ b/app/react/SemanticSearch/components/specs/__snapshots__/SemanticSearchResults.spec.js.snap
@@ -17,9 +17,9 @@ exports[`SemanticSearchResults should render results in ItemList 1`] = `
>
-
+
Semantic search
-
+
:
-
+
Edit all documents matching this criteria
-
+
-
+
documents
-
+
@@ -66,16 +66,16 @@ exports[`SemanticSearchResults should render results in ItemList 1`] = `
className="metadata-type-text"
>
-
+
Sentences above threshold
-
+
2
-
+
out of
-
+
(
50.00
@@ -117,16 +117,16 @@ exports[`SemanticSearchResults should render results in ItemList 1`] = `
className="metadata-type-text"
>
-
+
Sentences above threshold
-
+
1
-
+
out of
-
+
(
40.00
@@ -169,18 +169,18 @@ exports[`SemanticSearchResults should render results in ItemList 1`] = `
-
+
of
-
+
0
-
+
documents
-
+
-
+
x more
-
+
@@ -215,9 +215,9 @@ exports[`SemanticSearchResults when the search is empty should render not found
className="row panels-layout"
>
@@ -117,9 +117,9 @@ exports[`FormConfigMultimedia should allow excluding "show in card" 1`] = `
className="form-group"
>
-
+
This property will be shown without the label.
-
+
-
+
This property will be shown using all the width available.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
@@ -166,9 +166,9 @@ exports[`FormConfigMultimedia should allow excluding "show in card" 1`] = `
className="form-group"
>
@@ -230,9 +230,9 @@ exports[`FormConfigMultimedia should allow excluding "style" 1`] = `
className="form-group"
>
-
+
This property will be shown without the label.
-
+
-
+
This property will be shown using all the width available.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
+
This property will be shown without the label.
-
+
-
+
This property will be shown using all the width available.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
@@ -365,9 +365,9 @@ exports[`FormConfigMultimedia should allow setting a help text 1`] = `
className="form-group"
>
@@ -429,9 +429,9 @@ exports[`FormConfigMultimedia should hold show label, show in card and select ca
className="form-group"
>
-
+
This property will be shown without the label.
-
+
-
+
This property will be shown using all the width available.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
@@ -488,9 +488,9 @@ exports[`FormConfigMultimedia should hold show label, show in card and select ca
className="form-group"
>
diff --git a/app/react/Templates/components/specs/__snapshots__/FormConfigRelationship.spec.js.snap b/app/react/Templates/components/specs/__snapshots__/FormConfigRelationship.spec.js.snap
index 40a1358af8..fc256811f7 100644
--- a/app/react/Templates/components/specs/__snapshots__/FormConfigRelationship.spec.js.snap
+++ b/app/react/Templates/components/specs/__snapshots__/FormConfigRelationship.spec.js.snap
@@ -8,9 +8,9 @@ exports[`FormConfigRelationship when the fields are invalid and dirty or the for
-
+
Relationship
-
+
@@ -151,9 +151,9 @@ exports[`FormConfigRelationship when the fields are invalid and dirty or the for
className="form-group"
>
-
+
Entities
-
+
-
+
Relationship
-
+
@@ -241,9 +241,9 @@ exports[`FormConfigRelationship when use as filter is selected should show the d
className="form-group"
>
-
+
Entities
-
+
-
+
Duplicated label
-
+
`;
@@ -21,10 +21,10 @@ exports[`MetadataProperty simple component when type is custom type errors shoul
-
Cannot use 'any entity or document' if another relationship of the same type is already with a specific entity.
-
+
`;
diff --git a/app/react/Templates/components/specs/__snapshots__/PropertyConfigOption.spec.js.snap b/app/react/Templates/components/specs/__snapshots__/PropertyConfigOption.spec.js.snap
index 312b4848d7..76f253b03b 100644
--- a/app/react/Templates/components/specs/__snapshots__/PropertyConfigOption.spec.js.snap
+++ b/app/react/Templates/components/specs/__snapshots__/PropertyConfigOption.spec.js.snap
@@ -13,11 +13,11 @@ exports[`Tip should render children 1`] = `
type="checkbox"
/>
-
label
-
+
children text!
@@ -36,11 +36,11 @@ exports[`Tip should render label and input for the model 1`] = `
type="checkbox"
/>
-
label
-
+
`;
diff --git a/app/react/Templates/components/specs/__snapshots__/PropertyConfigOptions.spec.js.snap b/app/react/Templates/components/specs/__snapshots__/PropertyConfigOptions.spec.js.snap
index 7d57176247..eac9980daa 100644
--- a/app/react/Templates/components/specs/__snapshots__/PropertyConfigOptions.spec.js.snap
+++ b/app/react/Templates/components/specs/__snapshots__/PropertyConfigOptions.spec.js.snap
@@ -7,9 +7,9 @@ exports[`PropertyConfigOptions Additional options should allow to exclude the "u
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
-
Use this property as a default filter in the library. When there are no entity types selected, this property will show as a default filter for your collection.
-
+
-
Properties marked as priority sorting will be used as default sorting criteria. If more than one property is marked as priority sorting the system will try to pick-up the best fit. When listing mixed template types, the system will pick-up the best combined priority sorting.
-
+
@@ -127,9 +127,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is n
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
@@ -183,9 +183,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is n
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
@@ -239,9 +239,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is n
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
@@ -295,9 +295,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is n
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
@@ -351,9 +351,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is t
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
-
Use this property as a default filter in the library. When there are no entity types selected, this property will show as a default filter for your collection.
-
+
-
Properties marked as priority sorting will be used as default sorting criteria. If more than one property is marked as priority sorting the system will try to pick-up the best fit. When listing mixed template types, the system will pick-up the best combined priority sorting.
-
+
@@ -431,9 +431,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is t
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
-
Use this property as a default filter in the library. When there are no entity types selected, this property will show as a default filter for your collection.
-
+
-
Properties marked as priority sorting will be used as default sorting criteria. If more than one property is marked as priority sorting the system will try to pick-up the best fit. When listing mixed template types, the system will pick-up the best combined priority sorting.
-
+
@@ -511,9 +511,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is t
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
-
Use this property as a default filter in the library. When there are no entity types selected, this property will show as a default filter for your collection.
-
+
-
Properties marked as priority sorting will be used as default sorting criteria. If more than one property is marked as priority sorting the system will try to pick-up the best fit. When listing mixed template types, the system will pick-up the best combined priority sorting.
-
+
@@ -591,9 +591,9 @@ exports[`PropertyConfigOptions priority sorting option when property filter is t
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
-
Use this property as a default filter in the library. When there are no entity types selected, this property will show as a default filter for your collection.
-
+
-
Properties marked as priority sorting will be used as default sorting criteria. If more than one property is marked as priority sorting the system will try to pick-up the best fit. When listing mixed template types, the system will pick-up the best combined priority sorting.
-
+
@@ -671,9 +671,9 @@ exports[`PropertyConfigOptions should render fields with the correct datas 1`] =
model="template.data.properties[2].noLabel"
>
-
+
This property will be shown without the label.
-
+
-
You won't be able to save an entity if this property is empty.
-
+
-
+
This property will appear in the library cards as part of the basic info.
-
+
-
This property will be used for filtering the library results. When properties match in equal name and field type with other entity types, they will be combined for filtering.
-
+
diff --git a/app/react/Templates/components/specs/__snapshots__/TemplateCreator.spec.js.snap b/app/react/Templates/components/specs/__snapshots__/TemplateCreator.spec.js.snap
index 361e58720a..c6fdeff598 100644
--- a/app/react/Templates/components/specs/__snapshots__/TemplateCreator.spec.js.snap
+++ b/app/react/Templates/components/specs/__snapshots__/TemplateCreator.spec.js.snap
@@ -10,9 +10,9 @@ exports[`TemplateCreator Property Options should include document specific optio
-
+
Metadata creator
-
+
-
+
Properties
-
+
-
Relationship fields can not be added until you have at least one relationship type to select.
-
+
@@ -122,9 +122,9 @@ exports[`TemplateCreator Property Options should include most common options by
-
+
Metadata creator
-
+
-
+
Properties
-
+
-
Relationship fields can not be added until you have at least one relationship type to select.
-
+
@@ -234,9 +234,9 @@ exports[`TemplateCreator Property Options should remove all options for relation
-
+
Metadata creator
-
+
{
it('should work when template is an Immutable instance', () => {
template = Immutable.fromJS(template);
field = 'title';
- expect(runGetLabel()).toEqual('Name');
+ expect(runGetLabel().props.children).toEqual('Name');
field = 'metadata.prop1';
- expect(runGetLabel()).toEqual('Prop 1');
+ expect(runGetLabel().props.children).toEqual('Prop 1');
field = 'nonexistent';
expect(runGetLabel()).toEqual('nonexistent');
});
diff --git a/app/react/Uploads/components/specs/__snapshots__/ImportPanel.spec.js.snap b/app/react/Uploads/components/specs/__snapshots__/ImportPanel.spec.js.snap
index 63a7c0f37d..bd653a86cf 100644
--- a/app/react/Uploads/components/specs/__snapshots__/ImportPanel.spec.js.snap
+++ b/app/react/Uploads/components/specs/__snapshots__/ImportPanel.spec.js.snap
@@ -30,18 +30,18 @@ exports[`ImportPanel rendering states should render a form 1`] = `
@@ -65,9 +65,9 @@ exports[`ImportPanel rendering states should render a form 1`] = `
-
+
File
-
+
-
+
Template
-
+
-
+
Import
-
+
@@ -171,9 +171,9 @@ exports[`ImportPanel rendering states when the import starts should render an up
-
+
Uploading file
-
+
23
%
@@ -211,9 +211,9 @@ exports[`ImportPanel rendering states when the upload starts should render an up
-
+
Uploading file
-
+
23
%
diff --git a/app/react/Uploads/components/specs/__snapshots__/ImportProgress.spec.js.snap b/app/react/Uploads/components/specs/__snapshots__/ImportProgress.spec.js.snap
index a7e0f79a26..3e47756291 100644
--- a/app/react/Uploads/components/specs/__snapshots__/ImportProgress.spec.js.snap
+++ b/app/react/Uploads/components/specs/__snapshots__/ImportProgress.spec.js.snap
@@ -11,17 +11,17 @@ exports[`ImportProgress rendering states should render a state for end 1`] = `
-
Import completed. Number of entities created:
-
+
5
-
+
Indexing entities may take a few minutes
-
+
-
+
The import process threw an error:
-
+
-
+
The import process threw an error:
-
+
-
+
Importing data in progress
-
+
:
5
diff --git a/app/react/Users/specs/__snapshots__/Login.spec.js.snap b/app/react/Users/specs/__snapshots__/Login.spec.js.snap
index 0b9aaa3717..537997a59a 100644
--- a/app/react/Users/specs/__snapshots__/Login.spec.js.snap
+++ b/app/react/Users/specs/__snapshots__/Login.spec.js.snap
@@ -35,9 +35,9 @@ exports[`Login on instance should render the component with the login form 1`] =
className="form-group-label"
htmlFor="username"
>
-
+
User
-
+
-
+
Password
-
+
-
+
Forgot Password?
-
+
@@ -87,9 +87,9 @@ exports[`Login on instance should render the component with the login form 1`] =
className="btn btn-block btn-lg btn-primary"
type="submit"
>
-
+
Login
-
+
@@ -127,7 +127,11 @@ exports[`Login submit() on response failure when authorization conflict (2fa req
className="form-group login-token"
>
);
cy.contains('button', 'Select all').click();
@@ -211,11 +203,9 @@ describe('MultiselectList.cy.tsx', () => {
it('should show matching options even when not selected', () => {
cy.viewport(450, 650);
mount(
-
-
- {}} items={pizzas} value={['MGT']} />
-
-
+
+ {}} items={pizzas} value={['MGT']} />
+
);
cy.get('input[type=text]').type('pepperoni');
@@ -228,11 +218,9 @@ describe('MultiselectList.cy.tsx', () => {
it('should show blank state property if there is no items passed to the component', () => {
cy.viewport(450, 650);
mount(
-
-
+
+
+ >
);
};
diff --git a/app/react/stories/Forms/RadioSelect.stories.tsx b/app/react/stories/Forms/RadioSelect.stories.tsx
index f0449a6c83..2d29fe2d32 100644
--- a/app/react/stories/Forms/RadioSelect.stories.tsx
+++ b/app/react/stories/Forms/RadioSelect.stories.tsx
@@ -3,8 +3,6 @@ import { Meta, StoryObj } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { fn } from '@storybook/test';
import { RadioSelect } from 'app/V2/Components/Forms';
-import { LEGACY_createStore as createStore } from 'V2/testing';
-import { Provider } from 'react-redux';
const meta: Meta = {
title: 'Forms/RadioSelect',
@@ -18,17 +16,15 @@ type Story = StoryObj;
const Primary: Story = {
render: args => (
-
-
-
-
-
+
+
+
),
};
diff --git a/app/react/stories/MediaPlayer.stories.tsx b/app/react/stories/MediaPlayer.stories.tsx
index 92587ffd53..a663c482da 100644
--- a/app/react/stories/MediaPlayer.stories.tsx
+++ b/app/react/stories/MediaPlayer.stories.tsx
@@ -1,7 +1,5 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
-import { Provider } from 'react-redux';
-import { LEGACY_createStore as createStore } from 'V2/testing';
import { MediaPlayer } from 'V2/Components/UI';
const meta: Meta = {
@@ -13,18 +11,16 @@ type Story = StoryObj;
const Primary: Story = {
render: args => (
-
-
-
-
-
+
+
+
-
+
),
};
diff --git a/app/react/stories/Notification.stories.tsx b/app/react/stories/Notification.stories.tsx
index 64a10a6bbd..d913bdb31a 100644
--- a/app/react/stories/Notification.stories.tsx
+++ b/app/react/stories/Notification.stories.tsx
@@ -1,8 +1,6 @@
import React from 'react';
import { Meta, StoryObj } from '@storybook/react';
import { Notification } from 'V2/Components/UI/Notification';
-import { Provider } from 'react-redux';
-import { LEGACY_createStore as createStore } from 'V2/testing';
const meta: Meta = {
title: 'Components/Notification',
@@ -13,18 +11,16 @@ type Story = StoryObj;
const Primary: Story = {
render: args => (
-
-
-
-
-
+
+
+
-
+
),
};
diff --git a/app/react/stories/PDF.stories.tsx b/app/react/stories/PDF.stories.tsx
index 6670cccfe8..8f08152bd3 100644
--- a/app/react/stories/PDF.stories.tsx
+++ b/app/react/stories/PDF.stories.tsx
@@ -1,8 +1,6 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test';
-import { Provider } from 'react-redux';
-import { LEGACY_createStore as createStore } from 'V2/testing';
import { PDF } from 'V2/Components/PDFViewer';
import { highlights } from './fixtures/PDFStoryFixtures';
@@ -16,22 +14,20 @@ type Story = StoryObj;
const Primary: Story = {
render: args => (
-
-
-
PDF Container:
-
-
-
-
End of container
+
+
PDF Container:
+
+
-
+
End of container
+
),
};
diff --git a/app/react/stories/Paginator.stories.tsx b/app/react/stories/Paginator.stories.tsx
index 9664ce3461..42b45c6e8b 100644
--- a/app/react/stories/Paginator.stories.tsx
+++ b/app/react/stories/Paginator.stories.tsx
@@ -1,9 +1,7 @@
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
-import { Provider } from 'react-redux';
import type { Meta, StoryObj } from '@storybook/react';
import { Paginator } from 'app/V2/Components/UI';
-import { LEGACY_createStore as createStore } from 'V2/testing';
const meta: Meta = {
title: 'Components/Paginator',
@@ -15,18 +13,16 @@ type Story = StoryObj;
const Primary: Story = {
render: args => (
-
-
-
-
-
+
+
+
-
+
),
};
diff --git a/app/react/stories/Sidepanel.stories.tsx b/app/react/stories/Sidepanel.stories.tsx
index 2aaa56b1bd..c5f689fa82 100644
--- a/app/react/stories/Sidepanel.stories.tsx
+++ b/app/react/stories/Sidepanel.stories.tsx
@@ -1,8 +1,6 @@
import React, { useState } from 'react';
import { Meta, StoryObj } from '@storybook/react';
import { action } from '@storybook/addon-actions';
-import { Provider } from 'react-redux';
-import { LEGACY_createStore as createStore } from 'V2/testing';
import { Sidepanel, Button } from 'V2/Components/UI';
import { SidePanelProps } from 'app/V2/Components/UI/Sidepanel';
import { GeneratedContent } from './helpers/GeneratedContent';
@@ -16,70 +14,65 @@ const SidePanelContainer = (args: SidePanelProps) => {
const [showSidepanel, setShowSidepanel] = useState(false);
return (
-
-
-
-
-
This a content title
+
+
+
+
This a content title
-
- Lorem ipsum dolor sit amet consectetur adipisicing elit.
-
+
Lorem ipsum dolor sit amet consectetur adipisicing elit.
-
- Fusce id mi eu mauris bibendum dignissim nec in sem. Sed ultrices varius mauris quis
- placerat. Donec imperdiet sodales diam sed imperdiet. Aenean a nisl venenatis lectus
- mattis pellentesque. Duis fermentum ante a ultricies feugiat. Proin dapibus luctus
- purus id viverra. Aenean a aliquet nibh. Aenean facilisis justo quis sem auctor, nec
- mollis tortor placerat. Cras eget enim mollis, mollis risus gravida, pharetra risus.
- Mauris dapibus malesuada mi, quis ornare felis imperdiet eget. Donec sed quam non
- dolor sodales hendrerit. Aenean suscipit, velit sed laoreet cursus, ante odio
- tristique lectus, a porta eros felis eu sem. Curabitur eu gravida dolor. Ut iaculis
- lacus vitae libero viverra interdum. Phasellus ac est consectetur, malesuada nisl nec,
- blandit lorem.
-
+
+ Fusce id mi eu mauris bibendum dignissim nec in sem. Sed ultrices varius mauris quis
+ placerat. Donec imperdiet sodales diam sed imperdiet. Aenean a nisl venenatis lectus
+ mattis pellentesque. Duis fermentum ante a ultricies feugiat. Proin dapibus luctus purus
+ id viverra. Aenean a aliquet nibh. Aenean facilisis justo quis sem auctor, nec mollis
+ tortor placerat. Cras eget enim mollis, mollis risus gravida, pharetra risus. Mauris
+ dapibus malesuada mi, quis ornare felis imperdiet eget. Donec sed quam non dolor sodales
+ hendrerit. Aenean suscipit, velit sed laoreet cursus, ante odio tristique lectus, a
+ porta eros felis eu sem. Curabitur eu gravida dolor. Ut iaculis lacus vitae libero
+ viverra interdum. Phasellus ac est consectetur, malesuada nisl nec, blandit lorem.
+
-
- Fusce id mi eu mauris bibendum dignissim nec in sem. Sed ultrices varius mauris quis
- placerat. Donec imperdiet sodales diam sed imperdiet. Aenean a nisl venenatis lectus
- mattis pellentesque. Duis fermentum ante a ultricies feugiat.
-
- Proin dapibus luctus purus id viverra.
-
- Aenean a aliquet nibh. Aenean facilisis justo quis sem auctor, nec mollis tortor
- placerat. Cras eget enim mollis, mollis risus gravida, pharetra risus. Mauris dapibus
- malesuada mi, quis ornare felis imperdiet eget. Donec sed quam non dolor sodales
- hendrerit. Aenean suscipit, velit sed laoreet cursus, ante odio tristique lectus, a
- porta eros felis eu sem. Curabitur eu gravida dolor. Ut iaculis lacus vitae libero
- viverra interdum. Phasellus ac est consectetur, malesuada nisl nec, blandit lorem.
-
+
+ Fusce id mi eu mauris bibendum dignissim nec in sem. Sed ultrices varius mauris quis
+ placerat. Donec imperdiet sodales diam sed imperdiet. Aenean a nisl venenatis lectus
+ mattis pellentesque. Duis fermentum ante a ultricies feugiat.
+
+ Proin dapibus luctus purus id viverra.
+
+ Aenean a aliquet nibh. Aenean facilisis justo quis sem auctor, nec mollis tortor
+ placerat. Cras eget enim mollis, mollis risus gravida, pharetra risus. Mauris dapibus
+ malesuada mi, quis ornare felis imperdiet eget. Donec sed quam non dolor sodales
+ hendrerit. Aenean suscipit, velit sed laoreet cursus, ante odio tristique lectus, a
+ porta eros felis eu sem. Curabitur eu gravida dolor. Ut iaculis lacus vitae libero
+ viverra interdum. Phasellus ac est consectetur, malesuada nisl nec, blandit lorem.
+
);
};
diff --git a/app/react/stories/Table.stories.tsx b/app/react/stories/Table.stories.tsx
index 3fad235cf6..91077cbc5e 100644
--- a/app/react/stories/Table.stories.tsx
+++ b/app/react/stories/Table.stories.tsx
@@ -3,9 +3,7 @@ import React, { useRef, useState } from 'react';
import { Meta, StoryObj } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { Cell, createColumnHelper, SortingState } from '@tanstack/react-table';
-import { Provider } from 'react-redux';
import { Button, Table } from 'V2/Components/UI';
-import { LEGACY_createStore as createStore } from 'V2/testing';
import { BasicData, DataWithGroups, basicData, dataWithGroups } from './table/fixtures';
type StoryProps = {
@@ -225,17 +223,15 @@ type Story = StoryObj;
const Primary: Story = {
render: args => (
-
-
-
+
),
};
diff --git a/app/react/utils/useOnClickOutsideElementHook.ts b/app/react/utils/useOnClickOutsideElementHook.ts
index 050e479b3f..0640322475 100644
--- a/app/react/utils/useOnClickOutsideElementHook.ts
+++ b/app/react/utils/useOnClickOutsideElementHook.ts
@@ -13,7 +13,7 @@ export function useOnClickOutsideElement(
cb(event);
};
- document.addEventListener('click', onClickHandler);
+ document.addEventListener('click', onClickHandler, { capture: true });
return () => {
document.removeEventListener('click', onClickHandler);
};
diff --git a/app/shared/config.ts b/app/shared/config.ts
index 2440a99366..b69d106599 100644
--- a/app/shared/config.ts
+++ b/app/shared/config.ts
@@ -1,4 +1,4 @@
-const PRELOAD_OPTIONS_LIMIT = 200;
+const PRELOAD_OPTIONS_LIMIT = 500;
const PRELOAD_OPTIONS_SEARCH = 2000;
const preloadOptionsLimit = () => PRELOAD_OPTIONS_LIMIT;
diff --git a/app/shared/translate.js b/app/shared/translate.js
index 0cd87d33ac..d52c4d828f 100644
--- a/app/shared/translate.js
+++ b/app/shared/translate.js
@@ -1,10 +1,8 @@
-/** @format */
-
-export function getLocaleTranslation(translations, locale) {
+function getLocaleTranslation(translations, locale) {
return translations.find(d => d.locale === locale) || { contexts: [] };
}
-export function getContext(translation, contextId = '') {
+function getContext(translation, contextId = '') {
return (
translation.contexts.find(ctx => ctx.id.toString() === contextId.toString()) || { values: {} }
);
@@ -13,3 +11,5 @@ export function getContext(translation, contextId = '') {
export default function translate(context, key, text) {
return context.values[key] || text;
}
+
+export { getLocaleTranslation, getContext };
diff --git a/contents/ui-translations/ar.csv b/contents/ui-translations/ar.csv
index 1133276fa8..d89acbd436 100644
--- a/contents/ui-translations/ar.csv
+++ b/contents/ui-translations/ar.csv
@@ -307,6 +307,7 @@ Entity types,أنواع الكيانات
Entity updated,Entity updated
Error,خطأ
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,استكشاف
@@ -377,7 +378,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.","If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io."
"If you want to continue, please type",إذا كنت ترغب في المتابعة، يرجى كتابة
-Image not found,Image not found
Impact of property change warning,All entities and documents that have already this property assigned will loose its current value
Import,استيراد
Import asset,Import asset
diff --git a/contents/ui-translations/en.csv b/contents/ui-translations/en.csv
index f50d0f1924..2932771955 100644
--- a/contents/ui-translations/en.csv
+++ b/contents/ui-translations/en.csv
@@ -310,6 +310,7 @@ Entity types,Entity types
Entity updated,Entity updated
Error,Error
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,Exploration
@@ -380,7 +381,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.","If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io."
"If you want to continue, please type","If you want to continue, please type"
-Image not found,Image not found
Impact of property change warning,"By making this change, any values from the previous thesaurus already assigned to entities will be lost."
Import,Import
Import asset,Import asset
diff --git a/contents/ui-translations/es.csv b/contents/ui-translations/es.csv
index 1f58a9d9ca..822a3767c4 100644
--- a/contents/ui-translations/es.csv
+++ b/contents/ui-translations/es.csv
@@ -306,6 +306,7 @@ Entity types,Tipos de entidades
Entity updated,Entidad actualizada
Error,Error
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expandir todo
Exploration,Exploración
@@ -376,7 +377,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.","Si utilizas una URL externa, utiliza una dirección completa. Ejemplo: http://www.uwazi.io."
"If you want to continue, please type","Si quieres continuar, por favor escribe"
-Image not found,Image not found
Impact of property change warning,Todas las entidades y documentos que ya tienen esta propiedad asignada perderán su valor actual
Import,Importar
Import asset,Import asset
diff --git a/contents/ui-translations/fr.csv b/contents/ui-translations/fr.csv
index b775dc5d8f..0b01287600 100644
--- a/contents/ui-translations/fr.csv
+++ b/contents/ui-translations/fr.csv
@@ -307,6 +307,7 @@ Entity types,Types d'entités
Entity updated,Entity updated
Error,Erreur
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,Exploration
@@ -377,7 +378,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.","Si c'est une URL externe, utilisez une URL complète. Par exemple, http://www.uwazi.io."
"If you want to continue, please type","Si vous voulez continuer, veuillez taper"
-Image not found,Image not found
Impact of property change warning,All entities and documents that have already this property assigned will loose its current value
Import,Importer
Import asset,Import asset
diff --git a/contents/ui-translations/ko.csv b/contents/ui-translations/ko.csv
index cc0dbcb863..03bbc90ce4 100644
--- a/contents/ui-translations/ko.csv
+++ b/contents/ui-translations/ko.csv
@@ -308,6 +308,7 @@ Entity types,엔티티 유형
Entity updated,Entity updated
Error,오류
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,탐색
@@ -378,7 +379,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.",외부 URL 인 경우 전체 경로 (http://www. 부터 시작하는 전체 URL) 를 넣으십시오.
"If you want to continue, please type",계속하려면 다음을 입력하십시오:
-Image not found,Image not found
Impact of property change warning,All entities and documents that have already this property assigned will loose its current value
Import,업로드
Import asset,Import asset
diff --git a/contents/ui-translations/my.csv b/contents/ui-translations/my.csv
index 493df87535..555723d582 100644
--- a/contents/ui-translations/my.csv
+++ b/contents/ui-translations/my.csv
@@ -308,6 +308,7 @@ Entity types,ဖြည့်သွင်းချက် အမျိုးအစ
Entity updated,Entity updated
Error,ချွတ်ယွင်းချက်
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,စူးစမ်းလေ့လာခြင်း
@@ -378,7 +379,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.",ပြင်ပ URL ဖြစ်ပါက URL ပုံစံအပြည့်အစုံကို သုံးပါ။ ဥပမာ- http://www.uwazi.io။
"If you want to continue, please type",ဆက်လက်ဆောင်ရွက်လိုပါက ကျေးဇူးပြု၍ စာရိုက်ပါ
-Image not found,Image not found
Impact of property change warning,All entities and documents that have already this property assigned will loose its current value
Import,ထည့်သွင်းရန်
Import asset,Import asset
diff --git a/contents/ui-translations/ru.csv b/contents/ui-translations/ru.csv
index 93b5538b6a..21081fe843 100644
--- a/contents/ui-translations/ru.csv
+++ b/contents/ui-translations/ru.csv
@@ -305,6 +305,7 @@ Entity types,Типы объектов
Entity updated,Entity updated
Error,Ошибка
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,Изучение
@@ -375,7 +376,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.","Если это внешний URL, используйте полностью сформированный URL. Т. е. http://www.uwazi.io."
"If you want to continue, please type","Если вы хотите продолжить, пожалуйста, введите"
-Image not found,Image not found
Impact of property change warning,All entities and documents that have already this property assigned will loose its current value
Import,Импортировать
Import asset,Import asset
diff --git a/contents/ui-translations/th.csv b/contents/ui-translations/th.csv
index 08bc7616d6..30bdb8a532 100644
--- a/contents/ui-translations/th.csv
+++ b/contents/ui-translations/th.csv
@@ -308,6 +308,7 @@ Entity types,ประเภทรายการ
Entity updated,Entity updated
Error,ข้อผิดพลาด
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,ค้นหา
@@ -378,7 +379,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.",หากเป็น URL จากภายนอก กรุณาใช้ URL แบบเต็มเช่น http://www.uwazi.io
"If you want to continue, please type",ถ้าคุณต้องการดำเนินการต่อ กรุณาพิมพ์
-Image not found,Image not found
Impact of property change warning,All entities and documents that have already this property assigned will loose its current value
Import,นำเข้า
Import asset,Import asset
diff --git a/contents/ui-translations/tr.csv b/contents/ui-translations/tr.csv
index cafc2780b9..4cd5ab3a5f 100644
--- a/contents/ui-translations/tr.csv
+++ b/contents/ui-translations/tr.csv
@@ -308,6 +308,7 @@ Entity types,Varlık türü
Entity updated,Entity updated
Error,Hata
Error adding thesauri.,Error adding thesauri.
+Error loading your image,Error loading your image
Error updating thesauri.,Error updating thesauri.
Expand all,Expand all
Exploration,Arama
@@ -378,7 +379,6 @@ ID,ID
ID:,ID:
"If it is an external URL, use a fully formed URL. Ie. http://www.uwazi.io.","Harici bir URL ise, tam olarak oluşturulmuş bir URL kullanın: http://www.uwazi.io."
"If you want to continue, please type","Devam etmek istiyorsanız, lütfen yazın"
-Image not found,Image not found
Impact of property change warning,All entities and documents that have already this property assigned will loose its current value
Import,İçe aktar
Import asset,Import asset
diff --git a/cypress/e2e/__image_snapshots__/PDF display responsiveness IX sidepanel should open the pdf sidepanel and show in the correct page #0.png b/cypress/e2e/__image_snapshots__/PDF display responsiveness IX sidepanel should open the pdf sidepanel and show in the correct page #0.png
deleted file mode 100644
index 981fe7e34c..0000000000
Binary files a/cypress/e2e/__image_snapshots__/PDF display responsiveness IX sidepanel should open the pdf sidepanel and show in the correct page #0.png and /dev/null differ
diff --git a/cypress/e2e/__image_snapshots__/PDF display responsiveness IX sidepanel should open the pdf sidepanel and show the correct page #0.png b/cypress/e2e/__image_snapshots__/PDF display responsiveness IX sidepanel should open the pdf sidepanel and show the correct page #0.png
new file mode 100644
index 0000000000..d63b45bea5
Binary files /dev/null and b/cypress/e2e/__image_snapshots__/PDF display responsiveness IX sidepanel should open the pdf sidepanel and show the correct page #0.png differ
diff --git a/cypress/e2e/media-metadata.cy.ts b/cypress/e2e/media-metadata.cy.ts
index 59ef6c4ba8..bcc632271f 100644
--- a/cypress/e2e/media-metadata.cy.ts
+++ b/cypress/e2e/media-metadata.cy.ts
@@ -81,11 +81,11 @@ describe('Media metadata', { defaultCommandTimeout: 5000 }, () => {
});
cy.contains(field)
.parentsUntil('.form-group')
- .contains('This file type is not supported on media fields')
+ .contains('Error loading your image')
.scrollIntoView();
cy.contains(field)
.parentsUntil('.form-group')
- .contains('This file type is not supported on media fields')
+ .contains('Error loading your image')
.should('be.visible');
};
diff --git a/cypress/e2e/pdf-display.cy.ts b/cypress/e2e/pdf-display.cy.ts
index 999821840b..afbb5ddde4 100644
--- a/cypress/e2e/pdf-display.cy.ts
+++ b/cypress/e2e/pdf-display.cy.ts
@@ -250,7 +250,8 @@ describe('PDF display', () => {
cy.contains('td', 'Entity with pdf (es)');
});
- it('should open the pdf sidepanel and show in the correct page', () => {
+ it('should open the pdf sidepanel and show the correct page', () => {
+ cy.contains('button', 'Open PDF').scrollIntoView();
cy.contains('button', 'Open PDF').realTouch();
cy.contains('Loading').should('not.exist');
cy.get('#pdf-container').within(() => {
@@ -262,23 +263,21 @@ describe('PDF display', () => {
cy.get('#root').toMatchImageSnapshot();
});
- it('should only show visible pages', () => {
- cy.get('#pdf-container').within(() => {
- cy.get('#page-1-container .page').should('be.empty');
- cy.get('#page-2-container .page').should('not.be.empty');
- cy.get('#page-3-container .page').should('not.be.empty');
- cy.get('#page-10-container .page').should('be.empty');
- cy.get('#page-10-container').scrollIntoView();
- cy.get('#page-1-container .page').should('be.empty');
- cy.get('#page-2-container .page').should('be.empty');
- cy.get('#page-3-container .page').should('be.empty');
- cy.get('#page-10-container .page').should('not.be.empty');
- cy.get('#page-11-container .page').should('not.be.empty');
- cy.contains(
- 'span[role="presentation"]',
- 'El artículo 63.2 de la Convención exige que para que la Corte pueda disponer de'
- ).should('be.visible');
- });
+ it('should check page rendering', () => {
+ cy.get('#page-1-container .page').should('be.empty');
+ cy.get('#page-2-container .page').should('not.be.empty');
+ cy.get('#page-3-container .page').should('not.be.empty');
+ cy.get('#page-10-container .page').should('be.empty');
+ cy.get('#page-10-container').scrollIntoView();
+ cy.get('#page-1-container .page').should('be.empty');
+ cy.get('#page-2-container .page').should('be.empty');
+ cy.get('#page-3-container .page').should('be.empty');
+ cy.get('#page-10-container .page').should('not.be.empty');
+ cy.get('#page-11-container .page').should('not.be.empty');
+ cy.contains(
+ 'span[role="presentation"]',
+ 'El artículo 63.2 de la Convención exige que para que la Corte pueda disponer de'
+ ).should('be.visible');
});
});
});
diff --git a/cypress/e2e/settings/__snapshots__/activitylog.cy.ts.snap b/cypress/e2e/settings/__snapshots__/activitylog.cy.ts.snap
index cee99896ce..b2bd629931 100644
--- a/cypress/e2e/settings/__snapshots__/activitylog.cy.ts.snap
+++ b/cypress/e2e/settings/__snapshots__/activitylog.cy.ts.snap
@@ -2,7 +2,7 @@ exports[`Activity log > should list the last activity log entries #0`] = `
UPDATEUPDATE
`;
@@ -14,7 +14,7 @@ exports[`Activity log > should list the last activity log entries #2`] = `
Updated user:editor (58ada34d299e82674854510e)
@@ -25,7 +25,7 @@ exports[`Activity log > should list the last activity log entries #3`] = `
CREATECREATE
`;
@@ -44,78 +44,6 @@ exports[`Activity log > should list the last activity log entries #5`] = `
`;
exports[`Activity log > should open the detail of an entry #0`] = `
-
-`;
-
-exports[`Activity log > should open the detail of an entry #1`] = `
@@ -178,7 +108,7 @@ exports[`Activity log > should open the detail of an entry #1`] = `
>Body{"_id":"58ada34d299e82674854510e","username":"editor","__v":0,"role":"editor","groups":[{"_id":"5fda2b675917fe58048a88f4","name":"Activistas"},{"_id":"5fda2b6f5917fe58048a88f6","name":"Asesores
+ >{"_id":"58ada34d299e82674854510e","username":"editor","__v":1,"role":"editor","groups":[{"_id":"5fda2b675917fe58048a88f4","name":"Activistas"},{"_id":"5fda2b6f5917fe58048a88f6","name":"Asesores
legales"}],"email":"editor@uwazi.com"}