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

Do not delete token on network error #178

Merged
merged 3 commits into from
Mar 27, 2019

Conversation

jmattheis
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Mar 22, 2019

Codecov Report

Merging #178 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #178   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          40     40           
  Lines        1447   1447           
=====================================
  Hits         1447   1447

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1182d65...0596674. Read the comment docs.

@@ -42,6 +42,8 @@ export class WebSocketStore {
.catch((error: AxiosError) => {
if (error && error.response && error.response.status === 401) {
this.snack('Could not authenticate with client token, logging out.');
} else {
this.snack('Lost network connection, please refresh the page.');
Copy link
Member

Choose a reason for hiding this comment

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

I think this only displays once, right? So the user would have no idea that it is no longer connected to the server once he missed the initial notification. Can we schedule a reconnect here? Or at least add a persistent/repeating notification so that users can't miss it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added a banner with a retry button.

@jmattheis jmattheis force-pushed the not-delete-token-on-network-error branch 2 times, most recently from 18f7a7f to 727a515 Compare March 25, 2019 17:12
Copy link
Member

@eternal-flame-AD eternal-flame-AD left a comment

Choose a reason for hiding this comment

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

This is fantastic:)

@jmattheis jmattheis merged commit 62854d8 into master Mar 27, 2019
@jmattheis jmattheis deleted the not-delete-token-on-network-error branch March 27, 2019 20:13
@jmattheis jmattheis added this to the version+1 milestone Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants