Repository navigation
fix: pre-release audit fixes and card restyle for 3.3.0 - #49
Merged
Merged
Conversation
Adds a visible "Not now" button and the extension's real name to the review card, a heart badge to the sponsor card, and hides the footer while the sponsor card shows so the popup stays within 600px.
…coincide On a morning start Chrome can deliver onStartup together with the 6-hourly daily-check alarm that came due while the browser was closed. Both read yesterday's date before either recorded today, so the dashboard and searches opened twice; and if the alarm won outright, the startup cleanup stopped its run after the first search. The two checks now take turns, and the cleanup leaves a run started in this session alone.
- Rename "Search automatically" back to "Daily searches" (the 3.1.0 and website name) and say it also gates Get rewards' searches. - Its info text now covers the 6-hourly day check, not only browser start. - Restore a Rewards dashboard link in the footer; 3.1.0 had one. - The short-gap warning no longer claims Microsoft stops crediting: testing credited 10-20s gaps. It warns that very short gaps may look automated. - The Sponsor tooltip's minimum matches the $2 tier the sponsor card quotes.
scheduleDailyCheckAlarm runs on every service worker start, and re-creating an alarm restarts its countdown, so a worker woken more often than every 6 hours kept pushing the day check back. An armed alarm is now left alone. Also tightens the popup copy: the day check runs within 6 hours of a new day, and the short-gap warning fits on one line. Adds tests for the alarm-first ordering and for the queue surviving a failed check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pre-release audit fixes for 3.3.0, plus the review and sponsor card restyle. Both stores still serve 3.1.0, so this is everything updating users will meet on top of #37–#48.
onStartupand the 6-hourlydailyCheckalarm (which comes due while the browser is closed) both ran the once-a-day check. Both read yesterday's date before either recorded today, so the dashboard and searches opened twice. If the alarm won outright, startup's leftover-run cleanup stopped its run after one search. The two now take turns through one queue. The cleanup also skips a run started in this worker, detected with arunStartedAttimestamp compared to when the worker started.scheduleDailyCheckAlarmruns on every worker start, and re-creating an alarm restarts its countdown. An armed alarm is now left alone.Test plan
npm run compileclean,npx vitest run170/170. New tests cover:firefox-mv2.storage,alarms), so no re-approval on update.--load-extensionharness fires neitheronStartupnor overdue alarms, so the race fix is covered by unit tests only. Also not verified: Firefox in a live browser, and a real store update.