Commit Graph
84 Commits
Author SHA1 Message Date
yiling b7367bb129 refactor(storage): use original filenames and fix download UX
- Store uploaded files as files/{ulid}/{original-name} instead of files/{ulid}/raw
- Store transcoded videos as {stem}-{resolution}.mp4 (e.g. foo-720p.mp4)
- Store transcoded images as {stem}-{width}p.webp (e.g. foo-1920p.webp)
- Add download?: boolean param to presign - only sets Content-Disposition: attachment when true
- Local storage handler only sets Content-Disposition when ?download=1 query param is present
- Add POST /api/files/download-url endpoint for key-based single file downloads
  - Uses ResourceType.Asset for permission check
  - Validates key belongs to the asset's storage directory
- Fix existing download-links API to pass download: true to presign
- Fix breadcrumb navbar download: video shows resolution submenu, others download directly
- Fix video player download: calls download-url API, shows correct file type label
- Remove filename query param hack from presign URLs
- Add sanitizeFilename() and stemFromKey() utility helpers
- Add key field to VideoTranscode DTO interface
2026-07-02 17:39:23 +08:00
yiling 9b1890f57c feat(auth): allow setting user locale on signup 2026-07-01 19:23:49 +08:00
yiling 178670fdab feat(transcode): change video poster resolution to 480p 2026-07-01 12:45:16 +08:00
yiling 34a69a33bf fix(api): fix update team settings and make request schema type-safe 2026-06-30 14:41:50 +08:00
yiling 95f91cd4de feat(db): add custom migration to backfill totalFrames and startTimecode 2026-06-29 11:27:32 +08:00
yiling adb5f58535 fix(transcode): replace isNaN with isFinite to guard against Infinity frameRate 2026-06-29 10:55:28 +08:00
yiling eee7b5a677 feat(video): add SMPTE timecode support and format selection dropdown 2026-06-28 21:04:40 +08:00
yiling 837fe5bd7a feat(video): add frame-accurate video player and CFR proxy generation 2026-06-28 20:35:47 +08:00
yiling efd6163238 refactor(s3): remove automatic port appending to AWS_ENDPOINT_URL_S3 2026-06-25 18:46:14 +08:00
yiling 92801ba14a fix(core): make version stack sort index lookup deterministic
When creating a version stack, the sortIndex was previously extracted
by taking files[0] from the database query result. Because findMany
without orderBy is non-deterministic, this resulted in flakiness
where the sortIndex would sometimes be null (from file2) instead of
'abc' (from file1), causing tests to fail.

We now look up the first file specifically based on the ordered
fileIds array parameter.
2026-06-23 10:02:01 +08:00
yiling bdceda4cb6 refactor(share): use custom strongly-typed error classes 2026-06-22 20:48:47 +08:00
yiling df6e392bf6 feat(share): expose raw password on settings page 2026-06-22 20:32:46 +08:00
yiling 4806c63906 feat(metadata): add single user and multiple user custom fields 2026-06-22 11:27:00 +08:00
yiling 90ef063d43 feat(cli): add shumai-cli and token authentication 2026-06-21 12:35:12 +08:00
yiling b5ff76960f fix(cli): defer PID file cleanup to process exit event for graceful shutdowns 2026-06-20 13:05:50 +08:00
yiling ca0c2ece75 fix(cli): handle EPERM signal errors in isProcessRunning helper 2026-06-20 13:02:06 +08:00
yiling c8b1d521d8 fix(cli): open log files in write mode to truncate on startup 2026-06-20 12:59:58 +08:00
yiling 4bd5083ac1 fix(cli): remove unused watch import in daemon utility 2026-06-20 12:56:15 +08:00
yiling c6527650d0 fix(cli): bypass already running check if matching current process pid 2026-06-20 12:53:14 +08:00
yiling d4a1eff715 fix(cli): resolve Bun compatibility issue with WriteStream stdio redirection 2026-06-20 12:49:05 +08:00
yiling 463cd61cfd test(cli): resolve lint violations in daemon test file 2026-06-20 12:40:14 +08:00
yiling 93b4656939 feat(cli): add daemon mode and stop, logs, restart subcommands 2026-06-20 12:37:49 +08:00
yiling 1835016a9b fix(webui): use poster field instead of thumbnail for video notifications 2026-06-19 13:34:14 +08:00
yiling 5e92660d1c fix(webui): render sprite image scrubber for video upload notifications 2026-06-19 13:25:00 +08:00
yiling aa265c5322 fix(search): fix hasAny and hasNone operators on metadata filter 2026-06-19 11:29:26 +08:00
yiling a76dbdfc22 feat(share): improve share config page sidebars, layout options, and sorting 2026-06-19 10:22:20 +08:00
yiling 53c132e41d feat(auth): refine demo mode support using SHUMAI_DEMO_MODE API 2026-06-19 00:36:23 +08:00
yiling d84950d372 feat(transcode): set loglevel to warning for all ffmpeg commands 2026-06-18 11:57:38 +08:00
yiling f399d2c469 feat(embedding): defer embedding workflow, use transcoded assets, and execute chunks in separate activities 2026-06-18 10:57:22 +08:00
yiling ce457e1161 fix(s3): remove port from AWS_ENDPOINT_URL_S3 and sync with server port in local mode 2026-06-18 10:22:16 +08:00
yiling a69dd6a660 feat(server): allow customizing server port via SHUMAI_SERVER_PORT 2026-06-18 10:08:31 +08:00
yiling 1ad5720f42 fix(transcode): handle high-precision FPS using rational fractions 2026-06-17 22:55:01 +08:00
yiling 2aba1c898b feat(core): allow deleting builtin providers 2026-06-17 16:39:23 +08:00
yiling 0c89616a4e feat(api): use enum for API protocol in provider config 2026-06-17 16:07:48 +08:00
yiling 5111fcd6a5 refactor(transcode): address code review feedback on imports and dataFormatNames typing 2026-06-16 09:53:28 +08:00
yiling f16a8a7069 refactor(transcode): relocate TranscodeService to core and flatten API package 2026-06-16 09:47:27 +08:00
yiling 2220d35e40 regenerate providers 2026-06-15 22:42:11 +08:00
yiling 2858274e52 fix(core): inherit sortIndex when creating version stack container 2026-06-15 20:38:46 +08:00
yiling 45318d1eec fix(core): correctly query nextAsset for afterIndex reordering 2026-06-15 20:25:49 +08:00
yiling cf2546c861 migration(db): add C collation to sort_index column 2026-06-15 19:51:59 +08:00
yiling 1f640ede19 test(core): add test reproducing fractional indexing collation mismatch 2026-06-15 19:33:51 +08:00
yiling 6a63e99044 feat(sandbox): add pending domains support for network sandbox 2026-06-15 00:01:55 +08:00
yiling 8c55897d80 refactor(auth): remove BETTER_AUTH_URL configuration and set a default baseURL fallback 2026-06-14 15:01:44 +08:00
yiling fb76fbd970 feat(project): support adding existing team members and prioritize project-specific roles 2026-06-12 10:00:17 +08:00
yiling 5835c36cb5 refactor(trash): optimize cascade delete CTE queries and add rigorous edge-case tests
- Extracted recursive CTE cascade update to cascadeStatusToPendingPurge private helper

- Updated emptyTrash and expireTrashedAssets background job to use batch helper

- Added expireTrashedAssets GC test to verify date boundaries and recursive child marking

- Resolved typecast any warning in test
2026-06-11 16:40:21 +08:00
yiling f093b490c6 feat(trash): add recently-deleted banner and empty trash option for admin
- Added emptyTrash method in AssetService to purge trashed assets from DB and S3

- Added POST /projects/:projectId/empty-trash endpoint in project API

- Implemented unit and integration tests for service and API

- Prevented double click redirect in recently deleted folder

- Added top banner with Delete Now option in recently-deleted folder with confirmation dialog
2026-06-11 16:19:35 +08:00
yiling c910f22542 refactor(core): move starting symlink resolution to getDownloadLinks and simplify getProjectIds 2026-06-11 13:08:29 +08:00
yiling aed0676032 refactor(api): extract db query from download-links endpoint to service method 2026-06-11 13:06:01 +08:00
yiling ec42c4e9ff feat(file): add bulk download links API and frontend batch download dialog 2026-06-11 11:44:26 +08:00
yiling dfc66a110d Merge branch 'main' into feat/virtualize-file-list 2026-06-10 17:11:31 +08:00