Releases: NYPL-Simplified/circulation-web
Updates from v0.5.16 to v0.5.17
Updates version to include the following changes:
- Added GET requests for updated lists every time a list is updated which allowed for the removal of the draft state.
- Added new Jest/RTL tests to support new functionality.
Updated save functionality in List Manager
Now, a POST request in made each time a user saves a title, adds a book, or deletes a book from a list. Before, these changes were saved in a draft state in the front end until the user clicked the "Save" button at the top of the screen. This version does not include unit tests for this functionality. That is because in order to get the changes out to QA, which is currently buggy, sooner rather than later. The next step will be to configure Jest in circulation-web and write tests for the List Manager in RTL/Jest rather than Enzyme/Mocha.
Updates CustomListEditor + CustomListEntriesEditor components
Refactored two main components of the List Manager as a part of the List Manager refactor (TAD). Refactor simplified code, removed deprecated techniques, and converted components from class to functional.
Refactored CustomListPage
- Refactored the
CustomListPage
component to bring it up-to-date with current best practices. Added/edited tests where needed.
Refactored CustomListsSidebar
Refactored CustomListsSidebar to bring it up-to-date with current best practices, and as part of the larger List Manager refactor.
Minor refactors and improvements
- Added a value attribute to the book cover URL's
EditableInput
inBookCoverEditor
so that the existing URL pulls through for the user to start. - Addressed linter errors throughout repo and used prettier to format code consistently.
- Prepended all deprecated React lifecycle methods (componentWillMount and componentWillReceiveProps) with UNSAFE_.
Updated CI
Updated CI from Travis to GitHub Actions, updated the README to include detailed publishing instructions, and added a Github pull request template.
Bug Fix/Improvement
Updated the footer in the Circulation Manager so that it is fixed, and consistent across pages and does not hide any other elements. Increased the version of the opds-web-client to 0.6.2.
Updated Item Classification Form
Improvements
The styling on the Classification form has been updated to be consistent with the rest of the site.
Bug fixes
A bug was also fixed in the Classification form that allowed items to have no audience or fiction classification values. Now, there's an empty default value to make it clear that no value is set, only for items that have no initial values. When trying to save empty values, the form will complain and let users know what needs to be updated.
Updated README documentation
Improvements
This release includes minor documentation improvements.
Bug fixes
This release also points out that the previous version v0.0.94
has a bug that was introduced only on the npm package but not in the master
branch of this repo. Don't use v0.0.94
.