From 7d223d6e8dd66cc2f85e09d6855d4e130d8803a6 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Sun, 8 Feb 2026 14:12:23 -0500 Subject: [PATCH 1/2] Fix auth logout redirect and add tree node spacing --- frontend/src/components/file-browser/FileTree.tsx | 4 ++-- frontend/src/contexts/AuthContext.tsx | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/file-browser/FileTree.tsx b/frontend/src/components/file-browser/FileTree.tsx index b2fcda92..75012104 100644 --- a/frontend/src/components/file-browser/FileTree.tsx +++ b/frontend/src/components/file-browser/FileTree.tsx @@ -136,7 +136,7 @@ function TreeNode({ file, level, onFileSelect, onDirectoryClick, selectedFile, o return (
) -}) \ No newline at end of file +}) diff --git a/frontend/src/contexts/AuthContext.tsx b/frontend/src/contexts/AuthContext.tsx index 1087be44..30bea465 100644 --- a/frontend/src/contexts/AuthContext.tsx +++ b/frontend/src/contexts/AuthContext.tsx @@ -112,10 +112,14 @@ export function AuthProvider({ children }: AuthProviderProps) { }, []) const logout = useCallback(async () => { - await signOut() - await refetch() - navigate('/login', { replace: true }) - }, [refetch, navigate]) + await signOut({ + fetchOptions: { + onSuccess: () => { + window.location.href = '/login' + }, + }, + }) + }, []) const refreshSession = useCallback(async () => { await refetch() From d6a2745228aa8980f7ea83cc9307b6c1fb5d6ba2 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Sun, 8 Feb 2026 14:20:14 -0500 Subject: [PATCH 2/2] Remove app loader animation and related cleanup Removes custom app loader UI from index.html and useEffect in App.tsx that handled loader fade-out transition --- frontend/index.html | 29 ----------------------------- frontend/src/App.tsx | 11 +---------- 2 files changed, 1 insertion(+), 39 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 811d6096..28e68a38 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -15,35 +15,6 @@
-
- OpenCode -
-
- diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 173708ef..d4a96a39 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,4 +1,4 @@ -import { useEffect } from 'react' + import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { createBrowserRouter, RouterProvider, Outlet } from 'react-router-dom' import { Toaster } from 'sonner' @@ -63,15 +63,6 @@ function PermissionDialogWrapper() { function AppShell() { useTheme() - useEffect(() => { - const loader = document.getElementById('app-loader') - if (loader) { - loader.style.transition = 'opacity 0.2s ease-out' - loader.style.opacity = '0' - setTimeout(() => loader.remove(), 200) - } - }, []) - return (