diff --git a/client/src/components/SupersetDashboard.tsx b/client/src/components/SupersetDashboard.tsx index 954e1ad..7f1c801 100644 --- a/client/src/components/SupersetDashboard.tsx +++ b/client/src/components/SupersetDashboard.tsx @@ -69,7 +69,7 @@ export function SupersetDashboard({ sdkRef.current = await embedDashboard({ id: embeddedId, // UUID do embedded config (não o slug) - supersetDomain: window.location.origin + "/superset", + supersetDomain: "https://bi.onboardbi.com.br", mountPoint: containerRef.current, fetchGuestToken: async () => { const { token } = await fetchTokenData(); @@ -84,14 +84,9 @@ export function SupersetDashboard({ setStatus("ready"); } catch (err: any) { - console.error("[SupersetDashboard] Erro:", err.message); - // Se SDK não estiver instalado, usa iframe como fallback - if (err.message?.includes("Cannot find module") || err.message?.includes("embedDashboard")) { - setStatus("unavailable"); - } else { - setErrorMsg(err.message); - setStatus("error"); - } + console.error("[SupersetDashboard] Erro:", err.message, err); + setErrorMsg(err.message || "Erro desconhecido"); + setStatus("error"); } }, [dashboardId, fetchTokenData]); @@ -106,13 +101,16 @@ export function SupersetDashboard({ if (status === "unavailable") { return ( -
Arcádia Insights indisponível
+O serviço de BI está iniciando. Tente novamente em alguns segundos.
+