Uploaded image for project: 'ui-eholdings'
  1. ui-eholdings
  2. UIEH-184

Settings: Create/edit custom labels

    XMLWordPrintable

Details

    • 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

          1. Recording #6.mp4
            2.38 MB
          2. remove custom label.png
            remove custom label.png
            44 kB
          3. screenshot-3.png
            screenshot-3.png
            32 kB
          4. screenshot-4.png
            screenshot-4.png
            50 kB
          5. screenshot-5.png
            screenshot-5.png
            16 kB
          6. screenshot-6.png
            screenshot-6.png
            35 kB
          7. screenshot-7.png
            screenshot-7.png
            35 kB
          8. screenshot-8.png
            screenshot-8.png
            5 kB
          9. screenshot-9.png
            screenshot-9.png
            254 kB

          Issue Links

            Activity

              People

                vladyslav_velytskyi Vladyslav Velytskyi
                kgambrell Khalilah Gambrell
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases