[SiOC - customer creation] Show collapsible customer card with header view #12650
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.
Part of #12623
Why
Now that the feature flag is set up and we have a reusable collapsible view component in the order form, we can start implementing the collapsible customer card under the feature flag.
How
padding
parameter was added toCollapsibleOrderFormCard
for the customer card to pass a different value. Since the base collapsible viewCollapsibleView
already has some default padding (vertical 8px, horizontal 16px), this parameter is in addition to the default padding as noted in the commentCollapsibleCustomerCard
with the following subviews:CollapsibleCustomerCardHeaderView
:OrderCustomerSection
now shows the new customer card when:EditableOrderViewModel
now syncs the top-levelOrderCustomerSectionViewModel
for the customer sectionTesting instructions
Prerequisite: the store has at least one order with customer details (email, address)
Existing customer details
Edit
--> a customer card should be shown with the email and address in the collapsed stateNo customer details
Add Customer
--> a customer card should be shown in the expanded state with an email text fieldScreenshots
Simulator.Screen.Recording.-.iPhone.15.-.2024-05-03.at.14.26.11.mp4
Existing customer details
No customer details
RELEASE-NOTES.txt
if necessary.