From 91393f49a436e7625637f7aed6a489f0524e86a3 Mon Sep 17 00:00:00 2001 From: Alexandre Neuwald CTW Date: Fri, 12 Apr 2024 16:23:32 +0100 Subject: [PATCH] remove datasource and links to docs --- .../src/components/DataSourceDialog/Start.tsx | 94 +------------------ 1 file changed, 3 insertions(+), 91 deletions(-) diff --git a/packages/studio-base/src/components/DataSourceDialog/Start.tsx b/packages/studio-base/src/components/DataSourceDialog/Start.tsx index ee0f7beea4..70f4ce5ba9 100644 --- a/packages/studio-base/src/components/DataSourceDialog/Start.tsx +++ b/packages/studio-base/src/components/DataSourceDialog/Start.tsx @@ -106,13 +106,6 @@ const useStyles = makeStyles()((theme) => ({ recentSourceSecondary: { color: "inherit", }, - featureList: { - paddingLeft: theme.spacing(1.5), - - "li:not(:last-of-type)": { - marginBottom: theme.spacing(0.5), - }, - }, })); type DataSourceOptionProps = { @@ -197,6 +190,7 @@ function SidebarItems(props: { href="https://docs.foxglove.dev/docs/connecting-to-data/introduction" target="_blank" className={classes.button} + disabled onClick={() => { void analytics.logEvent(AppEvent.DIALOG_CLICK_CTA, { user: currentUserType, @@ -292,64 +286,7 @@ function SidebarItems(props: { const sidebarItems: SidebarItem[] = useMemo(() => { switch (currentUserType) { case "unauthenticated": - return [ - ...freeUser, - { - id: "collaborate", - title: t("collaborateTitle"), - text: ( - - ), - actions: signIn ? ( - <> - - - - ) : ( - - ), - }, - ]; + return [...freeUser]; case "authenticated-free": return [ { @@ -389,16 +326,7 @@ function SidebarItems(props: { case "authenticated-enterprise": return teamOrEnterpriseUser; } - }, [ - analytics, - classes.button, - classes.featureList, - currentUserType, - freeUser, - signIn, - teamOrEnterpriseUser, - t, - ]); + }, [analytics, classes.button, currentUserType, freeUser, teamOrEnterpriseUser, t]); return ( <> @@ -444,21 +372,6 @@ export default function Start(): JSX.Element { void analytics.logEvent(AppEvent.DIALOG_SELECT_VIEW, { type: "local" }); }, }, - { - key: "open-url", - text: t("openUrl"), - secondaryText: t("openUrlDescription"), - icon: ( - - - - ), - iconProps: { iconName: "FileASPX" }, - href: "https://console.foxglove.dev/recordings", - onClick: () => { - void analytics.logEvent(AppEvent.DIALOG_SELECT_VIEW, { type: "data-platform" }); - }, - }, { key: "open-connection", text: t("openConnection"), @@ -494,7 +407,6 @@ export default function Start(): JSX.Element { secondaryText={item.secondaryText} icon={item.icon} onClick={item.onClick} - href={item.href} target="_blank" /> ))}