A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feat: add notes to the bookmark edit dialog
Mohamed Bassemecb7a710ca7e
diff --git a/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsx b/apps/web/components/dashboard/bookmarks/EditBookmarkDialog.tsxindex 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 && (<FormFieldcontrol={form.control}