Skip to content

Add Anatomy metadata card to Dandiset landing page#2856

Open
bendichter wants to merge 1 commit into
masterfrom
anatomy-info-card
Open

Add Anatomy metadata card to Dandiset landing page#2856
bendichter wants to merge 1 commit into
masterfrom
anatomy-info-card

Conversation

@bendichter

Copy link
Copy Markdown
Member

Summary

Adds a dedicated Anatomy section to the Dandiset Overview tab that always renders — surfacing anatomical metadata when present and explicitly flagging it when missing. This addresses the request (from the 2026-06-22 metadata-quality discussion) for a prominent, per-dandiset indicator of missing metadata, focused first on anatomy.

The card is placed between Funding information and Protocols in the Overview tab.

Behavior

  • Provided: green "Provided" chip; each anatomical region from the dataset's about field (entries with schemaKey === "Anatomy") is listed with its name, ontology prefix + local id (e.g. UBERON: 0002437), and a link to the OBO PURL term page.
  • Missing: amber warning card stating "No anatomical information provided" and explaining that adding indexed anatomy (UBERON terms) makes the dataset discoverable by anatomical location.

Ontology links

Identifiers resolve prefix-agnostically to OBO PURLs:

  • UBERON:0002437http://purl.obolibrary.org/obo/UBERON_0002437
  • CL:0000242http://purl.obolibrary.org/obo/CL_0000242
  • Full URLs pass through unchanged.

Testing

Verified locally against sandbox (npm run devapi.sandbox.dandiarchive.org):

State Dandiset Result
Provided 100268 Green card; link → http://purl.obolibrary.org/obo/UBERON_0002437
Missing 200017 Amber warning card

eslint and vue-tsc type-check both pass.

🤖 Generated with Claude Code

Always renders an Anatomy section on the Dandiset landing page so missing
anatomical metadata is surfaced prominently rather than hidden. When the
dataset's `about` field contains Anatomy entries, each region is shown with
its name, ontology prefix + local id, and a link to the OBO PURL term page
(e.g. UBERON:0002437 -> http://purl.obolibrary.org/obo/UBERON_0002437).
When absent, a warning card explains that indexed anatomy is missing and
why it matters for discoverability.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bendichter bendichter requested a review from satra June 22, 2026 20:27
@bendichter

Copy link
Copy Markdown
Member Author

@satra what do you think of this for "stink" around dandisets that don't have anatomy info?

@bendichter bendichter marked this pull request as ready for review June 22, 2026 20:31
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.

1 participant