2e3856a63a
* feat: enhance SelectModelPopup with menu item refs and layout effect - Added useLayoutEffect to manage scrolling behavior for keyboard navigation. - Introduced a mechanism to assign refs to menu items for improved accessibility. - Refactored menu item processing to support recursive rendering with refs. * feat: update SelectModelPopup to filter out pinned models when not in search mode - Added logic to filter out pinned models when the popup is not in search state. - Updated dependencies in useMemo to include pinnedModels for accurate filtering. * refactor: update SelectModelPopup to clarify model selection logic * refactor: enhance scrolling behavior in SelectModelPopup for keyboard navigation - Added logic to scroll to the top of the container if the first model is selected. - Updated dependencies in useLayoutEffect to include getVisibleModelItems for accurate scrolling behavior. * refactor: improve scrolling logic in SelectModelPopup for better keyboard navigation - Enhanced the scrolling behavior to account for group titles when navigating with the keyboard. - Removed dependency on getVisibleModelItems in useLayoutEffect for a more streamlined effect.