Skip to content

Geo demo: Enterprise plugins link, main landmark, contrast, focusable scroll region (draft) - #92

Draft
arybach wants to merge 1 commit into
mainfrom
rails/demo-fixes
Draft

arybach wants to merge 1 commit into
mainfrom
rails/demo-fixes

Conversation

@arybach

@arybach arybach commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Draft. Touches only the geo demo (deploy/geo-demo/{app.py,static/index.html,README.md}) and tests/test_geo_demo_base_path.py. It does not touch the authorization stack (#91 etc.), branch protection, workflows or the build pins. Nothing is deployed or published by this PR.

Based on: main 21a7c24. The deployed geo-demo@sha256:f9ca8c7d7a1d was built from eb27120; git diff eb27120 21a7c24 -- deploy/geo-demo is empty (main only changed the test files' read_text(encoding=...)), so the demo's file set is the same as what is deployed and this applies cleanly to the deployed code.

Fixes (from the public-AKS UI baseline, defect 2 and axe on /geo/)

Baseline Change
"Enterprise plugins" -> https://demo.redevops.app/enterprise-plugins = 404 (the link was relative to the host root, ../enterprise-plugins) links the page that exists: https://redevops.io/enterprise-plugins/ (200, "ReDevOps Enterprise Plugins"); the __SITE_ROOT__ templating is removed because a host-relative link cannot be right on every host. The anonymous demo is unchanged; no gating
axe color-contrast, 55 nodes (white text on the #f56565 PROHIBITED pill, 2.9:1) dark text on the same red (>= 4.5:1; asserted for all three pills)
axe scrollable-region-focusable (.scroll) tabindex=0 role=region aria-label; PageDown/arrows scroll it
no <main> landmark (axe landmark-one-main, region) <main>, table <caption> and scope=col, focus-visible outlines
blank page if the API fails visible role=alert message

Tests

  • pytest tests/test_geo*.py: 85 passed (new: every page link is absolute https or #, and includes the enterprise-plugins URL; <main>, focusable labelled scroll region and AA contrast tokens). The pre-existing prefix contract + mutation tests still pass with the site-root mutation removed (it no longer exists).
  • Playwright (Chromium, local uvicorn with PUBLIC_BASE_PATH=/geo, 13/13): no horizontal overflow at 375/768/1280; axe serious/critical = 0 at all three widths (before: contrast x55 + scrollable-region-focusable); one <main>; 32 rows rendered; scroll region reachable by Tab and scrolled by PageDown; no console errors; the link set is exactly https://redevops.io/enterprise-plugins/ and https://redevops.io/architecture (both 200 today).
  • Not run: the full tests/ suite (25 test modules need extras I did not install); tests.yml on this PR will.

🤖 Generated with Claude Code

…scroll region, AA pill contrast

- the page linked ../enterprise-plugins (host-relative): https://demo.redevops.app/enterprise-plugins is a 404.
  It now links https://redevops.io/enterprise-plugins/ (200); the __SITE_ROOT__ templating is removed.
- <main>, table caption and column scopes, keyboard-focusable labelled scroll region, focus-visible outlines,
  a visible error if the sample cannot load
- PROHIBITED pill text white on #f56565 (2.9:1) -> dark on the same red; axe color-contrast 55 nodes -> 0
- tests: link and landmark/contrast contract in tests/test_geo_demo_base_path.py

Based on main 21a7c24; deploy/geo-demo is byte-identical between the deployed commit eb27120 and main.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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