openfoodnetwork icon indicating copy to clipboard operation
openfoodnetwork copied to clipboard

[BUU] Don't reload whole table when deleting products or variants

Open dacook opened this issue 10 months ago • 0 comments

When performing a delete from the actions menu, the whole table is reloaded. This can take some time, and is jarring because you can lose your position in a long list of products. The old products screen does this so we need to support it here too.

Screenshot 2023-12-28 at 14 08 16

  1. After confirming, attempt to delete the chosen row.
  2. If delete succeeds, remove the row(s) from the page.
    • Try using a "slide out" animation, to avoid the jump which would cause the user to lose their place.
  3. If the action fails, show a flash message explaining why, without changing any other part of the page.

Other notes:

  • Depends on #12361
  • Very similar to #11987
  • By removing SR, this will close https://github.com/openfoodfoundation/openfoodnetwork/issues/12331

dacook avatar Apr 18 '24 03:04 dacook