@truedat/core 4.43.2 → 4.43.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.43.4] 2022-05-05
4
+
5
+ ### Added
6
+
7
+ - [TD-4586] CSV bulk update events table
8
+
3
9
  ## [4.42.3] 2022-04-13
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "4.43.2",
3
+ "version": "4.43.5",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -32,7 +32,7 @@
32
32
  "@babel/plugin-transform-modules-commonjs": "^7.15.0",
33
33
  "@babel/preset-env": "^7.15.0",
34
34
  "@babel/preset-react": "^7.14.5",
35
- "@truedat/test": "4.43.2",
35
+ "@truedat/test": "4.43.5",
36
36
  "babel-jest": "^27.0.6",
37
37
  "babel-plugin-dynamic-import-node": "^2.3.3",
38
38
  "babel-plugin-lodash": "^3.3.4",
@@ -106,5 +106,5 @@
106
106
  "react-dom": ">= 16.8.6 < 17",
107
107
  "semantic-ui-react": ">= 0.88.2 < 2.1"
108
108
  },
109
- "gitHead": "26f59c4d36ab1ecfae705bbce4320ff443cce304"
109
+ "gitHead": "ab63882af7d0c31643f56b9c7eafca813763dd9e"
110
110
  }
@@ -6,7 +6,7 @@ import PropTypes from "prop-types";
6
6
  import { useIntl } from "react-intl";
7
7
  import { CSVLink } from "react-csv";
8
8
 
9
- export const AlertExporter = ({ list, messages }) => {
9
+ export const AlertExporter = ({ list, messages, onClick, className }) => {
10
10
  const fullTranslations = joinTranslations({ list, messages });
11
11
  const { formatMessage } = useIntl();
12
12
  return (
@@ -16,6 +16,8 @@ export const AlertExporter = ({ list, messages }) => {
16
16
  data={fullTranslations}
17
17
  filename="errors.csv"
18
18
  target="_blank"
19
+ onClick={onClick}
20
+ className={className}
19
21
  >
20
22
  {formatMessage({ id: "alert.export.csv" })}
21
23
  </CSVLink>
@@ -25,6 +27,8 @@ export const AlertExporter = ({ list, messages }) => {
25
27
  AlertExporter.propTypes = {
26
28
  list: PropTypes.array,
27
29
  messages: PropTypes.array,
30
+ onClick: PropTypes.func,
31
+ className: PropTypes.string,
28
32
  };
29
33
 
30
34
  const joinTranslations = ({ list, messages }) => {
@@ -2,6 +2,7 @@ import _ from "lodash/fp";
2
2
  import React from "react";
3
3
  import { useAuthorized } from "../hooks";
4
4
  import {
5
+ STRUCTURES_UPLOAD_EVENTS,
5
6
  PENDING_STRUCTURE_NOTES,
6
7
  STRUCTURE_TAGS,
7
8
  STRUCTURE_TYPES,
@@ -19,6 +20,7 @@ const adminItems = [
19
20
 
20
21
  const structureNoteItems = [
21
22
  { name: "pending_structure_notes", routes: [PENDING_STRUCTURE_NOTES] },
23
+ { name: "structures_upload_events", routes: [STRUCTURES_UPLOAD_EVENTS] },
22
24
  ];
23
25
 
24
26
  export const CatalogMenu = () => {
@@ -30,6 +30,12 @@ exports[`<CatalogMenu /> matches the latest snapshot 1`] = `
30
30
  "/structure_notes",
31
31
  ],
32
32
  },
33
+ Object {
34
+ "name": "structures_upload_events",
35
+ "routes": Array [
36
+ "/bulk_update_template_content_events",
37
+ ],
38
+ },
33
39
  ]
34
40
  }
35
41
  name="catalog"
@@ -95,6 +95,7 @@ export default {
95
95
  "sidemenu.structure_tags": "Structure Tags",
96
96
  "sidemenu.structure_types": "Structure Types",
97
97
  "sidemenu.structures": "Structures",
98
+ "sidemenu.structures_upload_events": "My loads",
98
99
  "sidemenu.subscriptions": "Subscriptions",
99
100
  "sidemenu.tags": "Relations",
100
101
  "sidemenu.taxonomy": "Taxonomy",
@@ -98,6 +98,7 @@ export default {
98
98
  "sidemenu.structure_tags": "Etiquetas de estructura",
99
99
  "sidemenu.structure_types": "Tipos de estructura",
100
100
  "sidemenu.structures": "Estructuras",
101
+ "sidemenu.structures_upload_events": "Mis cargas",
101
102
  "sidemenu.subscriptions": "Suscripciones",
102
103
  "sidemenu.tags": "Relaciones",
103
104
  "sidemenu.taxonomy": "Dominios",
package/src/routes.js CHANGED
@@ -91,7 +91,6 @@ export const PROFILE_EXECUTION =
91
91
  "/profileGroups/:group_id/profileExecutions/:id";
92
92
  export const PROFILE_GROUP = "/profileGroups/:id";
93
93
  export const QUALITY_DASHBOARD = "/quality_dashboard";
94
-
95
94
  export const REMEDIATION_PLAN = "/rule_results/:rule_result_id/remediation";
96
95
  export const REMEDIATION_EDIT =
97
96
  "/rules/:id/implementations/:implementation_id/ruleResults/:rule_result_id/remediation/edit";
@@ -120,7 +119,7 @@ export const RULE_IMPLEMENTATION_RESULT_DETAILS =
120
119
  "/rules/:id/implementations/:implementation_id/results/:rule_result_id";
121
120
  export const RULE_IMPLEMENTATION_RESULT_SEGMENTS_RESULTS =
122
121
  "/rules/:id/implementations/:implementation_id/results/:rule_result_id/segment_results";
123
- export const RULE_IMPLEMENTATION_RESULT_DETAILS_REMEDIATION_PLAN =
122
+ export const RULE_IMPLEMENTATION_RESULT_REMEDIATION_PLAN =
124
123
  "/rules/:id/implementations/:implementation_id/results/:rule_result_id/remediation_plan";
125
124
  export const RULE_IMPLEMENTATION_RESULTS =
126
125
  "/rules/:id/implementations/:implementation_id/results";
@@ -166,6 +165,7 @@ export const STRUCTURE_VERSION = "/structures/:id/versions/:version";
166
165
  export const STRUCTURE_VERSIONS = "/structures/:id/versions";
167
166
  export const STRUCTURE_VERSION_VERSIONS =
168
167
  "/structures/:id/versions/:version/versions";
168
+ export const STRUCTURES_UPLOAD_EVENTS = "/bulk_update_template_content_events";
169
169
  export const SUBSCRIPTION = "/subscriptions/:id";
170
170
  export const SUBSCRIPTIONS = "/subscriptions";
171
171
  export const SUBSCRIPTION_NEW = "/subscriptions/new";
@@ -274,7 +274,7 @@ const routes = {
274
274
  RULE_IMPLEMENTATION_NEW,
275
275
  RULE_IMPLEMENTATION_RESULT_DETAILS,
276
276
  RULE_IMPLEMENTATION_RESULT_SEGMENTS_RESULTS,
277
- RULE_IMPLEMENTATION_RESULT_DETAILS_REMEDIATION_PLAN,
277
+ RULE_IMPLEMENTATION_RESULT_REMEDIATION_PLAN,
278
278
  RULE_IMPLEMENTATION_RESULTS_DETAILS,
279
279
  RULE_IMPLEMENTATION_RESULTS,
280
280
  RULE_IMPLEMENTATION,
@@ -319,6 +319,7 @@ const routes = {
319
319
  STRUCTURE,
320
320
  STRUCTURES_BULK_UPDATE,
321
321
  STRUCTURES,
322
+ STRUCTURES_UPLOAD_EVENTS,
322
323
  SUBSCRIPTION_EDIT,
323
324
  SUBSCRIPTION_NEW,
324
325
  SUBSCRIPTION,