aboutsummaryrefslogtreecommitdiffstats
path: root/packages/e2e_tests/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat: Add automated bookmark backup feature (#2182)Mohamed Bassem2025-11-291-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>
* tests: Add a test for listing listsMohamed Bassem2025-11-231-0/+35
|
* tests: fix crawling and search e2e tests (#2105)Mohamed Bassem2025-11-084-42/+80
| | | | | | | * tests: Attempt to fix flaky tests * fix internal address * fix assets tests
* tests: Add a test for the GET /bookmarks/bookmarkId/lists apiMohamed Bassem2025-10-111-0/+48
|
* feat: Add tag search and pagination (#1987)Mohamed Bassem2025-09-281-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
* fix: Fix package boundary violationsMohamedBassem2025-07-272-4/+6
|
* feat: Add support for S3 as an asset storage layer (#1703)Mohamed Bassem2025-07-044-0/+1341
| | | | | | | | | * feat: Add support for S3 as an asset storage layer. Fixes #305 * some minor fixes * use bulk deletion api * stream the file to s3
* fix: Change public image's signed tokens to be time aligned for better cachingMohamed Bassem2025-06-211-0/+8
|
* deps: upgrade to pnpm@9.15.9 (#1544)xuatz2025-06-081-2/+2
| | | | | | | | | | | | | * feat: upgrade to pnpm@9.15.9 * extra stuff * unpin mobile deps * unpin root package.json deps too --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* feat: Allow specifying the overwrite mode for singlefile archives. Fixes #1125Mohamed Bassem2025-06-011-35/+239
|
* feat: Add support for public lists (#1511)Mohamed Bassem2025-06-011-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
* feat: Generate RSS feeds from lists (#1507)Mohamed Bassem2025-05-311-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
* feat(api): Expose the endpoint to create a new tagMohamed Bassem2025-05-181-21/+6
|
* refactor: Migrate from NextJs's API routes to Hono based routes for the API ↵Mohamed Bassem2025-05-181-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
* chore: rename missing files/conf from Hoarder to Karakeep (#1280)adripo2025-04-217-25/+25
| | | | | | | | | * refactor: Rename remaining project configuration from Hoarder to Karakeep * some fixes --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* tests: Add some simple crawler testsMohamed Bassem2025-04-161-0/+100
|
* fix: Add password salt to the user tableMohamed Bassem2025-04-151-2/+2
|
* feat: Add an MCP server for karakeepMohamed Bassem2025-04-131-0/+1
|
* chore: Rename hoarder packages to karakeepMohamedBassem2025-04-126-6/+12
|
* feat: Add endpoints for whoami and user stats. Fixes #1113Mohamed Bassem2025-03-111-0/+102
|
* feat: Add support for singlefile extension uploads. #172Mohamed Bassem2025-01-111-0/+51
|
* feat: Expose the search functionality in the REST APIMohamed Bassem2025-01-051-0/+109
|
* feat: Expose asset manipulation endpoints in the REST APIMohamed Bassem2025-01-041-0/+162
|
* feat: Add support for smart lists (#802)Mohamed Bassem2025-01-021-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>
* chore: Setup and add e2e tests for the API endpointsMohamed Bassem2024-12-305-0/+1064