> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Changelog

The single record of what changed in every version, newest first. The rest of these docs describe the current version only.

## Versions at a glance

Counts of top-level changelog entries per version, not usage analytics or test results.

| Version            | Date       | Improved & added | Fixed | Breaking | Developer |
| ------------------ | ---------- | ---------------: | ----: | -------: | --------: |
| [1.0.14](#v1-0-14) | Unreleased |                7 |     8 |        2 |        10 |
| [1.0.13](#v1-0-13) | 2026-11-30 |                1 |     0 |        1 |         4 |
| [1.0.12](#v1-0-12) | 2026-11-26 |                0 |     2 |        0 |         0 |
| [1.0.11](#v1-0-11) | 2026-11-19 |               15 |     8 |        3 |        19 |
| [1.0.10](#v1-0-10) | 2026-11-03 |                0 |     2 |        0 |         2 |
| [1.0.9](#v1-0-9)   | 2026-10-26 |                0 |     0 |        0 |        12 |
| [1.0.8](#v1-0-8)   | 2026-10-26 |                8 |     2 |        0 |         1 |
| [1.0.7](#v1-0-7)   | 2026-10-01 |               15 |    10 |        0 |         6 |
| [1.0.6](#v1-0-6)   | 2026-09-17 |                8 |     4 |        0 |         3 |
| [1.0.5](#v1-0-5)   | 2026-08-26 |                7 |     5 |        0 |         5 |
| [1.0.4](#v1-0-4)   | 2026-08-21 |                8 |     6 |        0 |         2 |

All notable changes to Magic Piano are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/).

Fastlane (`release_changelog`) and the **Release · Auto Tag** workflow read the `## [version]` section that matches `package.json`. Put user-facing bullets under `### Fixed` / `### Improved`; `### Developer` and `### Breaking` entries are omitted from the tag message and store formatting. `### Breaking` lists what a version breaks for the team: removed modules, renamed config keys, new required env or signing, data migrations.

Every version has a section, newest first, dated the day it was submitted to the App Store; the version dev is on now reads `- Unreleased` until then (`scripts/__tests__/changelog-coverage.test.ts` fails a version without one). A release that ships from `dev` or a hotfix branch instead of `main` is tagged by hand on the commit that was built: `node scripts/ci-release-tag.mjs --version <x.y.z> --ref <commit>` (see `docs/ci-cd.md`).

**TestFlight** uploads do **not** send changelog to Apple (faster `pilot` upload). Slack still lists recent commit subjects for each build via `recent_changelog` in Fastfile.

## \[1.0.14] - Unreleased \{#v1-0-14}

Everything on `dev` after 1.0.11 (77) (`cc3dd17e6`), less the two 1.0.12 fixes and the Facebook SDK that shipped in the 1.0.13 hotfix.

### Fixed

- Learn Mode's exits (Leave, Song list, Next, Replay) no longer do nothing while the No Ads popup waits on the store; the popup opens at once from the packs it saved last time
- No result sounds play under a full-screen ad, even one that swaps its own screens (video then end card)
- An ad shown without the SDK's display callback, or whose close never comes, no longer leaves the next screen blocked
- During the first-song reward, the Song list no longer shows through under the second song card
- In Learn, the note number follows a pressed black key
- The app-open sound no longer has its audio session reconfigured while it plays, which could cut it off or make its end crackle; on a first launch the onboarding film starts once it has ended
- A cross-promotion link that arrives while a song is playing no longer interrupts it
- On the first launch after an install or update, the splash keys no longer vanish for a moment as the launch screen hands over to the intro

### Improved

- Cross promotion from Magic Tiles: a link opens Magic Piano on the promoted song, highlighted in the Song list — from a fresh install (deferred link) or straight into an installed app (Universal Links on `iosinapp-event.onelink.me`)
- First launch (FTUE): a lighter onboarding video, the tracking and consent prompts asked at a new moment, smoother screen transitions, new buttons; the first-song picker says Play
- No Ads popup: shown at app open (from the second launch) and at the 6th song start for the Aggressive arms; new design ("No Ads FOREVER", price on the button); Remove Ads comes first in the Shop as "REMOVE POPUP ADS"
- iPad: the side bar, song list filters and search, song cards, Game Mode result, Pause panel, Learn guide, 50%-off offer, Shop, Profile and the No Ads popup follow the iPad designs; sharper tab icons, stars and laurels
- First-song flow: new sounds for the song cards, the reward and GO!; the scene sounds play on the first song choice too; no preview after a song is picked; the offer opens right on the first result, ahead of the reward
- Main buttons play a sound when pressed
- Buttons: a new press effect, softer shadow and finer ring; the Shop's entrance plays once a session

### Developer

- CI: bootstrap the standalone docs test dependencies from their own lockfile before the tools shard runs on a fresh runner
- Documentation website: Rspress Product Handbook and Developer Docs for the current version only (no per-release snapshots), Rspress home, overview and `<Steps>` pages instead of hand-laid HTML, separate sidebars per section, app artwork, one page per Maestro script, site search, `llms.txt`; release history is the single changelog page with a per-version summary; one `doc_build` output that works at any URL prefix
- Reward song (A/B, off until the console sets a group): a locked song given after a finished song, up to a number a day; Remote Config `reward_song` (locked with `ab_lock_version`) and `reward_song_pool`; events `reward_song_show` / `reward_song_click`; placeholder UI; see `docs/features/song-reward.md`
- Cross promotion: deep-link intake through the attribution service (AppsFlyer listener registered before init, one retry), an `xp_uid` store, Song list focus from outside (filters lifted, scroll, highlight), `map_user_id` and `crosspromo_deeplink_open` (Firebase only), `xp_uid` user property; a device-ids service (IDFA, IDFV, Firebase app instance / installation ids, AppsFlyer id, ATT); see `docs/features/cross-promo.md`
- Monetization: `mon_pkg` places the No Ads popup at app open and at the Nth song start with no cap across placements; Aggressive A and B named; Aggressive keeps the paywall on the first result after the tutorial, with no trial
- No Ads popup: the store's Remove Ads packs saved in MMKV (`noads-popup.packs.v1`, keyed arm / No Ads tier / config revision), store wait 5 s, exits wait at most 3 s for a popup still on its way
- Tracking QC: `song_quit` keeps the chart total, `user_subscription` takes `is_trial` from the store and sends `price_value` / `currency` / `transaction_id`, the arm rides on every event, `ad_impression` carries `appsflyerid`, the full-screen native sends `ad_format: native`, one `song_id` per song across builds; reverted: `fullads_close` / `fullads_click`, `install_source`, paid / organic from AppsFlyer, the late AppsFlyer id → RevenueCat link
- Ads: screen check for ads shown without the display callback (paid-impression displays only; a controller the app did not present counts as an ad; front-most window); ADS QA toggles in Settings (Drop FS close, FSN Off, FSN No-fill) on QA builds
- SDK layer: Firebase Auth and `dateFnsLocale` left out when unused
- The Facebook SDK (Meta App Events) from 1.0.13 is on `dev` too

### Breaking

- iOS signing: the app now claims `applinks:iosinapp-event.onelink.me` (Associated Domains); every provisioning profile used to sign it (match development and appstore) must carry that capability, or the archive fails
- `.env` must carry `FACEBOOK_APP_ID` / `FACEBOOK_CLIENT_TOKEN` (from 1.0.13), or the prebuild stops

## \[1.0.13] - 2026-11-30 \{#v1-0-13}

Hotfix on top of the App Store 1.0.12 (8): the Facebook SDK only. Built from `hotfix/1.0.13-facebook-sdk` (TestFlight 1.0.13 (12)).

### Improved

- Better measurement of our ad campaigns with Meta, so new players find the app more easily

### Developer

- Facebook SDK (Meta App Events): `react-native-fbsdk-next` 13.4.3 / FBSDKCoreKit 18 (Core pod only, `patches/react-native-fbsdk-next@13.4.3.patch`); Meta app ID / client token / name from `.env` (`FACEBOOK_APP_ID`, `FACEBOOK_CLIENT_TOKEN`, `APP_NAME`) into Info.plist (`config/facebook-sdk.ts`)
- The SDK logs install / activation itself; every AdMob paid event also goes to Meta as `AdImpression` (`valueToSum` revenue, `fb_currency`, `ad_type`) next to AppsFlyer `af_ad_revenue` (`src/core/sdk/meta-ad-tracking.ts`, port `@core/meta-events`)
- The ATT answer reaches the SDK's advertiser tracking (iOS 16 needs it; the SDK reads ATT itself from iOS 17): `meta-att-sync.ts`, started at boot after the ATT step; `requestAttForAds` announces each answer (`att-answered.ts`)
- Purchases reach Meta from AppsFlyer (`af_purchase` postback); the SDK's automatic in-app purchase logging is switched off on the Meta App Dashboard (iOS card, "Log in-app events automatically")

### Breaking

- `.env` must carry `FACEBOOK_APP_ID` and `FACEBOOK_CLIENT_TOKEN`: the prebuild stops without them

## \[1.0.12] - 2026-11-26 \{#v1-0-12}

Hotfix on top of 1.0.11 (77), built from `hotfix/1.0.11-audio-crash` (1.0.12 (8)). The work on `dev` between 23 and 28/11 did not ship in it: it is in 1.0.14.

### Fixed

- A crash when sound effects and the piano engine were called at the same time
- An ad whose close never arrived no longer leaves the screen blocked: the show ends once the ad is off screen

## \[1.0.11] - 2026-11-19 \{#v1-0-11}

### Fixed

- Light beam now rises under the key that actually dips when a tap lands slightly off a highlighted note (it used to light the key under the finger), and lets go of that same beam on release
- Game Mode pauses instead of breaking when the GPU is lost, and does no GPU work in the background; the gameplay glow keeps its tint
- On iPad, the song result is centred when it has no suggestions and the first-song pickers are spread out
- The light beam fills the key's whole height in landscape
- "See passes" opens the Shop without stacking a second tab bar; a banner lets go while its screen is not in front
- An interstitial whose close never comes ends at the next touch on the app
- Learn stage 7's music is heard after a full-screen ad
- No App Open ad in the first session on a return from the background; Balance no longer blocks App Open on a paywall launch

### Improved

- Subscription paywall A/B (Friendly, Balance, Aggressive A/B): Aggressive sells no free trial on the paywall after the intro or on a paywall the player opens, and shows no open-app paywall, no 50%-off offer, no default paywall, no home-return or replay paywall; Friendly and Balance keep today's paywalls
- New 50%-off offer after the second VIP song press of a session (once a session), for Friendly and Balance
- New default paywall at the 6th song start (lifetime count), once, for Friendly and Balance
- Balance: a launch that opens the open-app paywall shows no App Open ad
- The paywall promises a free trial only when the store product has one; prices and product ids come from RevenueCat, never from the app; Aggressive sells from the `notrial` offering
- Every paywall trigger sends its own `screen` location on `sub_offer_*` / `user_subscription` (new: `vip_offer`, `default_paywall`, `replay`, `home_return`, `profile`; Settings now sends `setting`)
- Faster app start: the splash is released once Remote Config and haptics are ready instead of waiting on every SDK, and attribution starts alongside the other boot services
- Smoother first launch: sprite sheets are laid out on a background thread, so the first frames are no longer held up by atlas packing
- New Shop: Remove Ads packs and Premium Access, VIP-song bonus covers, a "N VIP SONGS" sticker, struck-through prices; laid out for iPad; Premium Access hides once VIP is unlocked
- A No Ads banner in the Song list
- Watch two rewarded videos to unlock a famous song; No Ads keeps rewarded videos (only VIP turns them off)
- Game Mode's loading card shows a white progress bar and stays until the lane's effects have warmed up, so the count-in and the first notes start smoothly
- Onboarding: Start waits only for Remote Config (3 s cap), a shorter splash, the tutorial hand off, and the tutorial song chosen from a configurable list that also unlocks it in the Song list
- The ad consent form (UMP) is on
- Smoother gameplay: the sprite planes present through WebGPU canvases; the native audio clock runs on a 16 ms pulse from shared memory

### Developer

- Monetization: `mon_pkg.paywall.*` carries every paywall rule per variant (trial after the intro / on opened paywalls, open-app paywall and its session, 50%-off session and dismissal count, VIP offer taps and cap, default paywall song start, home-return, replay, App Open skip, and the RC offering for trial / no-trial / discount); see `docs/ad-trigger-logic.md` and `docs/analytics-events.md`. The trial trigger `post_tutorial` is now `intro`, and `paywall.trial_post_tutorial` is `paywall.trial_intro`
- Paywall: `openDiscountPaywall` and the automatic paywalls skip when another paywall is on screen; `launch-paywall-owed-store` tells the App Open host a paywall takes the launch
- Boot: the hub SDK (`@leapgame/app-sdk`, `core/sdk/hub*`) is removed; attribution now sits behind an `AttributionService` port (`core/attribution`: AppsFlyer adapter, no-op and fake, registry, composition root). The boot step is `appsflyer` and the `boot_timing` event carries `af_ms` / `failed_step: "appsflyer"` instead of `hub_ms` / `hub`
- Boot: the splash records when its layers settled and the first UI frame after takeover (`introSettleMs`, `introSettleFirstFrameMs`); each launch warmup leaves a `warmup:<name>:<ms>` crash breadcrumb so a release trace shows which one held the splash; the Rozenite startup-perf panel shows the new timings
- Sprite engine: texture layout goes through one door, `atlas-layout-service.ts` (`layoutTexture`, `requestTextureLayout`, `fitTextureScale`), memoised on sizes and options; packing runs on a worklet runtime (`atlas-pack-runtime.ts`) and falls back to the JS thread when there is none
- WebGPU Planes devtool: UI-runtime hops share one reply function routed by id (`createReplyRouter`) instead of minting a closure per hop, which piled up `settle()` closures in the heap while the panel polled
- Sprite engine: the gameplay master / FX / lane / keyboard atlases and the judgement popup use the layout service
- Sprite systems get `sys.write(slot, fn)` (apply now, dirty-marked, one merged upload and draw) and `sys.writeDeferred(slot, fn)` (apply at the start of the layer's next frame), both with an optional patch mode that rewrites only some instances of a slot; the keyboard writes a key's overlay (highlight / wrong / tint) that way instead of waking and rewriting the whole key (`KEYBOARD_OVERLAY_WRITE_ENABLED` switches it off)
- Pool dirty spans are marked per awake slot instead of one lo..hi span per layer, so a pool with awake slots at both ends no longer uploads everything between them
- WebGPU Planes devtool: each region shows a mode badge (animating / static / idle), awake and shown slot counts, and the `write` / `writeDeferred` rate with how many were patches
- Light beam draws from a geometry shared value, so a width / height / lane-window change reaches the already-bound frame worklet
- Tried drawing additive regions through the alpha pipeline (`ADDITIVE_IN_ALPHA_PIPELINE`) to merge the lane's draw calls: it hid the hold embers and hard-clipped the light beam on device, so it stays off
- Monetization: arms follow the final mon package design (`learn_fs.mode`, Learn stage interstitials, song_end flow for Aggressive and Very Aggressive, no Learn song-end interstitial for stage arms); the last valid `mon_pkg` is cached across launches; a player outside the test runs the friendly rules
- A/B tests: Remote Config locked per install and release (`ab_lock_version`), the variant locked on the onboarding screen within 2 s, `ab_source` and `ab_config_applied`
- Analytics: Shop and No Ads popup events, App Open events after the PO's sheet, the Full Screen Native funnel with the device's connection, `ad_impression` names the network that filled, `iap_offer_show` for the Song list No Ads banner, `screen: "shop"` for the Shop's paywall, Learn stage interstitial `location: learn_mode_stage_<n>`
- Audio: the native engine moved from an Expo module to Nitro (`modules/piano-audio-engine`), clock read from shared memory; the unused `sf2-pcm-decoder` module removed
- DevTool: web mode (Docker image + EC2 deploy, public `wss://` URL), catalog preview by variant, a variant apply resets the device to a fresh install, single LAN QR (v0.15.0)
- E2E: IAP backend for subscription flows per arm (`run-variants.sh`, paywall subflows)
- The `expo-screen-orientation` patch re-keyed to 58.0.4

### Breaking

- The native audio engine is a Nitro module now: run `bun run nitrogen` before `expo prebuild` / `pod install` (CI does)
- Remote Config: `paywall.trial_post_tutorial` is now `paywall.trial_intro` (trigger `post_tutorial` → `intro`)
- The hub SDK (`@leapgame/app-sdk`, `core/sdk/hub*`) is gone: attribution goes through `@core/attribution`; `boot_timing` reports `af_ms` / `failed_step: "appsflyer"` instead of `hub_ms` / `hub`

## \[1.0.10] - 2026-11-03 \{#v1-0-10}

### Fixed

- Fixed a crash while playing or opening the piano keyboard, caused by the graphics renderer reading a keyboard label image that had already been released
- Fixed a crash when the app went to the background while piano visuals were being prepared; the visuals are now rebuilt on return

### Developer

- Skia atlas readback (`makeRasterImageSync` / `readPixels`) goes through `guardAtlasReadback`: a lost GPU texture returns `null` (with a Crashlytics breadcrumb) instead of an unhandled JS exception
- Keyboard label atlases are no longer `dispose()`d after being drawn — the RNSkia render thread uploads / replays them asynchronously, so a JS-side free (even after two `requestAnimationFrame`s) raced the Graphite upload (`RNSkia Render` `memmove` crash). Only never-drawn images are disposed; removed `disposeAtlasImageAfterFrame`

## \[1.0.9] - 2026-10-26 \{#v1-0-9}

## Features

- IOS alternative icons

### Developer

- Less gameplay atlas memory, same pixels: the hold-beam column is a \~53-row bake stretched on the GPU (new head-preserving vertical stretch per sprite instance) instead of a column as tall as the song's longest hold (up to 4096 × the bake scale, past WebGPU's 8192 texture limit); smoke and hold-ember cells moved into the FX sheet (front plane samples 3 lane sheets instead of 5); the master, FX and light-beam sheets are baked by the sprite engine on upload and their CPU rasters freed right away (kept warm on the GPU for Replay / Next) instead of a CPU copy living next to each GPU texture.
- Lower GPU memory in gameplay: the lane's back (glow/bloom) plane renders at 1× instead of device density (\~20 MB less on a 3× phone) and planes baking from the same atlas image share one GPU texture (the FX sheet was uploaded twice).
- WebGPU Planes devtool panel: tracks GPU texture/buffer memory (live, peak, per owner, shared sheets, Δ since baseline) and no longer clips or jitters (planes shrank inside the flex list instead of scrolling; draw list and details card now have fixed space).
- Gameplay, tutorial drills, keyboard and the effect labs draw every sprite layer through WebGPU planes only (`@core/webgpu-sprites`): the Skia `<Atlas>` paths, the `EXPO_PUBLIC_GAMEPLAY_WEBGPU` flag and the Graphite experiment are removed. If the engine fails to start, the sprite layers stay unmounted for the session
- The multiplier badge records itself frame by frame into its own `SkiaGraphiteView` (sibling of the lane canvas) instead of being a canvas node, so its water crest no longer makes Skia re-record the whole lane scene graph; it runs its own UI frame callback (every frame by default) and an idle badge records nothing.
- Sprite engine: layers register on a plane by sheet key (`createLayeredPlane` + `layer(...)`) instead of hand-numbered atlas slots — layers on the same key share a slot (so same-blend neighbours merge into one draw) and a sheet no layer samples is never uploaded. `putSprite` now culls sprites that are off the plane, zero-size or transparent, and a layer whose every sprite is culled drops out of the pass (an all-culled plane skips it). The fx tick-cadence helpers moved into the engine, so `@core/webgpu-sprites` no longer imports from `@components`.
- Hold ember lab: a STRESS ×8 chart and a benchmark HUD (UI fps, worst frame, JS stall)
- Release auto-tag on merge to `main` runs on GitHub only; GitLab drops the duplicate `release_tag` job and runs release TestFlight when the mirrored `v*` tag arrives
- CI Tart golden image pinned to `bun1.3.13-xcode27.1-r1` (Xcode 27.1)
- iOS CI enables React Native ccache (`USE_CCACHE=1`) with `CCACHE_DIR` on the Tart host mount when present (CocoaPods cache stays VM-local)
- Drop Appcircle Fastlane lanes/plugin; build numbers come only from App Store Connect / Play (no `CI_PIPELINE_IID`)
- TestFlight build number: latest on current marketing version + 1 (not app-wide latest / not `CI_PIPELINE_IID`)

## \[1.0.8] - 2026-10-26 \{#v1-0-8}

### Improved

- Cleaner piano and backing audio — less noise and hiss during play
- Learn Mode UX polish for clearer guidance and a steadier practice flow
- Refreshed splash screen and startup prewarm for a smoother first frame
- Tutorial song previews support space strum; Twinkle is the tutorial stand-in song
- PO-tuned haptic defaults for gameplay taps and holds
- Paywall hero art matches design on phone and tablet
- Game Mode timing labels and miss/early feedback tuned for clearer reads
- Guided first song: an early press on the first hold waits for the line

### Fixed

- Crash when changing sampler params after a note had already stopped
- Judgement popup work no longer triggers avoidable JS garbage-collection churn

### Developer

- Auto tag on merge to `main`: GitHub `release-tag.yml` + `scripts/ci-release-tag.mjs` only (GitLab mirror runs TestFlight on synced `v*` tags)

## \[1.0.7] - 2026-10-01 \{#v1-0-7}

### Improved

- Piano keyboard presses feel more responsive, with clearer colouring on press; key sprites no longer clip into neighboring keys on iPad
- Playback follows a rhythm-sequencer song clock, with higher polyphony and a wider perfect hit zone
- New timing-zone look; the hit window no longer scales with the zone
- Smoother multiplier theme changes, and less work per gameplay tick
- Audio fade-in on playback, refreshed open-app chime, and updated song content
- Onboarding opens on a sharp HEVC showoff film with Start on the app CTA heartbeat; first-run scripts can open on “Choose your first song”
- Tutorial training waits for Perfect before moving on; TOO EARLY says it once (no label), and a retried press pops a PERFECT-styled label then Tap Again!; the training hand appears only when the note reaches the line
- Tutorial choosing runs end on the Game Mode result (frozen score, progress rail, no ad banner); a replay skips the intro funnel; Congrats stays on runs without a choice
- Leaving the tutorial for a picked song opens that song on the song list; result Song list / Replay match Learn’s round icon buttons
- Learn Mode uses the same open-song interstitial as Play; leaving a stage saves elapsed time and shows the pause interstitial; the song-end interstitial stays on the song-end flow
- Learn results show the same banner as gameplay results, with the trophy and banner laid out for phone and tablet
- Learn stage progress pill on the top bar (tablet-sized); guide rings highlight hearts and Hint; Stage 7 uses a wider headphone judge window; the final stage’s lesson shows once and Practice keeps the player there
- Song previews cache the fifteen seconds that play; on results, the preview wait starts once recommended songs are on screen and only counts while the result is visible
- Paywall cover wall scrolls in alternating columns; video paywall plays its film with sound; `enableIAP` only hides one-off purchases
- Interstitials wait until the player’s second finished song

### Fixed

- Effect sprites aliasing into neighboring atlas art
- A released ad can no longer end a show that another ad is in
- A show that finds no ad is reported as not ready
- An ad tracking error no longer stalls a load or a show
- A song preview whose player throws ends the same way as one that never sounded
- iOS: a nil Firebase Analytics key no longer aborts the app
- Free Mode crash; atlas keyboard swipe; Perfect+ scoring; long wait after watching an ad
- iPad Learn layout and result-screen layout issues
- Training: a retried press’s key light goes out with the note
- Loading icon and preview auto-position polish

### Developer

- Ads keep both unit tiers loaded and retry on the magicPad ladder, then show without a show-time load wait; AdMob mediation adapters (incl. IronSource) on iOS
- Ad events name the unit tier and id, count every tier requested, and record why an ad did not fill; a Learn rewarded unlock reports `song_learn`
- Internal builds stream analytics to the debug bridge
- Learn Mode MIDI comes from the sheet alone; Stage 7 judge window follows iOS audio route (speaker vs headphones)
- `EXPO_PUBLIC_LEARN_TUTORIAL_REPLAY` shows the Learn guide again in dev
- Stop running `assets:sync` from `metro.config.js` — Xcode archive has no `bun` on PATH; manifests stay on `postinstall` / `prestart` / `typecheck`

## \[1.0.6] - 2026-09-17 \{#v1-0-6}

### Improved

- **Learn Mode** — guided stages with number board, hints, hearts, challenge runs, and a dedicated Learn result (accuracy count-up, Learn/Play tabs, learnable-song suggestions)
- Gameplay and Learn results share Learn/Play tabs; the Learn tab only lists songs that can be practiced in Learn Mode
- New atlas piano keyboard with clearer held-key shading and smoother press feedback
- Auto-pause at the hit line waits for the correct key; recorded backing fades out softly (\~1.7s) instead of cutting short
- Slightly early taps can delay the melody note onto the beat (audio quantize, Remote Config kill-switch)
- Larger judgement, score, and multiplier badge mid-song — easier to read while playing
- Smoother multiplier badge / gameplay FX timing (delta-time / cadence-driven effects)
- More room between the Magic Piano logo and the headphone line on the splash screen

### Fixed

- Learn Mode could fail to mount while an ad was showing
- Judgement label could linger on screen after a hit
- Tutorial crash paths and practice-training skip edge cases
- Note-effect memory leaks on the play path

### Developer

- Early-press audio quantize: `audio_quantize_enabled` RC + `QUANTIZE_WINDOW_MS` (45) in `audio-quantize.ts`
- Auto-pause soft-pause fade: `BACKING_SOFT_PAUSE_FADE_SECONDS` = 1.7 on `BackingTrackPlayer.softPause`
- Learn Mode charts / tablet UI under `src/features/learn` and `src/assets/learnmode`

## \[1.0.5] - 2026-08-26 \{#v1-0-5}

### Fixed

- FTUE analytics: splash screen and loading start/end events now fire with the correct session and timing
- Gameplay could stay paused after certain transitions
- Deeplink routing
- Memory leak on the play screen body
- Dependency issues affecting bootstrap SDK wiring

### Improved

- Smoother gameplay theme transition from 1× to 2× multiplier — reduced UI flicker and lag
- Splash screen timing for a steadier cold start
- Analytics bootstrap cleanup and Firebase SDK upgrade
- Unified ads service interface behind a single SDK adapter
- Security scanning report upgrades
- Song difficulty uses six levels — Tutorial, Easy, Medium, Hard, Extreme, and Impossible — on list chips; the Tutorial marker (`1`) is hidden on gameplay/result surfaces and omitted from the songs difficulty filter
- Legacy owned-song snapshots (old 1 = Easy, 2 = Medium, 3 = Hard) upgrade automatically when the library loads from MMKV or Firestore

### Developer

- Rozenite DevTools: Metro require profiler, MMKV storage browser, TanStack Query inspector (`bun run start:rozenite`)
- `@piano/catalog` `Difficulty` enum is `1..6` (`TUTORIAL` … `IMPOSSIBLE`); helpers `difficultyToSlug`, `difficultyToLabel`, `migrateLegacy3TierDifficulty`
- Google Sheet / `songs.json` difficulty column uses the new numbering (`1` = Tutorial, `2` = Easy, …); run `bun run catalog:sync-sheet` after sheet edits
- `UserLibraryDocument` schema **v2** — `parseUserLibraryDocument()` migrates v1 docs on read (MMKV rewrite + Firestore push on next sync)
- Analytics `song_session.difficulty` param accepts `tutorial | easy | medium | hard | extreme | impossible` (`packages/analytics/spec/param-groups.yaml`)

## \[1.0.4] - 2026-08-21 \{#v1-0-4}

### Fixed

- Lag and flicker when the gameplay theme shifts at higher multipliers
- Star-rise visual flicker during play
- Multiple gameplay memory leaks (judgment popups, tile note effects, smoke particles, smoke waves)
- Reanimated worklet threading issues causing unstable visuals
- Paywall logic, safe-area insets, and responsive layout
- Worklet smoke particle rendering

### Improved

- Tile rendering performance via batched consumption
- Reduced audio garbage collection while playing notes
- Paywall styling and responsive layout
- Faster cold start (lazy-load IAP / RevenueCat on app entry)
- Song list returns instantly when navigating back — no freeze on return
- Star badge on the results screen
- Remote config refresh interval tuning
- In-app subscription handling migrated to an in-source handler

### Developer

- Dev server works on a fresh install without manual setup steps
- Lazy-load dev labs; reduced premium button code paths

***

<small>Source: [`CHANGELOG.md`](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/CHANGELOG.md)</small>
