Skip to content

Dismiss Optimistic Order Update Notification Right Away if an Error Occurs #3817

Open
@shiki

Description

@shiki

When marking an order as complete, we optimistically update the UI to show that it gets completed. While this is great for merchants with excellent internet connections, it becomes problematic for those who do not.

If the API update fails, it takes around 5 seconds before the merchant is informed about it.

Steps to Reproduce

  1. Navigate to a “processing” order.
  2. Go offline.
  3. Tap on Mark Order Complete. You should see the optimistic message, “Order marked as fulfilled”.
  4. Wait for 5 seconds and you should see the fulfillment failure message.
2021-03-11.17-11-08.mp4

Possible Solution

A possible quick solution is to immediately dismiss the “Order marked as fulfilled.” message when the API request failed. We can keep the optimistic message for now since changing that may require a cross-platform discussion.


Internal ref p5T066-1K4-p2#comment-7041

Metadata

Metadata

Assignees

Labels

feature: order detailsRelated to order details.good first issueThe issue is a good candidate for a community contribution or for a newcomer to the team.type: enhancementA request for an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions