Repository navigation
fix(mobile): restore a removed language on Starter instead of a dead end; Tell me survives a reload (M-05, M-15) - #140
Merged
Conversation
…it from first run; Tell me survives a reload Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🎉 This PR is included in version 1.3.0-dev.31 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follows server #138.
upgrade_needed. A Starter learner who removed their only language lands on first run. There, and in Add a language, the switcher and Languages, the plan card now reads "Starter includes 1 language, and your German is kept until 14 November…". It offers Restore German first (add-languagebrings the language and its data back) and See plans second. The language grid is hidden then, because any other choice would be refused.LanguageState.slotsUsedcounts removed languages on Starter only, which matches the server. "x of y used" uses it.get-language-statenow returnsinterests, and Add a language shows "Got it" for them.enabled: falseand is listed there (already handled; now covered by a test).interests, and holds a removed language's place on Starter, so only a restore gets in.Tests
flutter test(app) 92 pass. New tests cover:interests, Portuguese under Coming later, and undo;dart test(api) 64 pass, now also readinginterestsand checkingslotsUsed.flutter analyzeclean.🤖 Generated with Claude Code