From d0ddab6f9572ccf2831daed5258f2f00803ccbbb Mon Sep 17 00:00:00 2001 From: aneuwald-ctw <162589552+aneuwald-ctw@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:58:31 +0100 Subject: [PATCH] Remove datasource and links to docs (#13) User-Facing Changes Menus that are out of context of FoxBox were in the start popup. Description - Remove of datasource links - Disabled link to documentation until it is developed --- .../src/components/DataSourceDialog/Start.tsx | 96 +------------------ 1 file changed, 4 insertions(+), 92 deletions(-) diff --git a/packages/studio-base/src/components/DataSourceDialog/Start.tsx b/packages/studio-base/src/components/DataSourceDialog/Start.tsx index ee0f7beea4..2b94601123 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 = { @@ -167,7 +160,7 @@ function SidebarItems(props: { onSelectView: (newValue: DataSourceDialogItem) => void; }): JSX.Element { const { onSelectView } = props; - const { currentUserType, signIn } = useCurrentUser(); + const { currentUserType } = useCurrentUser(); const analytics = useAnalytics(); const { classes } = useStyles(); const { t } = useTranslation("openDialog"); @@ -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: ( -