Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LWS-210: Filter libraries #1097

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

jesperengstrom
Copy link
Contributor

Description

Tickets involved

LWS-210

Solves

Adds an input to find libraries in the holdings list.

Works/looks very similar to the search in the facet panel, with some differences:

  • The search string is used to create a filtered list, rather than sent to the individual components. This felt like a cleaner way to do it + we can display 'no hits'. Trade-of is components are unmounted/mounted on search, meaning we have to perform the api call again if re-displayed, re-expanded.

  • The search is matched anywhere in the string (indexOf) to allow searching for sigel, for example.

  • ATM the search string remains in the input if panel is closed and re-opened. Don't know if that's good or bad?

Summary of changes

  • Add the rendered (searchable) string to DecoratedHolder obj
  • Add reactive variables displayedHolders / filteredHolders
  • Add input

@jesperengstrom jesperengstrom marked this pull request as ready for review August 27, 2024 11:54
Copy link
Contributor

@olovy olovy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Seems to work fine

Copy link
Contributor

@johanbissemattsson johanbissemattsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🙌

@jesperengstrom jesperengstrom merged commit babc760 into develop Aug 29, 2024
1 check passed
@jesperengstrom jesperengstrom deleted the feature/LWS-210-filter-libraries branch August 29, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants