Doors polish: resolve remaining #1196 and #1246 contrast, component and copy items

Merged
LU
4d ago
+289-102

Resolves the remaining template, contrast, accessibility and copy polish items from #1196 (body and both comments) and #1246 that are not already fixed on rebrand-doors, not covered by open PRs, and not source-sheet data issues.

Addresses #1196, #1246.

What changes for visitors

Disciplines (/disciplines/)

  • WCAG AA link contrast: Replaced low-contrast #1c7ed6 (3.55:1 on --surface) with var(--link) (6.70:1) and underlined DOI links across .sc-description, .publication-item, .ref-doi-link, .rl-detail-doi-link and back-to-top focus outlines.
  • Legible Reading List pill: Raised .rl-pill to 15 px and the .rl-pill-count badge from 11.6 px (0.58 rem) to 14 px (DESIGN.md §7).
  • UKRN credit placement: Moved the "Supported by UKRN" credit out of the intro (where it sat between the intro and search on phones) into a balanced .disciplines-foot band beside the feedback form and "How to cite" (56 px on phones). Removed the dead #disciplines-layout .cluster-number rule.
  • Simpler search bar: Removed the confusing Include resources checkbox (clusters-page.js already searches disciplines and resources by default when absent).

Teaching resources & curated resource pages (/resources/, /curated_resources/...)

  • No repeated filter/sort wording: Hid "by type, level and cluster" when the filter drawer is open (keeping the mobile closed summary cleanly aligned) and moved ", A to Z" / ", newest first" into a visually hidden span inside #resultCount so screen readers still announce sort changes without repeating the sort menu.
  • Uniform cluster filter rows: Stacked multi-word cluster filters as full-width rounded rows (min-height: 56 px, colour swatch left, tabular count right) so one- and two-line cluster names share uniform height at 390 px and 1440 px while still expanding for longer names or 200% text.
  • Separated collection history: Moved <details class="collection-about">How the collection grew</details> out from under the "Missing a resource?" heading into its own .collection-history section.
  • Consistent breadcrumb naming: Unified /resources/ and /curated_resources/... breadcrumbs to Teaching resources (honouring explicit .label in doors/crumbs.html).

Glossary & site-wide references (/glossary/..., layouts/partials/citations/)

  • Unified term list & placeholder: Unified the mobile glossary disclosure label to match desktop (List of terms / localised heading) instead of an English-only "Find another term" override, and added a concise localised placeholder (e.g. replication, z. B. Replikation, Arabic, Turkish, Chinese) to #glossary-search.
  • Consistent, localised author toggles: Raised the author-collapse threshold so complete ≤ 6-author lists stay expanded (never hiding ≤ 3 authors), while complete 7+ lists show "Show all N authors" and incomplete entries containing an ellipsis / "et al." / "others" (≥ 6 named authors) show "Show all authors", localised across English, Arabic (lang="ar" dir="rtl"), German, Turkish and Chinese.

Clusters, Replication Hub, Lesson Plans & cross-page polish

  • Cluster sub-cluster counts (/clusters/...): Unfiltered groups now show "10 references" instead of "10 of 10 shown"; groups with specialist items hidden by default show "25 references (2 specialist hidden)" with a tooltip pointing to the specialist toggle; "M of N shown" appears only when a filter or search is active.
  • Replication Hub (/replication-hub/): Removed repeated tool kind labels (FReD, FORRT ORE, Plug-in), aligned stage taglines with the hub diagram (replication_hub.webp), and removed the unexplained stage-colour override on the first tool heading.
  • Lesson Plans (/lesson-plans/): Hid "On a narrow screen, the table below scrolls sideways." above 760 px and removed the inline border: 0px override on the Pedagogical Activities embed (style="width:100%;") so Feedback and Activities frames match.
  • Cross-page consistency: Linked "About FORRT" in config/_default/menus.toml to about/us so breadcrumbs consistently link it; unified "Metascience & Research" → "Meta-Science & Research" in the Booklet and Educators' Corner 023 body (leaving summary untouched for SEO parity); unified "Join our Slack" → "Join FORRT's Slack" on Get Involved intro.

Articles, read-next cards & Educators' Corner (#1246, non-conflicting with #1243)

  • Read-next cards (article_card.html): Picture-less newsletter read-next cards now use the news-list brick pattern (Previous · Newsletter / issue title + summary, stating each fact once); picture-less ordinary news cards expose their category brick to screen readers (removed aria-hidden="true").
  • Mobile Educators' Corner read-next crop: Added a whole-image treatment (object-fit: contain) for .read-next-edu image thumbnails on phones (≤ 760 px, excluding .ac-panel) so the Transparency Checklist table is shown whole instead of cropping ~52% of its width.
  • Optional announcement contact in the side card: Kept FORRT's side card on announcements (so shared links keep FORRT's social icons and dates prominent) and added optional contact support to reading_card.html and scripts/create_announcements.R (links author profiles or mailto: if a Contact column is added to the Announcements sheet).
  • Educators' Corner 007 & author icons: Removed stray <br><br> / <br> tags creating a ~92 px gap under the Google Forms box in EC 007 (now 18 px); changed .ac-summary in article.css from overflow-wrap: anywhere to break-word; scaled and slightly weighted .ai-google-scholar in author icon rows to match neighbouring Font Awesome icons.

Before and after (1440 px & 390 px)

Disciplines (/disciplines/)

Before (1440 px)After (1440 px, top)After (1440 px, closing band)
Disciplines before 1440Disciplines after 1440Disciplines foot after 1440
Mobile (390 px)
Before intro (390 px)After intro (390 px)After closing band (390 px)
Disciplines intro before 390Disciplines intro after 390Disciplines foot after 390

Teaching resources (/resources/)

Before (1440 px)After (1440 px)
Resources filters before 1440Resources filters after 1440
Mobile cluster filters (390 px)
Before (390 px)After (390 px)
Resources filters before 390Resources filters after 390

Glossary & Citations (/glossary/english/abstract_bias/, /glossary/english/transparency_checklist/)

Before (1440 px)After (1440 px)
Glossary before 1440Glossary after 1440
Citation toggle before (1440 px)Citation toggle after (1440 px)
Citation before 1440Citation after 1440
Mobile glossary term list (390 px)
Before (390 px)After (390 px)
Glossary before 390Glossary after 390

Cluster 1 default counts (/clusters/cluster-1/)

Before (1440 px)After (1440 px)
Cluster 1 before 1440Cluster 1 after 1440

Read-next cards & Educators' Corner mobile read-next

Read-next before (1440 px)Read-next after (1440 px)
Read-next before 1440Read-next after 1440
Educators' Corner 001 mobile read-next — Transparency Checklist uncropped (390 px)
Before (390 px)After (390 px)
EC 001 read-next before 390EC 001 read-next after 390

Status of all #1196 & #1246 items

  • Resolved in this PR: All items listed in What changes for visitors above.
  • Already fixed on origin/rebrand-doors: Disciplines duplicate "How to cite", 1–7 numbering badges, single-discipline "Expand all", desktop sidebar duplication and field/legend colours; curated-resource eyebrow type repetition (#1239); cluster sidebar count mismatch (#1235/#1237); /tags/ inconsistent "Show all" threshold (#1251); desktop logo/figure read-next cropping (#1259).
  • Covered by open/merged PRs (not duplicated to avoid conflicts):
    • #1243 (hc/articles2): Newsletter post layout, Educators' Corner portraits/figures/editor's note.
    • #1265 (hc/get-involved): Get Involved page items from #1196 comment 1.
    • #1159 (hc/glossary-labels): Chinese/Arabic glossary hub and filter result/clear strings.
    • #1266 (hc/404-glossary-refs): 404 & glossary references layout.
    • #1267 (hc/education-lists): Pedagogies & Educators' Corner list pages.
    • #1269 (hc/teams-governance): Teams & Steering Committee.
    • #1297 (doors/enhance-mission-awards-testimonials, merged): Awards & Impact (content/awards/awards.md, already using Meta-Science & Research).
  • Source-sheet / Google Doc data items left for sheet owners:
    • Duplicate curated resources appearing in earlier clusters (forrt_clusters / Google Sheet source data).
    • Near-duplicate tags (e.g. singular/plural or capitalisation variants) in the curated-resources Google Sheet.
    • 18 BibTeX entries in the Glossary BibTeX Google Doc (1-KKsOYZWJ3LdgdO2b2uJsOG2AmUDaQBNqWVVTY2W4W8) that currently contain literal and ... / and others (including Aczel2020).

Checks

  • HUGO_TIMEOUT=300s hugo -d /tmp/forrt-after: 3,516 pages built cleanly.
  • python3 scripts/rebrand/check_source_rules.py --base origin/rebrand-doors: 0 hard-coded URLs, 0 generated paths changed.
  • python3 scripts/check_seo_html.py /tmp/forrt-after & scripts/rebrand/compare_builds.py: all checks pass locally; CI Designed screens, Accessibility rules, Compare with main, Build, script-tests, check-images, and cubic · AI code reviewer all pass.
  • Unit tests: test_doors_polish.py (8/8), test_parse_disciplines_gdoc.py (11/11), test_summaries.py (6/6), test_rebrand_checks.py + test_clusters_data.py + test_check_seo_html.py (120/120).

Created with Gemini 4 Neon in T3 Code.