Skip to content

Commit

Permalink
Merge branch 'develop' into add/6924-migrate-test-drive-capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaun1985 authored Dec 12, 2024
2 parents dec608c + 476c528 commit 25837b2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions changelog/update-1-5316-rename-bank-reference-id
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Change 'Bank reference key' label to 'Bank reference ID' in Payouts list column for consistency.
8 changes: 4 additions & 4 deletions client/deposits/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ const getColumns = ( sortByDate?: boolean ): DepositsTableHeader[] => [
isLeftAligned: true,
},
{
key: 'bankReferenceKey',
label: __( 'Bank reference key', 'woocommerce-payments' ),
screenReaderLabel: __( 'Bank reference key', 'woocommerce-payments' ),
key: 'bankReferenceId',
label: __( 'Bank reference ID', 'woocommerce-payments' ),
screenReaderLabel: __( 'Bank reference ID', 'woocommerce-payments' ),
},
];

Expand Down Expand Up @@ -170,7 +170,7 @@ export const DepositsList = (): JSX.Element => {
value: deposit.bankAccount,
display: clickable( deposit.bankAccount ),
},
bankReferenceKey: {
bankReferenceId: {
value: deposit.bank_reference_key,
display: clickable( deposit.bank_reference_key ?? 'N/A' ),
},
Expand Down
8 changes: 4 additions & 4 deletions client/deposits/list/test/__snapshots__/index.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,12 @@ exports[`Deposits list renders correctly a single deposit 1`] = `
<span
aria-hidden="true"
>
Bank reference key
Bank reference ID
</span>
<span
class="screen-reader-text"
>
Bank reference key
Bank reference ID
</span>
</th>
</tr>
Expand Down Expand Up @@ -1009,12 +1009,12 @@ exports[`Deposits list renders correctly with multiple currencies 1`] = `
<span
aria-hidden="true"
>
Bank reference key
Bank reference ID
</span>
<span
class="screen-reader-text"
>
Bank reference key
Bank reference ID
</span>
</th>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion client/deposits/list/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ describe( 'Deposits list', () => {
'Amount',
'Status',
'"Bank account"',
'"Bank reference key"',
'"Bank reference ID"',
];

const csvContent = mockDownloadCSVFile.mock.calls[ 0 ][ 1 ];
Expand Down
2 changes: 1 addition & 1 deletion client/types/deposits.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface DepositsTableHeader extends TableCardColumn {
| 'amount'
| 'status'
| 'bankAccount'
| 'bankReferenceKey';
| 'bankReferenceId';
cellClassName?: string;
}

Expand Down

0 comments on commit 25837b2

Please sign in to comment.