When the user types a search query and hits return, the results are highlighted in the Flow board, and the board scrolls to the first match.
- Search is triggered when the user hits Return, or clicks on the magnifying glass icon.
- This will involve "gap handling" if the first match is beyond the first 20 topics on the board.
When you do the initial search, we make sure the first result (in your current sort ordering) is rendered (it may need to do an API request to load new topics), highlighted, and navigated to.
The 'load more' behavior (for scrolling and clicking the TOC) works as it currently does, except when a new topic is rendered we also highlight the new topic.
The list of actual matching terms (not necessarily the same as the search terms, due to stemming, spelling normalization, etc.) is based on the full result set. So when we do new highlighting for 'load more', we don't currently need to call the search API again, just highlight using our existing 'actual matching term' list.