Skip to content

Remove the typewriter effect from the hero search placeholder - #273

Merged
PArns merged 1 commit into
mainfrom
claude/remove-hero-typewriter-effect-o4lazc
Aug 6, 2026
Merged

Remove the typewriter effect from the hero search placeholder#273
PArns merged 1 commit into
mainfrom
claude/remove-hero-typewriter-effect-o4lazc

Conversation

@PArns

@PArns PArns commented Aug 6, 2026

Copy link
Copy Markdown
Owner

The homepage search field typed park and ride names into its placeholder on a loop. That effect is gone: the field shows the translated static placeholder from the first paint, on the homepage and the howto pages alike (they share HeroSearchInput).

Removed along with it:

  • the useTypewriter state machine, its reducer and the TypewriterPlaceholder leaf in components/search/hero-search-input.tsx – the component is now a thin wrapper around SearchCommand
  • the typewriter-blink keyframes in app/globals.css
  • the placeholderShown property on hero_search_clicked (lib/analytics/umami.ts). It only ever reported which phrase was on screen; without the typewriter it would have billed an extra Umami event per click just to say "default".

useActiveOnScreen stays untouched apart from its doc comment – the countdowns, flip clock and weather charts still pause through it. tsc --noEmit and ESLint are clean.


Generated by Claude Code

The homepage search field showed park and ride names typed letter by
letter into its placeholder. The field now shows the translated static
placeholder from the first paint.

Gone with it: the useTypewriter state machine and TypewriterPlaceholder
leaf in hero-search-input.tsx, the typewriter-blink keyframes in
globals.css, and the placeholderShown property on hero_search_clicked,
which without the typewriter would have billed an extra Umami event per
click just to say "default". useActiveOnScreen stays for the countdowns
and charts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AhKNXtQGeTthk4hSmbJxY1
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
park.fan Ready Ready Preview Aug 6, 2026 11:10am

Request Review

@PArns
PArns marked this pull request as ready for review August 6, 2026 11:15
@PArns
PArns merged commit 517b1be into main Aug 6, 2026
3 checks passed
@PArns
PArns deleted the claude/remove-hero-typewriter-effect-o4lazc branch August 6, 2026 11:15
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