diff --git a/package-lock.json b/package-lock.json index 1cfbcc4..9b23c6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "autonomy-studio-launcher", - "version": "1.0.0", + "version": "1.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "autonomy-studio-launcher", - "version": "1.0.0", + "version": "1.0.12", "hasInstallScript": true, "dependencies": { "@electron-toolkit/preload": "^3.0.1", diff --git a/package.json b/package.json index 1d20411..f268bbc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "autonomy-studio-launcher", - "version": "1.0.10", + "version": "1.0.11", "description": "Autonomy Studio v2 Frontend", "main": "./out/main/index.js", "author": { @@ -31,7 +31,9 @@ "output": "dist" }, "linux": { - "target": ["deb"], + "target": [ + "deb" + ], "icon": "resources/icons", "category": "Development" }, diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 0658bad..065a116 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -32,6 +32,11 @@ function App(): React.JSX.Element { }, []) const handleLogout = useCallback((): void => { + void fetch(`${LAUNCHER_API_BASE_URL}/api/auth/logout`, { + method: 'POST', + credentials: 'include', + keepalive: true, + }).catch(() => undefined) window.launcherTailscale?.logout().catch(() => undefined) window.localStorage.removeItem(AUTH_SESSION_KEY) window.sessionStorage.removeItem(AUTH_SESSION_KEY) diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index daf6a4e..afad746 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -619,16 +619,6 @@ body, } .login-version-wrap { - position: absolute; - right: 24px; - bottom: 16px; - z-index: 5; - display: flex; - align-items: center; - gap: 10px; -} - -.launcher-version-wrap { position: absolute; left: 24px; bottom: 16px; @@ -645,7 +635,7 @@ body, z-index: 5; display: flex; align-items: center; - max-width: min(360px, 42vw); + max-width: min(180px, 28vw); } .app-version-wrap .version-label { @@ -657,8 +647,6 @@ body, .launcher-update-text { display: inline-flex; align-items: center; - position: relative; - top: -2px; height: 16px; padding: 0; border: 0; diff --git a/src/renderer/src/components/Sidebar.tsx b/src/renderer/src/components/Sidebar.tsx index 67ed35f..63c084e 100644 --- a/src/renderer/src/components/Sidebar.tsx +++ b/src/renderer/src/components/Sidebar.tsx @@ -326,8 +326,7 @@ function Sidebar({ apps, userName, userEmail, userRole, userCreatedAt, userLastL )} - - + {modal === 'profile' && ( => { const response = await fetch(`${LAUNCHER_API_BASE_URL}/api/auth/refresh`, { method: 'POST', @@ -739,28 +738,12 @@ function Dashboard({ authSession, onSessionUpdate, onLogout }: DashboardProps): )} - {!showManual && ( - <> -
- {launcherUpdateAvailable && ( - - )} -
Launcher v{localVersions.launcher ?? version}
-
- {activeAppVersion && ( -
-
{appConfig?.displayName ?? activeApp} v{activeAppVersion}
-
- )} - + {!showManual && activeAppVersion && ( +
+
v{activeAppVersion}
+
)} +