Skip to content

Conversation

@joverlee521
Copy link
Contributor

@joverlee521 joverlee521 commented Nov 4, 2025

Description of proposed changes

Resolves #2023

Checklist

Always export URL if it's available for the trait regardless
of the type of the value.

Part of #2023
Always return the Link component for a trait if it has a URL
regardless of the type of the value.

Part of #2023
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-export-url-p7a8gr43qnh November 4, 2025 21:30 Inactive
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

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

Code looks good from reading. Happy to merge as long as you've tested some real JSONs?

@joverlee521 joverlee521 temporarily deployed to auspice-export-url-p7a8gr43qnh November 4, 2025 22:08 Inactive
@joverlee521
Copy link
Contributor Author

Happy to merge as long as you've tested some real JSONs?

Yup, I tested locally with the JSON from nextstrain/augur#1926

npm run dev -- --datasetDir ../augur/tests/functional/export_v2/data/

Confirmed the tip info modal displays a clickable link for the numeric value and the downloaded metadata includes a __url column for the numeric field.

@joverlee521 joverlee521 merged commit 6370cc5 into master Nov 4, 2025
16 checks passed
@joverlee521 joverlee521 deleted the export-url branch November 4, 2025 22:42
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.

URLs for non-string values

4 participants