@truedat/ai 8.5.7 → 8.5.8
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/components/SuggestLinkButton.js +1 -0
- package/src/components/actions/Actions.js +12 -21
- package/src/components/actions/__tests__/__snapshots__/Action.spec.js.snap +5 -1
- package/src/components/actions/__tests__/__snapshots__/ActionActions.spec.js.snap +5 -1
- package/src/components/actions/__tests__/__snapshots__/ActionEdit.spec.js.snap +1 -1
- package/src/components/actions/__tests__/__snapshots__/ActionForm.spec.js.snap +2 -2
- package/src/components/actions/__tests__/__snapshots__/ActionNew.spec.js.snap +1 -1
- package/src/components/actions/__tests__/__snapshots__/Actions.spec.js.snap +10 -22
- package/src/components/assistant/__tests__/AssistantConversations.spec.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/ai",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.8",
|
|
4
4
|
"description": "Truedat Web Artificial Intelligence package",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@testing-library/jest-dom": "^6.6.3",
|
|
51
51
|
"@testing-library/react": "^16.3.0",
|
|
52
52
|
"@testing-library/user-event": "^14.6.1",
|
|
53
|
-
"@truedat/test": "8.5.
|
|
53
|
+
"@truedat/test": "8.5.8",
|
|
54
54
|
"identity-obj-proxy": "^3.0.0",
|
|
55
55
|
"jest": "^29.7.0",
|
|
56
56
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
81
81
|
"swr": "^2.3.3"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "61ad9443b3d822d30dcfa977f5fad3494b3ed5b4"
|
|
84
84
|
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Header,
|
|
3
|
-
Icon,
|
|
4
|
-
Segment,
|
|
5
|
-
Grid,
|
|
6
|
-
Container,
|
|
7
|
-
Button,
|
|
8
|
-
} from "semantic-ui-react";
|
|
1
|
+
import { Header, Icon, Segment, Button } from "semantic-ui-react";
|
|
9
2
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
10
3
|
import { Link } from "react-router";
|
|
11
4
|
import { ACTION_NEW } from "@truedat/core/routes";
|
|
@@ -32,19 +25,17 @@ export function ActionsContent() {
|
|
|
32
25
|
</Header.Subheader>
|
|
33
26
|
</Header.Content>
|
|
34
27
|
</Header>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</Grid.Column>
|
|
47
|
-
</Grid>
|
|
28
|
+
|
|
29
|
+
<Button
|
|
30
|
+
primary
|
|
31
|
+
floated="right"
|
|
32
|
+
as={Link}
|
|
33
|
+
to={ACTION_NEW}
|
|
34
|
+
content={<FormattedMessage id="ai.actions.actions.create" />}
|
|
35
|
+
/>
|
|
36
|
+
|
|
37
|
+
<Segment clearing basic />
|
|
38
|
+
|
|
48
39
|
<ActionsTable />
|
|
49
40
|
</Segment>
|
|
50
41
|
);
|
|
@@ -71,13 +71,17 @@ exports[`<Action /> matches the latest snapshot 1`] = `
|
|
|
71
71
|
aria-hidden="true"
|
|
72
72
|
class="ellipsis vertical icon"
|
|
73
73
|
/>
|
|
74
|
+
<i
|
|
75
|
+
aria-hidden="true"
|
|
76
|
+
class="dropdown icon"
|
|
77
|
+
/>
|
|
74
78
|
<div
|
|
75
79
|
class="left menu transition"
|
|
76
80
|
>
|
|
77
81
|
<a
|
|
78
82
|
aria-checked="false"
|
|
79
83
|
aria-selected="true"
|
|
80
|
-
class="selected item"
|
|
84
|
+
class="selected item td-icon-text-control"
|
|
81
85
|
data-discover="true"
|
|
82
86
|
href="/tasks/3/edit"
|
|
83
87
|
role="option"
|
|
@@ -12,13 +12,17 @@ exports[`<ActionActions /> matches the latest snapshot 1`] = `
|
|
|
12
12
|
aria-hidden="true"
|
|
13
13
|
class="ellipsis vertical icon"
|
|
14
14
|
/>
|
|
15
|
+
<i
|
|
16
|
+
aria-hidden="true"
|
|
17
|
+
class="dropdown icon"
|
|
18
|
+
/>
|
|
15
19
|
<div
|
|
16
20
|
class="left menu transition"
|
|
17
21
|
>
|
|
18
22
|
<a
|
|
19
23
|
aria-checked="false"
|
|
20
24
|
aria-selected="true"
|
|
21
|
-
class="selected item"
|
|
25
|
+
class="selected item td-icon-text-control"
|
|
22
26
|
data-discover="true"
|
|
23
27
|
href="/tasks/3/edit"
|
|
24
28
|
role="option"
|
|
@@ -235,7 +235,7 @@ exports[`<ActionEdit /> matches the latest snapshot 1`] = `
|
|
|
235
235
|
class="ai-action-edit-form-actions actions"
|
|
236
236
|
>
|
|
237
237
|
<a
|
|
238
|
-
class="ui secondary button"
|
|
238
|
+
class="ui secondary button td-icon-text-control"
|
|
239
239
|
data-discover="true"
|
|
240
240
|
href="/"
|
|
241
241
|
role="button"
|
|
@@ -191,7 +191,7 @@ exports[`<ActionForm /> matches the latest snapshot when is creating 1`] = `
|
|
|
191
191
|
class="ai-action-edit-form-actions actions"
|
|
192
192
|
>
|
|
193
193
|
<a
|
|
194
|
-
class="ui secondary button"
|
|
194
|
+
class="ui secondary button td-icon-text-control"
|
|
195
195
|
data-discover="true"
|
|
196
196
|
href="/"
|
|
197
197
|
role="button"
|
|
@@ -386,7 +386,7 @@ exports[`<ActionForm /> matches the latest snapshot when is editing 1`] = `
|
|
|
386
386
|
class="ai-action-edit-form-actions actions"
|
|
387
387
|
>
|
|
388
388
|
<a
|
|
389
|
-
class="ui secondary button"
|
|
389
|
+
class="ui secondary button td-icon-text-control"
|
|
390
390
|
data-discover="true"
|
|
391
391
|
href="/"
|
|
392
392
|
role="button"
|
|
@@ -250,7 +250,7 @@ exports[`<ActionNew /> matches the latest snapshot 1`] = `
|
|
|
250
250
|
class="ai-action-edit-form-actions actions"
|
|
251
251
|
>
|
|
252
252
|
<a
|
|
253
|
-
class="ui secondary button"
|
|
253
|
+
class="ui secondary button td-icon-text-control"
|
|
254
254
|
data-discover="true"
|
|
255
255
|
href="/"
|
|
256
256
|
role="button"
|
|
@@ -23,29 +23,17 @@ exports[`<Actions /> matches the latest snapshot 1`] = `
|
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
</h2>
|
|
26
|
-
<
|
|
27
|
-
class="ui
|
|
26
|
+
<a
|
|
27
|
+
class="ui primary right floated button"
|
|
28
|
+
data-discover="true"
|
|
29
|
+
href="/tasks/new"
|
|
30
|
+
role="button"
|
|
28
31
|
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
>
|
|
35
|
-
<div
|
|
36
|
-
class="ui right aligned container"
|
|
37
|
-
>
|
|
38
|
-
<a
|
|
39
|
-
class="ui primary button"
|
|
40
|
-
data-discover="true"
|
|
41
|
-
href="/tasks/new"
|
|
42
|
-
role="button"
|
|
43
|
-
>
|
|
44
|
-
ai.actions.actions.create
|
|
45
|
-
</a>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
32
|
+
ai.actions.actions.create
|
|
33
|
+
</a>
|
|
34
|
+
<div
|
|
35
|
+
class="ui basic clearing segment"
|
|
36
|
+
/>
|
|
49
37
|
<h4
|
|
50
38
|
class="ui header"
|
|
51
39
|
>
|
|
@@ -33,6 +33,21 @@ const defaultProps = {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
describe("<AssistantConversations />", () => {
|
|
36
|
+
beforeAll(() => {
|
|
37
|
+
jest.spyOn(Date.prototype, "toLocaleString").mockImplementation(
|
|
38
|
+
function (_, options) {
|
|
39
|
+
return new Intl.DateTimeFormat("en", {
|
|
40
|
+
...options,
|
|
41
|
+
timeZone: "UTC",
|
|
42
|
+
}).format(this);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
afterAll(() => {
|
|
48
|
+
jest.restoreAllMocks();
|
|
49
|
+
});
|
|
50
|
+
|
|
36
51
|
beforeEach(() => {
|
|
37
52
|
jest.clearAllMocks();
|
|
38
53
|
});
|