Skip to content

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

Merged
LukasWallrich merged 8 commits into
rebrand-doorsfrom
doors/premerge-polish-1196-1246
Nov 24, 2026
Merged

LukasWallrich merged 8 commits into
rebrand-doorsfrom
doors/premerge-polish-1196-1246

Conversation

@LukasWallrich

@LukasWallrich LukasWallrich commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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 1440 Disciplines after 1440 Disciplines foot after 1440
Mobile (390 px)
Before intro (390 px) After intro (390 px) After closing band (390 px)
Disciplines intro before 390 Disciplines intro after 390 Disciplines foot after 390

Teaching resources (/resources/)

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

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

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

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

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

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

Read-next before (1440 px) Read-next after (1440 px)
Read-next before 1440 Read-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 390 EC 001 read-next after 390

Status of all #1196 & #1246 items

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.

@LukasWallrich
LukasWallrich requested a review from a team as a code owner November 24, 2026 10:18
@github-actions

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📝 Spell Check Results

Found 6 potential spelling issue(s) when checking 22 changed file(s):

📄 content/replication-hub/_index.md

Line Issue
73 ORE ==> OR

📄 layouts/partials/citations/authors.html

Line Issue
17 Alle ==> All, Alley
17 Autor ==> Author
17 Alle ==> All, Alley
17 Autor ==> Author
17 Autor ==> Author

ℹ️ How to address these issues:

  1. Fix the typo: If it's a genuine typo, please correct it.
  2. Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to .codespell-ignore.txt
  3. False positive: If this is a false positive, please report it in the PR comments.

🤖 This check was performed by codespell

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 30 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread scripts/tests/test_doors_polish.py Resolved
Comment thread assets/css/doors/article.css Resolved
Comment thread content/replication-hub/_index.md Resolved
Comment thread scripts/tests/test_doors_polish.py Resolved
Comment thread scripts/tests/test_doors_polish.py Resolved
Comment thread assets/css/doors/clusters.css Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 9 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread scripts/create_announcements.R Resolved
Comment thread layouts/partials/citations/authors.html Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread assets/css/doors/article.css Resolved
Comment thread scripts/tests/test_doors_polish.py Resolved
@LukasWallrich
LukasWallrich merged commit bdb1a91 into rebrand-doors Nov 24, 2026
9 of 10 checks passed
@LukasWallrich
LukasWallrich deleted the doors/premerge-polish-1196-1246 branch November 24, 2026 18:16
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