-
Notifications
You must be signed in to change notification settings - Fork 134
[Shipping labels] Improve the error message for empty shipping rates list #14433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
irfano
merged 14 commits into
trunk
from
issue/WOOMOB-888-error-message-for-empty-shipping
Aug 20, 2025
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
444e725
Add strings for empty shipping rates
irfano 4202a2e
Add NoAvailableRatesException for shipping rates
irfano 627912f
Return NoAvailableRatesException from GetShippingRates
irfano 8af6d87
Handle NoAvailableRatesException in WooShippingLabelCreationViewModel
irfano b986540
Update ShippingRatesSection to display dynamic error messages
irfano 094e1ff
Add padding to ErrorMessageWithButton
irfano 062c04d
Add release note for shipping labels error message improvement
irfano ed72771
Update `GetShippingRatesTest`
irfano 7910861
Merge branch 'trunk' into issue/WOOMOB-888-error-message-for-empty-sh…
irfano 3ccb5d5
Merge branch 'trunk' into issue/WOOMOB-888-error-message-for-empty-sh…
irfano dc9c6ba
Merge branch 'trunk' into issue/WOOMOB-888-error-message-for-empty-sh…
irfano 21d31bd
Track error the there is no available shipping rates
irfano 6578ab2
Merge branch 'trunk' into issue/WOOMOB-888-error-message-for-empty-sh…
irfano 9954962
Merge branch 'trunk' into issue/WOOMOB-888-error-message-for-empty-sh…
irfano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trackShippingRatesLoading()was being triggered when the endpoint returned empty rates, but an empty rates case is not actually an error. So, I removed the tracking for it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this. I agree empty rates is not an error but we might want to track it anyway. We could add something like:
Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to include @itsmeichigo in the discussion. Do you track empty rates on iOS?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On iOS we display error when the shipping rates loading returns an empty list. We track the error as loading failed as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JorgeMucientes, I reverted the change I introduced, so empty rates will continue to be tracked: 21d31bd.
I didn’t introduce a new state as you suggested, since iOS also doesn’t have that state. The empty rates case will now be tracked with the message “No available rates”.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, thanks for double checking with the iOS implementation 👍🏼