Steering Committee: keyboard-accessible cards and profile dialogs, and retire stale static games JSON

Merged
LU
4d ago
+371-797

Visitors using a keyboard or screen reader on /about/steering-committee/ could not reliably focus member cards or hear a label for modal close buttons, and /data/open_research_games.json still served an unlinked, stale 39-game JSON export from November 2025.

Fixes #1157
Fixes #1151

What changes

  • Steering Committee accessibility (#1157):

    • Updated scripts/generate_sc_profiles.py so member cards render as valid HTML5 <button type="button" class="sc-card" ...> elements (phrasing content only, decorative alt="" on portraits, aria-haspopup="dialog", aria-controls), modals carry role="dialog", aria-modal="true", and aria-labelledby, .sc-close-btn has type="button" and aria-label="Close profile" with aria-hidden="true" on its SVG, and social icon links carry accessible labels.
    • Updated assets/js/doors/steering.js and static/css/steering-committee.css so both the currently committed generated page (<div> cards) and future regenerated <button> output immediately provide keyboard focusability (tabindex="0", role="button", Enter/Space activation for legacy <div> cards), unclipped :focus-visible outlines, aria-label="Close profile", Escape-to-close, Tab focus trapping, immediate dialog visibility on open (replacing transition: all on modal descendants that delayed inherited visibility and blocked focus), preserved var(--display) typography on .sc-card-name, and focus restoration to the triggering card on close.
    • Left generated content/about/steering-committee/index.md untouched (guarded by check_source_rules.py), and kept CSS changes in static/css/steering-committee.css so this PR does not conflict with PR #1269.
    • Added unit tests in scripts/tests/test_generate_sc_profiles.py.
  • Retire stale /data/open_research_games.json (#1151):

    • Removed static/data/open_research_games.json rather than syncing it from scripts/build_games_portal.py: nothing on forrt.org reads /data/open_research_games.json (/open-research-games-portal/ builds directly from data/open_research_games.json, and /apps/open_research_games_portal.html redirects there), and the old static file used a broken legacy dict-keyed schema incompatible with the current {"source", "games"} output.
    • Added data/open_research_games.json to scripts/rebrand/allowed_changes.txt, added REMOVED_OUTPUTS support in scripts/rebrand/check_source_rules.py, excluded the retired file from data-processing.yml uploads and scripts/data_artifact.py, cleaned it from build-resources on the next data-processing.yml run, and guarded deploy.yaml, scripts/rebrand/apply_artifacts.sh, and scripts/rebrand/rehearse_launch.py so pre-merge data-artifact archives cannot resurrect it.

Screenshots (/about/steering-committee/)

Keyboard focus ring on the first Steering Committee card and the opened member profile modal (with focus on Close profile) at 1440 px and 390 px:

1440 px — Keyboard focus on card1440 px — Opened profile modal (Close profile focused)
sc-focus-desktop-1440sc-modal-desktop-1440
390 px — Keyboard focus on card390 px — Opened profile modal (Close profile focused)
sc-focus-mobile-390sc-modal-mobile-390

Decisions to review

  • Retiring /data/open_research_games.json vs. mirroring data/open_research_games.json: retiring it means https://forrt.org/data/open_research_games.json will return 404 after launch rather than serving stale or schema-changed data; data/open_research_games.json remains the single generated source of truth.

Checks

  • Unit tests: test_generate_sc_profiles.py (8), test_rebrand_checks.py (63), test_data_artifact.py (12), test_build_games_portal.py (18), test_parse_disciplines_gdoc.py (11) — all PASS
  • python3 scripts/rebrand/check_source_rules.py --base origin/rebrand-doors and --base origin/main — PASS (0 findings)
  • hugo --gc --minify + python3 scripts/check_seo_html.py — all 28 checks PASS; /data/open_research_games.json absent from build
  • python3 scripts/rebrand/compare_builds.py — PASS (OK: the URL list, structured data and SEO tags match)
  • python3 scripts/rebrand/check_design.py --base / --jobs 4 — PASS (0 failures)
  • python3 scripts/rebrand/check_axe.py --base / + Playwright closed/open modal axe-core checks at 390 px and 1440 px — 0 WCAG A/AA violations
  • Playwright keyboard verification (with CSS transitions enabled): Tab focus ring, Enter/Space activation, immediate focus onto Close profile button, Escape & button close restoring focus to triggering card, and Newsreader display font preserved on regenerated <button><span class="sc-card-name"> markup

Created with Gemini 4 Neon in T3 Code (Antigravity); pre-PR review by Claude Opus 5.5.


Summary by cubic

Makes the Steering Committee member cards and profile dialogs on /about/steering-committee/ keyboard- and screen-reader accessible (#1157), and retires the stale static games JSON that nothing on the site reads (#1151).

Accessibility

  • Member cards now render as <button> elements with dialog semantics, and the already-generated <div> cards gain keyboard focus and Enter/Space activation.
  • Profile dialogs get proper labels, focus trapping, Escape-to-close, and focus restoration to the triggering card, with generated markup and steering.js coordinating so focus handling is not duplicated.
  • Modal transitions changed so dialogs are immediately visible and focusable on open.

Retiring stale games JSON

  • Removes static/data/open_research_games.json; /data/open_research_games.json will 404 after launch instead of serving an unlinked, schema-incompatible export.
  • Deploy and rebrand tooling is guarded so older data artifacts cannot resurrect the retired file.