Closed mpj2104 closed 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.
Awesome, thanks @aaga! What are the next steps and timeline for making these changes live?
@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!
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 insrc/browser-action-assets/
.