pokedextracker / pokedextracker.com

A website to track your completion of a Living Pokedex.
https://pokedextracker.com
MIT License
166 stars 41 forks source link

Add manifest.json file to enable PWA #482

Closed Fleker closed 12 months ago

Fleker commented 1 year ago

Addresses #456 by adding a manifest.json and a barebones sw.js service worker

The PWA jumps by default to your profile page using /u/me as a new route that uses the session user details.

Include additional PWA polish such as screenshots and shortcuts.

robinjoseph08 commented 12 months ago

Hey @Fleker, apologies for not getting to this sooner. I really appreciate you taking the time to work on this.

Recently, I did a major overhaul of this repo to upgrade all the packages, switch to TypeScript, organize the files better, etc., so it would've been rough to rebase it, so I carried your changes over to a separate PR, and I merged and deployed that, so Pokedex Tracker should now be installable as a PWA. I'm not well-versed in PWAs, but it was a lot easier to understand with your PR as a base, so once again, I appreciate the work that you did.

One change I wanted to note was that instead of adding a /u/me that rendered your profile, I ended up adding a /profile route that just redirected to the correct location. I chose /profile over /u/me because that route would prevent anyone from viewing the user me's profile which is unfortunate. And the redirect seemed like a cleaner approach so that we could send the user to the login page if they weren't logged in.

The 2 things that I didn't copy over were:

Thanks again for putting up this PR, and sorry I didn't get to it sooner!