Skip to content

Commit

Permalink
UIU-3027: Update fee/fine actions column UX for accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin committed Jan 13, 2025
1 parent c8acdcc commit c358f22
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Remove duplicates from the keyboard shortcut modal. Refs UIU-3026.
* React v19: refactor away from default props for functional components. Refs. UIU-3141.
* Hide Create block button for user without permission. Refs UIU-3300.
* Update fee/fine actions column UX for accessibility. Refs UIU-3027.

## [11.0.10](https://github.com/folio-org/ui-users/tree/v11.0.10) (2025-01-10)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v11.0.9...v11.0.10)
Expand Down
5 changes: 3 additions & 2 deletions src/components/Accounts/ViewFeesFines/ViewFeesFines.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class ViewFeesFines extends React.Component {
'callNumber': f => (f.callNumber ? f.callNumber : '-'),
'dueDate': f => (f.dueDate ? this.formatDateTime(f.dueDate) : '-'),
'returnedDate': f => (this.getLoan(f).returnDate ? this.formatDateTime(this.getLoan(f).returnDate) : '-'),
' ': f => this.renderActions(f, this.getLoan(f)),
'actions': f => this.renderActions(f, this.getLoan(f)),
};
}

Expand Down Expand Up @@ -478,6 +478,7 @@ class ViewFeesFines extends React.Component {
'callNumber': intl.formatMessage({ id: 'ui-users.accounts.history.columns.number' }),
'dueDate': intl.formatMessage({ id: 'ui-users.accounts.history.columns.due' }),
'returnedDate': intl.formatMessage({ id: 'ui-users.accounts.history.columns.returned' }),
'actions': intl.formatMessage({ id: 'ui-users.accounts.history.columns.actions' }),
};

return (
Expand All @@ -499,7 +500,7 @@ class ViewFeesFines extends React.Component {
'callNumber': 110,
'dueDate': 110,
'returnedDate': 110,
' ': 50
'actions': 70
}}
visibleColumns={this.props.visibleColumns}
fullWidth
Expand Down
2 changes: 1 addition & 1 deletion src/views/AccountsListing/AccountsListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const possibleColumns = [
'callNumber',
'dueDate',
'returnedDate',
' ',
'actions',
];

class AccountsHistory extends React.Component {
Expand Down
1 change: 1 addition & 0 deletions translations/ui-users/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@
"accounts.history.columns.number": "Effective call number string",
"accounts.history.columns.status": "Payment status",
"accounts.history.columns.due": "Due date",
"accounts.history.columns.actions": "Actions",
"accounts.history.columns.returned": "Returned date",
"accounts.history.possibleColumns.columns.created": "Date Created",
"accounts.history.button.select": "Select columns",
Expand Down

0 comments on commit c358f22

Please sign in to comment.