From cdb49887d80f25a725ab388fcac9c3549cebb275 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Mon, 17 Apr 2023 23:45:14 -0700 Subject: [PATCH] HelpWizard: Use scenes to render dashboard inline dashboard (#64936) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Torkel Ödegaard --- .../components/HelpWizard/HelpWizard.tsx | 23 ++---------- .../HelpWizard/SupportSnapshotService.ts | 36 +++++++++---------- .../dashboard/components/HelpWizard/utils.ts | 2 +- 3 files changed, 19 insertions(+), 42 deletions(-) diff --git a/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx b/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx index ddece468a35..f2af5932fbf 100644 --- a/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx +++ b/public/app/features/dashboard/components/HelpWizard/HelpWizard.tsx @@ -42,7 +42,6 @@ export function HelpWizard({ panel, plugin, onClose }: Props) { currentTab, loading, error, - iframeLoading, options, showMessage, snapshotSize, @@ -50,18 +49,13 @@ export function HelpWizard({ panel, plugin, onClose }: Props) { snapshotText, randomize, panelTitle, - snapshotUpdate, + scene, } = service.useState(); useEffect(() => { service.buildDebugDashboard(); }, [service, plugin, randomize]); - useEffect(() => { - // Listen for messages from loaded iframe - return service.subscribeToIframeLoadingMessage(); - }, [service]); - if (!plugin) { return null; } @@ -211,20 +205,7 @@ export function HelpWizard({ panel, plugin, onClose }: Props) { {({ height }) => ( - <> -