Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
-
eHoldings Sprint 80, eHoldings Sprint 81
-
8
-
Spitfire
Description
As an electronic resource librarian
I want to be able to create/update custom labels on title-package detail records
So that I can provide additional details about the title-package to patrons and to staff.
UI Requirements:
- Display in Settings > eholdings
- Custom labels will be the third setting below Root proxy
- Given all five labels (regardless of whether all labels are in use) must be returned in response then the UI should always display
- Five rows with the following fields
- Field name: Display label | Field format: textbox
- Field name: Show on Publication Finder | Field format: single checkbox
- Field name: Show on Full Text Finder | Field format: single checkbox
- Display error messaging inline
- Show Cancel and Save buttons
- Cancel should work the same as the "X" button
- When you click the Cancel or "X" and no changes have been made then close the pane
- When you click the Cancel or "X" and change have been made then display the Unsaved changes confirmation modal. (see screenshot below)
- Save is only enabled when changes have been made.
- When you click save and no errors or custom label removals then save AND show toast notification [Custom labels have been updated.]
- When you click save and no errors but custom label removed then display a Remove custom label(s) confirmation modal. (see screenshots below)
Screenshot - When no custom labels have been created
Screenshot when Custom labels have been entered/saved
Unsaved Changes Confirmation modal
Remove Custom label modal when one custom label has been removed/cleared
Remove Custom label modal when multiple custom label has been removed/cleared
Custom labels have been updated toast notification
Acceptance Criteria
Given I have permission to edit or view Settings > eholdings
When I go to Settings > eHoldings > Custom labels
Then I should be able to create/edit up to five Custom Labels to display on a title+package detail record AND be able to set which custom label to show on Full Text Finder and Publication Finder
Given I setup Custom labels in EBSCOadmin
When I go to Settings > eholdings > Custom labels
Then all custom labels I have set up should display and any Show on Full Text Finder and Show on Publication Finder selections should display
Given I updated a custom label
When I click Save
Then display
- a toast notification
- and updated custom label on the Settings page AND Save / Cancel buttons inactive
- and the updated custom label should appear on all title-package details and any values entered should not have impacted by change
Given I am updated custom labels
When Show on the Publication Finder checkbox is selected and saved
Then RM API response should be passed "displayOnPublicationFinder": true
Given I updated custom labels
When Show on the Publication Finder checkbox is not selected and saved
Then RM API response should be passed "displayOnPublicationFinder": false
Given I updated custom labels
When Show on the Full Text Finder checkbox is selected and saved
Then RM API response should be passed "displayOnFullTextFinder": true
Given I updated custom labels
When Show on the Full Text Finder checkbox is not selected and saved
Then RM API response should be passed "displayOnFullTextFinder": false
Given I am on the Custom Labels setup page
When I select Show on Full Text Finder OR Show on Publication Finder checkbox
BUT the currently saved display label is blank
Then display a message inline below the Display label field in red [Please enter a display label.]
Given I added/updated a custom label
When I attempt to add non UTF-8 characters (or scripting) to the text box
Then display a message inline below the Display label field in red [Invalid character entered. Please revise the custom label.]
Given I added/updated a custom label
When I exceed the character limit
Then display a message inline below the Display label field in red [Character limit has been exceeded. Please revise custom label.]
Given a custom label has been cleared out
AND Show on Publication Finder and/or Show on Full Text Finder checkbox is not selected
When I click Save
Then display a the Remove custom label(s) confirmation modal.
Given I am on the Remove custom label(s) confirmation modal
When I click Remove custom label(s) button
Then update is saved
AND custom label(s) should no longer display
Given I updated custom labels
When I attempt to go to another page or take another action that takes me away from the page before saving
Then display the Unsaved Changes confirmation modal
Given I updated custom labels
When I click "X" or "Cancel"
Then display the Unsaved Changes confirmation modal
If I click the "Close without editing modal" on the Unsaved Changes confirmation modal
Then do not save changes AND close the Custom labels pane
Given I click "X" or "Cancel"
When no changes have been made
Then close the Custom labels pane
If I update OR remove a custom label AND/OR show settings
Then the changes should be reflected in near real-time for any user using the Folio eHoldings app of the same EBSCO customer ID/API Encryption Key
TestRail: Results
Attachments
Issue Links
- has to be done after
-
MODKBEKBJ-345 Custom Labels: update existing implementation
-
- Closed
-
- is blocked by
-
STCOM-328 Address <EditableListForm>'s dependence on redux-form
-
- Closed
-
- is cloned by
-
UIEH-203 eHoldings app: Settings: Create/edit custom labels (backend)
-
- Closed
-
- relates to
-
MODKBEKBJ-516 BE - Settings > Custom labels > Display label character limit has been increased to 200 characters
-
- Closed
-
-
UIEH-985 Settings > Custom labels > Display label character limit has been increased to 200 characters
-
- Closed
-
-
UXPROD-2143 Q1 2020/Q2 2020 | Custom Fields (for User Record and as General Platform Feature): Frontend Development
-
- Closed
-
-
UIEH-529 Document approach to implement Custom Labels Settings UI
-
- Closed
-
- requires
-
MODKBEKBJ-328 SPIKE: Investigate Custom labels
-
- Closed
-