@truedat/core 6.0.0 → 6.0.2
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": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Truedat Web Core",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"jsnext:main": "src/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@testing-library/jest-dom": "^5.16.5",
|
|
36
36
|
"@testing-library/react": "^12.0.0",
|
|
37
37
|
"@testing-library/user-event": "^13.2.1",
|
|
38
|
-
"@truedat/test": "6.0.
|
|
38
|
+
"@truedat/test": "6.0.2",
|
|
39
39
|
"babel-jest": "^28.1.0",
|
|
40
40
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
41
41
|
"babel-plugin-lodash": "^3.3.4",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"react-dom": ">= 16.8.6 < 17",
|
|
118
118
|
"semantic-ui-react": ">= 2.0.3 < 2.2"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "dab67cd6f569ca6de2fd8e0b5de260cb5ee261c3"
|
|
121
121
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useAuthorized } from "../hooks";
|
|
3
|
+
import { RESOURCE_MAPPINGS, PROMPTS } from "../routes";
|
|
4
|
+
import Submenu from "./Submenu";
|
|
5
|
+
|
|
6
|
+
export const ITEMS = [
|
|
7
|
+
{ name: "resource_mappings", routes: [RESOURCE_MAPPINGS] },
|
|
8
|
+
{ name: "prompts", routes: [PROMPTS] },
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export default function AiMenu() {
|
|
12
|
+
const authorized = useAuthorized("manage_ai");
|
|
13
|
+
|
|
14
|
+
return authorized ? (
|
|
15
|
+
<Submenu
|
|
16
|
+
items={ITEMS}
|
|
17
|
+
icon="lightbulb outline"
|
|
18
|
+
name="artificial_intelligence"
|
|
19
|
+
/>
|
|
20
|
+
) : null;
|
|
21
|
+
}
|
|
@@ -36,7 +36,10 @@ const structureNoteItems = [
|
|
|
36
36
|
const catalogViewConfigItems = (formatMessage) =>
|
|
37
37
|
_.flow(
|
|
38
38
|
_.map(({ fieldType, fieldName }) => ({
|
|
39
|
-
name: formatMessage({
|
|
39
|
+
name: formatMessage({
|
|
40
|
+
id: `${fieldType}.${fieldName}`,
|
|
41
|
+
defaultMessage: `${fieldType}.${fieldName}`,
|
|
42
|
+
}),
|
|
40
43
|
routes: [
|
|
41
44
|
linkTo.BUCKETS_VIEW({ propertyPath: `${fieldType}.${fieldName}` }),
|
|
42
45
|
],
|
|
@@ -3,6 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
4
|
import { Menu, Sidebar } from "semantic-ui-react";
|
|
5
5
|
import AdminMenu from "./AdminMenu";
|
|
6
|
+
import AiMenu from "./AiMenu";
|
|
6
7
|
import CatalogMenu from "./CatalogMenu";
|
|
7
8
|
import DashboardMenu from "./DashboardMenu";
|
|
8
9
|
import GlossaryMenu from "./GlossaryMenu";
|
|
@@ -44,6 +45,7 @@ export const SideMenu = ({
|
|
|
44
45
|
<LineageMenu />
|
|
45
46
|
<IngestMenu />
|
|
46
47
|
<DashboardMenu />
|
|
48
|
+
<AiMenu />
|
|
47
49
|
<TaxonomyMenu />
|
|
48
50
|
<MembersMenu />
|
|
49
51
|
<AdminMenu />
|
package/src/routes.js
CHANGED
|
@@ -145,6 +145,7 @@ export const PENDING_STRUCTURE_NOTES = "/structureNotes";
|
|
|
145
145
|
export const PROFILE_EXECUTION =
|
|
146
146
|
"/profileGroups/:group_id/profileExecutions/:id";
|
|
147
147
|
export const PROFILE_GROUP = "/profileGroups/:id";
|
|
148
|
+
export const PROMPTS = "/prompts";
|
|
148
149
|
export const QUALITY_CONTROLS = "/qualityControls";
|
|
149
150
|
export const QUALITY_CONTROLS_DEPRECATED = "/qualityControls/deprecated";
|
|
150
151
|
export const QUALITY_CONTROLS_DRAFTS = "/qualityControls/drafts";
|
|
@@ -171,6 +172,7 @@ export const REMEDIATION_EDIT =
|
|
|
171
172
|
export const REMEDIATION_NEW =
|
|
172
173
|
"/rules/:id/implementations/:implementation_id/results/:rule_result_id/remediation/new";
|
|
173
174
|
export const REMEDIATION_PLAN = "/rule_results/:rule_result_id/remediation";
|
|
175
|
+
export const RESOURCE_MAPPINGS = "/resource_mappings";
|
|
174
176
|
export const ROLE = "/roles/:id";
|
|
175
177
|
export const ROLES = "/roles";
|
|
176
178
|
export const ROLES_NEW = "/roles/new";
|
|
@@ -359,6 +361,7 @@ const routes = {
|
|
|
359
361
|
PENDING_STRUCTURE_NOTES,
|
|
360
362
|
PROFILE_EXECUTION,
|
|
361
363
|
PROFILE_GROUP,
|
|
364
|
+
PROMPTS,
|
|
362
365
|
QUALITY_CONTROLS,
|
|
363
366
|
QUALITY_CONTROLS_DEPRECATED,
|
|
364
367
|
QUALITY_CONTROLS_DRAFTS,
|
|
@@ -380,6 +383,7 @@ const routes = {
|
|
|
380
383
|
REMEDIATION_EDIT,
|
|
381
384
|
REMEDIATION_NEW,
|
|
382
385
|
REMEDIATION_PLAN,
|
|
386
|
+
RESOURCE_MAPPINGS,
|
|
383
387
|
ROLE,
|
|
384
388
|
ROLES,
|
|
385
389
|
ROLES_NEW,
|