Skip to content

fix: IPA wrapping, onboarding header and per-course content versions - #61

Merged
IgnacioLD merged 3 commits into
mainfrom
fix/web-check-defects
Nov 27, 2026
Merged

IgnacioLD merged 3 commits into
mainfrom
fix/web-check-defects

Conversation

@IgnacioLD

Copy link
Copy Markdown
Owner

Defects found by a browser check of the web build.

  • IPA wrapped mid-word before the stress mark ("n" / "ˈovyj"). GlossoType.ipa() inserts U+2060 WORD JOINER before ˈ/ˌ after a non-space; all 12 MonoIPA texts use it. Display only: scoring never sees it. Test: IpaDisplayTest.
  • Onboarding header jumped ~8 px on the last page because hiding Skip removed its 48 dp target. A spacer keeps the slot.
  • Content version per course: GlossoApi kept one content version per server, so after a course switch the first drills went out with the previous course's v=; on a cold start drills went out with no version. Now the version store is per language (asset_version_<lang>), a course switch resets manifest state, a course with no known version reads its manifest first, and the HTTP cache is cleared only when that course's catalogue changes. The old single key migrates to the course in use. Tests: CourseSwitchVersionTest, AndroidStorageCompatibilityTest.

Checked: Android unit tests (both flavors), :shared:testAndroidHostTest, Wasm and iOS compiles, lint; web screenshots before/after.

Line breaking allows a break before U+02C8 and U+02CC, so Russian
"nˈovyj" wrapped as "n" / "ˈovyj". GlossoType.ipa() inserts a WORD
JOINER before a stress mark that follows a non-space, and every MonoIPA
text goes through it. Display only: scored and compared strings keep the
plain transcription.
The last page drops the header Skip, and with it the 48 dp touch target
that set the row's height, so the logo moved up about 8 px. A spacer of
the same minimum interactive size keeps the slot.
The content version was one value per server, so after a course switch
the first content requests carried the previous course's version (and
cold-start drills went out unversioned before the manifest arrived).
Versions are now kept per target language, in memory and in ApiCache; a
course switch resets the manifest state like a server switch, and a
course with no known version reads its manifest before fetching content.
The HTTP cache is cleared only when a course's own catalogue changes.
@IgnacioLD
IgnacioLD merged commit 1e4c06e into main Nov 27, 2026
4 checks passed
@IgnacioLD
IgnacioLD deleted the fix/web-check-defects branch November 27, 2026 22:03
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