feat(code): toast when manual update check finds no update#2024
Open
feat(code): toast when manual update check finds no update#2024
Conversation
Generated-By: PostHog Code Task-Id: d79f9950-8e3f-4cc1-9e09-166a4f99aad5
Contributor
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Prevents a stale flag from triggering a spurious "You're on the latest version" toast when a subsequent periodic check resolves after the subscription recovers from an error. Flagged by Greptile. Generated-By: PostHog Code Task-Id: d79f9950-8e3f-4cc1-9e09-166a4f99aad5
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.
Summary
Addresses Marcus's papercut: clicking Check for Updates… in the app menu was silent when no update was available. Now a "You're on the latest version" success toast surfaces, while automatic background checks remain quiet.
How it works
menuCheckPendingflag inupdateStorethat's only set when theonCheckFromMenusubscription fires (the menu-triggered path).upToDate, the flag is consumed and a success toast is shown.UpdateBanneralready surfaces it, so the toast is suppressed.Test plan
pnpm typecheck,pnpm lint,pnpm test— all pass locally.Created with PostHog Code