Skip to content

fix(reviews): ask after the first successful note save - #23

Merged
markm39 merged 2 commits into
mainfrom
fix/restore-review-prompts
Sep 24, 2026
Merged

markm39 merged 2 commits into
mainfrom
fix/restore-review-prompts

Conversation

@markm39

@markm39 markm39 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Request a review when someone returns to the main library after their first successful note save. The current release waits for five distinct saved notes, seven days of use, and a resolved Discord invitation plus another day. Remove those gates and require only one successful save, with no initial timer or creation/open/export milestones.

Use the existing successful-save hook for both editor saves and completed PDF imports. Saving records eligibility; the library focus hook makes the native request when onboarding and other sheets are closed. Discord remains at three distinct saved notes, and its sheet takes precedence if both prompts are eligible. Keep onboarding, support links, localization, and backup behavior.

Retain the original 120-day repeat cooldown and three-request cap, reuse original persisted review history, and serialize tracking and native requests. Manual rating remains available and shares the cooldown history. Remove the superseded automatic policy and per-version bookkeeping.

Validation: all 53 tests pass, TypeScript passes, and git diff whitespace checks pass. Service tests execute the implementation with mocked storage, clock, and native StoreReview calls: immediate first-save eligibility, no request before a save, concurrency, repeat cooldown/cap, legacy history, unavailable/failed requests, and manual ratings. Existing community tests still pass. Simplify and security reviews have no outstanding findings. No screen layouts or native code changed. Native prompt display has not been verified on a device; tests verify eligibility and invocation. No browser or dev server was started.

@markm39 markm39 changed the title fix(reviews): restore earlier usage-based review prompts fix(reviews): ask after the first successful note save Sep 24, 2026
@markm39
markm39 merged commit a0279a2 into main Sep 24, 2026
1 check passed
@markm39
markm39 deleted the fix/restore-review-prompts branch September 24, 2026 03:26
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