Skip to content

feat: update curl download export text (#4735)#4736

Merged
frano-m merged 3 commits intomainfrom
fran/4735-curl-download
Mar 30, 2026
Merged

feat: update curl download export text (#4735)#4736
frano-m merged 3 commits intomainfrom
fran/4735-curl-download

Conversation

@frano-m
Copy link
Copy Markdown
Contributor

@frano-m frano-m commented Mar 30, 2026

Closes #4735.

This pull request removes the use of the buttonLabel property from export method configurations and their related view model builders, focusing instead on using description, route, and title for export actions. It also updates test cases accordingly and improves export descriptions, especially for open-access datasets. Additionally, the pull request upgrades the @databiosphere/findable-ui dependency and makes some minor import cleanups.

Removal of buttonLabel from export methods and view model builders:

  • Removed the buttonLabel property from the parameters and return values of all export method builder functions in app/viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders.tsx and app/viewModelBuilders/azul/hca-dcp/common/viewModelBuilders.ts to standardize export method configurations. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

  • Updated all related test files by removing tests that checked for the existence or correctness of buttonLabel, and adjusted required keys and assertions to reflect the removal. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Improvements to export descriptions:

  • Enhanced the description and title fields for open-access dataset export options, clarifying that data transfer/storage costs are covered by the AWS Open Data Sponsorship Program and improving user guidance. [1] [2]

Dependency and import updates:

  • Upgraded the @databiosphere/findable-ui package to version ^50.4.0 in package.json.
  • Cleaned up and reordered imports in view model builder files for clarity and consistency. [1] [2] [3] [4] [5] [6]

These changes simplify the export method configuration, improve the clarity of export options for users, and keep dependencies up to date.

image image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates export method configuration and copy, removing the buttonLabel field from export method configs/builders and refreshing the curl-download messaging (notably for open-access datasets), alongside a @databiosphere/findable-ui dependency bump.

Changes:

  • Remove buttonLabel from export method configs (EXPORT_METHODS) and associated view model builder return values.
  • Update curl download descriptions/titles for AnVIL CMG export methods and adjust related unit tests.
  • Bump @databiosphere/findable-ui from ^50.1.1 to ^50.4.0 and perform minor import cleanup.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
site-config/anvil-cmg/dev/export/export.ts Import reordering/cleanup for export config wiring.
site-config/anvil-cmg/dev/export/constants.ts Removes buttonLabel from EXPORT_METHODS shape; keeps EXPORTS unchanged.
package.json Upgrades @databiosphere/findable-ui dependency.
package-lock.json Locks @databiosphere/findable-ui to 50.4.0.
app/viewModelBuilders/azul/hca-dcp/common/viewModelBuilders.ts Removes buttonLabel from export method builder props; import reorder.
app/viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders.tsx Removes buttonLabel from export method builders; updates curl download text.
tests/viewModelBuilders/export.test.ts Updates tests to stop asserting buttonLabel for export methods.
tests/viewModelBuilders/dataset-export.test.ts Updates tests to stop asserting buttonLabel for dataset export methods.
tests/site-config/export-constants.test.ts Updates required-key validation for EXPORT_METHODS to exclude buttonLabel.
Comments suppressed due to low confidence (2)

app/viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders.tsx:513

  • The updated curl export copy implies the entire dataset is open-access ("download this dataset" / "This open-access dataset"), but this export method is only conditionally rendered when the dataset includes the NRES consent group and may still include other (non–open-access) consent groups. Please adjust the text to clearly state that the curl command covers only the open-access portion of the dataset/selected data (and keep the AWS Open Data Sponsorship Program note).
    app/viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders.tsx:516
  • Issue #4735 also calls out adding a "View this dataset on AWS Open Data" link, but this PR only updates the description/title text. If the PR is intended to close #4735, consider adding that link (e.g., as part of the curl export method description/MDX content) or updating the PR description/issue linkage to reflect that the link addition is out of scope.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The export method cards no longer use button labels as link text.
Use h3 heading locators instead, and navigate via ancestor anchor.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace generic testBulkDownloadIndexExportWorkflow with focused
testBulkDownloadFileManifestWorkflow. Remove IndexExportButtons
interface and ANVIL_INDEX_EXPORT_BUTTONS constant.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@frano-m frano-m merged commit 451482d into main Mar 30, 2026
3 checks passed
@frano-m frano-m deleted the fran/4735-curl-download branch March 30, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AnVIL DX] Update curl download export text

3 participants