Skip to content

Comments

903 acknowledgement before publish#924

Open
ekraffmiller wants to merge 12 commits intodevelopfrom
903-acknowledgement-before-publish
Open

903 acknowledgement before publish#924
ekraffmiller wants to merge 12 commits intodevelopfrom
903-acknowledgement-before-publish

Conversation

@ekraffmiller
Copy link
Contributor

@ekraffmiller ekraffmiller commented Feb 13, 2026

What this PR does / why we need it:

Add additional text and disclaimer to Publish Dataset Modal, to match behavior in JSF.

Which issue(s) this PR closes:

Special notes for your reviewer:

This PR depends on IQSS/dataverse-client-javascript#422, when that PR is merged, package.json needs to be updated

Suggestions on how to test this:

To setup, use the API to add the custom text and disclaimer, for example:

curl -X PUT -d'Please agree to this disclaimer text before publishing' http://localhost:8080/api/admin/settings/:PublishDatasetDisclaimerText

curl -X PUT -d'Additional custom text that appears in the modal' http://localhost:8080/api/admin/settings/:DatasetPublishPopupCustomText

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

It should match the JSF publish dataset modal:
Screenshot 2026-02-13 at 2 01 34 PM

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

yes

Additional documentation:

@github-actions github-actions bot added FY26 Sprint 14 FY26 Sprint 14 (2025-12-31 - 2026-01-14) FY26 Sprint 15 FY26 Sprint 15 (2026-01-14 - 2026-01-28) FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25) GREI Re-arch GREI re-architecture-related Project: HDV SPA Rollout SPA labels Feb 13, 2026
@coveralls
Copy link

coveralls commented Feb 13, 2026

Coverage Status

coverage: 97.359% (+0.02%) from 97.339%
when pulling c67095c on 903-acknowledgement-before-publish
into 24bdb22 on develop.

@ekraffmiller ekraffmiller marked this pull request as ready for review February 13, 2026 19:04
@ekraffmiller ekraffmiller moved this to Ready for Review ⏩ in IQSS Dataverse Project Feb 13, 2026
@ChengShi-1 ChengShi-1 self-assigned this Feb 17, 2026
@ChengShi-1 ChengShi-1 moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Feb 17, 2026
Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Hi Ellen, good work here! just a few suggestions.

About the UI behavior, there are two differences from JSF.

  1. in jsf, the popup custom text is wrapped by a grey box. I saw a style there but it is not applied to the modal.
image
  1. In jsf, if the dataset isn't published in the first time, the custom text is not shown.
image

@ChengShi-1 ChengShi-1 added the SPA.Q1.2026.2 Publish Dataset with disclaimer & custom text label Feb 17, 2026
@ekraffmiller
Copy link
Contributor Author

Hi Cheng, thanks for the review! I updated the style of the custom text box. I also saw that the JSF doesn't show custom text for subsequent drafts, but I asked about that on Slack, and Phil said he thinks it's a bug, so I decided to show it in the SPA.

@ekraffmiller ekraffmiller removed their assignment Feb 17, 2026
@@ -110,21 +110,13 @@ export class DataverseInfoJSDataverseRepository implements DataverseInfoReposito
.execute()
.then((text) => {
const trimmedLength = text?.trim().length ?? 0
Copy link
Contributor

Choose a reason for hiding this comment

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

'trimmedLength' is assigned a value but never used.

Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! For eliminating the lint warning, could you also remove 'trimmedLength' and 'error' that are assigned but never used?

value: text
}
})
.catch((error: unknown) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

'error' is defined but never used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the catch! fixed

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Feb 18, 2026
@ChengShi-1 ChengShi-1 moved this from Ready for QA ⏩ to In Review 🔎 in IQSS Dataverse Project Feb 18, 2026
@ChengShi-1 ChengShi-1 moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 14 FY26 Sprint 14 (2025-12-31 - 2026-01-14) FY26 Sprint 15 FY26 Sprint 15 (2026-01-14 - 2026-01-28) FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25) GREI Re-arch GREI re-architecture-related Project: HDV SPA Rollout SPA.Q1.2026.2 Publish Dataset with disclaimer & custom text SPA

Projects

Status: Ready for QA ⏩

Development

Successfully merging this pull request may close these issues.

Add Acknowledgement before publishing

3 participants