Skip to content

feat: add PWA support#371

Merged
merichar merged 7 commits intomasterfrom
pwa
Feb 27, 2026
Merged

feat: add PWA support#371
merichar merged 7 commits intomasterfrom
pwa

Conversation

@natsuki615
Copy link
Copy Markdown
Contributor

No description provided.

natsuki615 and others added 7 commits February 18, 2026 01:24
- Fix invalid start_url from domain string to "/"
- Use defaults: { format: } in routes instead of format: constraint
- Replace render file: with render template: in PwaController
- Rename service-worker.js to service_worker.js for Rails view lookup
* Skip caching HTML responses in service worker to avoid stale CSRF tokens
* Align manifest theme_color with meta tag (#9F0000)
* Remove success console.log from service worker registration
* Add trailing newlines to pwa files
@katiez667 katiez667 changed the title feat: start implementing pwa feat: add Progressive Web App (PWA) support Feb 27, 2026
@merichar merichar changed the title feat: add Progressive Web App (PWA) support feat: add PWA support Feb 27, 2026
@merichar merichar merged commit ddfb566 into master Feb 27, 2026
@merichar merichar deleted the pwa branch March 19, 2026 20:21
katiez667 added a commit that referenced this pull request Mar 20, 2026
* feat: added manifest.json.erb and service-worker.js for pwa

* fix: icon photos for manifest.json.erb

* fix: run db:migrate to apply changes

* feat: pwa_controller.rb, pwa.js, offline.html for pwa

* fix: correct pwa manifest start_url, routes, and controller rendering

- Fix invalid start_url from domain string to "/"
- Use defaults: { format: } in routes instead of format: constraint
- Replace render file: with render template: in PwaController
- Rename service-worker.js to service_worker.js for Rails view lookup

* fix(pwa): address pr review feedback

* Skip caching HTML responses in service worker to avoid stale CSRF tokens
* Align manifest theme_color with meta tag (#9F0000)
* Remove success console.log from service worker registration
* Add trailing newlines to pwa files

---------

Co-authored-by: Katie Zhang <zhangmy667@gmail.com>
Co-authored-by: Katie Zhang <mengyua3@andrew.cmu.edu>
Co-authored-by: Meg Richards <merichar@merichar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants