Repository navigation
Data quality tab drawn from the inventory - #633
Merged
neuromechanist merged 28 commits intoNov 28, 2026
Merged
neuromechanist merged 28 commits into
neuromechanist merged 28 commits into
Conversation
Deploying nemar-website with
|
| Latest commit: |
7ab7693
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://df19c5ed.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-issue-625-phase0b2-q.nemar-website.pages.dev |
…ue-625-phase0b2-quality-tab
…ue-625-phase0b2-quality-tab
Base automatically changed from
feature/issue-625-phase0b-quality-tab
to
feature/issue-625-epic-quality-axes
November 28, 2026 23:39
…xes' into feature/issue-625-phase0b2-quality-tab
neuromechanist
merged commit Nov 28, 2026
e8223a6
into
feature/issue-625-epic-quality-axes
3 of 4 checks passed
3 tasks
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.
Phase 0b.2 of the quality-axes epic: the dataset page's Data quality tab, drawn from the quality inventory. Stacked on #632 (base is its branch; retarget to
feature/issue-625-epic-quality-axesonce #632 squash-merges).The question the tab answers: "Is this dataset described, annotated and recorded well enough to reuse, and what is missing?"
What changes
extensions.dataQualitysummary: D1 Coverage donut (failed and skipped codes behind a disclosure), D2 three rings (thick arc median, thin arc observed range, a ring only for a % metric on the 0 to 100 scale, else the row form), D3 line noise, D4 every metric as a sparkline row with median tick, end pips and a hatched missing pip, each row opening into the full histogram figure. Coverage (n of N) beside every aggregate; headline values rounded to the inventory's precision and scale; tables keep stored text. One "Numbers" disclosure; pipeline names only in the "How this was computed" footer. Undeclared recorded metrics (channelsInterpolated) only in the Numbers table, under their exported name.?v=selects another.src/lib/quality/render/(state marks, (i) tip, donut, ring, sparkline, signal card, checklist panel, tab),src/lib/quality/info-tip-client.ts(the only client code: Escape closes a tip),src/styles/data-quality.css(everything under.dq, tokens only),src/components/quality/DataQualityTab.astro;DatasetTabs.astrotakesquality: QualityPage(required); the dataset page buildsevaluateQuality(...)once.DatasetQualitySummary.astrois deleted;dataset-summary.tskeepsreadQualitySummary,SUMMARY_SENTENCES,metricLabel, and exportsmetricFigure,metricTableandcopyWords(summaryTree,recipeSection,notProcessedremoved; nothing imports them).## Update — 2026-11-28pointer: nemar-cli ADR 0146 supersedes in part the W6 addendum's "Where it lives"; decisions 1 to 7 stand; the README index line says so. No text deleted.AGENTS.mdmap updated.stagingby Quality views epic: changelog and stale docs #609; absence re-proved (no file, andgit grepfor the old names oversrc test e2e scriptsprints nothing).Deviations from the card
Pre-merge checklist (
.rules/ui-data-display.md)<code>, tips and the footer).aria-labelfrom stored values, and its data in a table.--color-success,--color-warningand the new--q-danger(dark-lifted, at least 3:1, tested).tokens.css.prefers-reduced-motionrespected.Screenshots
Taken locally with the repo's Playwright spec (
E2E_SHOTS=<dir> bun run test:e2e e2e/data-quality-tab.spec.ts) for shown (also the partial case: 3 of 6 processed), not processed and MEG, at 390 and 1280 px in light and dark, plus the real dev-server dataset page for a live EEG dataset at 1280 light and 390 dark. Not attached here; the reviewer has them, and the spec reproduces them.Tests and gates
bun run typecheck(0 errors),bun run lintNEMAR_CLI_QUALITY_CONTRACT,NEMAR_CLI_QUALITY_VIEWS): 27 passed;copy-quality-views-vocabulary.mjs --checkgreenbunx astro build && bun scripts/check-quality-views-size.mjs --require-build: passes (the tab adds no lazy chunk); the inventory is absent fromdist/_astrobun run test:e2e e2e/data-quality-tab.spec.ts: 13 passedbun run test:e2e e2e/dataset-tabs-deep-link.spec.ts: 2 passedbun run test(epic tostagingonly); CI's strict drift tests are red until Epic: quality axes and quality views nemar-cli#2524 reachesdev(one-merge rule)Part of #625 (close by hand after merge, naming the PR and commit)
Part of nemarOrg/nemar-cli#2524
Review round 1 (head e5a050c, #632's fixes merged in): names stay on one line with their (i) (short names, nowrap; in the main column the tiles pair as v3's narrow layout, Typical recording full width); each state sentence said once per panel, rows keep glyph and word; minus sign U+2212 for negatives; the off-scale ring slot shows its median as a number in the ring's place; All metrics histograms fill their column with one shared value column; donut center is HTML text at the site's sizes; tips open on
:focusand a dismissed tip stays closed inside its wrap; the sentence check reads template literals; e2e checks one-line names, the computed look of not supported against not processed, and the tip;text-wrap: prettyon sentences. Gates: targeted Vitest 365 pass / 4 skip, typecheck, lint, build and size check, inventory absent from dist, e2e 15 pass; screenshots regenerated.Review round 1, copy keys (head 569b138, #632 merged in): the tab prints the bytes sentence and the any-datatype not-supported sentence. Targeted Vitest 366 pass / 4 skip; strict drift against nemar-cli 7736cb96 27 pass; typecheck, lint, build and size check, inventory absent from dist; e2e 15 pass; screenshots regenerated.
Review round 2 (head 37ed363): in the narrow container queries the All metrics value column is
max-content, so each histogram keeps the rest of the row (at least 120 px at a 390 px window, asserted in e2e); the missing count's pip is a fixed-size HTML mark beside the value, never inside the stretched SVG; the aria-label and note phrases are declared once insrc/lib/quality/site-copy.ts(website-local: nemar-cli's copy has no matching key; a test refuses a key it already has); the unusedlinesvalue is dropped from the e2e; a new e2e checks the hover-only tip rearms when the pointer leaves its wrap. Gates: targeted Vitest 369 pass / 4 skip, typecheck, lint, build and size check, inventory absent from dist, e2e 16 pass at 390 and 1280 px in light and dark; screenshots regenerated.Agentic AI tools were used. Workflows follow the Research Skills (doi:10.5281/zenodo.20696515). The author assumes full responsibility for this content and associated changes.