Frontend type constraints (#4334)

This commit is contained in:
James Lindsay
2026-08-27 18:13:12 +00:00
committed by GitHub
parent c7a64fff0c
commit c8f38059f8
5 changed files with 199 additions and 10 deletions

View File

@@ -46,7 +46,7 @@
let matchesRemainingTerms = true;
if (isTypeSearch && typeSearchTerm) {
matchesTypeSearch = node.inputTypes?.some((inputType) => inputType.toLowerCase().includes(typeSearchTerm)) || false;
matchesTypeSearch = node.inputTypes?.some((constraint) => constraint === "All" || constraint.Limited.some((inputType) => inputType.toLowerCase().includes(typeSearchTerm))) || false;
}
if (remainingSearchTerms.length > 0) {