Commit Graph
170 Commits
Author SHA1 Message Date
Yiling-J 721a9c13d7 Merge pull request #30 from shumaiOne/feat/rename-metadata-field-key
refactor(metadata): rename field_id to field_key in AssetMetadataValue
2026-05-28 12:39:49 +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 904d9d7eac refactor(agent): make AgentExecutionContext 100% type-safe
- Use generated Prisma types to precisely define AgentExecutionContext properties
- Make sessionId public in DatabaseSessionStorage and use instanceof type guard
- Explicitly type getAgentChatContextActivity and getAgentAutofillContextActivity returns
- Clean up all 'as any' casts and ESLint disable comments
- Refactor agent.test.ts to cast Session with DatabaseSessionMetadata
2026-05-28 11:43:42 +08:00
yiling 407b6359f2 fix(ui): optimize comment polling and remove unused comments endpoint 2026-05-28 10:59:08 +08:00
yiling 023f256e00 refactor(error): refactor standard throws to non-retryable ApplicationFailure in workflows and activities 2026-05-28 10:43:54 +08:00
yiling afeb5e9899 fix(transcode): fix missing thumbnail and sprite generation in transcoding workflow 2026-05-28 10:39:12 +08:00
yiling 6d19293ed0 fix(transcode): allow updating read-only metadata during transcoding 2026-05-28 10:17:25 +08:00
yiling 3b08ade55d refactor(workflow): throw non-retryable ApplicationFailure for validation errors 2026-05-28 09:57:30 +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 7fc338e2e5 fix(ui): pin file selection bottom bar to list view bottom 2026-05-27 23:11:49 +08:00
yiling fa53ffab02 fix(ui): prevent edits and validate read-only metadata fields 2026-05-27 23:08:10 +08:00
yiling d4e681fcdc fix(ui): enable independent sidebar scrolling in file list page 2026-05-27 22:14:29 +08:00
yiling aea79cd210 feat(chat): enable typing during annotation, increase line thickness, and add draw badge 2026-05-27 22:05:10 +08:00
yiling 03cc43ef30 feat(auth): redesign login and signup pages for premium visual aesthetics 2026-05-27 16:43:18 +08:00
yiling 08b9c7ae0e fix(comment): restrict timestamp capture toggle and badges to video files 2026-05-27 16:16:32 +08:00
yiling 1a8712175e fix(comment): set leading-none on badge to ensure second line wraps cleanly without pushing 2026-05-27 16:09:05 +08:00
yiling 23ef83a0b5 feat(comment): unselect comment card when starting video playback 2026-05-27 15:49:18 +08:00
yiling f65401bb0a feat(comment): support selectable message card in comment list with custom select callbacks 2026-05-27 15:47:29 +08:00
yiling 5b685cd0d3 feat(comment): move timestamp badge to the beginning of the comment content area 2026-05-27 15:22:49 +08:00
yiling b5ecf53998 feat(comment): inline timestamp badge and auto-pause video on typing 2026-05-27 11:42:51 +08:00
yiling c048ceef28 feat(video): add timestamp support to comments 2026-05-27 11:17:56 +08:00
yiling ebd32923b9 feat(ui): add breathing animation to upload icon 2026-05-27 10:19:42 +08:00
yiling 331899f0e4 refactor(ui): use shadcn button and tooltip in sidebar 2026-05-27 09:40:25 +08:00
yiling d3b8e602b6 feat(ui): update sidebar icons and alignment 2026-05-26 23:24:59 +08:00
yiling be2e03c1bb fix local storage video preview 2026-05-26 19:38:57 +08:00
yiling ffc6922db2 fix(ui): prevent flexbox height explosion in right sidebar 2026-05-26 16:10:56 +08:00
yiling 41f0b9d80c fix(ui): fix right sidebar scrolling in file detail page 2026-05-26 15:54:39 +08:00
yiling 801ea9669b fix(transcode): guard against non-numeric ffprobe bit-depth values 2026-05-26 15:43:26 +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 1bfbcc0df3 fix message card 2026-05-26 09:53:13 +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 00dc7f7bda fix(ui): remove filter icon and fix popover overflow on detail pages 2026-05-25 19:45:04 +08:00
yiling c72ecc051d test(collection): fix lint errors in api test 2026-05-25 19:37:41 +08:00
yiling 421939f840 test(collection): add api tests for collection endpoints 2026-05-25 17:34:25 +08:00
yiling 794e7b3367 feat(collection): implement saved search results as collections 2026-05-25 17:29:45 +08:00
yiling 5fad56064a fix(lint): remove unused import in sort-control 2026-05-25 15:45:44 +08:00
yiling 73cd87a261 fix(search): address code review feedback on colors, race conditions, and utilities 2026-05-25 15:33:56 +08:00
yiling 1a4721e769 feat(search): redesign file list search filter UI with premium dialog console 2026-05-25 15:15:57 +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