fix(app-store): normalize search to handle spacing and casing issues (#29236)

- Fixes search mismatch for apps like 'Zoho CRM' vs 'zohocrm'
- Normalizes input by removing spaces, dashes, and underscores
- Updates ZohoCRM display name to 'Zoho CRM' for consistency
- Keeps change minimal without expanding search scope
This commit is contained in:
Prateet Tiwari authored and GitHub committed 2026-04-30 15:48:03 +00:00
1 parent 44ccc72f99
commit 1591a50bc5
2 files changed
+9 -2

No files matched your search

+8 -1
View File
@@ -158,7 +158,14 @@ export function AllApps({ apps, searchText, categories, userAdminTeams }: AllApp
: app.category === selectedCategory
: true
)
.filter((app) => (searchText ? app.name.toLowerCase().includes(searchText.toLowerCase()) : true))
.filter((app) =>
searchText
? app.name
.toLowerCase()
.replace(/[\s\-_]/g, "")
.includes(searchText.toLowerCase().replace(/[\s\-_]/g, ""))
: true
)
.sort(function (a, b) {
if (a.name < b.name) return -1;
else if (a.name > b.name) return 1;