diff --git a/src/app/support/chat/page.tsx b/src/app/support/chat/page.tsx index 897fdc4..d5c0f74 100644 --- a/src/app/support/chat/page.tsx +++ b/src/app/support/chat/page.tsx @@ -364,15 +364,22 @@ export default function UserSupportChatPage() { p.name.toLowerCase().includes(projectSearch.trim().toLowerCase()), ) + // Only reveal the results list once the user has typed at least 3 + // alphanumeric characters (letters or digits) — ignore spaces/punctuation. + const alphanumericSearchLength = projectSearch + .toLowerCase() + .replace(/[^a-z0-9]/g, "").length + const showProjectResults = alphanumericSearchLength >= 3 + return ( -
+

Which project do you need support with?

-

+

{isAuthenticated ? "You have no support tickets yet. Pick a project to start a new conversation." : "Pick a project to start a new support conversation."} @@ -390,35 +397,37 @@ export default function UserSupportChatPage() { />

-
- {allProjectsLoading ? ( -
- Loading projects… -
- ) : filteredProjects.length === 0 ? ( -
- No projects match “{projectSearch}”. -
- ) : ( -
    - {filteredProjects.map((p) => ( -
  • - - - {p.name} - - - Get support - - -
  • - ))} -
- )} -
+ {showProjectResults && ( +
+ {allProjectsLoading ? ( +
+ Loading projects… +
+ ) : filteredProjects.length === 0 ? ( +
+ No projects match “{projectSearch}”. +
+ ) : ( +
    + {filteredProjects.map((p) => ( +
  • + + + {p.name} + + + Get support + + +
  • + ))} +
+ )} +
+ )}