From ecb7a710ca7ec22aa3304b8d1f6b603bb60874bc Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Thu, 25 Dec 2025 20:23:48 +0000
Subject: feat: add notes to the bookmark edit dialog

---
 .../dashboard/bookmarks/EditBookmarkDialog.tsx      | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

(limited to 'apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx')

diff --git a/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx b/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx
index 76208158..49d27eaa 100644
--- a/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx
+++ b/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx
@@ -78,6 +78,7 @@ export function EditBookmarkDialog({
   const bookmarkToDefault = (bookmark: ZBookmark) => ({
     bookmarkId: bookmark.id,
     summary: bookmark.summary,
+    note: bookmark.note === null ? undefined : bookmark.note,
     title: getBookmarkTitle(bookmark),
     createdAt: bookmark.createdAt ?? new Date(),
     // Link specific defaults (only if bookmark is a link)
@@ -196,6 +197,26 @@ export function EditBookmarkDialog({
               />
             )}
 
+            {
+              <FormField
+                control={form.control}
+                name="note"
+                render={({ field }) => (
+                  <FormItem>
+                    <FormLabel>{t("common.note")}</FormLabel>
+                    <FormControl>
+                      <Textarea
+                        placeholder="Bookmark notes"
+                        {...field}
+                        value={field.value ?? ""}
+                      />
+                    </FormControl>
+                    <FormMessage />
+                  </FormItem>
+                )}
+              />
+            }
+
             {isLink && (
               <FormField
                 control={form.control}
-- 
cgit v1.2.3-70-g09d2

