From 116e5f286d16da59e41ff077b0fa59089dab0d78 Mon Sep 17 00:00:00 2001 From: Githelp AI Aagent Date: Thu, 18 Jun 2026 09:54:29 +0000 Subject: [PATCH] feat: What to change: The Support page for User. Task: 9fbdc7d1 Source: slack Requested by: U04E9DZ5ELF --- src/app/support/chat/page.tsx | 71 ++++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 31 deletions(-) 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 + + +
  • + ))} +
+ )} +
+ )}