Repository: woocommerce/woocommerce-ios
Pull request #15418: [Shipping Labels] Show options to move selected items 
Author: login: selanthiraiyan
Labels: name: feature: shipping labels
description: Related to creating, ordering, or printing shipping labels.
Created: 2025-03-25T13:23:58Z | Merged: 2025-03-26T03:35:05Z

<!-- Remember about a good descriptive title. -->

Closes: #15306 
<!-- Id number of the GitHub issue this PR addresses. -->
<!-- Part of: # -> use this if your PR is one of many related to one issue -->

<!-- 
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛠 Need an AI review?  
Add a comment: `@coderabbitai review`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
-->

## Description
<!-- Take the time to write a good summary. Why is it needed? What does it do? When fixing bugs try to avoid just writing “See original issue” – clarify what the problem was and how you’ve fixed it. -->

Add a notice to move items between shipments when items are selected. Moved the instructions notice into a subview to be able to show the notices in a VStack (one below another).


Changes
- New `MoveToShipmentNotice` view with options to move to new shipment or existing shipments.
- Make the instructions notice into a subview of the split shipments detail screen. 
- Initial logic to show or hide notices based on selection. 

## Steps to reproduce
<!-- Step-by-step testing instructions. For new user flows, consider instead stating the goal of the workflow and see if your PR reviewer can accomplish the workflow without specific steps! -->


1. Log in to a test store with the Woo Shipping plugin set up.
1. Create an order with multiple products and different quantities for each product.
1. Enter a valid shipping address for the order.
1. Open the order detail page. 
1. Tap "Create shipping label".
1. Tap "Split shipments".
1. Validate that you see a notice with instructions to select items to split into shipments. Design - bsLNrhmi2xQZB4C0TzjmHB-fi-942_42236
1. Select items, and you should see another notice-like view that shows the count of selected items. 
1. Tapping on "Move to" should show a "Menu" with options to move to existing or new shipments. These values are currently hardcoded and will be updated in a future PR. 

## Testing information
<!-- This is your opportunity to break out individual scenarios that need testing (when necessary) and/or include a checklist for the reviewer to go through. Consider documenting the following from your own completed testing: devices used, alternate workflows, edge cases, affected areas, critical flows, areas not tested, and any remaining unknowns. Provide feedback on this new section of the PR template through Sept 30, 2024 to Apps Quality; additional context here: p91TBi-b8z-p2#comment-12036 -->
- Validated that instructions and selection notices are displayed as expected. 

## Screenshots
<!-- Include before and after images or gifs when appropriate. -->

Video recording

https://github.com/user-attachments/assets/f2a7d0d6-78e6-4bfb-8510-cedbe70a19da

Screenshots

| Light | Dark |
|--------|--------|
| ![Simulator Screenshot - iPhone 16 Pro - 2025-03-25 at 18 57 49](https://github.com/user-attachments/assets/c55e7dd5-293c-4b41-91c9-e30fff78729c) | ![Simulator Screenshot - iPhone 16 Pro - 2025-03-25 at 18 57 42](https://github.com/user-attachments/assets/defeef76-7283-4597-85f2-b4a1efb8e13b) | 

---
- [x] I have considered if this change warrants user-facing release notes and have added them to `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:

- [ ] The PR is small and has a clear, single focus, or a valid explanation is provided in the description. If needed, please request to split it into smaller PRs.
- [ ] Ensure Adequate Unit Test Coverage: The changes are reasonably covered by unit tests or an explanation is provided in the PR description.
- [ ] Manual Testing: The author listed all the tests they ran, including smoke tests when needed (e.g., for refactorings). The reviewer confirmed that the PR works as expected on all devices (phone/tablet) and no regressions are added.


Diff:
diff --git a/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/CollapsibleShipmentCardViewModel.swift b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/CollapsibleShipmentCardViewModel.swift
index 63a568f2e65..983388b1fcd 100644
--- a/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/CollapsibleShipmentCardViewModel.swift	
+++ b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/CollapsibleShipmentCardViewModel.swift	
@@ -14,14 +14,18 @@ final class CollapsibleShipmentCardViewModel: ObservableObject, Identifiable {
 
     var onSelectionChange: (() -> Void)?
 
-    var hasSelectedAnItem: Bool {
+    var selectedShipmentIds: [String] {
         if mainShipmentRow.selected {
-            return true
+            if childShipmentRows.isNotEmpty {
+                return childShipmentRows.map { $0.shipmentId }
+            } else {
+                return [mainShipmentRow.shipmentId]
+            }
         }
 
         return childShipmentRows
             .filter { $0.selected }
-            .isNotEmpty
+            .map(\.shipmentId)
     }
 
     init(parentShipmentId: String,
@@ -50,6 +54,7 @@ final class CollapsibleShipmentCardViewModel: ObservableObject, Identifiable {
     func selectAll() {
         mainShipmentRow.setSelected(true)
         childShipmentRows.forEach({ $0.setSelected(true) })
+        onSelectionChange?()
     }
 }
 
diff --git a/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/MoveToShipmentNotice.swift b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/MoveToShipmentNotice.swift
new file mode 100644
index 00000000000..12e601c5e7a
--- /dev/null
+++ b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/MoveToShipmentNotice.swift	
@@ -0,0 +1,128 @@
+import SwiftUI
+
+struct MoveToShipmentNoticeViewModel {
+    enum MoveTo {
+        case existingShipment(index: Int)
+        case newShipment
+    }
+
+    let selectedItemsCount: Int
+    let existingShipmentsCount: Int
+    let currentShipmentIndex: Int?
+    let actionHandler: ((MoveTo) -> Void)
+}
+
+struct MoveToShipmentNotice: View {
+    let viewModel: MoveToShipmentNoticeViewModel
+
+    var body: some View {
+        HStack {
+            Text(String.localizedStringWithFormat(Localization.message, viewModel.selectedItemsCount))
+                .font(.subheadline)
+                .fontWeight(.semibold)
+                .foregroundColor(Color(uiColor: .text))
+
+            Spacer()
+
+            if viewModel.existingShipmentsCount == 0 {
+                moveToNewShipment
+            } else {
+                menuWithExistingShipments
+            }
+        }
+        .padding(.horizontal, Layout.horizontalPadding)
+        .padding(.vertical, Layout.verticalPadding)
+        .background(.thickMaterial)
+        .cornerRadius(Layout.cornerRadius)
+        .shadow(color: .black.opacity(Layout.shadowColorOpacity),
+                radius: Layout.cornerRadius,
+                y: Layout.shadowYOffset)
+    }
+}
+
+private extension MoveToShipmentNotice {
+    var moveToNewShipment: some View {
+        Button {
+            viewModel.actionHandler(.newShipment)
+        } label: {
+            HStack(spacing: Layout.horizontalSpacing) {
+                Text(Localization.moveToNewShipment)
+                    .font(.subheadline)
+                    .fontWeight(.semibold)
+            }
+            .foregroundColor(Color(.accent))
+        }
+    }
+
+    var menuWithExistingShipments: some View {
+        Menu {
+            ForEach(0..<viewModel.existingShipmentsCount, id: \.self) { index in
+                if viewModel.currentShipmentIndex != index {
+                    Button(String.localizedStringWithFormat(Localization.shipment, index + 1), action: {
+                        viewModel.actionHandler(.existingShipment(index: index))
+                    })
+                }
+            }
+
+            Button(Localization.newShipment, action: {
+                viewModel.actionHandler(.newShipment)
+            })
+        } label: {
+            HStack(spacing: Layout.horizontalSpacing) {
+                Text(Localization.moveTo)
+                    .font(.subheadline)
+                    .fontWeight(.semibold)
+
+                Image(systemName: "chevron.up.chevron.down")
+            }
+            .foregroundColor(Color(.accent))
+        }
+        .environment(\.menuOrder, .fixed)
+    }
+}
+
+private extension MoveToShipmentNotice {
+    enum Layout {
+        static let horizontalPadding: CGFloat = 16
+        static let verticalPadding: CGFloat = 22
+        static let horizontalSpacing: CGFloat = 8
+        static let cornerRadius: CGFloat = 8
+        static let shadowYOffset: CGFloat = 2
+        static let shadowColorOpacity: CGFloat = 0.16
+    }
+
+    enum Localization {
+        static let message = NSLocalizedString(
+            "wooShippingSplitShipments.MoveToShipmentNotice.title",
+            value: "%1$d selected",
+            comment: "The number of selected items in split shipments flow. %1$d is the number of selected items. Reads like: 2 selected"
+        )
+        static let shipment = NSLocalizedString(
+            "wooShippingSplitShipments.MoveToShipmentNotice.shipment",
+            value: "Shipment %1$d",
+            comment: "Label used in the button to select the shipment in split shipments flow. %1$d is the shipment number. Reads like: Shipment 1"
+        )
+        static let moveTo = NSLocalizedString(
+            "wooShippingSplitShipments.MoveToShipmentNotice.moveTo",
+            value: "Move to",
+            comment: "Button to move selected items to a shipment in split shipments flow"
+        )
+        static let moveToNewShipment = NSLocalizedString(
+            "wooShippingSplitShipments.MoveToShipmentNotice.moveToNewShipment",
+            value: "Move to new shipment",
+            comment: "Button to move selected items to a new shipment in split shipments flow"
+        )
+        static let newShipment = NSLocalizedString(
+            "wooShippingSplitShipments.MoveToShipmentNotice.newShipment",
+            value: "New shipment",
+            comment: "Title of the button to move selected items to a new shipment in split shipments flow"
+        )
+    }
+}
+
+#Preview {
+    MoveToShipmentNotice(viewModel: MoveToShipmentNoticeViewModel(selectedItemsCount: 4,
+                                                                  existingShipmentsCount: 3,
+                                                                  currentShipmentIndex: 1,
+                                                                  actionHandler: { _ in }))
+}
diff --git a/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsDetailView.swift b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsDetailView.swift
index 50c1258f5ad..15d630372dc 100644
--- a/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsDetailView.swift	
+++ b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsDetailView.swift	
@@ -8,23 +8,28 @@ struct WooShippingSplitShipmentsDetailView: View {
 
     var body: some View {
         NavigationView {
-            ScrollView {
-                VStack(alignment: .leading, spacing: Layout.contentPadding) {
-                    AdaptiveStack(horizontalAlignment: .leading) {
-                        Text(viewModel.itemsCountLabel)
-                            .headlineStyle()
-                        Spacer()
-                        Text(viewModel.itemsDetailLabel)
-                            .foregroundStyle(Color(.textSubtle))
-                    }
+            ZStack(alignment: .bottom) {
+                ScrollView {
+                    VStack(alignment: .leading, spacing: Layout.contentPadding) {
+                        AdaptiveStack(horizontalAlignment: .leading) {
+                            Text(viewModel.itemsCountLabel)
+                                .headlineStyle()
+                            Spacer()
+                            Text(viewModel.itemsDetailLabel)
+                                .foregroundStyle(Color(.textSubtle))
+                        }
 
-                    VStack(spacing: Layout.verticalSpacing) {
-                        ForEach(viewModel.shipmentCardViewModels) { item in
-                            CollapsibleShipmentCard(viewModel: item)
+                        VStack(spacing: Layout.verticalSpacing) {
+                            ForEach(viewModel.shipmentCardViewModels) { item in
+                                CollapsibleShipmentCard(viewModel: item)
+                            }
                         }
                     }
+                    .padding(Layout.contentPadding)
                 }
-                .padding(Layout.contentPadding)
+
+                noticeStack
+                    .padding(Layout.contentPadding)
             }
             .navigationBarTitleDisplayMode(.inline)
             .navigationTitle(Localization.title)
@@ -41,7 +46,6 @@ struct WooShippingSplitShipmentsDetailView: View {
                 }
             }
         }
-        .notice($viewModel.instructionsNotice, autoDismiss: false)
         .onAppear {
             viewModel.onAppear()
         }
@@ -49,12 +53,66 @@ struct WooShippingSplitShipmentsDetailView: View {
 }
 
 private extension WooShippingSplitShipmentsDetailView {
+    var noticeStack: some View {
+        VStack(spacing: Layout.contentPadding) {
+            if let message = viewModel.instructions {
+                InstructionsSnackbar(message: message) {
+                    viewModel.dismissInstructions()
+                }
+            }
+
+            if let moveTo = viewModel.moveToNoticeViewModel {
+                MoveToShipmentNotice(viewModel: moveTo)
+            }
+        }
+    }
+}
+
+private struct InstructionsSnackbar: View {
+    let message: String
+    let actionHandler: () -> Void
+
+    var body: some View {
+        HStack(alignment: .top, spacing: Layout.hSpacing) {
+            BoldableTextView(message)
+                .foregroundStyle(Color(.textInverted))
+
+            Spacer()
+
+            Button {
+                actionHandler()
+            } label: {
+                Image(systemName: "xmark")
+                    .foregroundStyle(Color(.withColorStudio(.gray)))
+            }
+        }
+        .padding(WooShippingSplitShipmentsDetailView.Layout.contentPadding)
+        .background {
+            RoundedRectangle(cornerRadius: WooShippingSplitShipmentsDetailView.Layout.cornerRadius)
+                .fill(Color(.text))
+                .shadow(color: Color(.text).opacity(Layout.shadowColorOpacity),
+                        radius: WooShippingSplitShipmentsDetailView.Layout.shadowRadius,
+                        y: WooShippingSplitShipmentsDetailView.Layout.shadowYOffset)
+        }
+    }
+
+    private enum Layout {
+        static let hSpacing: CGFloat = 8
+        static let shadowColorOpacity: CGFloat = 0.16
+    }
+}
+
+fileprivate extension WooShippingSplitShipmentsDetailView {
     enum Layout {
         static let contentPadding: CGFloat = 16
         static let borderCornerRadius: CGFloat = 8
+        static let shadowRadius: CGFloat = 8
+        static let shadowYOffset: CGFloat = 2
         static let borderWidth: CGFloat = 0.5
         static let verticalSpacing: CGFloat = 8
+        static let cornerRadius: CGFloat = 8
     }
+
     enum Localization {
         static let title = NSLocalizedString(
             "wooShippingSplitShipmentsDetailView.title",
diff --git a/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsViewModel.swift b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsViewModel.swift
index fd3d408e5ce..fd5cd4b0049 100644
--- a/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsViewModel.swift	
+++ b/WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsViewModel.swift	
@@ -28,7 +28,11 @@ final class WooShippingSplitShipmentsViewModel: ObservableObject {
 
     let shipmentCardViewModels: [CollapsibleShipmentCardViewModel]
 
-    @Published var instructionsNotice: Notice?
+    @Published private(set) var moveToNoticeViewModel: MoveToShipmentNoticeViewModel?
+
+    @Published private(set) var instructions: String?
+    private var dismissedInstructions: Bool = false
+
 
     init(order: Order,
          config: WooShippingConfig,
@@ -75,6 +79,7 @@ final class WooShippingSplitShipmentsViewModel: ObservableObject {
 
     func onAppear() {
         showInstructionsNotice()
+        showMoveToNotice()
     }
 
     func selectAll() {
@@ -82,35 +87,54 @@ final class WooShippingSplitShipmentsViewModel: ObservableObject {
             $0.selectAll()
         }
     }
+
+    func dismissInstructions() {
+        instructions = nil
+        dismissedInstructions = true
+    }
 }
 
 private extension WooShippingSplitShipmentsViewModel {
     func configureSelectionCallback() {
         shipmentCardViewModels.forEach { viewModel in
             viewModel.onSelectionChange = { [weak self] in
-                self?.checkSelectionAndHideInstructions()
+                self?.showMoveToNotice()
             }
         }
     }
 
     func showInstructionsNotice() {
-        if hasSelectedAnItem() == false {
-            instructionsNotice = Notice(message: Localization.SelectionInstructionsNotice.message,
-                                        feedbackType: .success,
-                                        actionTitle: Localization.SelectionInstructionsNotice.dismiss) { [weak self] in
-                self?.instructionsNotice = nil
-            }
+        if !dismissedInstructions {
+            instructions = Localization.SelectionInstructionsNotice.message
         }
     }
 
-    func checkSelectionAndHideInstructions() {
-        if hasSelectedAnItem() {
-            instructionsNotice = nil
+    func showMoveToNotice() {
+        let selectedItemsCount = {
+            shipmentCardViewModels.map { $0.selectedShipmentIds.count }.reduce(0, +)
+        }()
+
+        guard selectedItemsCount > 0 else {
+            return self.moveToNoticeViewModel = nil
         }
-    }
 
-    func hasSelectedAnItem() -> Bool {
-        shipmentCardViewModels.contains(where: { $0.hasSelectedAnItem })
+        // TODO: Use count and index values from shipment tabs
+        moveToNoticeViewModel = MoveToShipmentNoticeViewModel(selectedItemsCount: selectedItemsCount,
+                                                               existingShipmentsCount: 3,
+                                                               currentShipmentIndex: 2,
+                                                               actionHandler: { [weak self] moveTo in
+            guard let self else { return }
+
+            self.moveToNoticeViewModel = nil
+            self.instructions = nil
+
+            switch moveTo {
+            case .existingShipment:
+                break
+            case .newShipment:
+                break
+            }
+        })
     }
 
     /// Configures the labels in the section header.
diff --git a/WooCommerce/WooCommerce.xcodeproj/project.pbxproj b/WooCommerce/WooCommerce.xcodeproj/project.pbxproj
index b74a171e660..9bfd0f6c280 100644
--- a/WooCommerce/WooCommerce.xcodeproj/project.pbxproj
+++ b/WooCommerce/WooCommerce.xcodeproj/project.pbxproj
@@ -3039,6 +3039,7 @@
 		EEBB9B3B2D8E5071008D6CE5 /* SelectableShipmentRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBB9B3A2D8E5058008D6CE5 /* SelectableShipmentRow.swift */; };
 		EEBB9B3D2D8E5099008D6CE5 /* SelectableShipmentRowViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBB9B3C2D8E508E008D6CE5 /* SelectableShipmentRowViewModel.swift */; };
 		EEBB9B402D8FE5B6008D6CE5 /* WooShippingSplitShipmentsViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBB9B3F2D8FE5B4008D6CE5 /* WooShippingSplitShipmentsViewModelTests.swift */; };
+		EEBBC3BC2D92A1E0008D6CE5 /* MoveToShipmentNotice.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBBC3BB2D92A1C6008D6CE5 /* MoveToShipmentNotice.swift */; };
 		EEBDF7DA2A2EF69B00EFEF47 /* ShareProductCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBDF7D92A2EF69B00EFEF47 /* ShareProductCoordinator.swift */; };
 		EEBDF7DF2A2F674100EFEF47 /* ShareProductAIEligibilityChecker.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBDF7DE2A2F674100EFEF47 /* ShareProductAIEligibilityChecker.swift */; };
 		EEBDF7E22A2F685C00EFEF47 /* DefaultShareProductAIEligibilityCheckerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBDF7E12A2F685C00EFEF47 /* DefaultShareProductAIEligibilityCheckerTests.swift */; };
@@ -6255,6 +6256,7 @@
 		EEBB9B3A2D8E5058008D6CE5 /* SelectableShipmentRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectableShipmentRow.swift; sourceTree = "<group>"; };
 		EEBB9B3C2D8E508E008D6CE5 /* SelectableShipmentRowViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectableShipmentRowViewModel.swift; sourceTree = "<group>"; };
 		EEBB9B3F2D8FE5B4008D6CE5 /* WooShippingSplitShipmentsViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WooShippingSplitShipmentsViewModelTests.swift; sourceTree = "<group>"; };
+		EEBBC3BB2D92A1C6008D6CE5 /* MoveToShipmentNotice.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoveToShipmentNotice.swift; sourceTree = "<group>"; };
 		EEBDF7D92A2EF69B00EFEF47 /* ShareProductCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareProductCoordinator.swift; sourceTree = "<group>"; };
 		EEBDF7DE2A2F674100EFEF47 /* ShareProductAIEligibilityChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShareProductAIEligibilityChecker.swift; sourceTree = "<group>"; };
 		EEBDF7E12A2F685C00EFEF47 /* DefaultShareProductAIEligibilityCheckerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultShareProductAIEligibilityCheckerTests.swift; sourceTree = "<group>"; };
@@ -14013,6 +14015,7 @@
 		EE7E75A62D83EAD200E6FF5B /* WooShipping Split Shipments */ = {
 			isa = PBXGroup;
 			children = (
+				EEBBC3BB2D92A1C6008D6CE5 /* MoveToShipmentNotice.swift */,
 				EEBB9B3C2D8E508E008D6CE5 /* SelectableShipmentRowViewModel.swift */,
 				EEBB9B3A2D8E5058008D6CE5 /* SelectableShipmentRow.swift */,
 				EEBB81702D8C0834008D6CE5 /* CollapsibleShipmentCard.swift */,
@@ -16033,6 +16036,7 @@
 				CEE113952CFA2F7700F53E30 /* WooShippingSelectedPackageView.swift in Sources */,
 				454B28BE23BF63C600CD2091 /* DateIntervalFormatter+Helpers.swift in Sources */,
 				AE6DBE3B2732CAAD00957E7A /* AdaptiveStack.swift in Sources */,
+				EEBBC3BC2D92A1E0008D6CE5 /* MoveToShipmentNotice.swift in Sources */,
 				03A6C18628B8CC7F00AADF23 /* InPersonPaymentsOnboardingErrorButtonViewModel.swift in Sources */,
 				024DF3052372ADCD006658FE /* KeyboardScrollable.swift in Sources */,
 				BAE4F8432734325C00871344 /* SettingsViewModel.swift in Sources */,


Reviews:
user: login: itsmeichigo
body: The layout looks good to me! I left some comments regarding the choice of structures, but please feel free to merge and I can handle the changes as part of handling the moving of items.
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-03-26T03:33:40Z

Review comments:
diff_hunk: @@ -8,23 +8,28 @@ struct WooShippingSplitShipmentsDetailView: View {
 
     var body: some View {
         NavigationView {
-            ScrollView {
-                VStack(alignment: .leading, spacing: Layout.contentPadding) {
-                    AdaptiveStack(horizontalAlignment: .leading) {
-                        Text(viewModel.itemsCountLabel)
-                            .headlineStyle()
-                        Spacer()
-                        Text(viewModel.itemsDetailLabel)
-                            .foregroundStyle(Color(.textSubtle))
-                    }
+            ZStack(alignment: .bottom) {
path: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/WooShippingSplitShipmentsDetailView.swift
user: login: itsmeichigo
body: I think we should use a VStack instead, because otherwise the notice would cover the scroll view when it's long enough:

<img src="https://github.com/user-attachments/assets/929fd8e9-5ec6-49e3-97b9-bb939d5daaf5" width=320 />

created_at: 2025-03-26T03:27:27Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,128 @@
+import SwiftUI
+
+struct MoveToShipmentNoticeViewModel {
+    enum MoveTo {
+        case existingShipment(index: Int)
+        case newShipment
+    }
+
+    let selectedItemsCount: Int
+    let existingShipmentsCount: Int
+    let currentShipmentIndex: Int?
+    let actionHandler: ((MoveTo) -> Void)
+}
+
+struct MoveToShipmentNotice: View {
+    let viewModel: MoveToShipmentNoticeViewModel
+
+    var body: some View {
+        HStack {
path: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShipping Split Shipments/MoveToShipmentNotice.swift
user: login: itsmeichigo
body: This should be an adaptive stack instead to ensure the contents are readable when the font size is really large on a narrow device.
created_at: 2025-03-26T03:28:51Z
author_association: CONTRIBUTOR

PR comments:
user: login: wpmobilebot
created_at: 2025-03-25T13:35:03Z
body: <!-- REUSE_ID: prototype-build-link -->

<p><img alt='WooCommerce iOS' align='top' src='https://appcenter-filemanagement-distrib4ede6f06e.azureedge.net/115c6dd6-0d9f-420a-8fb3-f4405a55c21a/AppIcon60x60%402x.png?sv=2019-07-07&sr=c&sig=3CTGAxVT53DmBxHWZzkxuVf7MvnPDANQQgfx54W%2BcUk%3D&se=2025-04-01T13%3A47%3A22Z&sp=r' width='20px' />📲 You can test the changes from this Pull Request in <b>WooCommerce iOS</b> by scanning the QR code below to install the corresponding build.</p>
<table>
<tr>
  <td rowspan='6' width='260px'><img src='https://api.qrserver.com/v1/create-qr-code/?size=500x500&qzone=4&data=https%3A%2F%2Finstall.appcenter.ms%2Forgs%2Fautomattic%2Fapps%2FWooCommerce-Installable-Builds%2Freleases%2F13406' width='250' height='250' /></td>
  <td><b>App Name</b></td><td><img alt='WooCommerce iOS' align='top' src='https://appcenter-filemanagement-distrib4ede6f06e.azureedge.net/115c6dd6-0d9f-420a-8fb3-f4405a55c21a/AppIcon60x60%402x.png?sv=2019-07-07&sr=c&sig=3CTGAxVT53DmBxHWZzkxuVf7MvnPDANQQgfx54W%2BcUk%3D&se=2025-04-01T13%3A47%3A22Z&sp=r' width='20px' /> WooCommerce iOS</td>
</tr>
<tr><td><b>Build Number</b></td><td>pr15418-e0f41f4</td></tr>
<tr><td><b>Version</b></td><td>22.0</td></tr>
<tr><td><b>Bundle ID</b></td><td>com.automattic.alpha.woocommerce</td></tr>
<tr><td><b>Commit</b></td><td>e0f41f46d3f63db66465ab3cecea0bcfca7adc1c</td></tr>
<tr><td><b>App Center Build</b></td><td><a href='https://install.appcenter.ms/orgs/automattic/apps/WooCommerce-Installable-Builds/releases/13406'>WooCommerce - Prototype Builds #13406</a></td></tr>
</table>
<em>Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.</em>

author_association: COLLABORATOR
user: login: itsmeichigo
created_at: 2025-03-26T03:34:56Z
body: Actually I'll merge the PR now to unblock the work for #15307. Thank you!
author_association: CONTRIBUTOR