-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: remind me later updater #5191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
1b09ca2
to
3b4fefb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to 83fc4e0 in 1 minute and 49 seconds. Click for details.
- Reviewed
267
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. web-app/src/routes/settings/general.tsx:11
- Draft comment:
Confirm removal of setRemindMeLater from useAppUpdater is intentional and that 'Remind me later' logic relies solely on the updater dialog. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% The comment violates our rules in multiple ways: 1) It asks for confirmation/verification which we explicitly disallow 2) It's speculative about whether the change might affect other logic 3) It doesn't point out a clear issue that needs fixing 4) Understanding if this is actually an issue would require seeing the updater dialog code which we don't have access to. Maybe removing setRemindMeLater could cause bugs in the reminder functionality? Maybe this is a critical feature that needs verification? Even if there could be bugs, we should trust the author's intention in removing this. If there are bugs, they'll be caught in testing. We shouldn't ask for confirmations or make speculative comments. This comment should be deleted as it violates our rules by asking for confirmation and making speculative statements without pointing out a clear issue that needs fixing.
Workflow ID: wflow_uUe396EfsT0jwXSK
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
louis-menlo
approved these changes
Jun 4, 2025
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.
Describe Your Changes
This pull request refactors the state management for the app updater functionality in the
web-app
project. The changes introduce a new local state in theAppUpdater
component to enhance clarity and ensure better separation of concerns. Additionally, theuseAppUpdater
hook is updated to reset theremindMeLater
flag when an update becomes available.Refactor of state management in
AppUpdater
component:web-app/src/containers/dialogs/AppUpdater.tsx
: Introduced a local stateappUpdateState
usinguseState
to manageremindMeLater
andisUpdateAvailable
. This state is synchronized with the globalupdateState
using auseEffect
hook. Updated conditional rendering to useappUpdateState
instead ofupdateState
.Update to
useAppUpdater
hook:web-app/src/hooks/useAppUpdater.ts
: Modified thesetUpdateState
logic to reset theremindMeLater
flag tofalse
when an update becomes available.Fixes Issues
Self Checklist
Important
Fixes and synchronizes 'remind me later' functionality in app updater, ensuring consistent update state across components.
DialogAppUpdater
by usingappUpdateState
to manage update visibility.events
inuseAppUpdater
.checkForUpdate()
inuseAppUpdater
.appUpdateState
inDialogAppUpdater
to trackremindMeLater
andisUpdateAvailable
.useEffect
to syncappUpdateState
withupdateState
inDialogAppUpdater
.syncStateToOtherInstances()
inuseAppUpdater
to emit state changes.useCallback
forhandleCheckForUpdate
ingeneral.tsx
to optimize performance.useAppUpdater
for better error handling and state synchronization.This description was created by
for 83fc4e0. You can customize this summary. It will automatically update as commits are pushed.