Commit Graph
61 Commits
Author SHA1 Message Date
yiling ec14e12b3f feat(transcode): implement new image and video transcode strategies with UI detail enhancements 2026-05-30 12:09:27 +08:00
yiling 1a865eac88 feat(notification): optimistically clear unread badge on mark all as read 2026-05-29 23:35:26 +08:00
yiling 3ba107bfa4 feat(notification): add unread sidebar count badge and fix project scope upload authorization check 2026-05-29 23:30:15 +08:00
yiling ff66d4af14 feat(notification): improve notification system with team settings and project-level toggles 2026-05-29 20:40:13 +08:00
yiling 048028007e feat(db): add HNSW index on asset_embeddings and natural sort collation on assets.name
- Add HNSW index on asset_embeddings.embedding using vector_cosine_ops (m=16,
  ef_construction=64) with hnsw.iterative_scan=relaxed_order for efficient
  filtered ANN queries
- Create ICU numeric collation and alter assets.name column to use it for
  natural sort (file2 < file10 instead of lexicographic ordering)
- Add B-tree index on assets.name with numeric collation for sort performance
- Add schema @@index annotations to match migration index names
- Add 7 tests verifying natural sort behaviour in both AssetService.listChildren
  and SearchService.search (Prisma ORM and raw-SQL paths)
2026-05-29 15:18:31 +08:00
yiling d8ae99788d refactor(search): delegate condition building to SqlQueryBuilder 2026-05-29 12:11:05 +08:00
yiling bb437a8487 refactor(search): unify search logic under SqlQueryBuilder 2026-05-29 11:50:03 +08:00
yiling 4f9c4db9ce feat(search): implement multi-chunk semantic search with segment timestamps 2026-05-29 11:00:23 +08:00
yiling 1855ca1405 perf(search): optimize pgvector semantic search query to use HNSW index 2026-05-29 00:06:02 +08:00
yiling a341c6d131 test(team): update settings test to include semanticSearchEnabled 2026-05-28 23:54:00 +08:00
yiling 2eb6ff6c0e feat(search): add semantic search with embeddings and search mode toggle 2026-05-28 20:14:11 +08:00
yiling a04392da41 refactor(ai): remove generic providers and hardcode gemini-embedding-2 in embedding activity 2026-05-28 14:55:59 +08:00
yiling 5173bb2a01 feat: remove all ai transcription related code and schema 2026-05-28 14:23:02 +08:00
yiling 89916a2950 refactor(metadata): rename field_id to field_key in AssetMetadataValue
Rename the database column from field_id to field_key and the Prisma
property from fieldId to fieldKey to better reflect that the column
stores human-readable metadata field keys, not internal database IDs.

This fixes a bug where AI autofill wrote internal DB IDs instead of
field keys, causing metadata values to not display in the UI.

- Add SQL migration to rename the column
- Update metadata, search, and asset services
- Fix agent-autofill workflow to map fields by key
- Update all related test suites
2026-05-28 12:38:07 +08:00
yiling 6d19293ed0 fix(transcode): allow updating read-only metadata during transcoding 2026-05-28 10:17:25 +08:00
yiling 11d2e89a48 refactor(workflow): enforce strict nested type safety for WorkflowTaskPayload 2026-05-28 09:48:05 +08:00
yiling 911e369782 refactor(workflow): split database and agent activities for strict database isolation 2026-05-27 23:40:14 +08:00
yiling fa53ffab02 fix(ui): prevent edits and validate read-only metadata fields 2026-05-27 23:08:10 +08:00
yiling c048ceef28 feat(video): add timestamp support to comments 2026-05-27 11:17:56 +08:00
yiling da9f6574a6 feat(metadata): add video_codec field and verbose codec name resolution 2026-05-26 15:41:12 +08:00
yiling 2a04c49b95 feat(metadata): add audio-related system metadata fields 2026-05-26 15:09:06 +08:00
yiling 6dd990474e fix: resolve lint and typecheck errors in API and Authz tests 2026-05-26 10:27:07 +08:00
yiling 442e0ffdf9 test(authz): add comprehensive resolveContext tests for all ResourceTypes 2026-05-26 09:23:46 +08:00
yiling 9f9549255d refactor(authz): move to domain-based authz and flatten routes 2026-05-25 23:51:37 +08:00
yiling 64cb85df78 fix(collection): use project root as folder tree root in selector 2026-05-25 22:33:48 +08:00
yiling 5037b27d81 feat(collection): support source folder and selector in collections 2026-05-25 20:26:03 +08:00
yiling 794e7b3367 feat(collection): implement saved search results as collections 2026-05-25 17:29:45 +08:00
yiling a0379964f9 fix(asset): prevent infinite recursion in copy and fix cross-project attachment scoping 2026-05-25 10:45:10 +08:00
yiling a1cc7229e2 fix(asset): resolve lint and type errors in cleanup refactor 2026-05-25 10:14:22 +08:00
yiling 4949b92be8 chore(prisma): add migration for cleanup job refactor and revert test-global-setup.ts 2026-05-25 10:04:32 +08:00
yiling 2e09ce6ab5 refactor(asset): optimize cleanup job and solidify GC with locking 2026-05-25 09:57:46 +08:00
yiling 5dc3bdb38e feat(asset): decouple logical assets from physical storage with StorageKey and implement O(1) copy 2026-05-25 00:52:45 +08:00
yiling c5fba746be feat(asset): add move to and copy to functionalities 2026-05-24 20:15:55 +08:00
yiling 3c0d058cdc fix: resolve lint error in upload service test 2026-05-24 18:08:17 +08:00
yiling caf99650b9 fix(backend,ui): fix version stack overcounting and ShareManager navigation issues 2026-05-24 16:55:08 +08:00
yiling 542d3895bd feat(ui): add file context menu enhancements and migrate share manager breadcrumb 2026-05-24 16:20:20 +08:00
yiling 313b14c5ae fix(ui): fix SlotClone error in file card by reformatting DropdownMenuTrigger 2026-05-24 10:04:52 +08:00
yiling 6655cdb767 feat(asset): convert purge log to structured format and add logging guide to AGENTS.md 2026-05-24 09:40:53 +08:00
yiling c990e77478 fix(ui): prevent UI freeze when deleting project and update AGENTS.md 2026-05-24 09:36:23 +08:00
yiling 062ece146f feat(asset): add detailed logging to asset purge job 2026-05-24 09:24:44 +08:00
yiling b6c2c59801 fix(asset): delete entire S3 directory for composite assets to clean up transcodes 2026-05-24 09:18:58 +08:00
yiling 6a2cb2c8c5 refactor(asset): add cleanup job lifecycle control and ordering 2026-05-23 23:57:46 +08:00
yiling 0ccd71eb59 fix(asset): fix type error in asset.test.ts 2026-05-23 23:52:28 +08:00
yiling 0053d3a22c fix(asset): remove dangerous cascades that orphan s3 files 2026-05-23 23:44:24 +08:00
yiling effec44870 feat(trash): implement two-stage trashcan and project cleanup 2026-05-23 23:26:43 +08:00
yiling f05247f372 refactor(project): address cleanup job robustness feedback from pr review 2026-05-23 19:06:23 +08:00
yiling 8bc275e446 feat(project): implement async project deletion and storage cleanup 2026-05-23 18:09:30 +08:00
yiling 308467f05d feat(versions): add version switching in stack detail page 2026-05-23 10:49:56 +08:00
yiling 0ac075539b feat(asset): refactor version stack to surface latest metadata and add UI support 2026-05-22 23:03:29 +08:00
yiling 71f2ebdd1a fix(comment): fix reply UI race condition and normalize session routing on agent reply 2026-05-22 10:57:55 +08:00