Skip to content

feat: implement PWA support for offline access#108

Open
Papia-tech wants to merge 6 commits into
Aditya8369:mainfrom
Papia-tech:test
Open

feat: implement PWA support for offline access#108
Papia-tech wants to merge 6 commits into
Aditya8369:mainfrom
Papia-tech:test

Conversation

@Papia-tech

@Papia-tech Papia-tech commented Jul 8, 2026

Copy link
Copy Markdown

Pull Request

Description

This PR transforms the Pollution-Control-Hub web application into a Progressive Web App (PWA). This change is necessary to provide users with offline access, "Add to Home Screen" functionality on mobile and desktop, and improved performance through asset caching.


Related Issue


Type of Change

  • Bug Fix
  • New Feature
  • Documentation
  • UI/UX Improvement
  • Refactoring
  • Performance Improvement
  • Accessibility

Changes Made

  • Modified src/main.jsx to import automated lifecycle handling (registerSW), ensuring the background service worker handles caching and seamless updates out of the box.
  • Added public/pwa-192x192.png
  • Added public/pwa-512x512.png
  • Modified vite.config.js

Testing

  • Tested locally
  • No console errors
  • Existing functionality works as expected

Screenshots

Screen.Recording.2026-07-08.201611.mp4

Checklist

  • My code follows the project guidelines.
  • I have tested my changes.
  • I have updated the documentation if required.
  • My changes address the related issue.
  • This PR focuses on a single issue.

Additional Notes

Add any additional information for reviewers here.

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

@Papia-tech is attempting to deploy a commit to the Aditya Mahajan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Papia-tech

Copy link
Copy Markdown
Author

Hello @Aditya8369 , could you please review and merge this PR when you get time? Thank you!

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pollution-control-hub Error Error Jul 8, 2026 5:51pm

@Aditya8369

Copy link
Copy Markdown
Owner

@Papia-tech deployment having error pls check and solve

@Aditya8369 Aditya8369 added ECSoC26 Contributions considered under ECSoC'26 requested-changes labels Jul 8, 2026
@Papia-tech

Copy link
Copy Markdown
Author

@Aditya8369 Could you please check it now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26 Contributions considered under ECSoC'26 requested-changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEATURE: Implement PWA Support

2 participants