From aced492b400b613d40a752c41ac2d7b22cc6561c Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 27 Mar 2026 09:55:02 -0400 Subject: [PATCH 1/3] move the toolbar settings to GuideContextDetails --- .../Toolbar/V2/GuideContextDetails.tsx | 197 +++++++++++------- .../guide/components/Toolbar/V2/V2.tsx | 50 +---- 2 files changed, 125 insertions(+), 122 deletions(-) diff --git a/packages/react/src/modules/guide/components/Toolbar/V2/GuideContextDetails.tsx b/packages/react/src/modules/guide/components/Toolbar/V2/GuideContextDetails.tsx index d78633d81..b627ed1db 100644 --- a/packages/react/src/modules/guide/components/Toolbar/V2/GuideContextDetails.tsx +++ b/packages/react/src/modules/guide/components/Toolbar/V2/GuideContextDetails.tsx @@ -1,94 +1,143 @@ -import { useGuideContext } from "@knocklabs/react-core"; +import { useGuideContext, useStore } from "@knocklabs/react-core"; +import { Button } from "@telegraph/button"; import { Box, Stack } from "@telegraph/layout"; import { Tooltip } from "@telegraph/tooltip"; import { Text } from "@telegraph/typography"; +import { Box as BoxIcon, Gauge } from "lucide-react"; export const GuideContextDetails = () => { const { client } = useGuideContext(); + const { debugSettings } = useStore(client.store, (state) => ({ + debugSettings: state.debug || {}, + })); return ( - - The tenant and data payload passed to the guide client that are used - for targeting -
- (via the `targetParams` prop to `KnockGuideProvider`) - - } - delayDuration={500} - > - - Target params + + + Settings -
- - - - Tenant - - -
-              {client.targetParams.tenant || "-"}
-            
-
+ + +