Skip to content

Repository files navigation

nwb2bids logo

DANDI usage webpage (source)

Daily tests codecov License: MIT GitHub release DOI

Chromatic Storybook Playwright

code style: prettier

Visualizations of data usage across the archive.

Main webpage: https://usage.dandiarchive.org

Configuration

When deploying a fork that points at a different data repository, update the BASE_URL constant near the top of src/plots.js:

const BASE_URL = "https://raw.githubusercontent.com/myorg/myrepo/main";

Development

npm install
npm run dev

Tests

npm test                   # unit tests (Vitest, in jsdom)
npm run test:coverage      # the same, with a coverage report
npm run test:e2e           # integration tests (Playwright, in Chromium)
npm run test:visual        # screenshot comparison of the map against committed baselines

The unit tests cover the page's entry module (src/plots.ts) as well as its helpers: tests/unit/plots-harness.ts loads the page's markup into jsdom, stands in for Plotly and for the network, and drives the page through its controls. Coverage from both the unit and the integration tests is reported to Codecov; to see what the integration tests exercise in the browser, run npm run test:e2e:coverage and then npm run coverage:integration.

Documentation

  • Region codes — how the geographic section reads the ISO 3166 codes of by_region.tsv, and how to regenerate the table it reads them with.

About

Visualizations of data usage across the archive.

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages