Skip to content

Harden landing page accessibility and feature cards - #3

Merged
fepegar merged 4 commits into
mainfrom
improve-site-hardening
Jun 21, 2026
Merged

Harden landing page accessibility and feature cards#3
fepegar merged 4 commits into
mainfrom
improve-site-hardening

Conversation

@fepegar

@fepegar fepegar commented Jun 21, 2026

Copy link
Copy Markdown
Member

[Generated by a coding agent]


Summary

  • Improve accessibility and no-JavaScript behavior on the landing page.
  • Make the “Why TorchIO” feature cards clearly clickable, with visible link affordances and relevant docs or paper targets.
  • Add smaller rendered logo assets and image metadata.
  • Add local and CI static site checks.
  • Narrow the GitHub Pages deployment artifact to public files.

Validation

  • uv run python scripts/check_site.py --external
  • mise run check
  • mise run check:links
  • node --check assets/js/main.js
  • git diff --check
  • Local static server smoke test

Copilot AI review requested due to automatic review settings June 21, 2026 22:07
@fepegar fepegar changed the title Harden landing page accessibility and checks Harden landing page accessibility and feature cards Jun 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR strengthens the TorchIO landing page’s accessibility and progressive enhancement, and introduces automated static checks plus a tighter GitHub Pages deployment artifact.

Changes:

  • Add a Python-based static site checker (HTML semantics/anchors, image metadata, CSS safeguards, asset budget, optional external link validation) and wire it into local mise tasks and CI.
  • Improve landing page accessibility/no-JS behavior (skip link, <main> landmark, reveal gated by .js, live region updates, safer clipboard handling, and more consistent decorative SVG attributes).
  • Narrow the GitHub Pages artifact to only the public site files under _site/.

Reviewed changes

Copilot reviewed 8 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/check_site.py New static checker for local structure, assets, and (optionally) external links.
README.md Document local serving via mise and the new check tasks.
mise.toml Add check / check:links tasks to run the site checker.
index.html Accessibility + progressive enhancement updates (skip link, <main>, logo assets, SVG attributes, aria-live updates).
assets/js/main.js Harden clipboard behavior, add aria-live status updates, add // @ts-check and typings, improve augmentation switching.
assets/css/styles.css Add focus-visible outline, skip-link + visually-hidden utilities, gate reveal animations behind .js, tweak contrast.
.gitignore Ignore generated _site/ and copilot_log.md.
.github/workflows/deploy.yml Build a minimal _site/ artifact before uploading to GitHub Pages.
.github/workflows/checks.yml Add CI job to run the site checker (currently with external link checks enabled).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread assets/js/main.js
Comment thread scripts/check_site.py
Comment thread .github/workflows/checks.yml
@fepegar
fepegar merged commit d1bf2e5 into main Jun 21, 2026
1 check passed
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.

2 participants