Scoped Typeahead Search should only support searching the Lexeme namespace if the WikibaseLexeme is loaded. Likewise, the namespace IDs for all scopes should be injected from Mediawiki and not hard-coded.
Since investigation is needed here, making this a spike and giving it a timebox of 1 day.
Suggested Approach
Crosscheck the content namespaces from Mediawiki (wgContentNamespaces) with the namespaces we're looking for and decide on that basis whether the scopes should appear in the search.
Open Questions
- How to handle EntitySchema since it's not included in the Wikibase Entity Sources
- Whether the search scopes should include only Content Namespaces or whether the scopes should show up whenever the extensions are installed regardless of whether Lexeme / EntitySchema are registered as Content Namespaces.
Acceptance Criteria
- Namespace IDs are not hard-coded in the Scoped Typeahead Search component implementation
- Option for Lexeme namespace is only available when WikibaseLexeme is loaded on the target Mediawiki