aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/preview/BookmarkPreview.tsx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat: Add collaborative lists (#2146)Mohamed Bassem2025-11-171-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Add collaborative lists backend implementation This commit implements the core backend functionality for collaborative lists, allowing multiple users to share and interact with bookmark lists. Database changes: - Add listCollaborators table to track users with access to lists and their roles (viewer/editor) - Add addedBy field to bookmarksInLists to track who added bookmarks - Add relations for collaborative list functionality Access control updates: - Update List model to support role-based access (owner/editor/viewer) - Add methods to check and enforce permissions for list operations - Update Bookmark model to allow access through collaborative lists - Modify bookmark queries to include bookmarks from collaborative lists List collaboration features: - Add/remove/update collaborators - Get list of collaborators - Get lists shared with current user - Only manual lists can have collaborators tRPC procedures: - addCollaborator: Add a user as a collaborator to a list - removeCollaborator: Remove a collaborator from a list - updateCollaboratorRole: Change a collaborator's role - getCollaborators: Get all collaborators for a list - getSharedWithMe: Get all lists shared with the current user - cloneBookmark: Clone a bookmark to the current user's collection Implementation notes: - Editors can add/remove bookmarks from the list (must own the bookmark) - Viewers can only view bookmarks in the list - Only the list owner can manage collaborators and list metadata - Smart lists cannot have collaborators (only manual lists) - Users cannot edit bookmarks they don't own, even in shared lists * feat: Add collaborative lists frontend UI This commit implements the frontend user interface for collaborative lists, allowing users to view shared bookmarks and manage list collaborators. New pages: - /dashboard/shared: Shows bookmarks from lists shared with the user - Displays bookmarks from all collaborative lists - Uses SharedBookmarks component - Shows empty state when no lists are shared Navigation: - Added "Shared with you" link to sidebar with Users icon - Positioned after "Home" in main navigation - Available in both desktop and mobile sidebar Collaborator management: - ManageCollaboratorsModal component for managing list collaborators - Add collaborators by user ID with viewer/editor role - View current collaborators with their roles - Update collaborator roles inline - Remove collaborators - Shows empty state when no collaborators - Integrated into ListOptions dropdown menu - Accessible via "Manage Collaborators" menu item Components created: - SharedBookmarks.tsx: Server component fetching shared lists/bookmarks - ManageCollaboratorsModal.tsx: Client component with tRPC mutations - /dashboard/shared/page.tsx: Route for shared bookmarks page UI features: - Role selector for viewer/editor permissions - Real-time collaborator list updates - Toast notifications for success/error states - Loading states for async operations - Responsive design matching existing UI patterns Implementation notes: - Uses existing tRPC endpoints (getSharedWithMe, getCollaborators, etc.) - Follows established modal patterns from ShareListModal - Integrates seamlessly with existing list UI - Currently uses user ID for adding collaborators (email lookup TBD) * fix typecheck * add collaborator by email * add shared list in the sidebar * fix perm issue * hide UI components from non list owners * list leaving * fix shared bookmarks showing up in homepage * fix getBookmark access check * e2e tests * hide user specific fields from shared lists * simplify bookmark perm checks * disable editable fields in bookmark preview * hide lists if they don't have options * fix list ownership * fix highlights * move tests to trpc * fix alignment of leave list * make tag lists unclickable * allow editors to remove from list * add a badge for shared lists * remove bookmarks of user when they're removed from a list * fix tests * show owner in the manage collab modal * fix hasCollab * drop shared with you * i18n * beta badge * correctly invalidate caches on collab change * reduce unnecessary changes * Add ratelimits * stop manually removing bookmarks on remove * some fixes * fixes * remove unused function * improve tests --------- Co-authored-by: Claude <noreply@anthropic.com>
* fix: Incremental polling interval for ongoing crawlsMohamed Bassem2025-08-311-6/+2
|
* feat: Render author, publisher and pub data in the bookmark viewMohamed Bassem2025-07-261-1/+49
|
* refactor: Move bookmark utils from shared-react to sharedMohamed Bassem2025-05-311-2/+2
|
* fix(web): Switch to a tab view in small screens for bookmark previewsOlicorne2025-05-181-36/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Implement tabbed layout for bookmark preview content and details * feat: Enable swipe gesture to switch between content and details tabs * feat: add scroll-based tab bar hide/show functionality * fix: adjust tab bar layout to maintain content space when hidden * fix: bg-muted was stopping midway in the background * fix: disable mouse tracking for swipe detection in BookmarkPreview * fix: improve scroll behavior to prevent glitchy tab bar animation * Update apps/web/components/dashboard/preview/BookmarkPreview.tsx Co-authored-by: xuatz <xzlow10@gmail.com> * Update apps/web/components/dashboard/preview/BookmarkPreview.tsx Co-authored-by: xuatz <xzlow10@gmail.com> * feat: add responsive layout with tabs and swipe for BookmarkPreview * Remove react swipe, scroll handlers and do screen detection using media queries * Revert the grey background for the main content * remove react-swip from the package.json * more fixes * Fix the black area under the tab bar --------- Co-authored-by: xuatz <xzlow10@gmail.com> Co-authored-by: Mohamed Bassem <me@mbassem.com>
* chore: Rename hoarder packages to karakeepMohamedBassem2025-04-121-2/+2
|
* feat: Allow editing bookmark detailsMohamedBassem2025-04-081-2/+8
|
* ui(web): Clicking view original now opens in a blank tab. Fixes #1114 (#1196)ekambains2025-04-051-0/+1
|
* fix: Fix truncated long text in bookmark preview modal. Fixe #793Mohamed Bassem2025-01-051-1/+1
|
* feat: Implement the all highlights page. Fixes #620Mohamed Bassem2024-12-281-13/+2
|
* feat: Implement highlights support for links. Fixes #620Mohamed Bassem2024-12-271-0/+2
|
* feature: Add i18n support. Fixes #57 (#635)Mohamed Bassem2024-11-171-3/+5
| | | | | | | | | | | | | * feature(web): Add basic scaffolding for i18n * refactor: Switch most of the app's strings to use i18n strings * fix: Remove unused i18next-resources-for-ts command * Add user setting * More translations * Drop the german translation for now
* feature: Add a summarize with AI button for linksMohamed Bassem2024-10-271-0/+2
|
* feature: Persevere the source URL of clipped texts from the extension.MohamedBassem2024-10-051-10/+1
| | | | Fixes #448
* feature(web): Show attachments and allow users to manipulate them.MohamedBassem2024-09-221-0/+2
|
* feature(web): Manage tags in bulk actionsMohamedBassem2024-09-011-2/+2
|
* refactor: added the bookmark type to the database (#256)kamtschatka2024-07-011-6/+6
| | | | | | | | | | | | | | | | | * refactoring asset types Extracted out functions to silently delete assets and to update them after crawling Generalized the mapping of assets to bookmark fields to make extending them easier * Added the bookmark type to the database Introduced an enum to have better type safety cleaned up the code and based some code on the type directly * add BookmarkType.UNKNWON * lint and remove unused function --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* feature: add support for PDF links. Fixes #28 (#216)kamtschatka2024-06-221-2/+14
| | | | | | | | | | | | | | | | | * feature request: pdf support #28 Added a new sourceUrl column to the asset bookmarks Added transforming a link bookmark pointing at a pdf to an asset bookmark made sure the "View Original" link is also shown for asset bookmarks that have a sourceURL updated gitignore for IDEA * remove pdf parsing from the crawler * extract the http logic into its own function to avoid duplicating the post-processing actions (openai/index) * Add 5s timeout to the content type fetch --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* ui(web): Set tag input field in preview modal to 100% width to fix overflow ↵Cari2024-05-191-2/+2
| | | | | | | issues on select dropdown (#165) ui(web): Fixed issue with rounded corners on tag input field in preview modal ui(web): Adjusted styles for labels and fields in preview modal for visual consistency
* ui(web): Show bookmark URL when maximizing a bookmarkMohamedBassem2024-04-241-2/+9
|
* feature: Download images and screenshotsMohamedBassem2024-04-201-5/+9
|
* refactor: Move the shared types to the shared packageMohamedBassem2024-04-181-1/+1
|
* feature: Add title to bookmarks and allow editing them. Fixes #27MohamedBassem2024-04-151-36/+15
|
* fix(web): Fix some JS console errors in the preview pageMohamedBassem2024-04-141-3/+12
|
* feature(web): Allow changing the bookmark grid layout (#98)Mohamed Bassem2024-04-141-1/+1
|
* refactor(web): Move the tooltip provider to the root of the appMohamedBassem2024-04-071-25/+20
|
* feature: Extract hook logic into separate package and add a new action bar ↵MohamedBassem2024-04-071-0/+154
in bookmark preview