Skip to content

feat(mobile): read the per-language settings from get-language-state (M-08) - #136

Merged
navidshad merged 1 commit into
devfrom
ml/mobile-language-settings
Oct 15, 2026
Merged

navidshad merged 1 commit into
devfrom
ml/mobile-language-settings

Conversation

@navidshad

Copy link
Copy Markdown
Contributor

What

get-language-state now returns newPhrasesPerDay (default 20), poolChunkSize, poolAgeCutoffDays and goals for each language (#134).

  • The phone already read newPhrasesPerDay from each summary, so Me → "New phrases a day" now shows the current value on dev.
  • The choices were 3, 5, 8, 10 and 15, so the server's default of 20 was never ticked. The list now has 20 and 30, and always includes the current value (one set on the web too).
  • LanguageSummary also keeps poolChunkSize, poolAgeCutoffDays and goals.
  • The fake server returns the four fields, and saves newPhrasesPerDay and goals.

Tests

  • flutter test (app) 88 pass. The Me test now checks that "20" shows and is ticked, and that picking 5 updates the row.
  • dart test (api) 64 pass, reading all four fields. The opt-in live test now also checks them against a real server.
  • flutter analyze clean.

🤖 Generated with Claude Code

… Me shows and ticks New phrases a day (M-08)

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

Copy link
Copy Markdown

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

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