Profile Picture Upload in User record Edit

Description

Purpose:

User story statement(s):

As a library staff person,
I want to upload or link a profile picture to a user record

So other staff can verify the user's identity

Scenarios:

  1. Scenario:

    • Given Users > [some record] > Actions > Edit

    • When the edit screen is opened

    • Then under the User Information accordion, a preview of any existing profile picture is displayed to the right of the existing fields, with a dropdown button labeled "Update"

  2. Scenario:

    • Given Users > [some record] > Actions > Edit

    • When the "Update" dropdown button under profile picture is selected

    • Then two options are displayed: 

      • Local file

      • External URL

  3. Scenario:

    • Given Users > [some record] > Actions > Edit > "Update" > "Local file"

    • When a file is selected for upload

    • Then a modal is displayed

      • Titled "Preview and Edit"

      • Showing the uploaded image

      • Below the image are two sliders, "Zoom" and "Rotate"

      • Below this there should be a primary button: "Save" and a secondary button "Cancel"

  4. Scenario

    1. Given Users > [some record] > Actions > Edit > "Update" 

    2. When "External URL" is selected

    3. Then a modal is displayed:

      1. Titled "Update Profile Picture"

      2. With a prompt: "External URL"

      3. Below the prompt a text box

      4. Below the text box there should be a primary button: "Save" and a secondary button "Cancel"

  5. Scenario

    1. Given Users > [some record] > Actions > Edit > "Update" > "External URL" selected

    2. When an invalid image URL is inputted to the text box and "Save" is selected

    3. Then red error text is displayed below the text box that reads "Invalid image URL" and the modal does not close.

 

Notes:

See the file upload box for the Date Import app or the Link/Document upload section of the Invoices app invoice edit screen for reference for the upload box. 

See https://folio-org.atlassian.net/browse/UIU-2957 for a demo for Scenario 3's modal

Environment

None

Potential Workaround

None

relates to

Checklist

hide

TestRail: Results

Activity

Show:

Kimie Kester October 20, 2023 at 2:59 PM

Hi I updated the mocks to include the idea of the cropping tool if there is time for that to be included. They are based on the tool that Priyanka Terala found.

https://drive.google.com/drive/folders/1TQwa5GX2d3rZRTWRiyf2WrEfh77XhuD2?usp=share_link

 

Kimie Kester August 16, 2023 at 5:41 PM
Edited

Thanks! Yes, I'd like to see if the Delete could remove the image if it is locally uploaded, or if it has been inserted on account of an external URL, it would remove the URL, and reset the square to the placeholder graphic. I was just thinking it would be easier if there is one Delete.

Amelia Sutton August 16, 2023 at 4:53 PM

These look great! It makes a lot of sense for the delete to only show when there is an existing picture connected.

Kimie Kester August 16, 2023 at 4:30 PM

Hi and Can you take a look at these updated mocks?

https://drive.google.com/drive/folders/1TQwa5GX2d3rZRTWRiyf2WrEfh77XhuD2?usp=drive_link

Please click through the mocks in order and see if you think they makes sense. 

I would like to propose that we offer one "Delete" after a person has actually either put an image in locally or via an external URL. Let me know what you think of the approach. Thanks!

Amelia Sutton August 16, 2023 at 1:51 PM
Edited

Adding this link here for ease of access to the up-to-date mockups: https://drive.google.com/drive/folders/1TQwa5GX2d3rZRTWRiyf2WrEfh77XhuD2

Done

Details

Assignee

Reporter

Priority

Development Team

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 14, 2023 at 5:47 PM
Updated April 4, 2024 at 12:04 PM
Resolved April 4, 2024 at 12:04 PM
TestRail: Cases
TestRail: Runs