Skip to content
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

show message about server error when sync is active #1128

Merged
merged 1 commit into from
Dec 18, 2018
Merged

Conversation

cezaraugusto
Copy link
Contributor

fix brave/brave-browser#2577

Test Plan:

  1. Create a sync chain and ensure you see two devices
  2. Quit Brave
  3. Launch Brave without internet
  4. You should see a Unable to connect to the Sync servers. error dialog

This also adds the internet connection error

@cezaraugusto cezaraugusto self-assigned this Dec 18, 2018
@cezaraugusto cezaraugusto requested a review from darkdh December 18, 2018 14:45
@@ -111,6 +111,10 @@ export default class SyncEnabledContent extends React.PureComponent<Props, State
})
}

onUserNoticedError = () => {
this.props.actions.resetSyncSetupError()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SYNC_RESET_SETUP_ERROR, this naming is confusing. what exactly is it related to reset?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this dispatches a message cleaning up the error message (store receives undefined)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per discussion in DM, please do a follow-up for better naming of this every where.

@cezaraugusto cezaraugusto merged commit c4b0aec into master Dec 18, 2018
@cezaraugusto cezaraugusto deleted the ca-2577 branch December 18, 2018 17:42
cezaraugusto added a commit that referenced this pull request Dec 18, 2018
show message about server error when sync is active
@cezaraugusto
Copy link
Contributor Author

cezaraugusto commented Dec 18, 2018

master c4b0aec
0.60.x 11b8271
0.59.x 78921ad

@rebron
Copy link
Collaborator

rebron commented Dec 20, 2018

Approving uplift-request for 0.59.x-beta. cc: @kjozwiak cc: @srirambv

darkdh pushed a commit that referenced this pull request Dec 20, 2018
show message about server error when sync is active
@bbondy bbondy added this to the 0.59.x - Beta milestone Jan 14, 2019
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.

no error message for bad behavior when unable to connect to sync servers
4 participants