From 6f88d38ad287e24bc96d0d5e3486bef9f9d7cad5 Mon Sep 17 00:00:00 2001 From: MananTank Date: Sat, 20 Sep 2025 00:03:01 +0000 Subject: [PATCH] [BLD-325] Dashboard: Rename floating chat button label (#8086) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on updating the `CustomChatButton` component and its usage in various layouts by simplifying the button structure, changing icons, and removing unnecessary wrapper elements. ### Detailed summary - Removed the wrapper `
` around the `CustomChatButton` in `layout.tsx` files. - Changed the icon in `CustomChatButton` from `MessageCircleIcon` to `CircleQuestionMarkIcon`. - Updated button label from dynamic to static "Need help?". - Adjusted button class names for styling consistency. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../@/components/chat/CustomChatButton.tsx | 20 ++++++++++--------- .../(app)/team/[team_slug]/(team)/layout.tsx | 15 ++++++-------- .../[project_slug]/(sidebar)/layout.tsx | 15 ++++++-------- 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/apps/dashboard/src/@/components/chat/CustomChatButton.tsx b/apps/dashboard/src/@/components/chat/CustomChatButton.tsx index e1a712cc24a..ad1e2dedda4 100644 --- a/apps/dashboard/src/@/components/chat/CustomChatButton.tsx +++ b/apps/dashboard/src/@/components/chat/CustomChatButton.tsx @@ -1,6 +1,6 @@ "use client"; -import { MessageCircleIcon, XIcon } from "lucide-react"; +import { CircleQuestionMarkIcon, XIcon } from "lucide-react"; import { useSelectedLayoutSegments } from "next/navigation"; import { useCallback, useRef, useState } from "react"; import { createThirdwebClient } from "thirdweb"; @@ -16,7 +16,6 @@ const client = createThirdwebClient({ }); export function CustomChatButton(props: { - label: string; examplePrompts: string[]; authToken: string; team: Team; @@ -39,21 +38,25 @@ export function CustomChatButton(props: { <> {/* Inline Button (not floating) */} {/* Popup/Modal */}
- - {props.label} + Need help?
); diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/layout.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/layout.tsx index c9db26ac0a5..7f1fb8d3665 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/layout.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/layout.tsx @@ -77,15 +77,12 @@ export default async function ProjectLayout(props: { {props.children}
-
- -
+ );