Skip to content
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

fix: Truncate cols of connector transaction ID in Payment ops #1855

Merged
merged 7 commits into from
Dec 9, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/screens/Order/OrderEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,14 @@ let getCellForSummary = (order, summaryColType): Table.cell => {
| OrderQuantity => Text(order.order_quantity)
| ProductName => Text(order.product_name)
| ErrorMessage => Text(order.error_message)
| ConnectorTransactionID => DisplayCopyCell(order.connector_transaction_id)
| ConnectorTransactionID =>
CustomCell(
<HelperComponents.CopyTextCustomComp
customTextCss="max-w-xs truncate whitespace-nowrap"
displayValue=order.connector_transaction_id
/>,
"",
)
}
}

Expand Down Expand Up @@ -715,7 +722,14 @@ let getCell = (order, colType: colType): Table.cell => {
| CancellationReason => Text(order.cancellation_reason)
| ErrorCode => Text(order.error_code)
| ErrorMessage => Text(order.error_message)
| ConnectorTransactionID => Text(order.connector_transaction_id)
| ConnectorTransactionID =>
CustomCell(
<HelperComponents.CopyTextCustomComp
customTextCss="max-w-xs truncate whitespace-nowrap"
displayValue=order.connector_transaction_id
/>,
"",
)
| ProfileId => Text(order.profile_id)
| Refunds =>
Text(
Expand Down
Loading