Skip to content

fix: pre-release audit fixes and card restyle for 3.3.0 - #49

Merged
spin311 merged 4 commits into
masterfrom
fix/pre-release-audit
Nov 11, 2026
Merged

spin311 merged 4 commits into
masterfrom
fix/pre-release-audit

Conversation

@spin311

@spin311 spin311 commented Nov 11, 2026

Copy link
Copy Markdown
Owner

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.

  • Daily run happens once on a morning start. onStartup and the 6-hourly dailyCheck alarm (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 a runStartedAt timestamp compared to when the worker started.
  • The daily-check alarm keeps its schedule. scheduleDailyCheckAlarm runs on every worker start, and re-creating an alarm restarts its countdown. An armed alarm is now left alone.
  • Popup wording.
    • "Search automatically" is back to "Daily searches", the 3.1.0 and website name. Its info text now says it also gates Get rewards' searches and covers the 6-hour day check.
    • The Rewards dashboard link is back in the footer.
    • The short-gap warning no longer claims Microsoft stops crediting: testing credited 10–20s gaps.
    • The Sponsor tooltip now quotes the $2 tier, matching the card.
  • Card restyle. Visible "Not now" button, and the extension's real name on the review card. Heart badge on the sponsor card. The footer is hidden while the sponsor card shows, so the popup stays within 600px.

Test plan

  • npm run compile clean, npx vitest run 170/170. New tests cover:
    • startup and alarm arriving together, in both orders
    • an alarm-started run surviving startup
    • a leftover run still being cleaned
    • the alarm keeping its schedule
    • the queue surviving a failed check
  • The race and alarm tests failed on the previous code (RED) before the fix.
  • The sources zip rebuilds a byte-identical firefox-mv2.
  • In Chromium (Playwright): the alarm is set after install and keeps its schedule across a restart. Popup screenshots in every state, light and dark: all within 600px except a run in progress with a gap under 30s, which is 10px over (scrollbar). That one is a known leftover.
  • Manifest: version 3.3.0, permissions unchanged (storage, alarms), so no re-approval on update.
  • Not verified: a real morning start in a real browser. The Playwright --load-extension harness fires neither onStartup nor 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.

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.
@spin311
spin311 merged commit 0150ba5 into master Nov 11, 2026
2 checks passed
@spin311
spin311 deleted the fix/pre-release-audit branch November 11, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant