Repository navigation
Drop QA SSR; Demographics tab (live) + Data quality tab (coming soon) - #82
Merged
Merged
Conversation
Deploying nemar-website with
|
| Latest commit: |
3dea71c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://10ff1beb.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-issue-81-dataset-tab.nemar-website.pages.dev |
Contributor
Author
Review pass — 3 sonnet agentscode-reviewer (pr-review-toolkit:code-reviewer)
silent-failure-hunter (pr-review-toolkit:silent-failure-hunter)
pr-test-analyzer (pr-review-toolkit:pr-test-analyzer)
389/389 tests green, lint clean, typecheck clean, build clean. |
neuromechanist
added a commit
that referenced
this pull request
Sep 28, 2026
Staleness and missing data now have their own states instead of
falling through to OK:
- An unreadable generated_at is a warning ("Snapshot time is unknown"),
not a fresh snapshot.
- A snapshot with no sections and no section errors reads "No data"
instead of "All clear"; a section with no metrics is "No data", not
OK, and is listed in the attention summary as unknown.
- Each section's updated_at is read against the snapshot's own time:
past 3 hours (36 for the daily pushed storage and egress sections) it
reads "Out of date" on its badge, unfolds, and gets an attention item.
An old snapshot is said once, not once per section.
The storage card follows the same rules and the collector contract
from nemar-observability#82: the section's own "Data storage" label, a
failed-collection state, and "Measured <day>" only when the hint names
the CloudWatch day, else "Received <day>". Catalog figures now link to
the catalog block, which has no card of its own.
Tested: bun run test (admin-overview suite; storage cases use a
fixture built by #82's collector over its real CloudWatch capture,
marked contract-derived until a live snapshot carries the section),
bun run typecheck.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #81.
buildQaAggregateswas walkingdata.nemar.org/<id>/qa/recursively and fetching every per-file_dataqual.jsonat request time. For HBN-class datasets that was 5–28 s cold SSR (on005509 was hitting 503 because it overran the Worker subrequest budget). Page now paints from 2 backend fetches (landing + metadata).<QualityPanel>with<DatasetTabs>carrying two tabs:participants.tsv, parses sex + age columns, renders a small M/F/Other donut + age histogram stacked by sex.qa/aggregates.jsonartifact).QualityPanel,AgeGenderChart,buildQaAggregatesuntouched in the tree. Dormant — ready to revive once Epic: Website compute surfaces (#493) #511 ships.Lightweight on purpose: demographics is one HTTP fetch + ~70 KB TSV + deterministic SVG render. No skeleton machinery, no caches.
Test plan
bun run typecheckcleanbun run lintcleanbun run test— 387 pass (13 new participants.tsv parser cases)bun run buildcleanFiles
src/lib/participants.ts(+118) — TSV parser, sex/age normalization, fetch helper.src/lib/participants.test.ts(+133) — 13 cases including column variants, sex tokens, NA handling.src/lib/render-sex-donut.ts(+87) — purerenderSexDonutSvg(counts).src/lib/render-age-gender.ts(+83) — purerenderAgeGenderStackedSvg(ages, sexes). ReusesbucketAgesBySexfromqa.ts.src/components/DatasetTabs.astro(+325) — tablist UI + inline client script (tab switching, keyboard nav, demographics hydration).src/pages/dataset/[id].astro(-12 / +8) — dropgetQaAggregates, swapQualityPanelforDatasetTabs.