diff --git a/src/app/support/chat/page.tsx b/src/app/support/chat/page.tsx index d36b015..8ad4d86 100644 --- a/src/app/support/chat/page.tsx +++ b/src/app/support/chat/page.tsx @@ -111,6 +111,11 @@ export default function UserSupportChatPage() { const project = projectIdParam ? projectById : (slugParam ? projectBySlug : projectById) // Use the project's UUID when only a slug is provided, or fall back to projectId from URL/ticket const effectiveProjectId = project?.project_id || projectId || "" + const projectPageHref = project?.slug + ? `/support/${encodeURIComponent(project.slug)}` + : effectiveProjectId + ? `/support?project=${encodeURIComponent(effectiveProjectId)}` + : undefined const projectName = project?.name ?? "Support" const organizationName = hasSLA ? projectName : null const freeHelpRemaining: string | null = null @@ -592,7 +597,7 @@ export default function UserSupportChatPage() { return (
- + Active tickets ({activeTicketsCount})
1 ? "max-h-72 overflow-y-auto" : ""}`}> {activeTicketsSidebar.length === 0 ? ( -

No active tickets

+

No active tickets

) : ( activeTicketsSidebar.map((item) => (
+ {projectPageHref && ( + + + + + {!isCollapsed && "See project page"} + + )} {bottomItems.map((item) => { const isActive = item.href !== "#" && pathname === item.href const className = `flex items-center gap-3 px-3 py-2.5 min-h-[40px] text-sm font-medium rounded-md cursor-pointer transition-colors ${