Auto-start timer on creator Start; rename stopwatch CTA to "Open" - #15
Merged
Conversation
Timer: clicking "Start ↗" in the creator now navigates to the seeded timer URL AND begins the countdown in one click, instead of requiring a second Start press on the seeded page. An in-memory autoStart flag is set on the creator's launch and consumed in showTimer(), so the shared URL stays clean (#d=&n=&e=) and recipients of a shared link still see a normal "Start" button. Stopwatch: the creator CTA is retitled "Open ↗" (was "Start ↗") since it opens the stopwatch view rather than starting timing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013F9wPi5MPdpb3ovVf2TTuF
Contributor
|
🔗 Preview deployed: https://clockdown.us/pr/15/ |
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.
What & why
Two small UX fixes so creating a new timer/stopwatch takes one click instead of two.
Timer — one click to a running timer
Previously, clicking Start ↗ in the creator only navigated to the seeded timer URL; you then had to press Start again on that page. Now a single click both navigates and runs the countdown.
autoStartflag.autoStart = truebefore changing the hash.showTimer()consumes the flag and kicks off the countdown viaonToggle().Using an in-memory flag (rather than a URL param) keeps the shared link clean — e.g.
#d=64&n=Rachie%20go%20upstairs&e=%F0%9F%A7%98— so only the creator's click auto-runs. Anyone opening a shared link later still sees a normal Start button.Stopwatch — CTA renamed
The creator call-to-action is now Open ↗ (was Start ↗), since it opens the stopwatch view rather than starting timing. The transport Start button inside the stopwatch is untouched.
Verification
Headless-browser check on the timer flow:
#d=64&n=Rachie%20go%20upstairs&e=%F0%9F%A7%9804 → 02) — it's running🤖 Generated with Claude Code
https://claude.ai/code/session_013F9wPi5MPdpb3ovVf2TTuF
Generated by Claude Code