Skip to content

Add currency conversion as you type and a Typing Test command - #7

Merged
leoAnimesh merged 1 commit into
mainfrom
feat/currency-typing-test
Nov 21, 2026
Merged

leoAnimesh merged 1 commit into
mainfrom
feat/currency-typing-test

Conversation

@leoAnimesh

Copy link
Copy Markdown
Owner

Summary

  • Currency conversion: typing 100 usd to eur, 1,250 gbp in inr, $20 or 50€ in the main search shows the converted amount. Return copies it and ⌘Return pastes it. If you don't name a target currency, it converts to your Mac's regional currency. Rates come from open.er-api.com (free, no key). They're downloaded on first use, refreshed every 6 hours and kept only in memory.
  • Typing Test command: a test on 25 random common words. It shows correct and wrong letters as you type, live WPM, accuracy and time, and a progress line. The results screen shows the big WPM number, the stats, and your mistakes marked in the text. Return starts a new test and Esc goes back.
  • Launcher changes:
    • A new .custom screen presentation (CustomViewScreen) for screens that draw their own content. It hides the search bar but keeps the field focused as the input and keeps the back button.
    • A new .replace action outcome that swaps the current screen for a new one.
  • README: adds both features, adds the rates download to the Privacy section, and removes currency conversion from the Roadmap.

Testing

  • swift test: 145 tests pass, including new ones for currency parsing, conversion, decoding the rates response, and typing-test scoring.
  • Tried in the dev build (scripts/bundle.sh): the typing screen and results screen, checked against screenshots.
  • Not tested: the currency row without internet. Rates are only kept in memory, so no conversion row appears until the first download works.

🤖 Generated with Claude Code

- Typing "100 usd to eur", "$20" or "50€" in the main search shows the
  converted amount (Return copies, ⌘Return pastes). Rates come from
  open.er-api.com, fetched on first use and refreshed every 6 hours.
- "Typing Test" measures WPM and accuracy on random words, with live
  per-character highlighting and a results screen that marks mistakes.
- Launcher: a `.custom` screen presentation that draws its own content
  and hides the search bar (keeping the field as the input), and a
  `.replace` outcome to swap the current screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leoAnimesh
leoAnimesh merged commit 004001a into main Nov 21, 2026
1 check passed
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.

1 participant