-
Notifications
You must be signed in to change notification settings - Fork 130
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
[Shipping Labels Revamp] Introduce Customs initial form #13378
base: issue/add-initial-customs-entry-point
Are you sure you want to change the base?
[Shipping Labels Revamp] Introduce Customs initial form #13378
Conversation
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.
|
Version |
…ther Details text fields
…duce-customs-section
…duce-customs-section
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## issue/add-initial-customs-entry-point #13378 +/- ##
===========================================================================
+ Coverage 41.12% 41.15% +0.03%
- Complexity 6497 6507 +10
===========================================================================
Files 1326 1327 +1
Lines 77601 77661 +60
Branches 10699 10701 +2
===========================================================================
+ Hits 31913 31964 +51
- Misses 42851 42860 +9
Partials 2837 2837 ☔ View full report in Codecov by Sentry. |
Why
Partially fix issue #13366 by introducing the initial Customs form connected with the main Shipping Labels creation form.
The data validation and error handling will be delivered in the following PR.
The Product Details section will be delivered through issue #13367.
How
Introduces the ViewModel, Screen, and Fragment set for the Customs form, with the navigation action coming from the Shipping Labels creation form. It also defines the basic UI structure alongside the Content, Restriction, and ITN fields, with proper support for the
Other
option, opening an additional Text field for additional description.Unit tests are also added for the ViewModel viewState and events controls.
Screen Capture
Screen_recording_20250130_144547.mp4
How to Test
In case you want to avoid having to fill the address data to access the Customs form, you can simply override the
ShouldRequireCustomsForm
use case always to return true to trigger the Customs data requirement forcefully.Update release notes:
RELEASE-NOTES.txt
if necessary.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: