[ECS with mod-tlr] Mediated requests | Items List | Hyperlink one column to improve accessibility

Description

The problem: currently result lists in FOLIO suffer due to poor accessibility. Row-level block anchors is the direct cause.

The solution: render links to detail records within result listing cells and remove the block level anchors.

  1. Use the exported defaultMCLRowFormatter from stripes-components rather than the built-in anchor formatter of SearchAndSort

  2. Implement a local function to get the URL of each result item.

  3. Render the link in a cell using the <TextLink> component from stripes-components.

  4. use the SearchAndSort prop setting resultRowClickHandlers={false} to suppress SearchAndSort's built-in click behavior.

  5. supply your app's own resultIsSelected logic - in this PR, we hold the selected item in a state key that's set when the record link is clicked and cleared when the view record is dismissed.

Refs , 

Also see PR https://github.com/folio-org/ui-requests/pull/849 

Solution:

Within the Mediated requests app., remove linking at the row-level for Mediated requests and retain only the link to the Title column. When User clicks on linked Title on each row, the Mediated request details pane opens for that specific request.

Scenarios

_1. Scenario:
  Given Mediated requests application opened and I see Mediated requests lists with results,
  When I click on the linked “Title” in Mediated request row,
  Then Mediated request details opened.

_2. Scenario:

  Given Mediated requests application opened and I see Mediated requests lists with results,
  When I click on a Mediated request row anywhere other than on the linked Title.
  Then nothing happens.

 Implementation: 

 

Environment

ECS with mod-tlr enabled

Potential Workaround

None

Attachments

4

Checklist

hide

Activity

Show:

Oleksandr Hrusha January 29, 2025 at 9:48 AM

Checked on , works as expected

 

Artem Blazhko January 27, 2025 at 4:20 PM

New functionality is available on rancher env -
After new changes we do not have accessibility issues (see screenshot below).

Khalilah Gambrell January 14, 2025 at 11:06 PM
Edited

Hey implementing this story will address this accessibility issue you reported:

  1. MultiColumnList component with clickable rows.
    ISSUES:
    - Certain ARIA roles must contain particular children.

cc: to confirm.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Sunflower (R1 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created January 14, 2025 at 11:01 PM
Updated March 14, 2025 at 11:44 AM
Resolved January 30, 2025 at 1:42 PM
TestRail: Cases
TestRail: Runs