@truedat/audit 8.6.0 → 8.6.1
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/audit",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.1",
|
|
4
4
|
"description": "Truedat Web Audit Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@testing-library/jest-dom": "^6.6.3",
|
|
52
52
|
"@testing-library/react": "^16.3.0",
|
|
53
53
|
"@testing-library/user-event": "^14.6.1",
|
|
54
|
-
"@truedat/test": "8.6.
|
|
54
|
+
"@truedat/test": "8.6.1",
|
|
55
55
|
"identity-obj-proxy": "^3.0.0",
|
|
56
56
|
"jest": "^29.7.0",
|
|
57
57
|
"redux-saga-test-plan": "^4.0.6"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
84
84
|
"swr": "^2.3.3"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "932eb0895ec71961f52a09309b99ae017977a899"
|
|
87
87
|
}
|
|
@@ -20,8 +20,8 @@ export const NotificationsMenu = ({
|
|
|
20
20
|
}, []);
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
|
-
|
|
24
|
-
{unread_counter > 0
|
|
23
|
+
<div className="item notifications-menu">
|
|
24
|
+
{unread_counter > 0 ? (
|
|
25
25
|
<Label
|
|
26
26
|
circular
|
|
27
27
|
color="red"
|
|
@@ -30,8 +30,8 @@ export const NotificationsMenu = ({
|
|
|
30
30
|
>
|
|
31
31
|
{unread_counter}
|
|
32
32
|
</Label>
|
|
33
|
-
)}
|
|
34
|
-
<Dropdown
|
|
33
|
+
) : null}
|
|
34
|
+
<Dropdown icon="bell" onOpen={fetchNotifications} scrolling>
|
|
35
35
|
<Dropdown.Menu direction="left" className="notifications-dropdown">
|
|
36
36
|
<Dropdown.Header>
|
|
37
37
|
<FormattedMessage id="navigation.notifications" />
|
|
@@ -64,7 +64,7 @@ export const NotificationsMenu = ({
|
|
|
64
64
|
date={inserted_at}
|
|
65
65
|
/>
|
|
66
66
|
</Dropdown.Item>
|
|
67
|
-
))
|
|
67
|
+
)),
|
|
68
68
|
)
|
|
69
69
|
) : (
|
|
70
70
|
<Dropdown.Item disabled>
|
|
@@ -73,7 +73,7 @@ export const NotificationsMenu = ({
|
|
|
73
73
|
)}
|
|
74
74
|
</Dropdown.Menu>
|
|
75
75
|
</Dropdown>
|
|
76
|
-
|
|
76
|
+
</div>
|
|
77
77
|
);
|
|
78
78
|
};
|
|
79
79
|
|
|
@@ -3,57 +3,61 @@
|
|
|
3
3
|
exports[`<NotificationsMenu /> matches the latest snapshot 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
|
|
7
|
-
class="ui item scrolling dropdown"
|
|
8
|
-
role="listbox"
|
|
9
|
-
tabindex="0"
|
|
6
|
+
class="item notifications-menu"
|
|
10
7
|
>
|
|
11
|
-
<i
|
|
12
|
-
aria-hidden="true"
|
|
13
|
-
class="bell icon"
|
|
14
|
-
/>
|
|
15
8
|
<div
|
|
16
|
-
|
|
9
|
+
aria-expanded="false"
|
|
10
|
+
class="ui scrolling dropdown"
|
|
11
|
+
role="listbox"
|
|
12
|
+
tabindex="0"
|
|
17
13
|
>
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
navigation.notifications
|
|
22
|
-
</div>
|
|
23
|
-
<div
|
|
24
|
-
class="divider"
|
|
14
|
+
<i
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
class="bell icon"
|
|
25
17
|
/>
|
|
26
|
-
<
|
|
27
|
-
class="
|
|
28
|
-
href="foo/1/bar"
|
|
29
|
-
role="option"
|
|
18
|
+
<div
|
|
19
|
+
class="left menu transition notifications-dropdown"
|
|
30
20
|
>
|
|
31
21
|
<div
|
|
32
|
-
class="
|
|
22
|
+
class="header"
|
|
23
|
+
>
|
|
24
|
+
navigation.notifications
|
|
25
|
+
</div>
|
|
26
|
+
<div
|
|
27
|
+
class="divider"
|
|
28
|
+
/>
|
|
29
|
+
<a
|
|
30
|
+
class="item item"
|
|
31
|
+
href="foo/1/bar"
|
|
32
|
+
role="option"
|
|
33
33
|
>
|
|
34
|
-
<
|
|
34
|
+
<div
|
|
35
|
+
class="notification-item unread"
|
|
36
|
+
>
|
|
37
|
+
<h4>
|
|
38
|
+
<div
|
|
39
|
+
class="ui orange mini basic label"
|
|
40
|
+
>
|
|
41
|
+
notifications.new
|
|
42
|
+
</div>
|
|
43
|
+
notifications.events.default
|
|
44
|
+
</h4>
|
|
45
|
+
<p>
|
|
46
|
+
bar
|
|
47
|
+
</p>
|
|
35
48
|
<div
|
|
36
|
-
class="ui
|
|
49
|
+
class="ui label"
|
|
37
50
|
>
|
|
38
|
-
|
|
51
|
+
foo
|
|
39
52
|
</div>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<div
|
|
46
|
-
class="ui label"
|
|
47
|
-
>
|
|
48
|
-
foo
|
|
53
|
+
<time
|
|
54
|
+
datetime="1735689600000"
|
|
55
|
+
>
|
|
56
|
+
a few seconds ago
|
|
57
|
+
</time>
|
|
49
58
|
</div>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
>
|
|
53
|
-
a few seconds ago
|
|
54
|
-
</time>
|
|
55
|
-
</div>
|
|
56
|
-
</a>
|
|
59
|
+
</a>
|
|
60
|
+
</div>
|
|
57
61
|
</div>
|
|
58
62
|
</div>
|
|
59
63
|
</div>
|
|
@@ -62,58 +66,62 @@ exports[`<NotificationsMenu /> matches the latest snapshot 1`] = `
|
|
|
62
66
|
exports[`<NotificationsMenu /> matches the latest snapshot with external notification 1`] = `
|
|
63
67
|
<div>
|
|
64
68
|
<div
|
|
65
|
-
|
|
66
|
-
class="ui item scrolling dropdown"
|
|
67
|
-
role="listbox"
|
|
68
|
-
tabindex="0"
|
|
69
|
+
class="item notifications-menu"
|
|
69
70
|
>
|
|
70
|
-
<i
|
|
71
|
-
aria-hidden="true"
|
|
72
|
-
class="bell icon"
|
|
73
|
-
/>
|
|
74
71
|
<div
|
|
75
|
-
|
|
72
|
+
aria-expanded="false"
|
|
73
|
+
class="ui scrolling dropdown"
|
|
74
|
+
role="listbox"
|
|
75
|
+
tabindex="0"
|
|
76
76
|
>
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
navigation.notifications
|
|
81
|
-
</div>
|
|
82
|
-
<div
|
|
83
|
-
class="divider"
|
|
77
|
+
<i
|
|
78
|
+
aria-hidden="true"
|
|
79
|
+
class="bell icon"
|
|
84
80
|
/>
|
|
85
|
-
<
|
|
86
|
-
class="
|
|
87
|
-
href="http://foo.bar"
|
|
88
|
-
role="option"
|
|
89
|
-
target="_blank"
|
|
81
|
+
<div
|
|
82
|
+
class="left menu transition notifications-dropdown"
|
|
90
83
|
>
|
|
91
84
|
<div
|
|
92
|
-
class="
|
|
85
|
+
class="header"
|
|
86
|
+
>
|
|
87
|
+
navigation.notifications
|
|
88
|
+
</div>
|
|
89
|
+
<div
|
|
90
|
+
class="divider"
|
|
91
|
+
/>
|
|
92
|
+
<a
|
|
93
|
+
class="item item"
|
|
94
|
+
href="http://foo.bar"
|
|
95
|
+
role="option"
|
|
96
|
+
target="_blank"
|
|
93
97
|
>
|
|
94
|
-
<
|
|
98
|
+
<div
|
|
99
|
+
class="notification-item unread"
|
|
100
|
+
>
|
|
101
|
+
<h4>
|
|
102
|
+
<div
|
|
103
|
+
class="ui orange mini basic label"
|
|
104
|
+
>
|
|
105
|
+
notifications.new
|
|
106
|
+
</div>
|
|
107
|
+
↗ undefined
|
|
108
|
+
</h4>
|
|
109
|
+
<p>
|
|
110
|
+
bar
|
|
111
|
+
</p>
|
|
95
112
|
<div
|
|
96
|
-
class="ui
|
|
113
|
+
class="ui label"
|
|
97
114
|
>
|
|
98
|
-
|
|
115
|
+
external_notification
|
|
99
116
|
</div>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<div
|
|
106
|
-
class="ui label"
|
|
107
|
-
>
|
|
108
|
-
external_notification
|
|
117
|
+
<time
|
|
118
|
+
datetime="1735689600000"
|
|
119
|
+
>
|
|
120
|
+
a few seconds ago
|
|
121
|
+
</time>
|
|
109
122
|
</div>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
>
|
|
113
|
-
a few seconds ago
|
|
114
|
-
</time>
|
|
115
|
-
</div>
|
|
116
|
-
</a>
|
|
123
|
+
</a>
|
|
124
|
+
</div>
|
|
117
125
|
</div>
|
|
118
126
|
</div>
|
|
119
127
|
</div>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.notifications-dropdown .item {
|
|
2
|
+
width: 400px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.notifications-loading {
|
|
6
|
+
min-height: 60px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.notification-item {
|
|
10
|
+
h4,
|
|
11
|
+
p {
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
p {
|
|
19
|
+
line-height: 2.5em;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
time {
|
|
23
|
+
font-size: 0.857em;
|
|
24
|
+
opacity: 0.7;
|
|
25
|
+
float: right;
|
|
26
|
+
line-height: 2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ui.menu .item.notifications-menu {
|
|
31
|
+
position: relative;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
background: rgba(0, 0, 0, 0.03);
|
|
35
|
+
}
|
|
36
|
+
.notifications-counter {
|
|
37
|
+
position: absolute;
|
|
38
|
+
left: -5px;
|
|
39
|
+
top: 10px;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.subscription-header {
|
|
2
|
+
.button {
|
|
3
|
+
float: right;
|
|
4
|
+
margin-top: 0.65em !important;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.subscription-table {
|
|
9
|
+
.icon {
|
|
10
|
+
color: #555;
|
|
11
|
+
margin-right: 0.45em;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.subscription-form-radio-group, .subscriptions-checkbox-filters {
|
|
16
|
+
.icon {
|
|
17
|
+
color: #555;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.radio + .radio {
|
|
21
|
+
margin-left: 2em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.radio:after {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.subscription-form-radio-group {
|
|
30
|
+
.radio + .radio {
|
|
31
|
+
margin-left: 2em;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.radio:after {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.subscriptions-checkbox-filters {
|
|
40
|
+
.checkbox + .checkbox {
|
|
41
|
+
margin-left: 2em;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.subscription-form-checkbox-group {
|
|
46
|
+
.icon {
|
|
47
|
+
color: #555;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.checkbox + .checkbox {
|
|
51
|
+
margin-left: 2em;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.checkbox:after {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|