Problem/Motivation
There are several places in core where the user searches in a text area to filter a list that is already rendered on the page. This filtering does not require any call back to the server.
- Current uses
- Place block on Block layout
- Views listing
- Extend(modules listing)
- In progress #2998862: The Layout Builder block listing should be filterable
- VIew add field popup https://gyazo.com/bd957018d522cf27725c505cfa0ffe7c
This one seems can be ignored for now. It has extra selectbox for category.
All of the these instances use their own Javascript and don't use a shared solution.
Proposed resolution
Investigate and determine if these use cases could shared a javascript library to perform this filtering.
If they share a enough functionality and it could be generalised then let's make library for it.
Remaining tasks
Determine if it is a good idea, are they really the same use case
Create central solution
Determine if this library should be internal or available outside of core.
User interface changes
None
API changes
A new Javascript API for filtering rendered lists
Data model changes
None
Release notes snippet
TBD, If this a Javascript ApI that is not @internal then we will need release notes for how to use it.