← Back to Pull requests

Give every image alt text, empty where text beside it says the same #2686

Open
unknown opened this pull request with 206 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 29, 2026 04:49 UTC
Author

Clears the image-alt and image-redundant-alt violations that #2651's axe check reports, apart from images users insert into mapper text boxes (below).

An image that is the only content of a link or control gets a name: the Wikipedia/Wikidata links get the site name, and the plot bar's clickable download and add images get "Download" and "Add region". These two also clear link-name on the external links. The search result icon is the only place a result's type appears, so it gets the type name from typesInOrder ("City", "CCD", "AU LGA", ...) or "Statistic". The share icon and the universe dropdown flags sit inside the same button as text naming them, so they get alt=""; the flags' alt repeated that text, which is what image-redundant-alt flagged. The header's universe button keeps its flag alt, since its aria-label already overrides it. clickUniverseFlag and the universe availability test found dropdown flags by alt, so they now match on src.

Not fixed: images inserted into mapper text boxes (mapper-regression, mapper-edit-text-boxes-*). Quill's image format accepts an alt attribute, but the insert prompt only asks for a URL, so there is no alt text to give it without adding UI for it.

With the axe check applied locally, histogram_x1, quiz_friends_x0_retro_desktop, article-universe, search, and the universe tests in statistics report no image-alt or image-redundant-alt and no new rule ids. Screenshot comparison (--docker=ci --compare=true) on statistics, search, article-universe and histogram_x1 changed no snapshots.

🤖 Generated with Claude Code

Diff: 206 lines (+154 / -52) across 2 files Reviewer: claude[bot] Review duration: 10m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 206 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.319
Real PR Conversation Timeline
1 comments
"Review active on #2686"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 43.0% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.4% (MEDIUM) · Higher = larger blast radius
36.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 43.0% · Lower = rushed or shallow review
43.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.7% · Safe to merge
20.7%