@truedat/dd 4.45.8 → 4.46.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.46.1] 2022-06-15
4
+
5
+ ### Fixed
6
+
7
+ - [TD-4937] Show all columns in `StructureGrants` component, include missing
8
+ translation
9
+
3
10
  ## [4.45.8] 2022-06-09
4
11
 
5
12
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dd",
3
- "version": "4.45.8",
3
+ "version": "4.46.2",
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.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.45.8",
37
+ "@truedat/test": "4.46.2",
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",
@@ -88,9 +88,9 @@
88
88
  },
89
89
  "dependencies": {
90
90
  "@apollo/client": "^3.6.4",
91
- "@truedat/auth": "4.45.8",
92
- "@truedat/core": "4.45.8",
93
- "@truedat/df": "4.45.8",
91
+ "@truedat/auth": "4.46.2",
92
+ "@truedat/core": "4.46.2",
93
+ "@truedat/df": "4.46.2",
94
94
  "lodash": "^4.17.21",
95
95
  "path-to-regexp": "^1.7.0",
96
96
  "prop-types": "^15.8.1",
@@ -111,5 +111,5 @@
111
111
  "react-dom": ">= 16.8.6 < 17",
112
112
  "semantic-ui-react": ">= 0.88.2 < 2.1"
113
113
  },
114
- "gitHead": "1b5acb1dc1233181e5a47353fd8a5da1424e7a47"
114
+ "gitHead": "161f3fae4428ee4e4e26b62fd2f9764ce389d0e2"
115
115
  }
@@ -20,9 +20,6 @@ export const RemovalButtonDecorator = (grant) => (
20
20
 
21
21
  export const StructureGrants = ({ columns, grants, userPermissions }) => {
22
22
  const { formatMessage } = useIntl();
23
- const filteredColumns = _.filter((c) => _.any(_.prop(c.name))(grants))(
24
- columns
25
- );
26
23
  const canUpdateRemoval = _.getOr(
27
24
  false,
28
25
  "update_grant_removal"
@@ -45,7 +42,7 @@ export const StructureGrants = ({ columns, grants, userPermissions }) => {
45
42
  <Table basic="very">
46
43
  <Table.Header>
47
44
  <Table.Row>
48
- {filteredColumns.map((column, i) => (
45
+ {columns.map((column, i) => (
49
46
  <Table.HeaderCell
50
47
  key={i}
51
48
  textAlign={column.textAlign}
@@ -67,7 +67,7 @@ export const StructureTabPane = ({ activeTab, tabVisibility }) => (
67
67
  {activeTab === "versions" && <StructureVersions />}
68
68
  {activeTab === "events" && <StructureEvents />}
69
69
  {activeTab === "rules" && tabVisibility.rules && (
70
- <RuleImplementationsTable />
70
+ <RuleImplementationsTable withoutColumns={["status"]} />
71
71
  )}
72
72
  {activeTab === "metadata" && tabVisibility.metadata && (
73
73
  <StructureMetadata />
@@ -26,6 +26,11 @@ exports[`<StructureGrants /> matches the latest snapshot 1`] = `
26
26
  >
27
27
  Date
28
28
  </th>
29
+ <th
30
+ class=""
31
+ >
32
+ foo
33
+ </th>
29
34
  </tr>
30
35
  </thead>
31
36
  <tbody
@@ -105,9 +105,7 @@ export const StartDateDecorator = ({ start_date }) => {
105
105
  const { locale } = useIntl();
106
106
  return (
107
107
  <Popup
108
- content={
109
- <Moment locale={locale} date={start_date} format="YYYY-MM-DD HH:mm" />
110
- }
108
+ content={<Moment locale={locale} date={start_date} format="YYYY-MM-DD" />}
111
109
  trigger={
112
110
  <Header>
113
111
  <Header.Subheader>