Orders panel shows no orders message when orders exist #2309
Comments
Good catch! A quick solution to this problem would be adding |
Good question, @Aljullu.
I think this is an acceptable solution, but...
This feels like the right solution and what I would expect hitting this endpoint. I think the only major concerns would be whether or not there are performance impacts. @peterfabian mentioned in #1103 that these may be minimal with pagination. It might be worth doing some tests without those time restraints to see if there are any big performance concerns. |
This message would need to change based on the default date range setting, no?
What do you think about removing the date range and introducing a |
AFAIK the date range setting should not affect what we display in the Activity Panel. If there is an on-hold order from (let's say) one year ago, it should still appear in the Activity Panel.
I might be wrong, but given that it has pagination by default, that means there is already a |
Couldn't we do |
On my REST client the time went from |
Fixed in #2659. |
Describe the bug
A message is shown in the Orders activity panel that the store has not received any orders when it has.
I believe this is due to the before/after params defaulting to a 1 week period so
totalNonActionableOrders
results in0
if no recent orders have been placed.woocommerce-admin/client/header/activity-panel/panels/orders.js
Line 310 in 4d1e761
Also related - #1103
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected to see the message relevant to having previous orders but no actionable statuses:
Good job, you've fulfilled all of your new orders!
Or alternatively, a message that mentions there have been no orders within the past week.
Screenshots
The text was updated successfully, but these errors were encountered: