Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(notices): handle missing notice data gracefully

Steven Enamakel7712e3f47aea
diff --git a/app/src/components/AppUpdatePrompt.tsx b/app/src/components/AppUpdatePrompt.tsx
index 9ec8206f5b..5af0697bfd 100644
--- a/app/src/components/AppUpdatePrompt.tsx
+++ b/app/src/components/AppUpdatePrompt.tsx
@@ -96,10 +96,10 @@ const AppUpdatePrompt = (props: AppUpdatePromptProps) => {
<div
role="status"
aria-live="polite"
- // `bottom-16`, not `bottom-4`: NoticeCenter's FAB owns the bottom-right
- // corner, and this card is ~340px wide at z-9998 — it would sit directly
- // on top of it and swallow the clicks.
- className="fixed bottom-16 right-4 z-9998 w-[340px] animate-fade-up"
+ // `bottom-14`, not `bottom-2`: NoticeCenter's FAB owns the bottom-right
+ // corner (8px inset, 40px tall), and this card is ~340px wide at z-9998 —
+ // sharing the corner would put it straight on top and swallow the clicks.
+ className="fixed bottom-14 right-2 z-9998 w-[340px] animate-fade-up"
data-testid="app-update-prompt">
<div className="bg-stone-900 border border-stone-700/50 rounded-2xl shadow-large overflow-hidden">
{/* Header */}
diff --git a/app/src/components/LocalAIDownloadSnackbar.tsx b/app/src/components/LocalAIDownloadSnackbar.tsx
index 2131c4d2de..c75b63679d 100644
--- a/app/src/components/LocalAIDownloadSnackbar.tsx
+++ b/app/src/components/LocalAIDownloadSnackbar.tsx
@@ -189,7 +189,7 @@ const LocalAIDownloadSnackbar = () => {
// Collapsed: small pill
if (collapsed) {
return createPortal(
- <div className="fixed bottom-16 right-4 z-9998 animate-fade-up">
+ <div className="fixed bottom-14 right-2 z-9998 animate-fade-up">
<button
onClick={handleToggleCollapse}
className="flex items-center gap-2 bg-stone-900 border border-stone-700/50 rounded-full px-3 py-2 shadow-large hover:border-stone-600 transition-colors"
@@ -212,7 +212,7 @@ const LocalAIDownloadSnackbar = () => {
// Expanded: full snackbar
return createPortal(
- <div className="fixed bottom-16 right-4 z-9998 w-[320px] animate-fade-up">
+ <div className="fixed bottom-14 right-2 z-9998 w-[320px] animate-fade-up">
<div className="bg-stone-900 border border-stone-700/50 rounded-2xl shadow-large overflow-hidden">
{/* Header */}
<div className="flex items-center justify-between px-4 pt-3 pb-1">
diff --git a/app/src/components/notices/NoticeCenter.tsx b/app/src/components/notices/NoticeCenter.tsx
index 5ad84afc0d..d45b142206 100644
--- a/app/src/components/notices/NoticeCenter.tsx
+++ b/app/src/components/notices/NoticeCenter.tsx
@@ -129,7 +129,7 @@ export default function NoticeCenter() {
return (
<div
- className="fixed bottom-4 right-4 z-50 flex flex-col items-end gap-2"
+ className="fixed bottom-2 right-2 z-50 flex flex-col items-end gap-2"
data-testid="notice-center">
{open && (
<div
diff --git a/app/src/components/notices/__tests__/NoticeCenter.test.tsx b/app/src/components/notices/__tests__/NoticeCenter.test.tsx
index e6503d8f48..c3dea440cc 100644
--- a/app/src/components/notices/__tests__/NoticeCenter.test.tsx
+++ b/app/src/components/notices/__tests__/NoticeCenter.test.tsx
@@ -84,9 +84,9 @@ describe('NoticeCenter', () => {
renderCenter([memoryError]);
const center = screen.getByTestId('notice-center');
- expect(center.className).toContain('bottom-4');
- expect(center.className).toContain('right-4');
- expect(center.className).not.toContain('left-4');
+ expect(center.className).toContain('bottom-2');
+ expect(center.className).toContain('right-2');
+ expect(center.className).not.toContain('left-2');
});
it('badges the active count and opens the panel on click', async () => {