Repository navigation
chore(scanRift): demo data and store screenshots tooling - #22
Merged
Merged
Conversation
A debug-only ScreenshotDemoActivity seeds a realistic data set for Play screenshots: 147 collection stacks across OGN/SFD/UNL/VEN/RAD with French, Chinese and Korean copies and foils, three decks (two legal, one illegal for its bans), six recorded games, a wishlist and a two-seat tracker roster. It lives in the debug source set and manifest, so release builds carry none of it. DemoDataTest pins the data to the bundled catalogue and the deck rules. scripts/screenshot-demo.sh puts an emulator into SystemUI demo mode, installs the debug build and runs the seeder; CLAUDE.md documents the whole procedure and the emulator quirks it works around. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dimming, CJK guard - Card detail / collection: ThreePaneScaffold requests focus on the pane it shows, which landed on the first text field (search box, stepper quantity) and popped the keyboard; each pane root is now the focus landing node (paneFocusLanding). Drops the search field's clearFocus workaround. - Floating stepper and list FABs: bottom content padding derived from the button size and margin (Dimens.FabContentClearance / QuantityStepperContentClearance). - Deck builder browser: addBlockReason's elvis also caught the validator's null, so every addable card was dimmed. - Binder pages: codes need three digits (and the printed total when only a space separates set and number); reads of one collector line from the page and tile passes collapse to one anchor; a focused card never falls back to other text on its region. Fixture test built from the real OCR lines of the 3x3 demo page (9 of 9). - Scan summary rows: controls move under the name below 520dp; names get 2 lines. - Collection: single pane unless list and detail both meet their floors (7" portrait). Top-bar titles are single-line with ellipsis. - CJK OCR: ModuleInstall availability check before the first pass, and a crash marker (CjkOcrGuard) that disables the pass for the app version after a native crash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new 280/320dp floors needed 624dp, so a Fold in portrait (~621dp beside the rail) fell back to one pane. 260/300dp still keeps a 7" tablet in portrait single. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Tooling to regenerate the Google Play screenshots, plus the data that makes them look lived-in.
app/src/debug/.../demo/:ScreenshotDemoActivity+DemoSeeder+DemoData. Debug source set and debug manifest only, so release builds contain none of it. Launch withadb shell am start -n com.scanrift.android.debug/com.scanrift.android.demo.ScreenshotDemoActivity. It waits for the launch bootstrap, then replaces the collection, decks, game history, wishlist and tracker roster with:DemoDataTest(testDebug): everyriftbound_idresolves in the bundled catalogue, decks validate (the third fails only for bans), and the collection owns enough copies so no deck shows missing cards.scripts/screenshot-demo.sh <serial>: turns on SystemUI demo mode (9:41, full battery and Wi-Fi, no notifications), installs the debug build and runs the seeder.wm size 1080x2160), the foldable's two displays, and pushing the binder-page photo.The screenshots themselves live in
ScanRift-store-assets/android/, not in this repo.Checks
./gradlew testDebugUnitTest assembleDebug lintDebug: tests pass, lint has 0 errors and no new warnings.🤖 Generated with Claude Code