Neurodiversity Lesson Bank: embed Activity 1 H5P natively, fix #1016, and restyle for Doors

Merged
LU
4d ago
+668-253

Fixes #1016.

Visitors on phones hit a 121 px sideways overflow on /neurodiversity-lessonbank/implicit_bias/, a red button failing WCAG AA contrast (3.92:1), and an external GitHub Pages H5P activity with no mobile viewport (an un-viewported 980 px iframe of a PNG). Across the rest of the lesson bank, pages still carried crude inline borders, ALL-CAPS display headings, broken layout tables, and an empty right half on wide screens.

This brings /neurodiversity-lessonbank/ and all five online lessons (implicit_bias, community-psychology-diversity, diversity-and-research, masterstools, generalizability) onto the Doors Social Justice (--jus / --jus-bg) layout while keeping all author content intact:

  • Fixes #1016 on /neurodiversity-lessonbank/implicit_bias/:
    • Replaces the fixed-width flex row with a responsive grid (0 px overflow at 390 px and 200% text zoom).
    • Embeds both Activity 1 H5P activities natively on forrt.org instead of routing through an un-viewported GitHub Pages iframe or the failing 3.92:1 red onclick button:
      • Transcribes the 1903 Lombroso (The North American Review, 177(562), 440–444) excerpts into five reading-order passages, each paired with its native <details> reflection hint (Hint 1–Hint 5), attributed to Lombroso (1903, JSTOR) and Magdalena Grose-Hodge's H5P activity (CC BY 4.0).
      • Renders the four True/False statements and answers as native <details class="spoiler"> disclosures, attributed to Magdalena Grose-Hodge's H5P quiz (CC BY-NC 4.0).
    • Removes GitHub Pages from the third-party #embedded-content table in content/privacy.md (GitHub Pages hosting of forrt.org itself is already disclosed in the hosting section, and implicit_bias was the only page using provider="GitHub Pages").
  • Scannable landing index (/neurodiversity-lessonbank/): pairs the intro with a Team Neurodiversity companion panel on desktop (moving it below the lessons on phones so the first lesson stays in the first screen at 390 px), distinguishes the 5 online lessons with summaries and Social Justice accents from the 4 PDF-only plans, marks off-site reading links with the site's external-link icon + (another website) text, and sets the workshop video beside its description.
  • Cohesive Doors reading layout across all 5 lessons: gives each lesson sentence-case heading_title, proper ## activity headings, a sticky desktop side card (PDF downloads, external feedback link, "On this page" TOC, Team Neurodiversity link), a compact mobile bar + phone TOC (with 44 px tap targets through the 1000 px tablet breakpoint), clean Doors note/excerpt/option/quote/case blocks in place of legacy inline HTML, and ordered Previous/Next + "Back to Neurodiversity Lesson Bank" navigation.

Before & after

Index at 1440 px — companion panel fills the empty right band beside the intro, online lessons get Social Justice accents and summaries, external reading links show the off-site icon, and the workshop video sits beside its text:

Before (1440 px)After (1440 px)
Index before at 1440 pxIndex after at 1440 px

Index at 390 px — removes the 2-item mobile TOC so the first lesson card appears inside the first screen (761 px top):

Before (390 px)After (390 px)
Index before at 390 pxIndex after at 390 px

/neurodiversity-lessonbank/implicit_bias/ at 1440 px — sentence-case heading, sticky Social Justice side card, responsive image pair, native Lombroso excerpt with expandable hints, and native True/False quiz with CC BY 4.0 / CC BY-NC 4.0 attribution:

Before (1440 px)After: page top (1440 px)
Implicit bias before at 1440 pxImplicit bias after at 1440 px
After: inline excerpt & hints (1440 px)After: inline quiz & attribution (1440 px)
Implicit bias excerpt after at 1440 pxImplicit bias quiz after at 1440 px

/neurodiversity-lessonbank/implicit_bias/ at 390 px — fixes the 121 px horizontal overflow and replaces the un-viewported H5P iframe + 3.92:1 red button with native mobile-friendly disclosures:

Before: 121 px overflow (390 px)Before: red button & H5P (390 px)After: inline quiz (390 px)
Implicit bias overflow before at 390 pxImplicit bias activity before at 390 pxImplicit bias quiz after at 390 px

/neurodiversity-lessonbank/community-psychology-diversity/ at 1440 px — replaces the pasted layout table and blue onclick buttons with Doors option cards, accessible links, and fixed nested bullet list:

Before (1440 px)After (1440 px)
Community psychology before at 1440 pxCommunity psychology after at 1440 px

Decisions to review

  • Area colour (--jus / --jus-bg): Styled the Neurodiversity Lesson Bank in Social Justice & DEIA purple (DESIGN.md §6, matching Team Neurodiversity and DEI Summaries) rather than general Education green.
  • Native Activity 1 excerpt & quiz: Rather than keeping two static GitHub Pages H5P activities behind click_to_load or an off-site button (forrt.org itself is hosted on GitHub Pages, and the H5P image hotspot lacked a mobile viewport), both activities are embedded natively with CC BY 4.0 / CC BY-NC 4.0 attribution to Magdalena Grose-Hodge and JSTOR source attribution to Lombroso (1903).
  • Cleaned meta descriptions (scripts/rebrand/allowed_changes.txt): Wrote clean one-sentence description: values for the 5 lessons instead of keeping the old auto-generated summaries (which opened with "LEAVE FEEDBACK HERE..." or cut off mid-section). Kept title: intact (using heading_title: for sentence-case display) so <title> and /neurodiversity-lessonbank/ JSON-LD stay unchanged.
  • Breadcrumb heading_title fallback: layouts/partials/doors/article_header.html now falls back to heading_title for the visible current-page crumb, which also fixes previously empty last crumbs on /citation-politics/ ("Towards Citational Justice") and /citation-politics/toolkit/ ("Citation Politics Toolkit").
  • Broken DOI fix, quote cleanup & ____ blanks: Fixed broken Markdown [https://doi.org/10.20883/jofa.36) on implicit_bias Activity 4 Article 1 (which resolved to an unrelated dermatology paper) to the actual Zwaigenbaum & Penner (2018) BMJ 361 DOI (https://doi.org/10.1136/bmj.k1674). Removed the stray PDF page-header artifact "Lorde 2" from the third quote in masterstools. On generalizability, replaced the raw ____________________ underscore rules between case studies with a cleanly separated numbered list.

Verification

  • hugo --gc --cleanDestinationDir builds cleanly.
  • python3 -m unittest discover -s scripts -p 'test_parse_disciplines_gdoc.py' (11/11 OK) and scripts/tests (189/189 runnable locally; test_summaries passes in CI).
  • python3 scripts/rebrand/check_source_rules.py --base origin/rebrand-doors — 0 violations.
  • python3 scripts/check_seo_html.py — 28/28 checks pass locally.
  • python3 scripts/rebrand/compare_builds.py — 0 removed/added addresses, 0 structured-data drops, 0 unexpected SEO changes.
  • Playwright design + axe-core + 200% text zoom + icon subset audit across all 6 lesson bank pages and /privacy/ at 390, 760, 900, 1024, and 1440 px (including all Activity 1 hint and quiz disclosures open) — 0 failures (implicit_bias overflow: 121 px → 0 px, 0 contrast failures, 0 axe Level A/AA violations, tablet tap targets ≥44 px, .lesson-grid width 1280 px at 1440 px, first lesson card at 761 px on 390 px).

Created with Gemini 4 Neon in T3 Code (reviewed pre-PR with Claude Opus 5.5).