Skip to content

Commit 1591a50

Browse files
fix(app-store): normalize search to handle spacing and casing issues (calcom#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
1 parent 44ccc72 commit 1591a50

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

apps/web/modules/apps/components/AllApps.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,14 @@ export function AllApps({ apps, searchText, categories, userAdminTeams }: AllApp
158158
: app.category === selectedCategory
159159
: true
160160
)
161-
.filter((app) => (searchText ? app.name.toLowerCase().includes(searchText.toLowerCase()) : true))
161+
.filter((app) =>
162+
searchText
163+
? app.name
164+
.toLowerCase()
165+
.replace(/[\s\-_]/g, "")
166+
.includes(searchText.toLowerCase().replace(/[\s\-_]/g, ""))
167+
: true
168+
)
162169
.sort(function (a, b) {
163170
if (a.name < b.name) return -1;
164171
else if (a.name > b.name) return 1;

packages/app-store/zohocrm/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"/*": "Don't modify slug - If required, do it using cli edit command",
3-
"name": "ZohoCRM",
3+
"name": "Zoho CRM",
44
"slug": "zohocrm",
55
"type": "zohocrm_crm",
66
"logo": "icon.svg",

0 commit comments

Comments
 (0)