Add possibility to save drafts into local storage automatically as user makes changes

Description

When user is offline, it should be able to save local changes in the draft into the local storage of the browser. It should be done automatically. Right now the draft is creating after first save, we need to change it to start draft at the beginning of the process.

Autosaving should also be applied when user is online.

We should check if the performance wouldn’t be bad.

Activity

Show:
Joanna Szymańska
September 4, 2020, 10:37 AM
Edited


Another point arose:

  • Added reasons are not visible when the user comes back online.

  • The values ​​in the "Unaccounted Quantity" column disappear.

     

Joanna Szymańska
September 8, 2020, 11:24 AM
Edited

Unfortunately, I found one more scenario when the error occurs:

Reproduction steps:

  1. As a divo2 go to Stock Management > Physical Inventory and start a draft.

  2. Go offline, add product and select VVM status.

  3. Go to another tab e.g Stock Management > Physical Inventory or Home.

  4. Go online.

  5. Open the just-created draft.

  6. VVM Status is empty.

     

Joanna Szymańska
September 9, 2020, 7:57 AM
Edited

There are new issues after fixing the above:

1. Offline products disappear when one switch to another tab and return to online mode.

2. The Save button does not work after returning to draft (while online).

Joanna Szymańska
September 9, 2020, 12:16 PM
Edited

VVM Status disappears now when one return online:

Reproduction steps:

  1. Go to any draft in offline mode as divo1 or divo2.

  2. Add some product and select VVM Status.

  3. Go online.

  4. Go to Stock Management > Physical inventory an open the draft.

  5. VVM Status isn’t visible.

Joanna Szymańska
September 17, 2020, 8:04 AM

Tested with success.
I checked all the above issues again and performed additional tests. Everything works correctly.

Assignee

Klaudia Pałkowska

Reporter

Jakub Jakubowski

Story Points

5

Time tracking

40h

Components

Sprint

None

Fix versions

Priority

Major
Configure