@truedat/dd 5.0.4 → 5.0.7

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
+ ## [5.0.7] 2023-02-07
4
+
5
+ ### Added
6
+
7
+ - [TD-5479] Show external_ref in grants
8
+
3
9
  ## [5.0.0] 2023-01-24
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "5.0.4",
3
+ "version": "5.0.7",
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.16.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "5.0.4",
37
+ "@truedat/test": "5.0.5",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -87,9 +87,9 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@apollo/client": "^3.7.1",
90
- "@truedat/auth": "5.0.4",
91
- "@truedat/core": "5.0.4",
92
- "@truedat/df": "5.0.4",
90
+ "@truedat/auth": "5.0.5",
91
+ "@truedat/core": "5.0.5",
92
+ "@truedat/df": "5.0.5",
93
93
  "lodash": "^4.17.21",
94
94
  "moment": "^2.29.4",
95
95
  "path-to-regexp": "^1.7.0",
@@ -114,5 +114,5 @@
114
114
  "react-dom": ">= 16.8.6 < 17",
115
115
  "semantic-ui-react": ">= 2.0.3 < 2.2"
116
116
  },
117
- "gitHead": "91d484a16499494eedec012362b3a7f45cb1cbc9"
117
+ "gitHead": "5919ee71f696378a71010642f5bcd2fb6c68f1c7"
118
118
  }
@@ -171,6 +171,14 @@ export const Grant = ({ grant, actions, loading, onStatusChange }) => {
171
171
  </List.Description>
172
172
  </List.Item>
173
173
  )}
174
+ {grant?.external_ref && (
175
+ <List.Item>
176
+ <List.Header>
177
+ {formatMessage({ id: "grant.header.external_ref" })}
178
+ </List.Header>
179
+ <List.Description>{grant?.external_ref}</List.Description>
180
+ </List.Item>
181
+ )}
174
182
  <List.Item>
175
183
  <List.Header>
176
184
  {formatMessage({ id: "grant.header.created_at" })}
@@ -38,6 +38,7 @@ describe("<Grant />", () => {
38
38
  end_date: "2019-12-31",
39
39
  inserted_at: "2022-12-12T12:49:09.789722Z",
40
40
  pending_removal: false,
41
+ external_ref: "foo",
41
42
  user: {
42
43
  email: "foo@gmail.com",
43
44
  full_name: "foo user",
@@ -124,6 +124,21 @@ exports[`<Grant /> matches the latest snapshot 1`] = `
124
124
  </h4>
125
125
  </div>
126
126
  </div>
127
+ <div
128
+ class="item"
129
+ role="listitem"
130
+ >
131
+ <div
132
+ class="header"
133
+ >
134
+ External reference
135
+ </div>
136
+ <div
137
+ class="description"
138
+ >
139
+ foo
140
+ </div>
141
+ </div>
127
142
  <div
128
143
  class="item"
129
144
  role="listitem"
@@ -330,6 +345,21 @@ exports[`<Grant /> matches the latest snapshot with cancel_removal action 1`] =
330
345
  </h4>
331
346
  </div>
332
347
  </div>
348
+ <div
349
+ class="item"
350
+ role="listitem"
351
+ >
352
+ <div
353
+ class="header"
354
+ >
355
+ External reference
356
+ </div>
357
+ <div
358
+ class="description"
359
+ >
360
+ foo
361
+ </div>
362
+ </div>
333
363
  <div
334
364
  class="item"
335
365
  role="listitem"
@@ -588,6 +618,21 @@ exports[`<Grant /> matches the latest snapshot with update action 1`] = `
588
618
  </h4>
589
619
  </div>
590
620
  </div>
621
+ <div
622
+ class="item"
623
+ role="listitem"
624
+ >
625
+ <div
626
+ class="header"
627
+ >
628
+ External reference
629
+ </div>
630
+ <div
631
+ class="description"
632
+ >
633
+ foo
634
+ </div>
635
+ </div>
591
636
  <div
592
637
  class="item"
593
638
  role="listitem"
@@ -52,15 +52,16 @@ export default {
52
52
  "grant.cell.end_date.null": "No expiration set",
53
53
  "grant.cell.end_date.pending_removal": "Grant pending removal",
54
54
  "grant.cell.end_date.same_user": "It's you",
55
- "grant.header": "Grants",
55
+ "grant.header.created_at": "Grant created",
56
56
  "grant.header.data_structure": "Structure",
57
+ "grant.header.details": "Details",
58
+ "grant.header.end_date": "Expires",
59
+ "grant.header.external_ref": "External reference",
57
60
  "grant.header.id": "Id",
58
- "grant.header.user": "Account",
59
- "grant.header.user_name": "User name",
60
- "grant.header.created_at": "Grant created",
61
61
  "grant.header.start_date": "Access granted",
62
- "grant.header.end_date": "Expires",
63
- "grant.header.details": "Details",
62
+ "grant.header.user_name": "User name",
63
+ "grant.header.user": "Account",
64
+ "grant.header": "Grants",
64
65
  "grant.updated_at": "Last changed",
65
66
  "grantApprovalRule.action": "Action",
66
67
  "grantApprovalRule.action.approve": "Approve",
@@ -56,15 +56,16 @@ export default {
56
56
  "grant.cell.end_date.null": "Sin fecha de expiración",
57
57
  "grant.cell.end_date.pending_removal": "Solicitada expiración del acceso",
58
58
  "grant.cell.end_date.same_user": "Eres tú",
59
- "grant.header": "Acceso",
59
+ "grant.header.created_at": "Acceso creado",
60
60
  "grant.header.data_structure": "Estructura",
61
+ "grant.header.details": "Detalles",
62
+ "grant.header.end_date": "Expira",
63
+ "grant.header.external_ref": "Referencia externa",
61
64
  "grant.header.id": "Id",
62
- "grant.header.user": "Cuenta",
63
- "grant.header.user_name": "Usuario",
64
- "grant.header.created_at": "Acceso creado",
65
65
  "grant.header.start_date": "Acceso desde",
66
- "grant.header.end_date": "Expira",
67
- "grant.header.details": "Detalles",
66
+ "grant.header.user_name": "Usuario",
67
+ "grant.header.user": "Cuenta",
68
+ "grant.header": "Acceso",
68
69
  "grant.updated_at": "Actualizada",
69
70
  "grantApprovalRules.header": "Reglas de aprobación",
70
71
  "grantApprovalRules.subheader":