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

Move simperium connection state from flux to redux #1870

Merged
merged 3 commits into from
Jan 29, 2020

Conversation

belcherj
Copy link
Contributor

Fix

When Simperium connects and disconnects we display different text and a different icon in the sync status popover. This PR moves that state from flux to the redux state.

Test

  1. Observe the sync status in the hamburger menu
  2. Does it say that it is connnected?

I have not been able to get the websocket to send a disconnection message. I am not sure how to test the disconnection.

Review

Only one developer is required to review these changes, but anyone can perform the review.

@belcherj belcherj added accessibility Let's support _all_ of our users! [status] needs code review labels Jan 28, 2020
@belcherj belcherj requested a review from a team January 28, 2020 21:27
@belcherj belcherj self-assigned this Jan 28, 2020
@belcherj belcherj removed the accessibility Let's support _all_ of our users! label Jan 28, 2020
Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

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

I have not tested this but the code looks fine. I think as we go we will discover value in creating a state.simperium subtree and this could go there. For now it seems fitting to leave this as a dangling oddity

lib/components/sync-status/index.tsx Outdated Show resolved Hide resolved
lib/app.tsx Outdated Show resolved Hide resolved
@belcherj
Copy link
Contributor Author

I did find it odd that this was in UI but figured it would be easy to move later.

@belcherj belcherj merged commit 2632d3e into develop Jan 29, 2020
@belcherj belcherj deleted the refactor/move-simperium-connnection-to-redux branch January 29, 2020 01:22
@dmsnell dmsnell mentioned this pull request Feb 19, 2020
41 tasks
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.

2 participants