Skip to content

Conversation

@iamgabrielma
Copy link
Contributor

Closes WOOMOB-706

Description

This PR adds a new label to the OrderTableViewCell .xib file and the order list configuration as preparatory work for POS Orders.

We have no designs for these labels yet, so I went ahead with copying the same type we use for order statuses. "POS" is currently hardcoded and will show for all orders (behind a feature flag), the logic to display sales channel will be tackled later so it shows only when appropriate.

Testing information

  • Set pointOfSaleOrdersi1 feature flag to true
  • Navigate to the app's Order list
  • Observe the POS label side-by-side with the order status label.
  • Set pointOfSaleOrdersi1 feature flag to false. There should be no trace of the new label.

Screenshots

Before After
Simulator Screenshot - iPad mini (A17 Pro) - US store - 2025-06-30 at 12 23 31 Simulator Screenshot - iPad mini (A17 Pro) - US store - 2025-06-30 at 12 24 19

@iamgabrielma iamgabrielma changed the base branch from trunk to task/WOOMOB-700-POSOrders-feature-flag-i1 June 30, 2025 05:35
@iamgabrielma iamgabrielma added type: task An internally driven task. feature: order list Related to the order list. feature: POS labels Jun 30, 2025
@iamgabrielma iamgabrielma added this to the 22.8 milestone Jun 30, 2025
@iamgabrielma iamgabrielma requested a review from staskus June 30, 2025 05:36
salesChannelLabel.applySalesChannelStyle()
salesChannelLabel.text = viewModel.salesChannel
} else {
salesChannelLabel.isHidden = true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using isHidden here so we don't need to delete the placeholder from the .xib file, otherwise would show up anyway despite being unset, and I prefer to have it display in the .xib editor instead.

@wpmobilebot
Copy link
Collaborator

App Icon📲 You can test the changes from this Pull Request in WooCommerce iOS Prototype by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS Prototype
Build Number30865
VersionPR #15839
Bundle IDcom.automattic.alpha.woocommerce
Commit3b3441d
Installation URL7k7a126l7525o
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Base automatically changed from task/WOOMOB-700-POSOrders-feature-flag-i1 to trunk June 30, 2025 12:34
@staskus staskus self-assigned this Jun 30, 2025
Copy link
Contributor

@staskus staskus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Oh, good old .xib files. I opened them to check, looks good, the changes shouldn't create any regressions. Testing also went well.

@iamgabrielma
Copy link
Contributor Author

Oh, good old .xib files.

I "was born" directly into SwiftUI, I cannot tell you how long took me to make this simple change 😂

PD: Thanks for the review!

@iamgabrielma iamgabrielma merged commit f65a395 into trunk Jul 1, 2025
25 of 28 checks passed
@iamgabrielma iamgabrielma deleted the task/WOOMOB-706-display-pos-badge-in-order-list branch July 1, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: order list Related to the order list. feature: POS type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants