Add Shared icon to inventory instance results

CSP Request Details

None

CSP Rejection Details

None

CSP Approved

None

Description

Purpose: In a consortium environment, Instance records may be shared amongst the member institutions and users need a way to identify Instances by those that are local to their institution vs those are shared within the consortium. 

Requirements:

  • Add Shared icon underneath the Instance icon to Shared instances in inventory search results (including results in the central tenant - even though all records will be Shared in the central tenant)

Scenarios:

  1. Scenario:

    • Given the tenant is in a consortium environment and the user is in the Inventory app

    • When the user executes a search in the Search toggle AND the results contain instances that are shared

    • Then the user should see the Shared icon underneath the Instance icon on Instances that are shared

  2. Scenario:

    • Given the tenant is in a consortium environment and the user is in the Inventory app

    • When the user executes a search in the Search toggle AND the results contain instances that are not shared 

    • Then the user should see only see the Instance icon next to the Instances that are not Shared (i.e., instances that are Local)

Environment

None

Potential Workaround

None

Attachments

6

Checklist

hide

TestRail: Results

Activity

Show:

Valery_PilkoAugust 4, 2023 at 1:22 PM

Re-tested on https://folio-dev-spitfire-2nd-consortium.ci.folio.org/ for Central and Member tenants
Issue was fixed, see attached screencast:

Valery_PilkoAugust 2, 2023 at 3:09 PM

Hi  
One issue found on https://folio-dev-spitfire-2nd-consortium.ci.folio.org/ 
"Shared" icon could be not noticeable in the Inventory search result list: # Run Search

  1. Open detail view of any Shared record (with Icon)

  2. Close the detail view of "Instance" record

Actual result: last opened record is not highlighted in the result list (with dark gray) and "Shared" icon is not noticeable
Expected result: last opened record (aka closed record) is not highlighted in the result list (with dark gray) and "Shared" icon has dark gray color
See attached screencast:

Natalia ZaitsevaAugust 1, 2023 at 12:04 PM

this PR imports checkIfUserInCentralTenant/checkIfUserInMemberTenant from the stripes-core which is already using React 18, so we also need to update ui-inventory.

Valery_PilkoJuly 28, 2023 at 2:28 PM

Hi  
I've also saw that, but it was not reproducible for all my next tries. Maybe it is some cache issue. However, we will re-test it when we receive a reference environment.

Hey Could you please re-check the same on your local env if it's possible?

Christine Schultz-RichertJuly 28, 2023 at 1:52 PM
Edited

Hey & - At 1:10 in the video Valery posted, the Shared icon isn't very noticeable until Valery hovers over or selects the record. However, the icons do appear as expected at the end of the video with the two Shared records. Is this an issue?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 31, 2023 at 5:57 PM
Updated October 3, 2023 at 3:25 PM
Resolved August 4, 2023 at 2:28 PM
TestRail: Cases
TestRail: Runs