Skip to content

Auto-start timer on creator Start; rename stopwatch CTA to "Open" - #15

Merged
spxrogers merged 1 commit into
mainfrom
cc/wonderful-albattani-o4glzr
Jun 26, 2026
Merged

Auto-start timer on creator Start; rename stopwatch CTA to "Open"#15
spxrogers merged 1 commit into
mainfrom
cc/wonderful-albattani-o4glzr

Conversation

@spxrogers

Copy link
Copy Markdown
Owner

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.

  • Added an in-memory autoStart flag.
  • The creator's Start ↗ sets autoStart = true before changing the hash.
  • showTimer() consumes the flag and kicks off the countdown via onToggle().

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:

  • Clicking Start ↗ produces the exact hash #d=64&n=Rachie%20go%20upstairs&e=%F0%9F%A7%98
  • Timer view shows Pause and counts down (04 → 02) — it's running
  • A fresh load of the same shared link stays paused on Start (recipients aren't auto-started)

🤖 Generated with Claude Code

https://claude.ai/code/session_013F9wPi5MPdpb3ovVf2TTuF


Generated by Claude Code

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
@github-actions

Copy link
Copy Markdown
Contributor

🔗 Preview deployed: https://clockdown.us/pr/15/

github-actions Bot added a commit that referenced this pull request Jun 26, 2026
@spxrogers
spxrogers merged commit e6fd1d7 into main Jun 26, 2026
2 checks passed
@spxrogers
spxrogers deleted the cc/wonderful-albattani-o4glzr branch June 26, 2026 00:54
github-actions Bot added a commit that referenced this pull request Jun 26, 2026
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.

2 participants