mozilla-rally / beyond_the_paywall

Stanford "Beyond the Paywall" Study
Mozilla Public License 2.0
5 stars 6 forks source link

Implementation of lottery add-on to Beyond the Paywall extension #13

Closed mpj2104 closed 2 years ago

mpj2104 commented 2 years ago

This branch adds a feature (Lottery.js) to the Beyond the Paywall extension that checks whether a particular user is a winner in a weekly lottery through an external API that we made hosted on AWS. If a user is a winner, the extension retrieves an Amazon gift code, alerts the user through a Notification, and updates the browser-action with a new icon and information about how to redeem the gift code. The user clicks a "Redeemed" button in the browser-action to let us know that the code has been redeemed (through a different API endpoint) and to restore the "default" behavior (turned off Notification and restores browser-action icon+content). Assets related to the change in browser-action content can be found in src/browser-action-assets/.

mpj2104 commented 2 years ago

Hi @rhelmer and @aaga, thank you for reviewing our pull request! I responded to each of your comments and then made a few commits to the lottery-addon branch. Please let me know if you have additional comments/suggestions.

mpj2104 commented 2 years ago

Awesome, thanks @aaga! What are the next steps and timeline for making these changes live?

aaga commented 2 years ago

@mpj2104 I'll go ahead and merge this pull request, and work with @rhelmer to create a new release and push the updated extension for Add-on review!