Feat: Implement Dual-Mode Timer for Standalone App Functionality#210
Merged
Annanyatiwary4 merged 1 commit intoDevSyncx:mainfrom Nov 5, 2025
Merged
Conversation
|
Someone is attempting to deploy a commit to the Annanya's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
🙌 Thanks @kmanish527 for raising this PR! |
Annanyatiwary4
approved these changes
Nov 5, 2025
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🎉🎉 Thank you for your contribution! Your PR #210 has been merged! 🎉🎉 |
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.
🚀 Pull Request Checklist
mainbranch.Closes #<issue_number>.🧠 Description
The Pomodoro app had a hard dependency on the Chrome extension. If the extension was not installed or enabled, the Pomodoro Timer would not run or start, leading to a poor user experience for new users.
This PR refactors the TimerContext to be "dual-mode." It now intelligently detects if the extension is installed and running.
If Extension is Connected: The app works as it did before—as a "remote control" for the highly reliable background service worker, enabling all advanced features like focus-blocking.
If Extension is NOT Found: The app gracefully degrades to a "Standalone Mode." It uses its own internal setInterval clock and localStorage persistence to provide a fully-functional Pomodoro timer.
✅ Type of Change