Skip to content

Conversation

@carlinmack
Copy link
Contributor

@carlinmack carlinmack commented Nov 24, 2025

❤️ Thank you for your contribution!

Closes inveniosoftware/invenio-requests#497

Description

Please describe briefly your pull request.

Before
image

After
image

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@carlinmack carlinmack force-pushed the view-request branch 2 times, most recently from 794ddee to 30c8897 Compare December 3, 2025 13:23
Copy link
Contributor

@kpsherva kpsherva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the only doubt I have is about title changing placement when there is no "view comments" link on record landing page - maybe it would be better if all the titles are top-align, it would probably look strange if one community entry has the link and other (of the same record) doesn't

Output: {<Community-UUID>: <Request-UUID>}
"""
can_review = current_rdm_records.records_service.check_permission(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be "can_preview"? This would also include the links with guest token who would have access.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you explain why can preview? From what I understand can preview refers to people who can preview a draft, whereas review is people who can review the record (i.e. see the request)

Copy link
Contributor

@sakshamarora1 sakshamarora1 Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guests can also see the requests! Screenshot from permissions settings during share link creation

Screenshot 2025-12-04 at 09 41 04

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update our docs then ahah https://help.zenodo.org/docs/share/about/

href={`${community.links.self_html}requests/${
recordRequests[community.id]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would also need to propagate guest token here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can guests see requests? I thought guest tokens are for previewing a draft/viewing restricted files/editing a draft

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, see the screenshot above ^^

data-pending-communities-search-config='{{ search_app_rdm_record_requests_config(app_id="InvenioAppRdm.RecordRequests", endpoint=record_ui["links"]["requests"]) | tojson }}'
data-permissions='{{ permissions | tojson }}'
data-record='{{ record_ui | tojson }}'
data-record-requests='{{ record_requests | default({}) | tojson }}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the default needed, I assume the record_requests in this case would be empty when passed, so maybe we don't need it

Copy link
Contributor Author

@carlinmack carlinmack Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it is passed as undefined to the HTML in the case of the review page for example. This is a safeguard as otherwise the page doesn't render (undefined is not valid json)

@carlinmack carlinmack force-pushed the view-request branch 2 times, most recently from c3e008d to c05c5c2 Compare December 4, 2025 16:55
also
* correct URL error which silently redirected correctly
* sort requests so that newest is linked
* smaller action buttons
* match record request link to the one in modal
* increase size of community icon
@zzacharo zzacharo merged commit fb4ddd2 into inveniosoftware:master Dec 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display a link to a record’s comments

4 participants