Skip to content

Conversation

@garybrowndev
Copy link
Owner

  • Extract direct Lighthouse audit report URL from comparison link
  • Display both direct and comparison URLs in PR comments and job summaries
  • Users can now view individual audit results without comparison view
  • Decode URL-encoded compareReport parameter to get direct report link
  • Update all Lighthouse workflows (mobile, desktop) to show both links with emoji indicators

Changes:

  • scripts/lighthouse-metadata.cjs: Parse and extract directReportUrl
  • scripts/lighthouse-report-markdown.cjs: Include direct report in job summary
  • ci-lighthouse-mobile.yml: Show direct + comparison links in PR comment
  • ci-lighthouse-desktop.yml: Show direct + comparison links in PR comment

Copilot AI review requested due to automatic review settings January 15, 2026 22:02
@github-actions github-actions bot added ci/cd Continuous integration and deployment workflows github GitHub configuration, actions, and repository settings labels Jan 15, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to extract and display direct Lighthouse audit report URLs alongside comparison URLs. Previously, only comparison URLs were shown; now users can access individual audit results without the comparison view.

Changes:

  • Parse compareReport URL parameter from Lighthouse CI upload logs to extract direct report URLs
  • Update PR comments and job summaries in both mobile and desktop workflows to display both direct and comparison report links
  • Refactor URL link rendering to show multiple report types with distinct emoji indicators

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
scripts/lighthouse-metadata.cjs Extracts direct report URL from URL-encoded compareReport parameter and adds BOM removal for file encoding compatibility
scripts/lighthouse-report-markdown.cjs Updates markdown generation to include direct report link with updated labels for comparison reports
.github/workflows/ci-lighthouse-mobile.yml Modifies PR comment to display both direct and comparison report links
.github/workflows/ci-lighthouse-desktop.yml Modifies PR comment to display both direct and comparison report links

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@garybrowndev garybrowndev force-pushed the feature/lighthouse-direct-report-links branch from 1b69993 to d02be26 Compare January 15, 2026 23:47
Repository owner deleted a comment from github-actions bot Jan 16, 2026
Repository owner deleted a comment from github-actions bot Jan 16, 2026
Repository owner deleted a comment from github-actions bot Jan 16, 2026
Repository owner deleted a comment from github-actions bot Jan 16, 2026
Repository owner deleted a comment from github-actions bot Jan 16, 2026
…rove metadata debugging

- Added PR comment steps for mobile and desktop Lighthouse results
- Each result shows both Direct Report and Comparison Report links
- Added debug warnings in metadata extraction for better troubleshooting
- Ensures Lighthouse audits on Surge preview are visible in PR
@garybrowndev garybrowndev force-pushed the feature/lighthouse-direct-report-links branch from d02be26 to 0411cf0 Compare January 16, 2026 21:35
Repository owner deleted a comment from github-actions bot Jan 18, 2026
Repository owner deleted a comment from github-actions bot Jan 18, 2026
Repository owner deleted a comment from github-actions bot Jan 18, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2026

🤖 Automated PR Report for 5ab3ec2

Pull Request Labeler (automation-label-pull-request.yml)

PR: feat: Add direct report links alongside comparison reports (#100)

Current Labels

  • ci/cd
  • github

View Workflow Run

Dependency Review (security-dependency-review.yml)

✅ No vulnerabilities or denied packages found.

View Workflow Run

Trivy Security Scan (security-trivy-scan.yml)

Trivy scan completed. Results have been uploaded to the GitHub Security tab.

Scanned Categories

  • ✅ Vulnerabilities (CRITICAL, HIGH)
  • ✅ Secrets / Credentials
  • ✅ Infrastructure Configuration

View Workflow Run

OWASP Dependency Check (security-owasp-dependency-check.yml)

Total Vulnerabilities: 0

Severity Breakdown

Severity Count
🔴 High/Critical 0
⚠️ Medium 0
ℹ️ Low 0

✅ No vulnerabilities found.

View Workflow Run

Standalone Build Results (ci-standalone-build.yml)

File Size
pinball-trainer-standalone.html 0.79 MB

View Workflow Run

npm Audit Results (security-npm-audit.yml)

✅ No vulnerabilities found.

View Workflow Run

Bundle Size Report (ci-bundle-analysis.yml)

Metric Size
Total dist size 2.57 MB
Main JS bundle 301.03 KB
Main CSS bundle 41.57 KB
Total assets 7 files

Recommendations

  • 🎯 Keep main JS bundle under 200 KB for optimal performance
  • 🎨 Keep CSS bundle under 50 KB
  • 📁 Keep total dist size under 2 MB

Bundle analysis completed at 2026-01-18T17:40:00.208Z

View Workflow Run

CodeQL Security Analysis (security-codeql-security-analysis.yml)

Total Alerts: 1

Severity Breakdown

Severity Count
🔴 Error 0
⚠️ Warning 1
ℹ️ Note 0

Detailed Findings

Rule Message Location
js/regex/missing-regexp-anchor When this is used as a regular expression on a URL, it may match anywhere, and arbitrary hosts may come before or after it. scripts/lighthouse-metadata.cjs:52

View Workflow Run

Code Quality Results (ci-code-quality.yml)

Check Status
ESLint ✅ Passed
Prettier ✅ Passed

📊 Code Statistics

Metric Count
Files 29
Lines 15968

View Workflow Run

Lighthouse Audit - Desktop (ci-lighthouse-desktop.yml)

📊 Desktop Lighthouse Results

Tested URL: http://localhost:9222/pinball-trainer-standalone.html

Metric Score
Performance 100%
Accessibility 100%
Best Practices 96%
SEO 100%

Reports:

View Workflow Run

WebKit Browser Test Results (ci-webkit-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 10 0 27.15s
Accessibility Tests ✅ PASS 7 7 0 13.76s

View Workflow Run

Lighthouse Audit - Mobile (ci-lighthouse-mobile.yml)

📊 Mobile Lighthouse Results

Tested URL: http://localhost:9222/pinball-trainer-standalone.html

Metric Score
Performance 91%
Accessibility 100%
Best Practices 96%
SEO 100%

Reports:

View Workflow Run

Chromium Browser Test Results (ci-chromium-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 11 0 22.71s
Accessibility Tests ✅ PASS 7 7 0 8.05s

View Workflow Run

Firefox Browser Test Results (ci-firefox-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 11 0 25.11s
Accessibility Tests ✅ PASS 7 7 0 10.65s

View Workflow Run

Visual Regression Results (ci-visual-regression-tests.yml)

Suite Status Total Passed Failed Time
Visual Comparison ✅ PASS 24 24 0 44.07s

View Workflow Run

Unit Test Results (ci-unit-tests.yml)

Suite Status Tests Failures Errors Time
Unit Tests ✅ PASS 253 0 0 134s
Accessibility Tests ✅ PASS 7 0 0 1s

View Workflow Run

Code Coverage Results (ci-coverage-reporting.yml)

Category Lines Statements Functions Branches
Total 63.06% 63.66% 74.57% 59.85%

View Workflow Run

Lighthouse Audit - Surge Mobile (cd-deploy-pr-preview.yml)

📱 Mobile Lighthouse Results

Tested URL: https://pinball-trainer-pr-100.surge.sh/

Metric Score
Performance 90%
Accessibility 100%
Best Practices 96%
SEO 63%

Reports:

View Workflow Run

Lighthouse Audit - Surge Desktop (cd-deploy-pr-preview.yml)

🖥️ Desktop Lighthouse Results

Tested URL: https://pinball-trainer-pr-100.surge.sh/

Metric Score
Performance 100%
Accessibility 100%
Best Practices 96%
SEO 63%

Reports:

View Workflow Run

@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2026

🤖 Automated PR Report for b757eef

Pull Request Labeler (automation-label-pull-request.yml)

PR: feat: Add direct report links alongside comparison reports (#100)

Current Labels

  • ci/cd
  • github

View Workflow Run

Trivy Security Scan (security-trivy-scan.yml)

Trivy scan completed. Results have been uploaded to the GitHub Security tab.

Scanned Categories

  • ✅ Vulnerabilities (CRITICAL, HIGH)
  • ✅ Secrets / Credentials
  • ✅ Infrastructure Configuration

View Workflow Run

OWASP Dependency Check (security-owasp-dependency-check.yml)

Total Vulnerabilities: 0

Severity Breakdown

Severity Count
🔴 High/Critical 0
⚠️ Medium 0
ℹ️ Low 0

✅ No vulnerabilities found.

View Workflow Run

npm Audit Results (security-npm-audit.yml)

✅ No vulnerabilities found.

View Workflow Run

Bundle Size Report (ci-bundle-analysis.yml)

Metric Size
Total dist size 2.57 MB
Main JS bundle 301.03 KB
Main CSS bundle 41.57 KB
Total assets 7 files

Recommendations

  • 🎯 Keep main JS bundle under 200 KB for optimal performance
  • 🎨 Keep CSS bundle under 50 KB
  • 📁 Keep total dist size under 2 MB

Bundle analysis completed at 2026-01-18T17:43:30.049Z

View Workflow Run

CodeQL Security Analysis (security-codeql-security-analysis.yml)

Total Alerts: 1

Severity Breakdown

Severity Count
🔴 Error 0
⚠️ Warning 1
ℹ️ Note 0

Detailed Findings

Rule Message Location
js/regex/missing-regexp-anchor When this is used as a regular expression on a URL, it may match anywhere, and arbitrary hosts may come before or after it. scripts/lighthouse-metadata.cjs:52

View Workflow Run

Standalone Build Results (ci-standalone-build.yml)

File Size
pinball-trainer-standalone.html 0.79 MB

View Workflow Run

Code Quality Results (ci-code-quality.yml)

Check Status
ESLint ✅ Passed
Prettier ✅ Passed

📊 Code Statistics

Metric Count
Files 29
Lines 15968

View Workflow Run

Chromium Browser Test Results (ci-chromium-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 11 0 22.87s
Accessibility Tests ✅ PASS 7 7 0 7.84s

View Workflow Run

Unit Test Results (ci-unit-tests.yml)

Suite Status Tests Failures Errors Time
Unit Tests ✅ PASS 253 0 0 132s
Accessibility Tests ✅ PASS 7 0 0 1s

View Workflow Run

Lighthouse Audit - Mobile (ci-lighthouse-mobile.yml)

📊 Mobile Lighthouse Results

Tested URL: http://localhost:9222/pinball-trainer-standalone.html

Metric Score
Performance 91%
Accessibility 100%
Best Practices 96%
SEO 100%

Reports:

View Workflow Run

WebKit Browser Test Results (ci-webkit-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 10 0 26.43s
Accessibility Tests ✅ PASS 7 7 0 13.73s

View Workflow Run

Visual Regression Results (ci-visual-regression-tests.yml)

Suite Status Total Passed Failed Time
Visual Comparison ✅ PASS 24 24 0 43.57s

View Workflow Run

Firefox Browser Test Results (ci-firefox-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 11 0 25.46s
Accessibility Tests ✅ PASS 7 7 0 10.33s

View Workflow Run

Code Coverage Results (ci-coverage-reporting.yml)

Category Lines Statements Functions Branches
Total 63.06% 63.66% 74.57% 59.8%

View Workflow Run

Lighthouse Audit - Desktop (ci-lighthouse-desktop.yml)

📊 Desktop Lighthouse Results

Tested URL: http://localhost:9222/pinball-trainer-standalone.html

Metric Score
Performance 100%
Accessibility 100%
Best Practices 96%
SEO 100%

Reports:

View Workflow Run

Lighthouse Audit - Surge Mobile (cd-deploy-pr-preview.yml)

📱 Mobile Lighthouse Results

Tested URL: https://pinball-trainer-pr-100.surge.sh/

Metric Score
Performance 90%
Accessibility 100%
Best Practices 96%
SEO 63%

Reports:

View Workflow Run

Lighthouse Audit - Surge Desktop (cd-deploy-pr-preview.yml)

🖥️ Desktop Lighthouse Results

Tested URL: https://pinball-trainer-pr-100.surge.sh/

Metric Score
Performance 100%
Accessibility 100%
Best Practices 96%
SEO 63%

Reports:

View Workflow Run

Preview Deployment (cd-deploy-pr-preview.yml)

Your preview deployment is ready!

🔗 Preview URL: https://pinball-trainer-pr-100.surge.sh

What's included:

  • ✅ Standalone HTML build (same as production)
  • ✅ All assets embedded inline
  • ✅ Fully offline-capable
  • ✅ Production optimizations

Testing checklist:

  • Test dark mode toggle
  • Test preset loading
  • Test practice mode
  • Test recall mode
  • Test PWA install prompt
  • Test offline functionality

Preview will be updated on each new commit to this PR.


Deployed at 2026-01-18T17:46:27.130Z

View Workflow Run

@github-actions
Copy link
Contributor

🤖 Automated PR Report for b757eef

Dependency Review (security-dependency-review.yml)

✅ No vulnerabilities or denied packages found.

View Workflow Run

@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2026

🤖 Automated PR Report for 02b01d3

Pull Request Labeler (automation-label-pull-request.yml)

PR: feat: Add direct report links alongside comparison reports (#100)

Current Labels

  • ci/cd
  • github

View Workflow Run

Trivy Security Scan (security-trivy-scan.yml)

Trivy scan completed. Results have been uploaded to the GitHub Security tab.

Scanned Categories

  • ✅ Vulnerabilities (CRITICAL, HIGH)
  • ✅ Secrets / Credentials
  • ✅ Infrastructure Configuration

View Workflow Run

OWASP Dependency Check (security-owasp-dependency-check.yml)

Total Vulnerabilities: 0

Severity Breakdown

Severity Count
🔴 High/Critical 0
⚠️ Medium 0
ℹ️ Low 0

✅ No vulnerabilities found.

View Workflow Run

npm Audit Results (security-npm-audit.yml)

✅ No vulnerabilities found.

View Workflow Run

Standalone Build Results (ci-standalone-build.yml)

File Size
pinball-trainer-standalone.html 0.79 MB

View Workflow Run

Code Quality Results (ci-code-quality.yml)

Check Status
ESLint ✅ Passed
Prettier ✅ Passed

📊 Code Statistics

Metric Count
Files 29
Lines 15968

View Workflow Run

Bundle Size Report (ci-bundle-analysis.yml)

Metric Size
Total dist size 2.57 MB
Main JS bundle 301.03 KB
Main CSS bundle 41.57 KB
Total assets 7 files

Recommendations

  • 🎯 Keep main JS bundle under 200 KB for optimal performance
  • 🎨 Keep CSS bundle under 50 KB
  • 📁 Keep total dist size under 2 MB

Bundle analysis completed at 2026-01-18T17:49:45.784Z

View Workflow Run

Firefox Browser Test Results (ci-firefox-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 11 0 24.83s
Accessibility Tests ✅ PASS 7 7 0 10.23s

View Workflow Run

Lighthouse Audit - Mobile (ci-lighthouse-mobile.yml)

📊 Mobile Lighthouse Results

Tested URL: http://localhost:9222/pinball-trainer-standalone.html

Metric Score
Performance 91%
Accessibility 100%
Best Practices 96%
SEO 100%

Reports:

View Workflow Run

WebKit Browser Test Results (ci-webkit-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 10 0 30.75s
Accessibility Tests ✅ PASS 7 7 0 13.96s

View Workflow Run

Chromium Browser Test Results (ci-chromium-browser-tests.yml)

Suite Status Total Passed Failed Time
E2E Tests ✅ PASS 11 11 0 23.9s
Accessibility Tests ✅ PASS 7 7 0 7.99s

View Workflow Run

Lighthouse Audit - Desktop (ci-lighthouse-desktop.yml)

📊 Desktop Lighthouse Results

Tested URL: http://localhost:9222/pinball-trainer-standalone.html

Metric Score
Performance 100%
Accessibility 100%
Best Practices 96%
SEO 100%

Reports:

View Workflow Run

Code Coverage Results (ci-coverage-reporting.yml)

Category Lines Statements Functions Branches
Total 62.48% 63.1% 74.57% 59.54%

View Workflow Run

Lighthouse Audit - Surge Mobile (cd-deploy-pr-preview.yml)

📱 Mobile Lighthouse Results

Tested URL: https://pinball-trainer-pr-100.surge.sh/

Metric Score
Performance 90%
Accessibility 100%
Best Practices 96%
SEO 63%

Reports:

View Workflow Run

Lighthouse Audit - Surge Desktop (cd-deploy-pr-preview.yml)

🖥️ Desktop Lighthouse Results

Tested URL: https://pinball-trainer-pr-100.surge.sh/

Metric Score
Performance 100%
Accessibility 100%
Best Practices 96%
SEO 63%

Reports:

View Workflow Run

Preview Deployment (cd-deploy-pr-preview.yml)

Your preview deployment is ready!

🔗 Preview URL: https://pinball-trainer-pr-100.surge.sh

What's included:

  • ✅ Standalone HTML build (same as production)
  • ✅ All assets embedded inline
  • ✅ Fully offline-capable
  • ✅ Production optimizations

Testing checklist:

  • Test dark mode toggle
  • Test preset loading
  • Test practice mode
  • Test recall mode
  • Test PWA install prompt
  • Test offline functionality

Preview will be updated on each new commit to this PR.


Deployed at 2026-01-18T17:52:32.629Z

View Workflow Run

@github-actions
Copy link
Contributor

🤖 Automated PR Report for 02b01d3

Dependency Review (security-dependency-review.yml)

✅ No vulnerabilities or denied packages found.

View Workflow Run

@garybrowndev garybrowndev merged commit 5e969a9 into master Jan 18, 2026
22 checks passed
@garybrowndev garybrowndev deleted the feature/lighthouse-direct-report-links branch January 18, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd Continuous integration and deployment workflows github GitHub configuration, actions, and repository settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants