Skip to content

feat(home): Modes row (Daily, Sprint, Own text, Mistakes) + Esc closes every tooltip - #40

Draft
prodelt wants to merge 2 commits into
mainfrom
feat/modes-row
Draft

prodelt wants to merge 2 commits into
mainfrom
feat/modes-row

Conversation

@prodelt

@prodelt prodelt commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Why

Testers could not find the new modes: Sprint was reachable only from /review after Stage 2, Own text only from a Map key, Daily was a small link under the mini-map.

What

  • Home, row 06 "Режими": four quiet cards (glyph, 1–2 word name, one line ≤ 8 words): Виклик дня, Спринт 60 с, Свій текст, Помилки. Secondary styling; «Почати» stays the only filled primary.
    • Sprint is dimmed until Stage 2 words exist; Mistakes until there are weak spots. Hover/focus shows a Tip saying how they open; Esc hides it.
    • Daily shows a «готово» chip once cleared today.
    • Mistakes starts the same review drill as D.
    • The small Daily link under the mini-map is gone. No new single-letter keys.
    • Lazy chunk (ModesRow.tsx) with a placeholder that holds its place: initial JS is 149.3 KB gzip (it was 150.3 with the row inline).
    • New coach-mark step on Home pointing at the row (uk + en).
  • Continue never loses its Start button: on screens ≤ 900 px tall the session steps become one line of chips that fades at the edge, and spacing tightens. It was already clipped at 1024x768 on main. Measured at 1024x768, 1280x720, 1366x768, 1536x864, 1440x900 and 1920x1080: Start and the weak-panel button are fully visible.
  • Esc closes the CSS-only tooltips: the status bar's Stats, LayoutSwitch and Home's weak chips now use the shared Tip. Tip gets an above placement for the bottom row.
  • Copy: Daily's «Днів поспіль» → «Викликів поспіль» (en: "Challenges in a row"), so it no longer reads as the Streak. Copy only; features/daily code untouched.
  • CONTEXT.md: Modes, Free practice, Daily challenge, Daily run, Sprint, Own text, Mistakes review; Streak now says it is not the Daily run.
  • CLAUDE.md: the white light background is the user's request (2026-10-05).
  • tools/architecture.test.ts: CoachMarks' Enter/Esc listener added to the seam exemptions. This failed pnpm check on main.

Tests

  • pnpm check: green (801 unit tests).
  • pnpm build: 149.3 KB initial JS.
  • Chromium: e2e/home.spec.ts (2 new tests: Modes row with locked Sprint, its tooltip and Esc, and the Daily and Mistakes links; Esc on a weak chip) plus viewport-1024 Home: 7/7.
  • The full viewport-1024 run passed 13/14. The failure is a Profile .prof-badges colour-contrast issue from feat(profile): achievements strip and Google badge #37, which this PR does not touch.

🤖 Generated with Claude Code

prodelt and others added 2 commits October 6, 2026 00:39
… closes every tooltip

Testers could not find the new modes: Sprint sat behind /review, Own text behind a Map key,
Daily was a small link. Home now has a sixth, quiet row of four cards (glyph, name, one line).
Sprint is dimmed until Stage 2 opens and Mistakes until there are weak spots; their Tip says
how they open. Daily shows a "готово" chip once cleared today. The row is a lazy chunk so the
initial JS stays under 150 KB, and a coach-mark step points at it.

On screens up to 900 px tall the session steps become one line of chips and the vertical
rhythm tightens, so Continue's Start button is never clipped (it already was at 1024x768).

The status bar's stats, the layout switch and Home's weak-spot chips now use the shared Tip,
so Esc hides their bubble. Daily's "Днів поспіль" becomes "Викликів поспіль" so it no longer
reads as the Streak. CoachMarks' keydown listener joins the seam exemptions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ground note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
typing-race Ready Ready Preview Oct 5, 2026 9:44pm UTC

This branch was successfully deployed

1 active deployment
Preview — 4cfabfbe Deployed Oct 5, 2026 by vercel[bot]
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