This has been implemented as of 2025.1.1. Click on the “Favorites” or “All Items” title bars and the selection will collapse/expand. If collapsed and you type a few letters in the search bar, the section(s) with matching entries automatically expand.