Skip to content

IS-K1: RAVE credit declared once, with notices file - #549

Merged
neuromechanist merged 8 commits into
feature/issue-537-epic-spatialfrom
feat/is-k1-credit
Nov 18, 2026
Merged

neuromechanist merged 8 commits into
feature/issue-537-epic-spatialfrom
feat/is-k1-credit

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Card IS-K1. Part of #537.

What changed

  • src/lib/ieeg-spatial/credit.ts: the RAVE credit declared once ("Electrode view inspired by RAVE", https://rave.wiki, the RAVE paper's DOI in the title), with its three forms: creditLink (live anchor, attribute map creditLinkAttributes testable without a DOM), paintCredit (canvas, bottom-right, 11 CSS pixels times the device pixel ratio, returns the box) and creditSvg (<a href> around <text> plus <metadata> with credit, address and DOI). Both painters share the pure creditLayout.
  • src/styles/eeg-viewer.css: the .eegv-credit class only, token colors, visible focus ring.
  • THIRD_PARTY_NOTICES.md: "Required" (MNI template notice by reference, BIDS validator bundle) separate from "Acknowledged" (RAVE, with citation, stating no RAVE code or data ships).
  • Wording never says RAVE rendered or powers the figure; a test enforces it, and a repository scan keeps the sentence and address in credit.ts alone.

Gates run

  • bun install --frozen-lockfile: no changes.
  • bun run typecheck: 0 errors, 0 warnings, 19 hints (pre-existing).
  • bun run lint: "Checked 431 files. No fixes applied."
  • bun run test src/lib/ieeg-spatial: 6 files, 157 tests passed.
  • Leak check on THIRD_PARTY_NOTICES.md: all three commands print nothing.
  • Each test fails under its named mutation (drop noopener; omit <metadata>; ignore the ratio; copy the sentence into another source file; plus SVG anchor rel and a hard-coded CSS color), reverted, tree clean.
  • rave.wiki and the DOI resolve (GET, HTTP 200 after redirects).

Not run

  • CI: not run, would check every job green on the final head, because the manager reads gh pr checks.
  • grep -rn "Louis Collins" public/vendor/brain-templates: pending until IS-T1 merges (the directory does not exist yet).

Review round 1 (head 71ccc66)

Fixed: link target is 24 px tall (min-block-size, inline-flex; painters stay 11 px); the notices no longer quote the sentence, and the declared-once scan now covers them; creditLinkSpec with aria-label, underline at rest, paintCredit and margin tests, DOI relation and attribute-escape tests.
Gates at 71ccc66: typecheck 0 errors, lint "No fixes applied", bun run test src/lib/ieeg-spatial 168 passed, leak check silent.

Notes

  • Pending until IS-T1 merges (the directory is absent at this base): grep -rn "Louis Collins" public/vendor/brain-templates and the vendored-template paths named in THIRD_PARTY_NOTICES.md.
  • SVG: the link uses href without xlink:href, fine in modern browsers and Inkscape 1.x, while old editors may drop the link. The backing width comes from a 0.58 em per glyph estimate (cosmetic; the text is right-anchored).
  • Math.max(0, ...) in creditLayout is intentional defensive code: a canvas smaller than the margins gives an empty box, never a negative size.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 71ccc66
Status: ✅  Deploy successful!
Preview URL: https://6f0b6de4.nemar-website.pages.dev
Branch Preview URL: https://feat-is-k1-credit.nemar-website.pages.dev

View logs

@neuromechanist

Copy link
Copy Markdown
Contributor Author

Review round 1 (Sonnet, project:pr-review-toolkit) fixed on head 4157463: creditLinkSpec with aria-label, underline at rest, paintCredit and layout margin tests, DOI relation and attribute-escape tests, CSS focus and token tests, broader wording scan, notices reworded to state the rule rather than unlanded code. Gates rerun: typecheck 0 errors, lint clean, bun run test src/lib/ieeg-spatial 167 passed. Pending: the Louis Collins grep until IS-T1 merges. CI not run, manager reads gh pr checks.

@neuromechanist
neuromechanist merged commit 5b10523 into feature/issue-537-epic-spatial Nov 18, 2026
5 checks passed
@neuromechanist
neuromechanist deleted the feat/is-k1-credit branch November 18, 2026 00:36
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