Skip to content

Allow customization of data use terms agreement text#6149

Draft
theosanderson wants to merge 6 commits intomainfrom
claude/data-use-terms-agreement-de4yC
Draft

Allow customization of data use terms agreement text#6149
theosanderson wants to merge 6 commits intomainfrom
claude/data-use-terms-agreement-de4yC

Conversation

@theosanderson
Copy link
Member

@theosanderson theosanderson commented Mar 17, 2026

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.agreementHtml configuration option, enabling more flexible messaging while maintaining backward compatibility with a sensible default.

Changes

  • Added optional dataUseTermsAgreementHtml configuration property to website config schema
  • Updated DownloadDialog component to use custom HTML when provided, falling back to the default text
  • Added configuration getter getDataUseTermsAgreementHtml() to retrieve the custom HTML
  • Updated Kubernetes Helm templates to support the new configuration option
  • Threaded the new prop through the component hierarchy (SearchFullUIDownloadDialog)
  • Updated test utilities to support the new prop

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

  • All necessary documentation has been adapted (schema, values.yaml, types)
  • The implemented feature is covered by appropriate, automated tests (test helper updated)
  • Manual testing: Verified component renders with and without custom HTML, and that default fallback works correctly

https://claude.ai/code/session_013oJyL4K1RSVkBKLpEBa3DC

🚀 Preview: Add preview label to enable

claude added 2 commits March 17, 2026 15:17
… 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
@claude claude bot added website Tasks related to the web application deployment Code changes targetting the deployment infrastructure labels Mar 17, 2026
@claude
Copy link
Contributor

claude bot commented Mar 17, 2026

This PR may be related to: #3674 (Genericise data use terms for other maintainers)

claude and others added 4 commits March 17, 2026 15:21
… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deployment Code changes targetting the deployment infrastructure website Tasks related to the web application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants