Skip to content

Conversation

@AlexJSully
Copy link
Owner

No description provided.

@AlexJSully AlexJSully requested a review from Copilot December 3, 2025 02:47
@AlexJSully AlexJSully self-assigned this Dec 3, 2025
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 consolidates service worker registration by moving it from inline HTML script to the main index.js file, improving code organization and testability.

Key Changes:

  • Service worker registration moved from index.html to index.js with async/await pattern and error handling
  • Added comprehensive unit tests for service worker registration scenarios
  • Updated dependencies to latest versions

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/scripts/index.js Added registerServiceWorker function with error handling and integrated it into window.onload
src/scripts/index.test.js Added test suite covering service worker registration success and failure cases
index.html Removed inline service worker registration script
src/icon/site.webmanifest Fixed typo in "sizes" property and added icon configurations for shortcuts
package.json Updated development dependencies to latest versions
cypress/e2e/landing.cy.js Enhanced test to simulate service worker registration failure scenario

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

@AlexJSully AlexJSully merged commit beed7a4 into master Dec 3, 2025
6 checks passed
@AlexJSully AlexJSully deleted the alexjsully-251202-fix-sw branch December 3, 2025 03:05
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.

2 participants