Skip to content

feat(ui): add countdown timer before tab close#32

Merged
vertefra merged 2 commits intomasterfrom
keep_page_open
Feb 28, 2026
Merged

feat(ui): add countdown timer before tab close#32
vertefra merged 2 commits intomasterfrom
keep_page_open

Conversation

@emypeeler
Copy link
Copy Markdown
Contributor

Summary

Replaces the fixed 2–4 second auto-close with a visible 5-second countdown timer in celebration views. Users now see "Closing tab in X" before the tab closes, improving transparency and control.

Changes

  • BackToAnOldFlame: Countdown before tab close after "I don't need it"
  • EarlyReturnFromSleep: Countdown for both "I'll wait" and "I don't need it" flows
  • IDontNeedIt: Countdown when investment options are disabled
  • SleepOnIt: Countdown after reminder is saved

Modified Files

  • views/BackToAnOldFlame.tsx
  • views/EarlyReturnFromSleep.tsx
  • views/IDontNeedIt.tsx
  • views/SleepOnIt.tsx
  • package.json (version 0.3.2→0.3.3, Playwright ^1.58.2)
  • package-lock.json
  • research.md (new - celebration view documentation)

Breaking Changes

None.

Testing Notes

  • Verify countdown displays correctly in each view
  • Confirm tab closes when countdown reaches 0
  • Test fallback to onClose when tab close fails

Made with Cursor

Replace instant tab close with 5-second countdown in BackToAnOldFlame,
EarlyReturnFromSleep, IDontNeedIt, and SleepOnIt views.
Bump @playwright/test to 1.58.2.

Made-with: Cursor
@vertefra vertefra merged commit a046382 into master Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants