diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b6de427b..1fe6a1cf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,11 @@ * Add dropdown to specify user type: Patron or Staff. Refs UIU-2936. * *BREAKING* bump `react-intl` to `v6.4.4`. Refs UIU-2946. * Generate "Create request" url for users without barcode. Refs UIU-2869. +* Add auto focus to textarea on staff and patron info modal. Fixes UIU-2932. +* ECS - Filter users by "User Type". Refs UIU-2943. +* Users App: Consume {{FormattedDate}} and {{FormattedTime}} via stripes-component. Refs UIU-1860. +* ECS - Prevent editing of specific shadow user data. Refs UIU-2951. +* Relabel "Users: Can create new user" to "Users: Can create and edit users". Refs UIU-2955. ## [9.0.0](https://github.com/folio-org/ui-users/tree/v9.0.0) (2023-02-20) [Full Changelog](https://github.com/folio-org/ui-users/compare/v8.1.0...v9.0.0) diff --git a/package.json b/package.json index 149075797..0f9501be9 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ }, { "permissionName": "ui-users.create", - "displayName": "Users: Can create new user", + "displayName": "Users: Can create and edit users", "description": "Some subperms can be deleted later when bl does updates and ModulePermissions can be used", "subPermissions": [ "ui-users.edit", diff --git a/src/components/Accounts/ViewFeesFines/ViewFeesFines.js b/src/components/Accounts/ViewFeesFines/ViewFeesFines.js index 798529287..b36874ec8 100644 --- a/src/components/Accounts/ViewFeesFines/ViewFeesFines.js +++ b/src/components/Accounts/ViewFeesFines/ViewFeesFines.js @@ -3,9 +3,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { - FormattedDate, FormattedMessage, - FormattedTime, } from 'react-intl'; import { @@ -17,6 +15,8 @@ import { Row, Col, Icon, + FormattedDate, + FormattedTime, } from '@folio/stripes/components'; import { itemStatuses } from '../../../constants'; diff --git a/src/components/Accounts/ViewFeesFines/ViewFeesFines.test.js b/src/components/Accounts/ViewFeesFines/ViewFeesFines.test.js index ab97d2e30..7df38bab1 100644 --- a/src/components/Accounts/ViewFeesFines/ViewFeesFines.test.js +++ b/src/components/Accounts/ViewFeesFines/ViewFeesFines.test.js @@ -17,6 +17,9 @@ jest.mock('../../util', () => ({ jest.mock('react-intl', () => ({ ...jest.requireActual('react-intl'), FormattedMessage: jest.fn(({ id }) => id), +})); +jest.mock('@folio/stripes/components', () => ({ + ...jest.requireActual('@folio/stripes/components'), FormattedTime: jest.fn(({ value }) => value), FormattedDate: jest.fn(({ value }) => value), })); diff --git a/src/components/BulkOverrideDialog/BulkOverrideLoansList.js b/src/components/BulkOverrideDialog/BulkOverrideLoansList.js index 7c44956e6..d1e52f556 100644 --- a/src/components/BulkOverrideDialog/BulkOverrideLoansList.js +++ b/src/components/BulkOverrideDialog/BulkOverrideLoansList.js @@ -2,7 +2,6 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { get } from 'lodash'; import { - FormattedTime, FormattedMessage, injectIntl, } from 'react-intl'; @@ -10,6 +9,7 @@ import { import { Icon, MultiColumnList, + FormattedTime, } from '@folio/stripes/components'; import { effectiveCallNumber } from '@folio/stripes/util'; diff --git a/src/components/BulkRenewalDialog/BulkRenewedLoansList.js b/src/components/BulkRenewalDialog/BulkRenewedLoansList.js index af8aef01e..4bd0125f5 100644 --- a/src/components/BulkRenewalDialog/BulkRenewedLoansList.js +++ b/src/components/BulkRenewalDialog/BulkRenewedLoansList.js @@ -4,12 +4,12 @@ import get from 'lodash/get'; import { FormattedMessage, - FormattedTime, } from 'react-intl'; import { Icon, MultiColumnList, + FormattedTime, } from '@folio/stripes/components'; import { effectiveCallNumber } from '@folio/stripes/util'; diff --git a/src/components/EditSections/EditContactInfo/EditContactInfo.js b/src/components/EditSections/EditContactInfo/EditContactInfo.js index 4dbcda651..9c793b684 100644 --- a/src/components/EditSections/EditContactInfo/EditContactInfo.js +++ b/src/components/EditSections/EditContactInfo/EditContactInfo.js @@ -25,6 +25,7 @@ const EditContactInfo = ({ addressTypes, preferredContactTypeId, intl, + disabled, }) => { const contactTypeOptions = (contactTypes || []).map(g => { return ( @@ -64,6 +65,7 @@ const EditContactInfo = ({ component={TextField} required fullWidth + disabled={disabled} />