Skip to content

Conversation

@ChengShi-1
Copy link
Contributor

@ChengShi-1 ChengShi-1 commented Oct 15, 2025

What this PR does / why we need it:

This feature will mainly focus on “Dataset Terms”, “Restricted Files + Terms of Access” UI implementation.(Guestbook is not implemented for now)

Which issue(s) this PR closes:

Special notes for your reviewer:

  • make edit terms to be an independent route, which acts differently from JSF
  • for all versions of dataset, the terms information should be the same, and always update to the latest version
  • for mobile viewport of this page, it should become accordion(as the same as JSF) instead of tabs, which looks friendly to mobile users
  • In Dataset page, terms of access should be able to take HTML snippets

Suggestions on how to test this:

  • A edit button in dataset page, naming changed to Edit Terms and Guestbook suggested from Julian to better guide users
image - License tab - should be able to select from some available standard licenses or custom terms image - Restricted Files + Terms of Access Tab - should be able to enable/disable request access, also Terms of Access for Restricted Files would be required if disable request access image - mobile viewport image

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

yes, should be added later

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

yes, should be added later

@ChengShi-1 ChengShi-1 linked an issue Oct 15, 2025 that may be closed by this pull request
@github-actions github-actions bot added FY26 Sprint 6 FY26 Sprint 6 (2025-09-10 - 2025-09-24) FY26 Sprint 7 FY26 Sprint 7 (2025-09-24 - 2025-10-08) FY26 Sprint 8 FY26 Sprint 8 (2025-10-08 - 2025-10-22) GREI Re-arch GREI re-architecture-related SPA.Q3.2025.3 Dataset Page: Edit Terms SPA: Edit Dataset Page Waiting labels Oct 15, 2025
@ChengShi-1 ChengShi-1 moved this to In Progress 💻 in IQSS Dataverse Project Oct 15, 2025
@ChengShi-1 ChengShi-1 self-assigned this Oct 15, 2025
@ChengShi-1 ChengShi-1 added Size: 10 A percentage of a sprint. 7 hours. Original size: 10 labels Oct 15, 2025
@coveralls
Copy link

coveralls commented Oct 15, 2025

Coverage Status

coverage: 97.368% (-0.4%) from 97.795%
when pulling 68f2c3c on Edit-term-integration
into 48dd9ff on develop.

@cmbz cmbz added the FY26 Sprint 9 FY26 Sprint 9 (2025-10-22 - 2025-11-05) label Oct 23, 2025
@ChengShi-1 ChengShi-1 removed the Waiting label Nov 5, 2025
@cmbz cmbz added the FY26 Sprint 10 FY26 Sprint 10 (2025-11-05 - 2025-11-19) label Nov 5, 2025
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

Hi @ChengShi-1, it looks really good! See comments about suggested changes.
Sorry it took so long for this review, please don't worry about it till you are back from vacation! :)

@cmbz cmbz added the FY26 Sprint 11 FY26 Sprint 11 (2025-11-20 - 2025-12-03) label Nov 22, 2025
@cmbz cmbz added the FY26 Sprint 12 FY26 Sprint 12 (2025-12-03 - 2025-12-17) label Dec 3, 2025
…. remove duplicated searchParams 5. dynamic value: CUSTOM
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

Hi @ChengShi-1, all your changes look great, I just had another thought about the UI when testing this.
Currently, a user can make an edit on one tab, then click over to another tab without saving changes. I could see where a user would be confused, and think that 'Save Changes' means to save the changes made in all tabs within Edit Dataset Terms page.
If the user goes to a second tab without saving the first tab, then the changes will be lost.
I think the best solution for the user experience is to update "Save Changes" so it saves the data from all the tabs, but I realize that might be a big change. An alternate approach would be to warn the user if they click on another tab while unsaved changes exist on the current tab. We do something similar in the UploadFiles page - if the user attempts to navigate away from the page, we show a popup warning them, and giving an option to "stay on the page".
What do you think? Does one solution seem easier to implement than the other?

@ChengShi-1
Copy link
Contributor Author

@ekraffmiller I agree the button can be confusing, and acts different from JSF. Since each tab submits separately in its own API and use case now, adding an unsaved-changes warning is simpler. I can add that warning now, and if we want a single save across tabs later, I can tackle that next.

@ekraffmiller
Copy link
Contributor

@ekraffmiller I agree the button can be confusing, and acts different from JSF. Since each tab submits separately in its own API and use case now, adding an unsaved-changes warning is simpler. I can add that warning now, and if we want a single save across tabs later, I can tackle that next.

sounds good, thanks!

@ChengShi-1
Copy link
Contributor Author

ChengShi-1 commented Dec 9, 2025

Hi Ellen @ekraffmiller , I've implemented the "unsaved changes" pop-up modal. It's ready for review.

I wanted to call out one behavior that might be confusing: The "Leave without saving" button prevents the changes from being submitted to the backend. However, the UI itself still temporarily saves the changes locally within the current tab. If the user navigates away and then back, the unsaved changes will still appear in the UI. I am not sure if we want this local persistence.

@ekraffmiller
Copy link
Contributor

Hi Ellen @ekraffmiller , I've implemented the "unsaved changes" pop-up modal. It's ready for review.

I wanted to call out one behavior that might be confusing: The "Leave without saving" button prevents the changes from being submitted to the backend. However, the UI itself still temporarily saves the changes locally within the current tab. If the user navigates away and then back, the unsaved changes will still appear in the UI. I am not sure if we want this local persistence.

It looks good! I see what you mean, the changes are still there until you hit Save. I think that's ok, we can change the warning to "If you leave now, your changes on this tab won't be saved". The main thing is to make sure they save everything that they intend to save.

Copy link
Contributor

@ekraffmiller ekraffmiller 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!

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Reviewed but Frozen ❄️ in IQSS Dataverse Project Dec 10, 2025
@ChengShi-1 ChengShi-1 moved this from Reviewed but Frozen ❄️ to Ready for QA ⏩ in IQSS Dataverse Project Dec 11, 2025
@cmbz cmbz added the FY26 Sprint 13 FY26 Sprint 13 (2025-12-17 - 2025-12-31) label Dec 17, 2025
@pdurbin pdurbin moved this from Ready for QA ⏩ to Reviewed but Frozen ❄️ in IQSS Dataverse Project Dec 18, 2025
@cmbz cmbz added the FY26 Sprint 14 FY26 Sprint 14 (2025-12-31 - 2026-01-14) label Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 6 FY26 Sprint 6 (2025-09-10 - 2025-09-24) FY26 Sprint 7 FY26 Sprint 7 (2025-09-24 - 2025-10-08) FY26 Sprint 8 FY26 Sprint 8 (2025-10-08 - 2025-10-22) FY26 Sprint 9 FY26 Sprint 9 (2025-10-22 - 2025-11-05) FY26 Sprint 10 FY26 Sprint 10 (2025-11-05 - 2025-11-19) FY26 Sprint 11 FY26 Sprint 11 (2025-11-20 - 2025-12-03) FY26 Sprint 12 FY26 Sprint 12 (2025-12-03 - 2025-12-17) FY26 Sprint 13 FY26 Sprint 13 (2025-12-17 - 2025-12-31) FY26 Sprint 14 FY26 Sprint 14 (2025-12-31 - 2026-01-14) GREI Re-arch GREI re-architecture-related Original size: 10 Size: 20 A percentage of a sprint. 14 hours. SPA: Edit Dataset Page SPA.Q3.2025.3 Dataset Page: Edit Terms

Projects

Status: Ready for QA ⏩

Development

Successfully merging this pull request may close these issues.

Dataset Edit Terms Integration

5 participants