- Start typing to search skills and plugins
+
+
+
+
+ Start typing to search skills and plugins
) : null}
{hasQuery && loading && !hasMatches ? (
@@ -902,22 +824,54 @@ function SearchTypeahead({
role="listbox"
aria-label="Search suggestions"
>
- {activeTabHasItems ? (
- items.map((item, index) => (
-
- ))
- ) : (
-
- No {emptyTabLabel} found for "{query}"
+ {hasSkillMatches ? (
+
+
+ Skills
+
+ {skillItems.map((item, index) => (
+
+ ))}
- )}
+ ) : null}
+ {hasPluginMatches ? (
+
+
+ Plugins
+
+ {pluginItems.map((item, index) => (
+
+ ))}
+
+ ) : null}
) : null}
@@ -938,9 +892,17 @@ function TypeaheadRow({
onHoverItem: (index: number) => void;
onSelectItem: (item: TypeaheadItem) => void;
}) {
+ const rowRef = useRef