diff --git a/public/badge-96x96.png b/public/badge-96x96.png new file mode 100644 index 0000000..946eccc Binary files /dev/null and b/public/badge-96x96.png differ diff --git a/src/App.tsx b/src/App.tsx index d3a0536..8fb82ef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -231,47 +231,62 @@ export function App() { const isOffline = !deviceOnline || serverOnline === false; + const updateBanner = swUpdateAvailable && ( +
+ New version available +
+ + +
+
+ ); + // Splash screen while first health check is pending if (serverOnline === null) { return ( -
- -
+ <> +
+ +
+ {updateBanner} + ); } // Offline screen if (isOffline) { - return ; + return <>{updateBanner}; } if (!authed) { - return ; + return <>{updateBanner}; } if (view.name === 'newchat') { return ( - + <> + + {updateBanner} + ); } if (view.name === 'settings') { - return setView({ name: 'sessions' })} />; + return <> setView({ name: 'sessions' })} />{updateBanner}; } if (view.name === 'chat') { return ( - + <> + + {updateBanner} + ); } @@ -285,15 +300,7 @@ export function App() { onInstall={handleInstall} onDismissInstall={dismissInstall} /> - {swUpdateAvailable && ( -
- New version available -
- - -
-
- )} + {updateBanner} ); } diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsx index 576270d..44cd8ca 100644 --- a/src/components/ChatView.tsx +++ b/src/components/ChatView.tsx @@ -27,7 +27,7 @@ function PlanViewer({ plan }: { plan: string }) { if (expanded) { return (
-
+
PLAN