@truedat/dd 4.43.5 → 4.43.6

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.6] 2022-05-06
4
+
5
+ ### Changed
6
+
7
+ - [TD-4586] Simplify accepted CSV message and include link to 'my loads'.
8
+
3
9
  ## [4.43.4] 2022-05-05
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.43.5",
3
+ "version": "4.43.6",
4
4
  "description": "Truedat Web Data Dictionary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.14.1",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.43.5",
37
+ "@truedat/test": "4.43.6",
38
38
  "babel-jest": "^27.0.6",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -84,9 +84,9 @@
84
84
  ]
85
85
  },
86
86
  "dependencies": {
87
- "@truedat/auth": "4.43.5",
88
- "@truedat/core": "4.43.5",
89
- "@truedat/df": "4.43.5",
87
+ "@truedat/auth": "4.43.6",
88
+ "@truedat/core": "4.43.6",
89
+ "@truedat/df": "4.43.6",
90
90
  "lodash": "^4.17.21",
91
91
  "path-to-regexp": "^1.7.0",
92
92
  "prop-types": "^15.7.2",
@@ -107,5 +107,5 @@
107
107
  "react-dom": ">= 16.8.6 < 17",
108
108
  "semantic-ui-react": ">= 0.88.2 < 2.1"
109
109
  },
110
- "gitHead": "ab63882af7d0c31643f56b9c7eafca813763dd9e"
110
+ "gitHead": "848143d79486499dd9deadea6a545929b5cdb39c"
111
111
  }
@@ -396,7 +396,7 @@ export default {
396
396
  "structures.bulkUpdateStructures.success.header":
397
397
  "Bulk update completed. Loaded {count_ids} errors {count_errors}",
398
398
  "structures.bulkUpdateStructures.success.accepted.header":
399
- "Bulk update accepted (status: {status}): CSV hash: {csv_hash}, task reference: {task_reference}",
399
+ "CSV accepted. Status can be checked at the link below:",
400
400
  "structures.bulkUpdateStructures.success.errors":
401
401
  "Error in external id {externalId}, message: {message}",
402
402
  "structures.bulkUploadEvents.header": "Notes upload events",
@@ -406,7 +406,8 @@ export default {
406
406
  "structures.bulkUploadEvents.props.response": "Response",
407
407
  "structures.bulkUploadEvents.props.message": "Message",
408
408
  "structures.bulkUploadEvents.props.inserted_at": "Date",
409
- "structures.bulkUploadEvents.results.empty": "No structure notes CSV bulk upload events found",
409
+ "structures.bulkUploadEvents.results.empty":
410
+ "No structure notes CSV bulk upload events found",
410
411
  "structures.bulkUploadEvents.status.already_calculated": "Already calculated",
411
412
  "structures.bulkUploadEvents.status.already_started": "Already started",
412
413
  "structures.bulkUploadEvents.status.completed": "Completed",
@@ -402,18 +402,21 @@ export default {
402
402
  "structures.bulkUpdateStructures.success.header":
403
403
  "¡Actualización finalizada! subidos {count_ids} errores {count_errors}",
404
404
  "structures.bulkUpdateStructures.success.accepted.header":
405
- "CSV aceptado (estado: {status}): Hash del fichero: {csv_hash}, referencia de task: {task_reference}",
405
+ "CSV aceptado. Puede comprobar el estado en el siguiente enlace:",
406
406
  "structures.bulkUpdateStructures.success.errors":
407
407
  "Error en external id {externalId}, mensaje: {message}",
408
408
  "structures.bulkUploadEvents.header": "Eventos de subida de notas",
409
- "structures.bulkUploadEvents.subheader": "Eventos de subida de notas de estructuras por CSV",
409
+ "structures.bulkUploadEvents.subheader":
410
+ "Eventos de subida de notas de estructuras por CSV",
410
411
  "structures.bulkUploadEvents.props.csv_hash": "Hash de CSV",
411
412
  "structures.bulkUploadEvents.props.status": "Estado",
412
413
  "structures.bulkUploadEvents.props.response": "Respuesta",
413
414
  "structures.bulkUploadEvents.props.message": "Mensaje",
414
415
  "structures.bulkUploadEvents.props.inserted_at": "Fecha",
415
- "structures.bulkUploadEvents.results.empty": "Ningún evento de subida de notas por CSV encontrado",
416
- "structures.bulkUploadEvents.status.already_calculated": "Previamente calculado",
416
+ "structures.bulkUploadEvents.results.empty":
417
+ "Ningún evento de subida de notas por CSV encontrado",
418
+ "structures.bulkUploadEvents.status.already_calculated":
419
+ "Previamente calculado",
417
420
  "structures.bulkUploadEvents.status.already_started": "Previamente iniciado",
418
421
  "structures.bulkUploadEvents.status.completed": "Finalizado",
419
422
  "structures.bulkUploadEvents.status.failed": "Fallido",
@@ -1,5 +1,6 @@
1
1
  import _ from "lodash/fp";
2
2
  import { dismissAlert } from "@truedat/core/routines";
3
+ import { STRUCTURES_UPLOAD_EVENTS } from "@truedat/core/routes";
3
4
  import {
4
5
  bulkUpdateStructures,
5
6
  uploadStructures,
@@ -42,33 +43,31 @@ const bulkUpdateErrors = (payload) => {
42
43
  };
43
44
  };
44
45
 
45
- const bulkUpdateAccepted = ({ csv_hash, status, task_reference }) => {
46
+ const bulkUpdateAccepted = () => {
46
47
  return {
47
48
  error: false,
48
49
  header: "structures.bulkUpdateStructures.success.accepted.header",
49
50
  icon: "check",
50
51
  color: "blue",
51
52
  text: "",
52
- fields: { csv_hash, status, task_reference },
53
+ anchor: {
54
+ reference: STRUCTURES_UPLOAD_EVENTS,
55
+ label: "sidemenu.structures_upload_events",
56
+ },
53
57
  };
54
58
  };
55
59
 
56
60
  const ddMessage = (state = initialState, { type, payload }) => {
57
-
58
61
  switch (type) {
59
62
  case dismissAlert.TRIGGER:
60
63
  return initialState;
61
64
  case uploadStructures.SUCCESS:
62
65
  case bulkUpdateStructures.SUCCESS: {
63
-
64
-
65
66
  if (payload.status === 202) {
66
- return bulkUpdateAccepted(payload.data)
67
+ return bulkUpdateAccepted(payload.data);
67
68
  } else if (payload.status === 200) {
68
- return bulkUpdateErrors(payload)
69
+ return bulkUpdateErrors(payload);
69
70
  }
70
-
71
-
72
71
  }
73
72
 
74
73
  case uploadStructuresDomains.SUCCESS: {