Allow automatically generated lanes to be renamed. #74
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This allows automatically generated lanes to be renamed.
The included tests contain examples of using Jest mocks with React Testing Library to achieve something similar to Enzyme's shallow rendering, which allows isolating tests to a single component.
Motivation and Context
Libraries have requested the ability to rename the automatically generated lanes. Notion: https://www.notion.so/lyrasis/Admin-UI-Add-ability-to-rename-a-default-lane-name-in-the-CM-4b42fd3a308947a7907442d176447de2
How Has This Been Tested?
npm run dev-server -- --env=backend=https://cerberus.staging.palaceproject.io
The lane editor should open. There should be an Edit Name button, a Hide/Show lane button, and a Save button. There should not be a Delete button. There should not be an Available Lists list, nor a Lists in This Lane list. If this is a sublane, there should not be an "Inherit restrictions from parent lane" checkbox.
The new list name should appear in the sidebar, and in the lane editor.
Checklist: