feat!(website): Allow customization of data use terms agreement text#6149
feat!(website): Allow customization of data use terms agreement text#6149theosanderson merged 8 commits intomainfrom
Conversation
… values.yaml Add a `dataUseTerms.agreementHtml` setting in values.yaml that allows overriding the "I agree to the data use terms." checkbox label in the download dialog with custom HTML. This enables linking to multiple different pages or customizing the agreement text per instance. The default value preserves the current behavior with a link to the data use terms page. https://claude.ai/code/session_013oJyL4K1RSVkBKLpEBa3DC
|
This PR may be related to: #3674 (Genericise data use terms for other maintainers) |
This reverts commit 500ac06.
… error in DownloadDialog The agreementHtml property was placed outside the properties object in the dataUseTerms schema definition, causing invalid JSON. Also add eslint-disable for the __html key required by dangerouslySetInnerHTML. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove the agreementHtml setting from values.yaml so the fallback is used, and simplify the fallback text to plain "I agree to the data use terms." without a link. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @theosanderson's task in 1m 13s —— View job Code Review
Overall the implementation is clean and follows existing patterns in the codebase. There are a few issues to address. Default text regression (important)
The new default omits the link entirely. Anyone not supplying a custom XSS /
|
|
@theosanderson-agent make the casing change to agreementHTML |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Renamed |
tombch
left a comment
There was a problem hiding this comment.
Tested again with agreementHTML and looks good!
|
Thanks for testing again!! |
|
I'm just waiting to merge til I have time to prepare a corresponding change to PPX |

The purpose of this is to allow linking to for example the "how to cite" page in addition
Description
This PR adds support for customizing the data use terms agreement checkbox label text in the download dialog through configuration. Previously, the text was hardcoded as "I agree to the data use terms" with a link to the terms page.
The changes allow administrators to provide custom HTML for the agreement label via the
dataUseTerms.agreementHtmlconfiguration option, enabling more flexible messaging while maintaining backward compatibility with a sensible default.Changes
dataUseTermsAgreementHtmlconfiguration property to website config schemaDownloadDialogcomponent to use custom HTML when provided, falling back to the default textgetDataUseTermsAgreementHtml()to retrieve the custom HTMLSearchFullUI→DownloadDialog)Configuration
The new configuration option is optional and located under
dataUseTerms.agreementHtml. When not provided, the component renders the default agreement text. The configuration accepts HTML strings, allowing for custom links and formatting.PR Checklist
https://claude.ai/code/session_013oJyL4K1RSVkBKLpEBa3DC
🚀 Preview: Add
previewlabel to enable