frontend: add a Lighthouse check #1664
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 334 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1664"
general
weight: 0.35
Sigmanificient
This PR adds a Lighthouse check for the frontend, and changes the markup and styles so that the check passes. Close #1643.
Check
nix run .#lighthousebuilds the frontend and audits 6 pages for accessibility, best practices and SEO. It audits each page in the light and dark color schemes, on the mobile and desktop form factors. This gives 24 runs, which take approximately 2.5 minutes on a local machine.Frontend: Lighthouseworkflow does this check on pull requests that change the frontend, and on manual dispatch. It writes a summary to the run and attaches the HTML reports./backendrequests to the production backend, as the Netlify_redirectsdo.performancecategory, because the local server and a shared runner do not give stable values.Accessibility fixes
landmark-one-main: the content is now inmain.select-name: the sort label is now alabelforsort-select.heading-order: the package detail headings are nowh3, with the same style as before.list,listitem: the link to mail all maintainers is now in anli.target-size: the links of the platform and maintainer lists have a height of 24px.link-in-text-block: the footer links and option name links have an underline.color-contrast: the placeholder color is now#666, because#999gave 2.84:1 in the light color scheme.color-contrast: the option name links on the dark code block now use--light-blue, because#0078b4gave 2.61:1.Visible changes
Limits
Search.elmuseh4, and they failheading-order.version.nixchange comes before the index for that version, the check fails.How to check
Run
nix run .#lighthouse. It stops with exit code 0, and the reports go tolighthouse-report.Two changes made the check fail, as expected:
no match for ....options-detailsruns failcolor-contrast.Assisted-by: Claude:claude-opus-5-5
https://claude.ai/code/session_01RbKyH3w9GzRcJFnP87c7Xo