From 4a74016b52ac9616574ade1fca77200991cc8608 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 9 Dec 2025 16:46:29 -0600 Subject: [PATCH] feat(dashboard): replace Chatwoot widget with HubSpot widget in dashboard layout - Updated the dashboard layout to use the HubSpotWidget instead of ChatwootWidget. - Added a new HubSpotWidget component that loads the HubSpot script asynchronously. --- .../components/layouts/dashboard-layout.tsx | 6 ++++-- apps/dokploy/components/shared/HubSpotWidget.tsx | 14 ++++++++++++++ apps/dokploy/styles/globals.css | 15 +++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 apps/dokploy/components/shared/HubSpotWidget.tsx diff --git a/apps/dokploy/components/layouts/dashboard-layout.tsx b/apps/dokploy/components/layouts/dashboard-layout.tsx index b65e7dbb8..727649922 100644 --- a/apps/dokploy/components/layouts/dashboard-layout.tsx +++ b/apps/dokploy/components/layouts/dashboard-layout.tsx @@ -1,6 +1,6 @@ import { api } from "@/utils/api"; import { ImpersonationBar } from "../dashboard/impersonation/impersonation-bar"; -import { ChatwootWidget } from "../shared/ChatwootWidget"; +import { HubSpotWidget } from "../shared/HubSpotWidget"; import Page from "./side"; interface Props { @@ -25,7 +25,9 @@ export const DashboardLayout = ({ children }: Props) => { <> {children} {isCloud === true && isUserSubscribed === true && ( - + <> + + )} {haveRootAccess === true && } diff --git a/apps/dokploy/components/shared/HubSpotWidget.tsx b/apps/dokploy/components/shared/HubSpotWidget.tsx new file mode 100644 index 000000000..ff3013459 --- /dev/null +++ b/apps/dokploy/components/shared/HubSpotWidget.tsx @@ -0,0 +1,14 @@ +import Script from "next/script"; + +export const HubSpotWidget = () => { + return ( +