Browser-laptop: Handle all bad state scenarios for the ledger

Created on 16 Oct 2017  路  10Comments  路  Source: brave/browser-laptop

Description

Scenarios where the user can be in a bad state:

  • [x] Wallet disabled before upgrade (from 0.18.x => 0.19.x), then they enable it #11626
  • [x] User upgrades from 0.18.x => 0.19.x... transition completes. Then they get notice for another upgrade #11552
  • [x] User can be in a bad state if they experienced the number 2 bug before 0.19.52 version #11506
Qchecked-Linux Qchecked-Win64 Qchecked-macOS Qtest-plan-specified featurrewards initiativbat-payments prioritP2 release-noteinclude

Most helpful comment

Scenario mentioned in https://github.com/brave/browser-laptop/issues/11566#issuecomment-342930339 doesn't happen anymore. Upgrading from 0.19.48 with v2 wallet doesn't show transition overlay on 0.19.87

All 10 comments

Should the payment on/off switch also be disabled during wallet transition so that it avoids the wrong amount to show up when its turned off/on
image

@NejcZdovc will this issue cover the bad state users get into when the toggle payments on/off during transition? cc @evq

@LaurenWags not sure that I understand the question

@NejcZdovc Its the case when user turns off payment after the transition overlay is shown and then enables payment causing the crazy USD amount to show up for BAT.

ok will check that out as well, right now I am working on the first one. Created issue for it https://github.com/brave/browser-laptop/issues/11611

thanks @NejcZdovc - a lot of users are doing as @srirambv described and that's definitely causing some kind of problem.

Checking this one out now... looks like unit tests were missed when adding the new transition flag (and there's also a part which reads using a misspelling of the state). Working on a fix now...

Still seeing overlay in 0.19.82 when I shouldn't be. STR:
Clean install 0.18.36
Update to 0.19.48
Enable Payments, wallet is created
Update to 0.19.49 (any version prior to 0.19.52 per https://github.com/brave/browser-laptop/issues/11506#issuecomment-336991791)
You will see the overlay transition on Payments page when it is not needed as your wallet was already created in previous version.
Update to 0.19.82.
You will still see the overlay transition, it does not go away.

Scenario mentioned in https://github.com/brave/browser-laptop/issues/11566#issuecomment-342930339 doesn't happen anymore. Upgrading from 0.19.48 with v2 wallet doesn't show transition overlay on 0.19.87

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stevespringett picture stevespringett  路  3Comments

bsclifton picture bsclifton  路  3Comments

bsclifton picture bsclifton  路  3Comments

luixxiul picture luixxiul  路  3Comments

jonathansampson picture jonathansampson  路  3Comments