Social impact patronage

Help me help others, using tech for good

Bought @marc_louvion's ByeDispute and applied it to all my stripe products - LOVE it! Now I can sleep with peace of mind

Tried another fix for bg color after browser is idle - by adding setRegion() to created

Ooh both APIs are back up! Fingers crossed it will STAY up! 🀞🀞🀞

Added on another Issue to datagovsg to complain that now both APIs are down

And now both APIs go down. 😀 The downsides of relying on an ext API which you have no control over

Added left right arrow hot keys to toggle between psi and pm2.5 readings

Removed National PSI reading entirely since the API no longer showing data for it

Key fixes: Annoyed by trying to sync body bg color and reading bg color, so removed data binding altogether! And it works I didnt need it in first place πŸ€¦β€β™‚οΈ Added setTimeout delay of 800 to setting initial pm2.5 bg color so that even if I toggle fast between browsers it still works. F**k wasted so much time on this today 😑

Added empty state (muted grey bg, non-zero nil reading, advisory n.a.) when API down

Hard-coded a fix to the PSI page cos now the API endpoint is showing weird data and screwing up the display

Raised first ever issue in Github! To datagovsg - https://github.com/datagovsg/datagovsg-datasets/issues/1661

Added function to auto-change fill color of the i svg icon on central pm2.5 page based on background color - now I need another function for footer i icon to change based on pm2.5 and psi page colors!

Switched wrench icon to question mark icon (via fontawesome) for "How to use this reading" box

Tried using svgs from svgrepo.com to eliminate the need for fontawesome, but ended up needing more work to tweak the colors of the svgs dynamically due to the reading level.. much work! Gotta think if it's worth it

Got accessibility to 100 at least from adding alt text to all img tags. Not critical to page speed but I like doing my part for web accessibility and it's a social good project after all, so..

Tried various ways to improve lighthouse score (60!) like add async/defer, preload font, self host fonts, use diff cdn etc but somehow all didn't work. Only thing that worked slightly was adding async to vue-touch to reduce chain critical requests 🫠

Just 2 weeks in, and PSI.SG is already on page 2 and ranked 13th for "psi sg" key words! Power of a good domain name

Added browser-specific prefixes for CSS animation, and other style fixes

Fixed embarrassing bug where body has no background-color on 1st visit πŸ™ˆ

Fixed bug where when toggling to and from PSI and PM2.5, the body background color shows white

Added regions for PSI readings too, plus saved preferred PSI region (via localStorage)

Fixed massive error in rendering of background color based on the region readings