Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openstack-uicore-foundation",
"version": "5.0.54",
"version": "5.0.55",
"description": "ui reactjs components for openstack marketing site",
"main": "lib/openstack-uicore-foundation.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ describe("SponsorOrderGrid", () => {

expect(translateSpy).toHaveBeenCalledWith(
"sponsor_order_grid.cancelled_by",
expect.objectContaining({ x: 2, y: 5, user: "Alice Admin", date: "2026-01-01" })
expect.objectContaining({ x: 2, y: 5, money: "$2.00", user: "Alice Admin", date: "2026-01-01" })
);
expect(translateSpy).toHaveBeenCalledWith(
"sponsor_order_grid.cancelled_by",
expect.objectContaining({ x: 1, y: 5, user: "Bob Admin", date: "2026-01-01" })
expect.objectContaining({ x: 1, y: 5, money: "$1.00", user: "Bob Admin", date: "2026-01-01" })
);
expect(screen.getByText(/Too many/)).toBeInTheDocument();
});
Expand Down
1 change: 1 addition & 0 deletions src/components/mui/SponsorOrderGrid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const SponsorOrderGrid = ({
{T.translate("sponsor_order_grid.cancelled_by", {
x: cancellation.quantity,
y: row.quantity,
money: currencyAmountFromCents(cancellation.amount),
user: cancellation.canceled_by_full_name,
date: formatEpoch(cancellation.created, "M/D/YY [@] h:mm A")
})}
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"reason": "Reason"
},
"cancel_info_note": "Active order items can be partially or fully canceled, or reverted to original quantity. Refund and payment rows are display-only.",
"cancelled_by": "Cancelled ({x} of {y}) • {date} • {user}",
"cancelled_by": "Cancelled ({x} of {y}) • {money} • {date} • {user}",
"cancelled_items": "Cancelled items:",
"reconciliation": "Reconciliation",
"cancelled": "Cancelled",
Expand Down
Loading