From 49442cab4b508926bb406796a25e6df971d1247b Mon Sep 17 00:00:00 2001 From: Madison Date: Wed, 10 Jun 2026 17:14:35 -0500 Subject: [PATCH] [Fix] remove support button from user page (#1568) Remove the support button from user profile pages. --- ## Summary by cubic Removed the Support button from user profile pages to simplify actions and avoid navigating to conversations from this view. Also removed unused code: the `urlString` import and `useRouter`. Written for commit 807112ceec7059c191090f27a66a180550c04c78. Summary will update on new commits. Review in cubic ## Summary by CodeRabbit * **Bug Fixes** * Removed the "Support" action button from user management actions in the user details page. The remaining user actions such as impersonate, restrict, and delete remain available. --- .../projects/[projectId]/users/[userId]/page-client.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx index da789aed0..b20ba9d5e 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx @@ -53,7 +53,6 @@ import { fromNow } from "@hexclave/shared/dist/utils/dates"; import { captureError, HexclaveAssertionError, throwErr } from '@hexclave/shared/dist/utils/errors'; import { runAsynchronouslyWithAlert } from "@hexclave/shared/dist/utils/promises"; import { deindent } from "@hexclave/shared/dist/utils/strings"; -import { urlString } from "@hexclave/shared/dist/utils/urls"; import { usePathname, useSearchParams } from "next/navigation"; import { Suspense, useCallback, useEffect, useMemo, useRef, useState, type ReactNode, type RefObject } from "react"; import { createPortal } from "react-dom"; @@ -115,7 +114,6 @@ function UserHeader({ user }: UserHeaderProps) { const [restrictionDialogOpen, setRestrictionDialogOpen] = useState(false); const [impersonateSnippet, setImpersonateSnippet] = useState(null); const hexclaveAdminApp = useAdminApp(); - const router = useRouter(); return (
@@ -136,12 +134,6 @@ function UserHeader({ user }: UserHeaderProps) {

Last active {fromNow(user.lastActiveAt)}

-