aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc/routers/bookmarks.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(search): add new relevance sort order (#1392)xuatz2025-05-181-3/+19
| | | | | | | | | | | * fix(search): add new relevance sort order * address pr comments * some minor fixes --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* feat: Implement generic rule engine (#1318)Mohamed Bassem2025-04-271-0/+27
| | | | | | | | | | | | | | | | | * Add schema for the new rule engine * Add rule engine backend logic * Implement the worker logic and event firing * Implement the UI changesfor the rule engine * Ensure that when a referenced list or tag are deleted, the corresponding event/action is * Dont show smart lists in rule engine events * Add privacy validations for attached tag and list ids * Move the rules logic into a models
* fix: Add includeContent to search endpoint and document it in the docsMohamed Bassem2025-04-161-3/+1
|
* fix: Dont download html content by default in the bookmark grid. Fixes #1198Mohamed Bassem2025-04-131-11/+53
|
* feat: Allow editing the extracted content of an asset bookmarkMohamed Bassem2025-04-131-0/+20
|
* chore: Rename hoarder packages to karakeepMohamedBassem2025-04-121-12/+12
|
* fix: Deprecate the updateBookmarkText trpc endpoint and replace it with ↵MohamedBassem2025-04-081-1/+2
| | | | updateBookmark
* feat: Allow editing bookmark detailsMohamedBassem2025-04-081-26/+115
|
* feat(workers): Adds publisher and author og:meta tags to Bookmark (#1141)erik-nilcoast2025-03-221-0/+2
|
* fix: Harden getBookmarks endpoint against inconsistent bookmarks. Fixes #1094Mohamed Bassem2025-03-091-64/+58
|
* fix: Move away from JSON outputs to structured outputs. Fixes #1047Mohamed Bassem2025-03-021-1/+1
|
* refactor: Move the list logic into a separate modelMohamed Bassem2025-03-021-25/+4
|
* feat: Add a setting page to manage assets. Fixes #730Mohamed Bassem2025-02-231-151/+2
|
* feat: Add PDF screenshot generation and display (#995)Ahmad Mujahid2025-02-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Updated pdf2json to 3.1.5 * Extract and store a screenshot from PDF files using pdf2pic * Installing graphicsmagick and ghostscript * Generate Missing PDF screenshot with tidyAssets worker for backward support * Display PDF screenshot instead of the PDF in web if it exists. * Display PDF screenshot in mobile app if exists. * Updated pnpm-lock.yaml * Removed console.log * Revert the unnecessary changes in package.json * Revert pnpm-lock changes * Prevent rendering PDF files if the screenshot is not generated * refactor: replace useEffect with useMemo for section initialization * feat: show PDF file download button and handle large PDFs by defaulting to screenshot view * feat: add file size to openapi spec * feature: Add Assets preprocessing in fix mode to admin actions * i18n: add reprocess_assets_fix_mode translation * i18n: Add missing ar translations * A bunch of fixes * Fix openspec schema --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* fix: Dont rearchive singlefile uploads and consider them as archivesMohamed Bassem2025-02-021-0/+6
|
* feat: Update the last modifiedAt timestamp when tags of the bookmark changeMohamed Bassem2025-02-011-0/+9
|
* feat: Add a new modifiedAt field to bookmarks table. Fixes #952Mohamed Bassem2025-02-011-13/+24
|
* feat: Change webhooks to be configurable by usersMohamed Bassem2025-01-191-0/+6
|
* feat: Add Bookmark Sorting Feature (#812)Daksh Pareek2025-01-121-11/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: add bookmark sorting by creation date - Add sort order toggle in GlobalActions component - Implement ascending/descending sort functionality - Update translations for sorting feature in all languages - Add sort order icons and dropdown menu - Maintain sort preference in URL params * feat: add bookmark sorting by creation date - Add sort order toggle in GlobalActions component - Implement ascending/descending sort functionality - Update translations for sorting feature in all languages - Add sort order icons and dropdown menu - Maintain sort preference in URL params during session Note: Sort order resets to default on page refresh, server-side persistence can be implemented in future enhancement * feat: Add global sort by date feature with shared sort order state - Implement global sort order functionality using a shared Zustand store (`useSortOrder` hook). - Update `getBookmarks` and `searchBookmarks` endpoints to accept a `sortOrder` parameter. - Refactor code to import `ZSortOrder` from shared types (`bookmarks.ts`), ensuring consistency across the codebase. - Update components (`UpdatableBookmarksGrid`, `bookmark-search`) to use the shared `useSortOrder` hook. - Remove unused `zSortBy` definition from `packages/shared/types/bookmarks.ts` to avoid confusion. - Ensure consistent naming conventions by prefixing Zod inferred types with `Z`. - Clean up code and address previous PR feedback comments. * tiny fixes and fixing TS errors --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* feat: Support customizing the summarization prompt. Fixes #731Mohamed Bassem2025-01-121-0/+12
|
* feat: Add support for singlefile extension uploads. #172Mohamed Bassem2025-01-111-5/+36
|
* feat: Expose the search functionality in the REST APIMohamed Bassem2025-01-051-19/+9
|
* fix: Change search endpoint to accept query as raw stringMohamed Bassem2025-01-041-5/+7
|
* feat: Add support for smart lists (#802)Mohamed Bassem2025-01-021-0/+30
| | | | | | | | | | | | | | | | | | | * 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>
* feat: Introduce advanced search capabilities (#753)Mohamed Bassem2024-12-311-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | * feat: Implement search filtering in the backend * feat: Implement search language parser * rename matcher name * Add ability to interleve text * More fixes * be more tolerable to parsing errors * Add a search query explainer widget * Handle date parsing gracefully * Fix the lockfile * Encode query search param * Fix table body error * Fix error when writing quotes
* refactor: Move asset preprocessing to its own worker out of the inference workerMohamed Bassem2024-12-261-2/+8
|
* feat: Add basic pagination to searchBookmarks tRPCMohamed Bassem2024-12-221-2/+33
|
* feature: Store crawling status code and allow users to find broken links. ↵Mohamed Bassem2024-12-081-2/+57
| | | | Fixes #169
* feature: Allow setting bookmark metadata during creationMohamed Bassem2024-11-171-3/+6
|
* feature(web): Add the ability to view the bookmarks of a particular rss feedMohamed Bassem2024-11-031-0/+14
|
* feature: Archive videos using yt-dlp. Fixes #215 (#525)kamtschatka2024-10-281-0/+5
| | | | | | | | | | | | | | | | | | | | | * Allow downloading more content from a webpage and index it #215 Added a worker that allows downloading videos depending on the environment variables refactored the code a bit added new video asset updated documentation * Some tweaks * Drop the dependency on the yt-dlp wrapper * Update openapi specs * Dont log an error when the url is not supported * Better handle supported websites that dont download anything --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* fix: Index the summary in searchMohamed Bassem2024-10-271-1/+2
|
* feature: Add a summarize with AI button for linksMohamed Bassem2024-10-271-0/+69
|
* feature(api): Add REST APIs to manipulate lists and tags for bookmarksMohamed Bassem2024-10-201-24/+3
|
* refactor: Start tracking bookmark assets in the assets tableMohamedBassem2024-10-061-51/+105
|
* refactor: Include userId in the assets tableMohamedBassem2024-10-061-0/+1
|
* fix: Drop the usage of useCursorV2 from the serverMohamedBassem2024-10-051-17/+11
|
* feature: Persevere the source URL of clipped texts from the extension.MohamedBassem2024-10-051-2/+13
| | | | Fixes #448
* feature(web): Add ability to manually trigger full page archives. Fixes #398 ↵kamtschatka2024-09-301-1/+7
| | | | | | | | | | | | | (#418) * [Feature Request] Ability to select what to "crawl full page archive" #398 Added the ability to start a full page crawl for links and also in bulk operations added the ability to refresh links as a bulk operation as well * minor icon and wording changes --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* fix(web):Add validation on updateTags request to ensure that an empty ↵kamtschatka2024-09-261-10/+24
| | | | | | | | | | | | tagName doesn't attach all tags to a bookmark #421 (#428) * [Bug Report] Importing bookmarks adds all tags to all bookmarks #421 fixed an issue that caused all existing tags to be assigned to a new bookmark * Add validation on the input of update tags to ensure that its not empty --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* feature(web): Show attachments and allow users to manipulate them.MohamedBassem2024-09-221-7/+130
|
* feature(web): Preserve title, tags and createdAt when importing a netscape ↵MohamedBassem2024-09-211-0/+1
| | | | html. Fixes #401
* feature(cli): Allow updating tags/lists from CLI (#211)kamtschatka2024-07-271-12/+43
| | | | | | | | | | | | * Improve the CLI #209 added the possibility to assign tags to bookmarks while creating added the possibility to assign a newly created to a list right away added the possibility to add and remove tags from bookmarks * minor tweaks --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* fix: async/await issues with the new queue (#319)kamtschatka2024-07-211-5/+5
|
* refactor: Replace the usage of bullMQ with the hoarder sqlite-based queue (#309)Mohamed Bassem2024-07-211-3/+3
|
* refactor: fixed typos in BookmarkTypes (#268)kamtschatka2024-07-011-3/+3
|
* fix: Fix duplicate bookmarks in links with assetsMohamedBassem2024-07-011-1/+5
|
* refactor: added the bookmark type to the database (#256)kamtschatka2024-07-011-45/+60
| | | | | | | | | | | | | | | | | * 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>
* refactor: remove redundant code from crawler worker and refactor handling of ↵kamtschatka2024-06-291-33/+17
| | | | | | | | | | | | | asset types (#253) * 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 * revert silentDeleteAsset and hide better-sqlite3 --------- Co-authored-by: MohamedBassem <me@mbassem.com>
* refactor: extract assets into their own database table. #215 (#220)kamtschatka2024-06-231-20/+65
| | | | | | | | | | | | | | | | | | | * Allow downloading more content from a webpage and index it #215 added a new table that contains the information about assets for link bookmarks created migration code that transfers the existing data into the new table * Allow downloading more content from a webpage and index it #215 removed the old asset columns from the database updated the UI to use the data from the linkBookmarkAssets array * generalize the assets table to not be linked in particular to links * fix migrations post merge * fix missing asset ids in the getBookmarks call --------- Co-authored-by: MohamedBassem <me@mbassem.com>