Scheduling infrastructure for absolutely everyone.
fix(app-store): normalize search to handle spacing and casing issues (#29236)
Prateet Tiwari1591a50bc5e3
diff --git a/apps/web/modules/apps/components/AllApps.tsx b/apps/web/modules/apps/components/AllApps.tsxindex 298ac443413..e1dffe75771 100644--- a/apps/web/modules/apps/components/AllApps.tsx+++ b/apps/web/modules/apps/components/AllApps.tsx@@ -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;diff --git a/packages/app-store/zohocrm/config.json b/packages/app-store/zohocrm/config.jsonindex bea2e59c67a..cedf339bac8 100644--- a/packages/app-store/zohocrm/config.json+++ b/packages/app-store/zohocrm/config.json@@ -1,6 +1,6 @@{"/*": "Don't modify slug - If required, do it using cli edit command",- "name": "ZohoCRM",+ "name": "Zoho CRM","slug": "zohocrm","type": "zohocrm_crm","logo": "icon.svg",