@W-20874526 - Integrate Order History with OMS#3581
Merged
sf-deepali-bharmal merged 1 commit intodevelopfrom Jan 16, 2026
Merged
@W-20874526 - Integrate Order History with OMS#3581sf-deepali-bharmal merged 1 commit intodevelopfrom
sf-deepali-bharmal merged 1 commit intodevelopfrom
Conversation
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
add changelog update log
806985f to
fac30bf
Compare
alexvuong
approved these changes
Jan 16, 2026
sf-madhuri-uppu
approved these changes
Jan 16, 2026
| order.shipments[0].shippingAddress.lastName | ||
| ? `${order.shipments[0].shippingAddress.firstName} ${order.shipments[0].shippingAddress.lastName}` | ||
| : order.shipments[0].shippingAddress | ||
| .fullName |
Contributor
There was a problem hiding this comment.
Can there be a case where fullname might not be populated?
If it always exists, it'd be cleaner to directly use it instead of a combination of firstName, lastName and further checks.
Contributor
Author
There was a problem hiding this comment.
From what I am seeing FullName is always there. But I would like to not change the default behaviour late in the release.
sf-jie-dai
approved these changes
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR updates the Order History page to support displaying order data from Salesforce Order Management (SOM). When orders are ingested into SOM, the page now correctly displays OMS-specific data including order status and shipping address information.
Changes
order-history.jsxexpand: 'oms'parameter touseCustomerOrdershook to fetch OMS dataomsData.statuswhen ECOM status is not presentfirstName + lastNamewith fallback tofullName(OMS usesfullNameinstead of separate name fields)orders.test.jscreateMockOrderandcreateMockOmsOrdertest factory functions for consistent mock dataorder.status)omsData.status)firstName + lastName)fullName)Testing
Related
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization