Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/code/src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ErrorBoundary } from "@components/ErrorBoundary";
import { LoginTransition } from "@components/LoginTransition";
import { MainLayout } from "@components/MainLayout";
import { ScopeReauthPrompt } from "@components/ScopeReauthPrompt";
import { UpdatePrompt } from "@components/UpdatePrompt";
import { AuthScreen } from "@features/auth/components/AuthScreen";
import { InviteCodeScreen } from "@features/auth/components/InviteCodeScreen";
import { useAuthStateValue } from "@features/auth/hooks/authQueries";
Expand All @@ -13,6 +12,7 @@ import { Flex, Spinner, Text } from "@radix-ui/themes";
import { initializeConnectivityStore } from "@renderer/stores/connectivityStore";
import { useFocusStore } from "@renderer/stores/focusStore";
import { useThemeStore } from "@renderer/stores/themeStore";
import { initializeUpdateStore } from "@renderer/stores/updateStore";
import { trpcClient, useTRPC } from "@renderer/trpc/client";
import { ANALYTICS_EVENTS } from "@shared/types/analytics";
import { useQueryClient } from "@tanstack/react-query";
Expand Down Expand Up @@ -49,6 +49,11 @@ function App() {
return initializeConnectivityStore();
}, []);

// Initialize update store
useEffect(() => {
return initializeUpdateStore();
}, []);

// Dev-only inbox demo command for local QA from the renderer console.
useEffect(() => {
if (import.meta.env.PROD) {
Expand Down Expand Up @@ -218,7 +223,6 @@ function App() {
onComplete={handleTransitionComplete}
/>
<ScopeReauthPrompt />
<UpdatePrompt />
<Toaster position="bottom-right" />
</ErrorBoundary>
);
Expand Down
278 changes: 0 additions & 278 deletions apps/code/src/renderer/components/UpdatePrompt.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useNavigationStore } from "@stores/navigationStore";
import type React from "react";
import { ProjectSwitcher } from "./ProjectSwitcher";
import { SidebarMenu } from "./SidebarMenu";
import { UpdateBanner } from "./UpdateBanner";

export const SidebarContent: React.FC = () => {
const archivedTaskIds = useArchivedTaskIds();
Expand All @@ -17,6 +18,7 @@ export const SidebarContent: React.FC = () => {
<Box flexGrow="1" overflow="hidden">
<SidebarMenu />
</Box>
<UpdateBanner />
{archivedTaskIds.size > 0 && (
<Box className="shrink-0 border-gray-6 border-t">
<button
Expand Down
Loading
Loading