Skip to content

Commit

Permalink
Merge branch 'master' of github.com:folio-org/ui-organizations into f…
Browse files Browse the repository at this point in the history
…eat/number_generator
  • Loading branch information
EthanFreestone committed Oct 23, 2023
2 parents d79dcd9 + 3b34502 commit 5b3bde5
Show file tree
Hide file tree
Showing 42 changed files with 868 additions and 701 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change history for ui-organizations

## 5.0.0 (IN PROGRESS)
## 5.1.0 (IN PROGRESS)

* Designate Organization as donor. Refs UIORGS-383.

## [5.0.0](https://github.com/folio-org/ui-organizations/tree/v5.0.0) (2023-10-12)
[Full Changelog](https://github.com/folio-org/ui-organizations/compare/v4.0.0...v5.0.0)

* Unpin `@rehooks/local-storage` now that it's no longer broken. Refs UIORGS-344.
* Add `Note` field to contact people summary list. Refs UIORGS-352.
Expand All @@ -11,6 +16,7 @@
* Upgrade `Node.js` to `18` version in GitHub Actions. Refs UIORGS-378.
* *BREAKING* bump `react-intl` to `v6.4.4`. Refs UIORGS-386.
* Add a message indicating future functionality for EDI naming convention. Refs UIORGS-382.
* Bump optional plugins to their `@folio/stripes` `v9` compatible versions. Refs UIORGS-404.

## [4.0.0](https://github.com/folio-org/ui-organizations/tree/v4.0.0) (2023-02-22)
[Full Changelog](https://github.com/folio-org/ui-organizations/compare/v3.3.1...v4.0.0)
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/organizations",
"version": "5.0.0",
"version": "5.1.0",
"description": "Organizations",
"main": "index.js",
"repository": "folio-org/ui-organizations",
Expand Down Expand Up @@ -264,7 +264,7 @@
"@folio/service-interaction": "^2.0.0",
"@folio/stripes": "^9.0.0",
"@folio/stripes-cli": "^3.0.0",
"@formatjs/cli": "^6.1.3",
"@formatjs/cli": "^6.1.3",
"babel-jest": "^26.3.0",
"chai": "^4.2.0",
"core-js": "^3.6.4",
Expand All @@ -290,7 +290,7 @@
"regenerator-runtime": "^0.13.3"
},
"dependencies": {
"@folio/plugin-find-organization": "^4.0.0",
"@folio/plugin-find-organization": "^5.0.0",
"@folio/stripes-acq-components": "~5.0.0",
"lodash": "^4.17.5",
"moment-timezone": "^0.5.20",
Expand All @@ -312,12 +312,10 @@
"redux": "^4.0.0"
},
"optionalDependencies": {
"@folio/plugin-find-contact": "^3.2.0",
"@folio/plugin-find-interface": "^3.2.0"
"@folio/plugin-find-contact": "^5.0.0",
"@folio/plugin-find-interface": "^5.0.0"
},
"optionalOkapiInterfaces": {
"servint": "2.0 3.0",
"@folio/plugin-find-contact": "^4.0.0",
"@folio/plugin-find-interface": "^4.0.0"
"servint": "2.0 3.0"
}
}
1 change: 1 addition & 0 deletions src/Organizations/OrganizationCreate/OrganizationCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const INITIAL_VALUES = {
interfaces: [],
contacts: [],
isVendor: false,
isDonor: false,
edi: {
vendorEdiType: '31B/US-SAN',
libEdiType: '31B/US-SAN',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ const OrganizationDetails = ({
description={organization.description}
erpCode={organization.erpCode}
isVendor={organization.isVendor}
isDonor={organization.isDonor}
language={organization.language}
metadata={organization.metadata}
name={organization.name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const OrganizationSummary = ({
description,
erpCode,
isVendor,
isDonor,
language,
metadata,
name,
Expand Down Expand Up @@ -101,6 +102,15 @@ const OrganizationSummary = ({
/>
</Col>

<Col xs={4}>
<Checkbox
checked={isDonor}
disabled
label={<FormattedMessage id="ui-organizations.summary.isDonor" />}
vertical
/>
</Col>

<Col xs={4}>
<KeyValue
data-testid="type"
Expand Down Expand Up @@ -150,6 +160,7 @@ OrganizationSummary.propTypes = {
description: PropTypes.string,
erpCode: PropTypes.string,
isVendor: PropTypes.bool,
isDonor: PropTypes.bool,
language: PropTypes.string,
metadata: PropTypes.object,
name: PropTypes.string,
Expand All @@ -160,6 +171,7 @@ OrganizationSummary.propTypes = {
OrganizationSummary.defaultProps = {
aliases: [],
isVendor: false,
isDonor: false,
};

export default OrganizationSummary;
Loading

0 comments on commit 5b3bde5

Please sign in to comment.