@truedat/core 8.14.2 → 8.14.3
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/core",
|
|
3
|
-
"version": "8.14.
|
|
3
|
+
"version": "8.14.3",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
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.14.
|
|
60
|
+
"@truedat/test": "8.14.3",
|
|
61
61
|
"identity-obj-proxy": "^3.0.0",
|
|
62
62
|
"jest": "^29.7.0",
|
|
63
63
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"swr": "^2.3.3",
|
|
100
100
|
"turndown": "^7.2.2"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "ca5cc79e39ed78a1b5e317d825832e0676b011f6"
|
|
103
103
|
}
|
package/src/components/AiMenu.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useIntl } from "react-intl";
|
|
2
2
|
import { useAuthorized } from "../hooks";
|
|
3
|
-
import { ACTIONS, PROMPTS, PROVIDERS } from "../routes";
|
|
3
|
+
import { ACTIONS, CUSTOM_INSTRUCTIONS, PROMPTS, PROVIDERS } from "../routes";
|
|
4
4
|
import Submenu from "./Submenu";
|
|
5
5
|
|
|
6
6
|
export const ITEMS = [
|
|
7
7
|
{ name: "actions", routes: [ACTIONS] },
|
|
8
8
|
{ name: "providers", routes: [PROVIDERS] },
|
|
9
|
+
{ name: "customInstructions", routes: [CUSTOM_INSTRUCTIONS] },
|
|
9
10
|
{ name: "prompts", routes: [PROMPTS] },
|
|
10
11
|
];
|
|
11
12
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ITEMS } from "../AiMenu";
|
|
2
|
+
import { CUSTOM_INSTRUCTIONS, PROMPTS, PROVIDERS, ACTIONS } from "../../routes";
|
|
3
|
+
|
|
4
|
+
describe("AiMenu ITEMS", () => {
|
|
5
|
+
it("adds customInstructions without changing existing entries", () => {
|
|
6
|
+
expect(CUSTOM_INSTRUCTIONS).toBe("/custom-instructions");
|
|
7
|
+
expect(ITEMS).toEqual([
|
|
8
|
+
{ name: "actions", routes: [ACTIONS] },
|
|
9
|
+
{ name: "providers", routes: [PROVIDERS] },
|
|
10
|
+
{ name: "customInstructions", routes: [CUSTOM_INSTRUCTIONS] },
|
|
11
|
+
{ name: "prompts", routes: [PROMPTS] },
|
|
12
|
+
]);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -443,6 +443,13 @@ exports[`<SideMenu /> matches the latest snapshot 1`] = `
|
|
|
443
443
|
>
|
|
444
444
|
providers
|
|
445
445
|
</a>
|
|
446
|
+
<a
|
|
447
|
+
class="link item"
|
|
448
|
+
data-discover="true"
|
|
449
|
+
href="/custom-instructions"
|
|
450
|
+
>
|
|
451
|
+
customInstructions
|
|
452
|
+
</a>
|
|
446
453
|
<a
|
|
447
454
|
class="link item"
|
|
448
455
|
data-discover="true"
|
package/src/routes.js
CHANGED
|
@@ -177,6 +177,7 @@ export const PROFILE_EXECUTION =
|
|
|
177
177
|
export const PROFILE_GROUP = "/profileGroups/:id";
|
|
178
178
|
export const PROMPTS = "/prompts";
|
|
179
179
|
export const PROVIDERS = "/providers";
|
|
180
|
+
export const CUSTOM_INSTRUCTIONS = "/custom-instructions";
|
|
180
181
|
export const QUALITY_CONTROLS = "/qualityControls";
|
|
181
182
|
export const QUALITY_CONTROLS_DEPRECATED = "/qualityControls/deprecated";
|
|
182
183
|
export const QUALITY_CONTROLS_DRAFTS = "/qualityControls/drafts";
|
|
@@ -434,6 +435,7 @@ const routes = {
|
|
|
434
435
|
PROFILE_GROUP,
|
|
435
436
|
PROMPTS,
|
|
436
437
|
PROVIDERS,
|
|
438
|
+
CUSTOM_INSTRUCTIONS,
|
|
437
439
|
QUALITY_CONTROLS,
|
|
438
440
|
QUALITY_CONTROLS_DEPRECATED,
|
|
439
441
|
QUALITY_CONTROLS_DRAFTS,
|