aboutsummaryrefslogtreecommitdiffstats
path: root/packages/e2e_tests/tests/api (unfollow)
Commit message (Collapse)AuthorFilesLines
2026-01-18feat: Add attachedBy field to update tags endpoint (#2281)Mohamed Bassem1-0/+70
* feat: Add attachedBy field to updateTags endpoint This change allows callers to specify the attachedBy field when updating tags on a bookmark. The field defaults to "human" if not provided, maintaining backward compatibility with existing code. Changes: - Added attachedBy field to zManipulatedTagSchema with default "human" - Updated updateTags endpoint to use the specified attachedBy value - Created mapping logic to correctly assign attachedBy to each tag * fix(cli): migrate bookmark source in migration command * fix * reduce queries --------- Co-authored-by: Claude <noreply@anthropic.com>
2025-12-27fix(tests): fix the asset upload testsMohamed Bassem2-21/+9
2025-11-29feat: Add automated bookmark backup feature (#2182)Mohamed Bassem1-0/+285
* feat: Add automated bookmark backup system Implements a comprehensive automated backup feature for user bookmarks with the following capabilities: Database Schema: - Add backupSettings table to store user backup preferences (enabled, frequency, retention) - Add backups table to track backup records with status and metadata - Add BACKUP asset type for storing compressed backup files - Add migration 0066_add_backup_tables.sql Background Workers: - Implement BackupSchedulingWorker cron job (runs daily at midnight UTC) - Create BackupWorker to process individual backup jobs - Deterministic scheduling spreads backup jobs across 24 hours based on user ID hash - Support for daily and weekly backup frequencies - Automated retention cleanup to delete old backups based on user settings Export & Compression: - Reuse existing export functionality for bookmark data - Compress exports using Node.js built-in zlib (gzip level 9) - Store compressed backups as assets with proper metadata - Track backup size and bookmark count for statistics tRPC API: - backups.getSettings - Retrieve user backup configuration - backups.updateSettings - Update backup preferences - backups.list - List all user backups with metadata - backups.get - Get specific backup details - backups.delete - Delete a backup - backups.download - Download backup file (base64 encoded) - backups.triggerBackup - Manually trigger backup creation UI Components: - BackupSettings component with configuration form - Enable/disable automatic backups toggle - Frequency selection (daily/weekly) - Retention period configuration (1-365 days) - Backup list table with download and delete actions - Manual backup trigger button - Display backup stats (size, bookmark count, status) - Added backups page to settings navigation Technical Details: - Uses Restate queue system for distributed job processing - Implements idempotency keys to prevent duplicate backups - Background worker concurrency: 2 jobs at a time - 10-minute timeout for large backup exports - Proper error handling and logging throughout - Type-safe implementation with Zod schemas * refactor: simplify backup settings and asset handling - Move backup settings from separate table to user table columns - Update BackupSettings model to use static methods with users table - Remove download mutation in favor of direct asset links - Implement proper quota checks using QuotaService.checkStorageQuota - Update UI to use new property names and direct asset downloads - Update shared types to match new schema Key changes: - backupSettingsTable removed, settings now in users table - Backup downloads use direct /api/assets/{id} links - Quota properly validated before creating backup assets - Cleaner separation of concerns in tRPC models * migration * use zip instead of gzip * fix drizzle * fix settings * streaming json * remove more dead code * add e2e tests * return backup * poll for backups * more fixes * more fixes * fix test * fix UI * fix delete asset * fix ui * redirect for backup download * cleanups * fix idempotency * fix tests * add ratelimit * add error handling for background backups * i18n * model changes --------- Co-authored-by: Claude <noreply@anthropic.com>
2025-11-23tests: Add a test for listing listsMohamed Bassem1-0/+35
2025-11-08tests: fix crawling and search e2e tests (#2105)Mohamed Bassem3-23/+69
* tests: Attempt to fix flaky tests * fix internal address * fix assets tests
2025-10-11tests: Add a test for the GET /bookmarks/bookmarkId/lists apiMohamed Bassem1-0/+48
2025-09-28feat: Add tag search and pagination (#1987)Mohamed Bassem1-0/+101
* 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
2025-07-27fix: Fix package boundary violationsMohamedBassem2-4/+6
2025-06-21fix: Change public image's signed tokens to be time aligned for better cachingMohamed Bassem1-0/+8
2025-06-01feat: Allow specifying the overwrite mode for singlefile archives. Fixes #1125Mohamed Bassem1-35/+239
2025-06-01feat: Add support for public lists (#1511)Mohamed Bassem1-0/+322
* WIP: public lists * Drop viewing modes * Add the public endpoint for assets * regen the openapi spec * proper handling for different asset types * Add num bookmarks and a no bookmark banner * Correctly set page title * Add a not-found page * merge the RSS and public list endpoints * Add e2e tests for the public endpoints * Redesign the share list modal * Make NEXTAUTH_SECRET not required * propery render text bookmarks * rebase migration * fix public token tests * Add more tests
2025-05-31feat: Generate RSS feeds from lists (#1507)Mohamed Bassem1-0/+155
* refactor: Move bookmark utils from shared-react to shared * Expose RSS feeds for lists * Add e2e tests * Slightly improve the look of the share dialog * allow specifying a limit in the rss endpoint
2025-05-18feat(api): Expose the endpoint to create a new tagMohamed Bassem1-21/+6
2025-05-18refactor: Migrate from NextJs's API routes to Hono based routes for the API ↵Mohamed Bassem1-2/+2
(#1432) * Setup Hono and migrate the highlights API there * Implement the tags and lists endpoint * Implement the bookmarks and users endpoints * Add the trpc error code adapter * Remove the old nextjs handlers * fix api key not found handling * Fix trpc error handling * Fix 204 handling * Fix search ordering * Implement the singlefile endpoint * Implement the asset serving endpoints * Implement webauth * Add hono as a catch all route under api * fix tests
2025-04-21chore: rename missing files/conf from Hoarder to Karakeep (#1280)adripo6-24/+24
* refactor: Rename remaining project configuration from Hoarder to Karakeep * some fixes --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
2025-04-15fix: Add password salt to the user tableMohamed Bassem1-2/+2
2025-04-13feat: Add an MCP server for karakeepMohamed Bassem1-0/+1
2025-04-12chore: Rename hoarder packages to karakeepMohamedBassem6-6/+12
2025-03-11feat: Add endpoints for whoami and user stats. Fixes #1113Mohamed Bassem1-0/+102
2025-01-11feat: Add support for singlefile extension uploads. #172Mohamed Bassem1-0/+51
2025-01-05feat: Expose the search functionality in the REST APIMohamed Bassem1-0/+109
2025-01-04feat: Expose asset manipulation endpoints in the REST APIMohamed Bassem1-0/+162
2025-01-02feat: Add support for smart lists (#802)Mohamed Bassem1-0/+47
* 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>
2024-12-30chore: Setup and add e2e tests for the API endpointsMohamed Bassem5-0/+1064