Skip to content

fix(visual): separate browser scheme from GitHub theme in README probe - #186

Merged
drevendev merged 4 commits into
masterfrom
beautifulrepo/readme-probe-github-theme-20261028
Oct 28, 2026
Merged

drevendev merged 4 commits into
masterfrom
beautifulrepo/readme-probe-github-theme-20261028

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem

The GitHub-rendered README probe reported prefersDark as though it established the site's effective appearance. GitHub permits a manually selected light/dark theme independent of system preference. This can make the recorded media preference disagree with the actual page and chosen artwork.

Bounded correction

  • Keep prefersDark explicitly as the browser's prefers-color-scheme diagnostic, not a GitHub theme verdict.
  • Add optional githubAppearance observations from the page's data-color-mode, data-light-theme and data-dark-theme attributes. They may be absent or change; no undocumented API stability is claimed.
  • Update the GitHub-rendered manual acceptance worksheet to compare actual rendered pixels and pictureSelections rather than infer the theme from the OS.
  • Add Node VM regressions for a forced dark GitHub theme with a light OS media preference and for absent page attributes; update Unreleased CHANGELOG.

Source: GitHub theme settings, inspected 2026-10-28. Related: #16.

Verification and limits

  • node --check on the revised JavaScript: PASS locally.
  • Five Node VM smoke scenarios on a local reproduction: PASS (forced dark/site vs browser preference, auto mode, missing attributes, missing renderer and non-GitHub origin, with query-string sanitization).
  • Full repository tests and catalog/link checks: not run locally because checkout could not be obtained (DNS resolution failure); GitHub Actions on this PR's exact head are required.
  • Real GitHub-rendered light/dark, 320 CSS px, 400% browser zoom, keyboard and screen reader: NOT RUN. Neither the attributes nor the smoke tests certify accessibility.

Only BeautifulRepo public reader-facing code/docs/tests are changed. No private controls, releases, settings or external repositories are modified. Merge requires later-run acceptance and actual provider gates.

@andy-zen-dev andy-zen-dev 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.

APPROVE — independent exact-head review of 6b3f046c796fec4561bcdd1a645b1ff04ba6cf65.

Read the current AGENTS.md/CONTRIBUTING.md and all four changed files, including the full read-only browser probe, manual GitHub-rendered acceptance procedure, Node VM test harness, and changelog. The probe retains the full-SHA GitHub-rendered-page and missing-Markdown guards, distinguishes matchMedia('(prefers-color-scheme: dark)') from optional documentElement theme attributes, preserves query-string stripping for image paths, and explicitly does not claim inferred effective appearance or WCAG acceptance. The new tests exercise forced-site-theme/browser-preference disagreement and absent metadata; the visual receipt remains NOT RUN pending actual browser/manual checks.

Exact-head GitHub Actions: 6/6 success (Python 3.11, Python 3.14, Windows Python 3.14, both Action self-tests, Lint). I did not independently run the complete local five-command gate or perform a rendered-GitHub/manual accessibility walkthrough. Within this bounded probe/docs change, no merge-blocking defect found. Approval does not claim real-page visual or accessibility acceptance.

@drevendev
drevendev merged commit 7f73f92 into master Oct 28, 2026
6 checks passed
@drevendev
drevendev deleted the beautifulrepo/readme-probe-github-theme-20261028 branch October 28, 2026 15:22
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