[UICR-132] Courses - Results List | Apply Results list column chooser Created: 08/Apr/21  Updated: 19/Jul/21  Resolved: 09/Jul/21

Status: Closed
Project: ui-courses
Components: None
Affects versions: None
Fix versions: 4.2.1

Type: Story Priority: P3
Reporter: Erin Nettifee Assignee: Khalilah Gambrell
Resolution: Done Votes: 0
Labels: delegate_candidate, epam-spitfire, front-end, ui-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: File testing_UICR-132.mp4    
Issue links:
Cloners
clones FOLIO-3096 CLONE - Results List | Apply Results ... Open
Defines
defines UXPROD-3036 Courses - add ability to customize co... Closed
Relates
relates to UICR-146 Course Reserves List | Apply Results ... Closed
Sprint: eHoldings Sprint 118
Story Points: 3
Development Team: Spitfire

 Description   

Context A user can now choose which results list columns display. Selections persist for a session.

Implementation details

  • On the results list pane, under Actions menu display a section called Show columns
  • Define the list of columns that can be hidden from view
  • There should be one column that cannot be hidden from view

Unable to render embedded object: File (image (51).png) not found.

Dev details
We recently added the <ColumnManager>-component which simplifies the process of implementing persisted column selection for any MultiColumnList.
Pass the ordered column mapping object as a prop and the component returns the UI (or callback) for toggling the visibility of columns and the filtered array of columns (visibleColumns).
Note: We are using session storage for now but the plan is to persist the selected columns on the user-level in the future.
The PR: https://github.com/folio-org/stripes-smart-components/pull/997
The component: https://github.com/folio-org/stripes-smart-components/tree/master/lib/ColumnManager
The component can easily be implemented into modules using either SearchAndSortQuery or SearchAndSort. Here are example PR's for those implementations:
<SearchAndSortQuery>: https://github.com/folio-org/ui-users/pull/1634
<SearchAndSort>: https://github.com/folio-org/ui-requests/pull/718



 Comments   
Comment by Maryna Zhuravlova [ 08/Jul/21 ]

After user story testing the I confirmed that story is passed (env - snapshot, testing)

Comment by Khalilah Gambrell [ 09/Jul/21 ]

Erin Nettifee, this functionality was implemented on the Courses results list. Should this functionality be added to the Reserves results list?

Comment by Erin Nettifee [ 13/Jul/21 ]

Yah, it looks like I screwed up the writing on this and had the feature written as the reserves results list but the story written for the Courses list, so I don't blame ya'll for doing it on Courses. Let me see if I can clean it up and then figure out if there is a feature for doing it on the Reserves results list that got hung out somewhere.

Comment by Erin Nettifee [ 19/Jul/21 ]

OK, I created a feature for applying the results chooser to the course reserves pane - https://folio-org.atlassian.net/browse/UXPROD-3184

Generated at Fri Feb 09 00:28:49 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.