Skip to content

Comments

File Page: Restrict Modal update restrict access and terms#641

Merged
ofahimIQSS merged 13 commits intodevelopfrom
639-file-page-file-restrict-access-request-terms-of-access
Apr 8, 2025
Merged

File Page: Restrict Modal update restrict access and terms#641
ofahimIQSS merged 13 commits intodevelopfrom
639-file-page-file-restrict-access-request-terms-of-access

Conversation

@ChengShi-1
Copy link
Contributor

@ChengShi-1 ChengShi-1 commented Apr 2, 2025

What this PR does / why we need it:

In edit file restriction feature, we're missing File Restriction Access Request & Terms of Access

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:

npm i

Please test it on both file page and dataset page > File tab for every single file.

  1. The checkbox of enable access should work.
  2. The terms of access should be able to type and edit.
  3. If a published dataset enables access, change to another account (not the dataset owner), Access Request button should be shown.

Also, check some rules below:
If restrict is true and enableAccessRequest is false then termsOfAccess is required.
The enableAccessRequest and termsOfAccess are applied to the Draft version of the Dataset and affect all of the restricted files in said Draft version.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

image
Screenshot 2025-04-02 at 7 33 56 PM

Is there a release notes update needed for this change?:

Additional documentation:

@ChengShi-1 ChengShi-1 linked an issue Apr 2, 2025 that may be closed by this pull request
@github-actions github-actions bot added FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) GREI Re-arch GREI re-architecture-related SPA.Q1.6 Files Page: Files Edit Options SPA: File Page labels Apr 2, 2025
@ChengShi-1 ChengShi-1 moved this to In Progress 💻 in IQSS Dataverse Project Apr 2, 2025
@ChengShi-1 ChengShi-1 added Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 labels Apr 2, 2025
@coveralls
Copy link

coveralls commented Apr 2, 2025

Coverage Status

coverage: 97.614% (-0.4%) from 98.025%
when pulling 836ad60 on 639-file-page-file-restrict-access-request-terms-of-access
into 51f1d84 on develop.

@ChengShi-1 ChengShi-1 marked this pull request as ready for review April 3, 2025 00:17
@ChengShi-1 ChengShi-1 removed their assignment Apr 3, 2025
@ChengShi-1 ChengShi-1 moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Apr 3, 2025
@g-saracca g-saracca moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Apr 3, 2025
@g-saracca g-saracca self-assigned this Apr 3, 2025
@ChengShi-1 ChengShi-1 moved this from In Review 🔎 to In Progress 💻 in IQSS Dataverse Project Apr 3, 2025
@ChengShi-1 ChengShi-1 self-assigned this Apr 3, 2025
@g-saracca g-saracca removed their assignment Apr 3, 2025
@ChengShi-1 ChengShi-1 removed their assignment Apr 3, 2025
@ChengShi-1 ChengShi-1 moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Apr 3, 2025
@g-saracca g-saracca self-assigned this Apr 4, 2025
@g-saracca g-saracca moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Apr 4, 2025
Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

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

Some requested changes.

Also some UI points:

  1. The link to the guides should use latest instead of fixed version:
    "https://guides.dataverse.org/en/6.5/user/..." to "https://guides.dataverse.org/en/latest/user/..."
    Also you should use a normal <a/> tag with a target _blank so it opens the link in a new tab and include the link text in the translations with <Trans component. See this example.
  2. Add <QuestionMarkTooltip /> to "Request Access" and "Terms of Access for Restricted Files" labels, see JSF version of the modal. There are lot of examples of how to use it within the SPA code.
  3. Reset form fields values when closing the modal.

@ChengShi-1 ChengShi-1 requested a review from g-saracca April 7, 2025 13:23
Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks!

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Apr 7, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Apr 7, 2025
@ofahimIQSS ofahimIQSS self-assigned this Apr 7, 2025
@ofahimIQSS
Copy link
Contributor

Looks good, merging:

image
image

@ofahimIQSS ofahimIQSS merged commit e426a7d into develop Apr 8, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Apr 8, 2025
@ofahimIQSS ofahimIQSS deleted the 639-file-page-file-restrict-access-request-terms-of-access branch April 8, 2025 20:30
@ofahimIQSS ofahimIQSS removed their assignment Apr 8, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA: File Page SPA.Q1.6 Files Page: Files Edit Options

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

File Page: File Restrict Access Request & Terms of Access

4 participants