Repository navigation
Ask for an App Store rating after an import that saved something new - #8
Merged
Merged
Conversation
Dropack has no ratings yet, and its App Store search ranks dropped about three weeks after launch. Ask StoreKit for a rating at a good moment: when an import finishes with every item resolved and at least one item newly saved to Photos. Ask at most once per app version, only while the app is active and nothing else is presented, and never in the -dropack-import test mode. StoreKit still limits prompts to three a year and shows none in TestFlight. ReviewPromptPolicy lives in Core with unit tests; ImportController counts items saved in the current run and publishes a FinishedImport event that ContentView turns into a delayed requestReview call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P3ShCoyT7VfTxVxTvbHDkW
guo-yu
marked this pull request as ready for review
November 16, 2026 15:49
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.
Dropack still has 0 ratings. Its App Store search ranks started dropping about three weeks after launch, for example jp「SDカード」went from 26 to 138. This adds the system rating prompt at a good moment.
When it asks
.completed), was not paused, and saved at least one new item to Photos. An import where every item was skipped as already imported does not count.CFBundleShortVersionString), stored inUserDefaultsunderdropack.reviewPrompt.lastRequestedVersion.-dropack-import/-dropack-urltest mode, so UI tests are not covered by a system sheet.Changes
Dropack/Core/ReviewPromptPolicy.swift: a pure policy (shouldRequest(newlySavedCount:appVersion:lastRequestedVersion:)), withTests/RelayCoreTests/ReviewPromptPolicyTests.swift.ImportController: counts items confirmed saved in the current run and publishesfinishedImportfromfinishRun()when the conditions above hold.ContentView: watchesfinishedImportand calls@Environment(\.requestReview)after the checks.scripts/generate_project.py. There are no new user-facing strings, because the prompt is the system's own.Checks
python3 scripts/generate_project.py --check,python3 scripts/localization_audit.pyandpython3 -m unittest discover -s scripts/testspass locally.swift testand the simulator build rely on the Verify workflow.Generated by Claude Code