diff --git a/src/components/SetupBanner.tsx b/src/components/SetupBanner.tsx index f1c3495..7042e09 100644 --- a/src/components/SetupBanner.tsx +++ b/src/components/SetupBanner.tsx @@ -30,6 +30,7 @@ import { useLanguageModelProviders } from "@/hooks/useLanguageModelProviders"; import { useScrollAndNavigateTo } from "@/hooks/useScrollAndNavigateTo"; // @ts-ignore import logo from "../../assets/logo.svg"; +import { OnboardingBanner } from "./home/OnboardingBanner"; type NodeInstallStep = | "install" @@ -40,6 +41,7 @@ type NodeInstallStep = export function SetupBanner() { const posthog = usePostHog(); const navigate = useNavigate(); + const [isOnboardingVisible, setIsOnboardingVisible] = useState(true); const { isAnyProviderSetup, isLoading: loading } = useLanguageModelProviders(); const [nodeSystemInfo, setNodeSystemInfo] = useState( @@ -147,7 +149,13 @@ export function SetupBanner() { return ( <> -

Setup Dyad

+

+ Setup Dyad +

+
void; +}) => { + if (!isVisible) return null; + + return ( + //
+ + //
+ ); +}; diff --git a/src/pages/home.tsx b/src/pages/home.tsx index 71dce8f..2f3879c 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -62,9 +62,15 @@ export default function HomePage() { settings && settings.lastShownReleaseNotesVersion !== appVersion ) { + const shouldShowReleaseNotes = !!settings.lastShownReleaseNotesVersion; await updateSettings({ lastShownReleaseNotesVersion: appVersion, }); + // It feels spammy to show release notes if it's + // the users very first time. + if (!shouldShowReleaseNotes) { + return; + } try { const result = await IpcClient.getInstance().doesReleaseNoteExist({