From 2be9d04fdcabb8ec672e63068b2279927a4163a1 Mon Sep 17 00:00:00 2001 From: Mahesh Sanikommmu Date: Wed, 27 Aug 2025 21:59:35 -0700 Subject: [PATCH] added few more fixes --- .../entrypoints/background.ts | 14 ++++---------- .../entrypoints/popup/App.css | 2 +- .../entrypoints/popup/App.tsx | 4 ++-- .../entrypoints/welcome/Welcome.tsx | 2 +- apps/browser-extension/public/icon-128.png | Bin 102803 -> 229436 bytes apps/browser-extension/public/icon-16.png | Bin 102803 -> 33814 bytes apps/browser-extension/public/icon-48.png | Bin 102803 -> 110647 bytes apps/browser-extension/utils/ui-components.ts | 12 ++---------- apps/browser-extension/wxt.config.ts | 2 -- 9 files changed, 10 insertions(+), 26 deletions(-) diff --git a/apps/browser-extension/entrypoints/background.ts b/apps/browser-extension/entrypoints/background.ts index eabe8c50..11b56757 100644 --- a/apps/browser-extension/entrypoints/background.ts +++ b/apps/browser-extension/entrypoints/background.ts @@ -15,14 +15,6 @@ import type { MemoryPayload, } from "../utils/types" -interface SearchResponse { - results: Array<{ - chunks: Array<{ - content: string - }> - }> -} - export default defineBackground(() => { let twitterImporter: TwitterImporter | null = null @@ -134,8 +126,10 @@ export default defineBackground(() => { ): Promise<{ success: boolean; data?: unknown; error?: string }> => { try { const responseData = await searchMemories(data) - const content = (responseData as SearchResponse).results[0].chunks[0] - .content + const response = responseData as { + results?: Array<{ chunks?: Array<{ content?: string }> }> + } + const content = response.results?.[0]?.chunks?.[0]?.content console.log("Content:", content) return { success: true, data: content } } catch (error) { diff --git a/apps/browser-extension/entrypoints/popup/App.css b/apps/browser-extension/entrypoints/popup/App.css index c6e7c59b..4924360e 100644 --- a/apps/browser-extension/entrypoints/popup/App.css +++ b/apps/browser-extension/entrypoints/popup/App.css @@ -56,7 +56,7 @@ align-items: center; justify-content: space-between; gap: 12px; - padding: 16px; + padding: 10px; border-bottom: 1px solid #e5e7eb; position: relative; } diff --git a/apps/browser-extension/entrypoints/popup/App.tsx b/apps/browser-extension/entrypoints/popup/App.tsx index b9e33d4b..4d533a47 100644 --- a/apps/browser-extension/entrypoints/popup/App.tsx +++ b/apps/browser-extension/entrypoints/popup/App.tsx @@ -151,8 +151,8 @@ function App() { supermemory {userSignedIn && (