Skip to content

fix(frontend): multilingual fixes from the round-1 end-to-end run (D-07, D-12, D-19, D-21) - #137

Merged
navidshad merged 2 commits into
devfrom
fix/ml-e2e-web-fixes
Oct 16, 2026
Merged

navidshad merged 2 commits into
devfrom
fix/ml-e2e-web-fixes

Conversation

@navidshad

Copy link
Copy Markdown
Contributor

What

Five small fixes found by the round-1 end-to-end run against a local server (local MongoDB, no AI or payment keys).

  1. Your progress mixed languages. The page header says "Your German progress", but the recent bundles, the bundle count and the phrase count read every language. They now use the active language only (languageQuery(), as the Bundles page does). This also stops the dashboard from adding to the server's missing_language_read count, which is meant for old clients.
  2. "Back to the steps" in the chat test went to step 1. The spec says the way out is back to step 2. The link now carries step=2 and Add a language opens on step 2 with the language still picked.
  3. Today's starter pack card did not show progress after marking chunks and going back to Today (the state was refreshed only when the pack was done). The page now refreshes the language state when you leave it, so the card says "20 of 150 heard · Continue".
  4. Persian translations in a bundle were shown left to right. The phrase and translation boxes now have dir="auto", so each gets its own direction.
  5. English help in the chat test was put in a right-to-left run for a Persian speaker when the Coach falls back to its fixed questions (their help lines are English), so it read "?What is your name". Help text with no right-to-left letters now lets the browser pick the direction (runLanguage() in utils/languages.ts).

Rows: D-07, D-12, D-19, D-21.

How it was tested

  • Vitest: new runLanguage tests; the whole unit suite passes (121).
  • Playwright (hermetic multilingual.spec.ts): six new tests, one per fix (two for the help direction); all 21 pass locally on chromium.
  • Live: the same flows against a local server and the built frontend, with screenshots.

🤖 Generated with Claude Code

navidshad and others added 2 commits October 16, 2026 03:11
…07, D-12, D-19, D-21)

- Your progress counts and lists only the active language's bundles and phrases.
- Back to the steps in the chat test returns to step 2, with the language still picked.
- Today's starter pack card shows the new progress after marking chunks.
- Phrase and translation boxes in a bundle get their own direction (Persian is RTL).
- English fallback help in the chat test is no longer forced into an RTL run.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@navidshad
navidshad merged commit 084490a into dev Oct 16, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.3.0-dev.28 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant