aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app/dashboard (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat: A better looking 404 pageMohamed Bassem2025-11-231-2/+41
|
* feat: Add invitation approval for shared lists (#2152)Mohamed Bassem2025-11-231-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Add invitation approval system for collaborative lists - Add database schema changes to support pending invitations - Add status field (pending/accepted/declined) to listCollaborators - Add invitedAt and invitedEmail fields for tracking - Add index on status for efficient queries - Update List model with invitation workflow methods - Modify addCollaboratorByEmail to create pending invitations - Add acceptInvitation() for users to accept invites - Add declineInvitation() for users to decline invites - Add revokeInvitation() for owners to revoke pending invites - Add getPendingInvitations() to get user's pending invites - Implement privacy protection for pending invitations - Mask user names as "Pending User" until invitation is accepted - Only show email to list owner for pending invitations - Update getSharedWithUser to only include accepted collaborations - Ensures lists only appear after invitation is accepted * feat: Add tRPC procedures and email notifications for list invitations - Add new tRPC procedures for invitation workflow - acceptInvitation: Allow users to accept pending invitations - declineInvitation: Allow users to decline invitations - revokeInvitation: Allow owners to revoke pending invitations - getPendingInvitations: Get all pending invitations for current user - Update getCollaborators output schema - Add status, invitedAt fields to collaborator objects - Support privacy-masked user info for pending invitations - Add sendListInvitationEmail function - Email notification when user is invited to collaborate - Includes list name, inviter name, and link to view invitation - Gracefully handles missing SMTP configuration - Integrate email sending into invitation workflow - Send email when new invitation is created - Send email when declined invitation is renewed - Catch and log errors without failing the invitation * feat: Add UI for list invitation approval workflow - Update ManageCollaboratorsModal to support pending invitations - Show "Pending" badge for pending invitations - Add revoke button for owners to cancel pending invitations - Update success message to reflect invitation sent - Disable role change and remove buttons for pending invitations - Create PendingInvitationsCard component - Display all pending invitations for the current user - Show list name, description, inviter, and role - Provide Accept and Decline buttons - Auto-hide when no pending invitations exist - Add PendingInvitationsCard to lists page - Show at the top of the lists page - Only renders when user has pending invitations * fix: Add missing translation keys and fix TypeScript errors - Add translation keys for invitation system - lists.collaborators.invitation_sent - lists.collaborators.pending - lists.collaborators.revoke - lists.collaborators.invitation_revoked - lists.collaborators.failed_to_revoke - lists.invitations.* (all invitation-related keys) - Fix TypeScript errors in email sending - Handle optional user.name with fallback to 'A user' * wip * fixes * more fixes * fix revoke * more improvements * comment fix * fix email url * fix schemas * split pending invites into components * more fixes * test * test fixes --------- Co-authored-by: Claude <noreply@anthropic.com>
* feat: Add collaborative lists (#2146)Mohamed Bassem2025-11-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* feat: Add page titles (#2109)Mohamed Bassem2025-11-096-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: add Next.js metadata titles to dynamic and settings pages Add page titles using Next.js metadata API for better SEO and user experience: - List pages: Show list name in format "<name> | Karakeep" - Tag pages: Show tag name in format "<name> | Karakeep" - Admin pages: Add titles for overview, users, and background jobs pages - Settings pages: Add titles for all settings pages (API keys, AI, feeds, import, info, webhooks, subscription, rules, stats, assets, broken links) For client components (rules, stats, assets, broken-links), created layout.tsx files to export metadata since metadata can only be exported from server components. * feat: add Next.js metadata titles to dashboard pages Add page titles using Next.js metadata API to archive, favourites, highlights, and all tags pages: - Archive page: Show "Archive | Karakeep" - Favourites page: Show "Favourites | Karakeep" - Highlights page: Show "Highlights | Karakeep" - All Tags page: Show "All Tags | Karakeep" Improves SEO and user experience across all dashboard browsing pages. * refactor: use i18n translations for dashboard page titles Convert hardcoded page titles to use translations via generateMetadata: - Archive page: Uses common.archive translation - Favourites page: Uses lists.favourites translation - Highlights page: Uses common.highlights translation - All Tags page: Uses tags.all_tags translation Improves localization support across dashboard pages. * feat: add i18n translations to admin and settings page titles Convert hardcoded page titles to use translations via generateMetadata: - Admin Overview: Uses admin.admin_settings translation - AI Settings: Uses settings.ai.ai_settings translation - API Keys: Uses settings.api_keys.api_keys translation - Feed Settings: Uses settings.feeds.rss_subscriptions translation - Import/Export: Uses settings.import.import_export translation - Account Info: Uses settings.info.user_info translation - Subscription: Uses settings.subscription.subscription translation - Webhooks: Uses settings.webhooks.webhooks translation Improves localization support across admin and settings pages. * revert accidental commit * more translations * more fixes --------- Co-authored-by: Claude <noreply@anthropic.com>
* feat: Add tag search and pagination (#1987)Mohamed Bassem2025-09-281-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Add tag search and use in the homepage * use paginated query in the all tags view * wire the load more buttons * add skeleton to all tags page * fix attachedby aggregation * fix loading states * fix hasNextPage * use action buttons for load more buttons * migrate the tags auto complete to the search api * Migrate the tags editor to the new search API * Replace tag merging dialog with tag auto completion * Merge both search and list APIs * fix tags.list * add some tests for the endpoint * add relevance based sorting * change cursor * update the REST API * fix review comments * more fixes * fix lockfile * i18n * fix visible tags
* fix(web): Handle user deletion more gracefullyMohamed Bassem2025-09-141-4/+22
|
* feat: A better looking catch all error boundaryMohamed Bassem2025-09-141-2/+39
|
* feat: Add a bookmark skeleton for searchMohamed Bassem2025-08-271-2/+2
|
* fix: fix nextjs warning about dialog without title in bookmark previewMohamedBassem2025-08-241-1/+12
|
* fix(web): fix query getting rest when bookmark preview is closed. fixes #1521MohamedBassem2025-08-241-0/+8
|
* deps: Upgrade expo & nextjs to react 19 (#1565)Mohamed Bassem2025-08-205-27/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Attempt to upgrade expo 53 * Attempt upgrade nextjs * Fix a bunch of peer deps * upgrade some docs deps * fix typecheck * update the shadcn calendar component * more fixes * more fixes * revert ollama upgrade * update react version to use carets * remove react-select from landing * fix the typescript error caused by customFetch * upgrade the new grid user setting to nextjs 15 * mobile: enable react canary to support react 19.1 * upgrade react native menu * fix navigation context error
* refactor: Extract meilisearch as a pluginMohamedBassem2025-07-271-2/+2
|
* feat(web): Slightly nicer looking tags pageMohamed Bassem2025-07-191-11/+1
|
* feat(workers): Allow custmoizing max parallelism for a bunch of workers. ↵Mohamed Bassem2025-07-051-1/+1
| | | | Fixes #724
* chore: migrate away from eslint to oxlint (#1642)xuatz2025-06-224-0/+4
| | | | | | | * chore: migrate away from eslint to oxlint * revert turbo task name lint * it seems like we can remove the seemingly default globals
* feat: add user customisable default archive display behaviour (#1505)xuatz2025-06-012-2/+28
| | | | | | | | | | | | | | | | | * fix typo * implementation * bug fix and refactoring * Use nuqs for searchParam management * remove the todo about the tests * fix tests --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* feat: Allow defaulting to reader mode when clicking on bookmarks. Fixes #662Mohamed Bassem2025-05-241-18/+24
|
* fix(search): add new relevance sort order (#1392)xuatz2025-05-181-1/+9
| | | | | | | | | | | * fix(search): add new relevance sort order * address pr comments * some minor fixes --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* chore: Rename hoarder packages to karakeepMohamedBassem2025-04-122-2/+2
|
* fix: Add missing list to PWA. Fixes #884Mohamed Bassem2025-02-231-2/+18
|
* feat: Add support for smart lists (#802)Mohamed Bassem2025-01-021-6/+10
| | | | | | | | | | | | | | | | | | | * feat: Add support for smart lists * i18n * Fix update list endpoint * Add a test for smart lists * Add header to the query explainer * Hide remove from lists in the smart context list * Add proper validation to list form --------- Co-authored-by: Deepak Kapoor <41769111+orthdron@users.noreply.github.com>
* refactor: Refactor sidebar into a shared componentMohamed Bassem2024-12-301-23/+66
|
* feat: Change the admin page to be tabbed similar to that of the settings pageMohamed Bassem2024-12-301-26/+0
|
* feat: Implement the all highlights page. Fixes #620Mohamed Bassem2024-12-281-0/+20
|
* feat: Add basic pagination to searchBookmarks tRPCMohamed Bassem2024-12-221-2/+8
|
* feature: Add an admin notice about the usage of the legacy container imagesMohamed Bassem2024-12-211-6/+9
|
* feature: Add i18n support. Fixes #57 (#635)Mohamed Bassem2024-11-173-5/+12
| | | | | | | | | | | | | * 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(web): Add the ability to view the bookmarks of a particular rss feedMohamed Bassem2024-11-031-0/+31
|
* ui: Redesign the settings page and move it to its own layoutMohamed Bassem2024-10-271-60/+0
|
* fix(web): Fix settings tab overflow on mobile layoutsMohamedBassem2024-10-131-1/+1
|
* feature(web): Introduce a new sticky navbar. Fixes 520 (#515)Md Saban2024-10-125-45/+24
| | | | | | | | | | | | | * ui: add global header * fix: design fixes * fix: tests * fix navbar background, hide y scrollbar and change sidebar footer to show version --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* feature(web): Async validate JWT account and sign out the user if they no ↵MohamedBassem2024-10-051-0/+2
| | | | longer exist
* feature(web): Change the settings page to be tabbedMohamedBassem2024-10-052-346/+49
|
* fix(web): Simplify the language for inference settingsMohamedBassem2024-10-052-9/+9
|
* feature(web): Add the ability to customize the inference prompts. Fixes #170MohamedBassem2024-09-292-0/+336
|
* feature(web): Move bookmark imports into settingsMohamedBassem2024-09-211-0/+4
|
* feat: Add bulk edit option for bookmarks. Fixes #84 (#259)Md Saban2024-07-014-9/+9
| | | | | | | | | | | | | | | | | * feat: add bulk edit option for bookmarks * fix: resolve comments * fix: resolve comments * fix: resolve comments * fix: resolve comments * rename bulk action store, simplify the bulk action toolbar --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* ui: refactor admin settings page (#249)Md Saban2024-06-291-282/+17
| | | | | | | | | | | | | | | * ui: refactor admin ui * fix: pr comments * chore: lint fix * chore: refactor * minor tweaks --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* ui: Changes for user settings page (#251)Md Saban2024-06-231-5/+10
| | | | | | | * fix: ui refactoring for user settings page * fix: type error * fix: pr comments
* ui(web): move layout selector to main screen (#252)Md Saban2024-06-234-21/+37
|
* docs: Change references from the old repo URL to the new oneMohamedBassem2024-05-191-3/+2
|
* feature: A new cleanups page to suggest ways to tidy up your bookmarksMohamedBassem2024-04-261-0/+21
|
* feature(web): Add ability to rename, merge and fast delete tags. Fixes #105 ↵Mohamed Bassem2024-04-251-7/+16
| | | | | | | (#125) * feature(web): Allow deleting tags from the all tags page * feature(web): Add ability to rename, merge and fast delete tags. Fixes #105
* ui(web): Show bookmark URL when maximizing a bookmarkMohamedBassem2024-04-245-4/+60
|
* feature: Allow recrawling bookmarks without running inference jobsMohamedBassem2024-04-201-2/+14
|
* feature: Nested lists (#110). Fixes #62Mohamed Bassem2024-04-191-9/+2
| | | | | * feature: Add support for nested lists * prevent moving the parent to a subtree
* fix: Differentiate between pending in db and in redis in admin job statsMohamedBassem2024-04-121-7/+11
|
* feature: Recrawl failed links from admin UI (#95)Ahmad Mujahid2024-04-111-5/+21
| | | | | * feature: Retry failed crawling URLs * fix: Enhancing visuals and some minor changes.
* feature(web): Allow uploading directly into lists/tags. Fixes #69MohamedBassem2024-04-096-28/+26
|
* feature: Extract hook logic into separate package and add a new action bar ↵MohamedBassem2024-04-071-1/+1
| | | | in bookmark preview