-
Notifications
You must be signed in to change notification settings - Fork 131
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
Update origin address errors #13612
base: trunk
Are you sure you want to change the base?
Update origin address errors #13612
Conversation
…ate-origin-address-errors
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
} | ||
) | ||
|
||
if (error != null) { |
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.
SnackBars are not displayed on top of a BottomSheetDialog, I needed to define a new SnackBar on top of the BottomSheetDialog
@@ -27,16 +31,20 @@ | |||
import androidx.compose.foundation.text.KeyboardActions | |||
import androidx.compose.foundation.text.KeyboardOptions | |||
import androidx.compose.foundation.verticalScroll | |||
import androidx.compose.material.ButtonDefaults |
Check warning
Code scanning / Android Lint
material and material3 are separate, incompatible design system libraries Warning
import androidx.compose.material.CircularProgressIndicator | ||
import androidx.compose.material.Icon | ||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.material.Scaffold | ||
import androidx.compose.material.Snackbar |
Check warning
Code scanning / Android Lint
material and material3 are separate, incompatible design system libraries Warning
import androidx.compose.material.SnackbarDuration | ||
import androidx.compose.material.SnackbarHost | ||
import androidx.compose.material.SnackbarHostState | ||
import androidx.compose.material.SnackbarResult | ||
import androidx.compose.material.Surface | ||
import androidx.compose.material.Text | ||
import androidx.compose.material.TextButton |
Check warning
Code scanning / Android Lint
material and material3 are separate, incompatible design system libraries Warning
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.
Working as described! Looks good
Part of: #12439
Description
This PR handles errors in the normalization/update address error flow. The errors will be displayed in a SnackBar with a retry action. Updating the address while an error is displayed will dismiss the SnackBar. This PR handles the normalization and address update errors. Navigation will be handled in the next PR, finishing with the update.
Testing information
TC1
TC2
Apply the following patch
Patch
TC3
Apply the following patch
Patch
TC4
Apply the following patch
Patch
The tests that have been performed
Images/gif
Screen_recording_20250221_161755.mp4
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: