ci: add lighthouse performance and accessibility gate - #507
Merged
Conversation
Add Lighthouse CI checks for key frontend routes with enforced performance (≥80) and accessibility (≥95) budgets, SEO budget configuration, PR comment with scores, and committed baseline config. - Add @lhci/cli and lighthouserc.cjs configuration - Add GitHub Actions workflow running on PRs to main - Add preview script to frontend/package.json - Fix pre-existing build-blocking syntax errors in App.tsx, ToastContext.tsx, Hero.tsx, SendXLMForm.tsx, TransactionTable.tsx, Toast.css, TaskSubmissionForm.tsx, and global.css Closes Epta-Node#377 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@zainabwahab-eth Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
@zainabwahab-eth is attempting to deploy a commit to the Jaja's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Lighthouse CI checks for key frontend routes with enforced performance and accessibility budgets, SEO budget configuration, PR comment with scores, and committed baseline configuration.
@lhci/cliandlighthouserc.cjsconfiguration.github/workflows/lighthouse.yml) running on PRs tomainpreviewscript tofrontend/package.jsonApp.tsx,ToastContext.tsx,Hero.tsx,SendXLMForm.tsx,TransactionTable.tsx,Toast.css,TaskSubmissionForm.tsx, andglobal.cssto enable the production build needed for Lighthouse auditingCloses #377
Routes tested
//agentsThresholds
How it works
npx vite buildproduces a production build indist/npx vite preview --host 0.0.0.0 --port 4173serves the production buildlighthouserc.cjsenforces performance ≥ 0.80 and accessibility ≥ 0.95Files changed
.github/workflows/lighthouse.ymlfrontend/lighthouserc.cjsfrontend/package.jsonpreviewscript and@lhci/clidevDependencyfrontend/package-lock.jsonfrontend/src/App.tsxfrontend/src/context/ToastContext.tsxfrontend/src/components/landing/Hero.tsxfrontend/src/components/wallet/SendXLMForm.tsxfrontend/src/components/wallet/TransactionTable.tsxfrontend/src/components/common/Toast.cssfrontend/src/components/agents/TaskSubmissionForm.tsxfrontend/src/styles/global.cssHow to run locally
cd frontend npm ci npx vite build npx lhci autorun