invenio-app-rdm 14.0.0b4.dev0__py2.py3-none-any.whl → 14.0.0b4.dev1__py2.py3-none-any.whl

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.
@@ -17,6 +17,6 @@
17
17
  #
18
18
  # See PEP 0440 for details - https://www.python.org/dev/peps/pep-0440
19
19
 
20
- __version__ = "14.0.0b4.dev0"
20
+ __version__ = "14.0.0b4.dev1"
21
21
 
22
22
  __all__ = ("__version__",)
@@ -187,7 +187,7 @@ def user_dashboard_request_view(request, **kwargs):
187
187
  has_community_topic = has_topic and "community" in request["topic"]
188
188
  is_record_inclusion = request_type == CommunityInclusion.type_id
189
189
  request_permissions = request.has_permissions_to(
190
- ["action_accept", "lock_request", "create_comment"]
190
+ ["action_accept", "lock_request", "create_comment", "reply_comment"]
191
191
  )
192
192
 
193
193
  if has_record_topic:
@@ -293,7 +293,7 @@ def community_dashboard_request_view(request, community, community_ui, **kwargs)
293
293
  ["update", "read", "search_requests", "search_invites", "submit_record"]
294
294
  )
295
295
  request_permissions = request.has_permissions_to(
296
- ["action_accept", "lock_request", "create_comment"]
296
+ ["action_accept", "lock_request", "create_comment", "reply_comment"]
297
297
  )
298
298
  # Add request specific permissions so that reviewers can be selected from community curators
299
299
  permissions.update(request_permissions)
@@ -83,3 +83,20 @@
83
83
  background-color: transparent;
84
84
  padding-left: 0;
85
85
  }
86
+
87
+ .ui.button.text-only {
88
+ padding: @verticalPadding @textOnlyHorizontalPadding;
89
+ transform: translateX(-@textOnlyHorizontalPadding);
90
+
91
+ &:not(:hover):not(:active):not(:focus) {
92
+ background: none;
93
+ }
94
+
95
+ &:hover:not(:active), &:focus:not(:active) {
96
+ background-color: @backgroundColor;
97
+ }
98
+
99
+ &:active {
100
+ background-color: @hoverBackgroundColor;
101
+ }
102
+ }
@@ -3,3 +3,4 @@
3
3
  ***********************************************/
4
4
 
5
5
  @searchButtonColor: #fb8273;
6
+ @textOnlyHorizontalPadding: 0.5rem;
@@ -3,8 +3,10 @@
3
3
  .requests-event-item {
4
4
  box-sizing: border-box;
5
5
 
6
- &.selected .event, &:target .event {
7
- outline: 2px solid @primaryColor;
6
+ &.selected, &:target {
7
+ & > .requests-event-container > .requests-event-inner-container > .event {
8
+ outline: 2px solid @primaryColor;
9
+ }
8
10
  }
9
11
  }
10
12
 
@@ -12,7 +14,7 @@
12
14
  position: relative;
13
15
  padding: @defaultPadding 0;
14
16
 
15
- &::before {
17
+ &:not(.reply)::before {
16
18
  position: absolute;
17
19
  top: 0;
18
20
  bottom: 0;
@@ -31,11 +33,36 @@
31
33
  padding-top: 0;
32
34
  }
33
35
 
36
+ &.reply {
37
+ padding: (@eventPadding / 2) @eventPadding;
38
+
39
+ &:hover {
40
+ background-color: @whiteHover;
41
+ }
42
+
43
+ .requests-avatar-container {
44
+ margin-top: 0;
45
+ }
46
+
47
+ .content {
48
+ margin: 0;
49
+ }
50
+
51
+ .event {
52
+ background: none;
53
+ }
54
+ }
55
+
56
+ .timeline-comment-editor-container {
57
+ padding: @eventPadding;
58
+ padding-top: 0;
59
+ }
34
60
  }
35
61
 
36
62
  .requests-avatar-container {
37
63
  padding-right: 0.5em;
38
64
  margin-top: 1rem;
65
+ position: relative;
39
66
 
40
67
  @media screen and (max-width: @largestMobileScreen) {
41
68
  margin-top: 0;
@@ -45,6 +72,56 @@
45
72
  max-height: 40px;
46
73
  width: auto;
47
74
  }
75
+
76
+ &.has-line::before {
77
+ content: "";
78
+ position: absolute;
79
+ display: block;
80
+ top: 0;
81
+ bottom: 0;
82
+ // Half the width of the avatar minus the width of the line
83
+ left: calc(1em - 2px);
84
+ width: 2px;
85
+ background-color: @borderColor;
86
+ // Full height of the comment + the margin of the next comment
87
+ height: calc(100% + 1rem);
88
+
89
+ @media screen and (max-width: @largestMobileScreen) {
90
+ & {
91
+ display: none;
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ .requests-reply-top-divider {
98
+ margin-bottom: 0;
99
+ border-bottom: none !important;
100
+ }
101
+
102
+ .requests-reply-container {
103
+ padding-top: 0.5rem;
104
+ background-color: #f9f9f9;
105
+ }
106
+
107
+ .requests-comment-fake-reply {
108
+ display: flex;
109
+ align-items: center;
110
+ padding: @eventPadding;
111
+ padding-top: 0;
112
+
113
+ .requests-avatar-container {
114
+ margin-top: 0;
115
+ }
116
+
117
+ .requests-comment-fake-reply-input {
118
+ width: 100%;
119
+
120
+ &:disabled {
121
+ // This is overriden to `opacity: 1 !important` in the Invenio Theme so we need a clearer visual effect
122
+ opacity: 0.45 !important;
123
+ }
124
+ }
48
125
  }
49
126
 
50
127
  .requests-event-inner-container {
@@ -72,7 +149,6 @@
72
149
  flex: 1;
73
150
  border: @defaultBorder;
74
151
  border-radius: @defaultBorderRadius;
75
- padding: 0.5 * @defaultPadding;
76
152
  background-color: @white;
77
153
  position: relative;
78
154
 
@@ -94,6 +170,10 @@
94
170
  }
95
171
  }
96
172
 
173
+ .button.requests-reply-expand {
174
+ margin-left: @eventPadding;
175
+ }
176
+
97
177
  &.requests-action-event {
98
178
  border: 0;
99
179
  display: flex;
@@ -103,6 +183,17 @@
103
183
  margin-right: 0.5 * @defaultMargin;
104
184
  }
105
185
  }
186
+
187
+ &.requests-reply-event {
188
+ border: none;
189
+ padding: 0;
190
+ margin-left: 0.5rem;
191
+ }
192
+
193
+ p.requests-event-body-deleted {
194
+ font-style: italic;
195
+ color: @mutedTextColor;
196
+ }
106
197
  }
107
198
 
108
199
  .requests-action-event-icon {
@@ -113,6 +204,66 @@
113
204
  background-color: @white;
114
205
  }
115
206
  }
207
+
208
+ .requests-comment-fake-reply {
209
+ display: flex;
210
+ align-items: center;
211
+
212
+ .requests-avatar-container {
213
+ margin-top: 0;
214
+ }
215
+ }
216
+
217
+ .requests-reply-count {
218
+ background-color: @primaryColor;
219
+ color: white;
220
+ padding: 2px 4px;
221
+ border-radius: @defaultBorderRadius;
222
+ font-weight: normal;
223
+ // Default font Helvetica has non-standard metrics so doesn't look middle-aligned on Firefox
224
+ font-family: sans-serif;
225
+ font-size: 0.75rem;
226
+ }
227
+
228
+ .requests-reply-caret {
229
+ margin-left: 2px !important;
230
+ // The button styles add a right margin when the `right` class is added, despite that just being
231
+ // part of the icon name.
232
+ margin-right: 0 !important;
233
+ }
234
+
235
+ .requests-reply-load-more {
236
+ // Padding + width of avatar + padding on right-side of avatar + margin on left-side of main content
237
+ margin-left: calc(@eventPadding + 28px + 1em + 0.5rem);
238
+ margin-top: 0.5rem;
239
+ margin-bottom: 0.5rem;
240
+ position: relative;
241
+ color: @linkColor;
242
+ font-weight: normal;
243
+
244
+ &::before {
245
+ content: "";
246
+ position: absolute;
247
+ display: block;
248
+ top: 0;
249
+ bottom: 0;
250
+ // Margin on left-side of main content, padding on right-side of avatar, half width of line
251
+ left: calc(-1rem - 1em);
252
+ width: 2px;
253
+ background: linear-gradient(to bottom, white, @borderColor);
254
+ // Full height of the comment + the margin of the next comment
255
+ height: calc(100% + 1rem);
256
+ }
257
+
258
+ @media screen and (max-width: @largestMobileScreen) {
259
+ & {
260
+ margin: 0.5rem @eventPadding;
261
+ &::before {
262
+ display: none;
263
+ }
264
+ }
265
+ }
266
+ }
116
267
  }
117
268
  .ui.feed.last-page .requests-event-item:first-child .requests-event-container {
118
269
  padding-top: @defaultPadding;
@@ -134,6 +285,10 @@
134
285
  vertical-align: @userImageVerticalAlign;
135
286
  }
136
287
 
288
+ .event > .content {
289
+ margin: @eventPadding;
290
+ }
291
+
137
292
  /*--------------
138
293
  Inline Date
139
294
  ---------------*/
@@ -0,0 +1 @@
1
+ @eventPadding: 0.5 * @defaultPadding;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: invenio-app-rdm
3
- Version: 14.0.0b4.dev0
3
+ Version: 14.0.0b4.dev1
4
4
  Summary: Invenio Research Data Management.
5
5
  Home-page: https://github.com/inveniosoftware/invenio-app-rdm
6
6
  Author: CERN
@@ -101,6 +101,11 @@ https://inveniordm.docs.cern.ch
101
101
  Changes
102
102
  =======
103
103
 
104
+ Version v14.0.0b4.dev1 (released 2025-12-13)
105
+
106
+ - feat(css): styles for threaded replies
107
+ - feat(views-request): include `can_reply_comment` in template permissions dict
108
+
104
109
  Version v14.0.0b4.dev0 (released 2025-12-12)
105
110
 
106
111
  - chore(setup): bump major versions
@@ -1,4 +1,4 @@
1
- invenio_app_rdm/__init__.py,sha256=2A-KlHIAtY6Z0v35r-mXVoamxbiMDUUxlbP7c0MGiQI,704
1
+ invenio_app_rdm/__init__.py,sha256=5YWVAzC2dRYfBTYLcy8l6i0t1Uml8jFSIXhyQI2WAmU,704
2
2
  invenio_app_rdm/cli.py,sha256=G6QqNU2W6n6ICtTMnpeKFXIsdorncDmVXwwwsGH5F2k,2746
3
3
  invenio_app_rdm/config.py,sha256=pigyCXGUMru2krv-ZJ15iosbm3UBk9dmiAQauYvzWbk,53632
4
4
  invenio_app_rdm/ext.py,sha256=K7syn5CU5If7yOclFeNOCZX_u5q6VB7NJEQVm41mlng,5286
@@ -109,7 +109,7 @@ invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/subcommunity/
109
109
  invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/subcommunity-invitation/index.html,sha256=347Saf8Fv78uevCbK2nFiOtNFUT0QyZSZS7lgoNzHdQ,1448
110
110
  invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/user-access-request/index.html,sha256=ltSP9sYPnpmCKMDYpZYU25Wxr3Dfqe2RNDxm6bVjX_I,1779
111
111
  invenio_app_rdm/requests_ui/views/__init__.py,sha256=7QiAyRq8Eu84IXwjzxK63vNeTZnowZ5P85xtw7XgRjs,397
112
- invenio_app_rdm/requests_ui/views/requests.py,sha256=dMimAd5AldgLuCPBzZ7LCAAwghzbEo-mVHC4dquJZCA,15369
112
+ invenio_app_rdm/requests_ui/views/requests.py,sha256=beMGMiKhg6YXwV6V3GQ0_SA0FG8nUjUrbeHVRG0LJT4,15403
113
113
  invenio_app_rdm/requests_ui/views/ui.py,sha256=DBysYQa__gOCg-pikO6HmoVLmRmMAVWeTBiYhPa7PmA,2359
114
114
  invenio_app_rdm/theme/__init__.py,sha256=QbkxNjjOmGKRlie96HfTXgnFeVQjOX0GdiZnHP7pIhs,277
115
115
  invenio_app_rdm/theme/views.py,sha256=mrcxejY9PlYwEqh8f0ojKX4CtmD9jz4f9rU-5aLZszU,4457
@@ -257,8 +257,8 @@ invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/
257
257
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/message.variables,sha256=mDRGjqL2avCh326NEin4h0z7bTP9QiE0nQxV_c9X40k,224
258
258
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/table.overrides,sha256=x26vg15BUVB4OjSbIol0EGY2XF9NlPDMvfRIsYl-ots,4104
259
259
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/table.variables,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
260
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.overrides,sha256=SlAYdbQF6awibEurtsB5s74XHo1hAqYWRdJmw_tFa9s,1515
261
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.variables,sha256=rxOygY7OLVGLcY9n1Ny-qI-cC6sFqtYMmDS1stzxszw,170
260
+ invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.overrides,sha256=RzrycdPZr2nEoMQMndK7_4kvXLLFnZRf0U0B-1A6gMM,1876
261
+ invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.variables,sha256=D7XmhqrO4orM91k0iMdyCcEqW2JywOdMZdSzR9tcyI8,206
262
262
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/container.overrides,sha256=KYUGvQqDLcgUUCiUreJ2eVXN85B800H3pZV3O2sXVpI,2826
263
263
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/container.variables,sha256=pq_DrgmlkubeyqvRYhhv7LXbWYJ8q_hbTOWVpDxG6A8,237
264
264
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/header.overrides,sha256=je1hCE7T7phcEwItTMqkOqJo6vcflQfiGctRDy3bdMs,854
@@ -295,8 +295,8 @@ invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/tran
295
295
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/transition.variables,sha256=LxC404-t4GRykg6qSUf4KDoDX9OgRvVlOp9LhVtTj3o,139
296
296
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/card.overrides,sha256=QKS9FOgRu0wFAcRzSq_HTt1lxiEBsXuq5xBwJB2nr7M,3348
297
297
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/card.variables,sha256=3KceqH6Y0rQsbWgH3IPuXHE9ThE6cEygSrOsW5XcWto,83
298
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.overrides,sha256=jLaPiav2h0aqf4G9TNtbb29R39x5PvR3B7AfTkSA5us,5133
299
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.variables,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
298
+ invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.overrides,sha256=9Pd093tvm_DmcSg8-Eez2pkPlWizOieehJmV6jcDgBw,8684
299
+ invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.variables,sha256=2cPZcPQO6ULJygE_BkFgo29lAq-aBMRyyEgQna2rL24,38
300
300
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/item.overrides,sha256=m8gkMU_yKP9YIbVQ-A9eZIAj7dTmz0R25aZ5nWOYuCE,3059
301
301
  invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/item.variables,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
302
302
  invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/i18next.js,sha256=un5pmzpJeMu6UeZygWGnsIIuNu8RTVQhZXMINj2mXk8,1065
@@ -498,9 +498,9 @@ invenio_app_rdm/users_ui/views/__init__.py,sha256=SMdY2NJj9GICfr3Xuok7qdNYVtA2bJ
498
498
  invenio_app_rdm/users_ui/views/dashboard.py,sha256=iUn2PrODAwb8ugmMosJKAjPhUzjCiWiAWoXQr9RUFuc,1793
499
499
  invenio_app_rdm/users_ui/views/ui.py,sha256=W_eXM8dLVIrNHQB2UEh37C9BYoHauft6RyvcDNFHovA,1742
500
500
  invenio_app_rdm/utils/files.py,sha256=CruDyO2gDVadSlWEJD-WHpWHeOQ0juh-Ei9jz3D9yjc,3923
501
- invenio_app_rdm-14.0.0b4.dev0.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
502
- invenio_app_rdm-14.0.0b4.dev0.dist-info/METADATA,sha256=I1OsBvpXmjn4LNKWJzdvMrU-NDhWkfzH4XcPZzg_u5s,21628
503
- invenio_app_rdm-14.0.0b4.dev0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
504
- invenio_app_rdm-14.0.0b4.dev0.dist-info/entry_points.txt,sha256=MwtT1SN5saWOgTYhNb5y0YGA9VGAi0kXN0cykIfsb4U,2405
505
- invenio_app_rdm-14.0.0b4.dev0.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
506
- invenio_app_rdm-14.0.0b4.dev0.dist-info/RECORD,,
501
+ invenio_app_rdm-14.0.0b4.dev1.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
502
+ invenio_app_rdm-14.0.0b4.dev1.dist-info/METADATA,sha256=5Yg3KNJ7UklCH4exaUVFiEe_PgdaIJ3ff_v6BKQXRZE,21796
503
+ invenio_app_rdm-14.0.0b4.dev1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
504
+ invenio_app_rdm-14.0.0b4.dev1.dist-info/entry_points.txt,sha256=MwtT1SN5saWOgTYhNb5y0YGA9VGAi0kXN0cykIfsb4U,2405
505
+ invenio_app_rdm-14.0.0b4.dev1.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
506
+ invenio_app_rdm-14.0.0b4.dev1.dist-info/RECORD,,