Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Merge main into fix/recording-share-reliability-20260916
Richie McIlroydd93d4846c0d
diff --cc apps/web/app/api/mobile/[...route]/route.tsindex ddd391424,3298f890c..dd56af277--- a/apps/web/app/api/mobile/[...route]/route.ts+++ b/apps/web/app/api/mobile/[...route]/route.ts@@@ -2473,29 -2474,30 +2474,29 @@@ const createUpload = Effect.fn("Mobile.user.id,organizationId,);- const videoId = yield* repo.create({- ownerId: user.id,- orgId: organizationId,- name: getUploadTitle(input.fileName),- public: yield* Effect.tryPromise(() => getNewVideoPublic(organizationId)),- source: { type: "webMP4" },- bucketId: writable.bucketId,- storageIntegrationId: writable.storageIntegrationId,- folderId: Option.fromNullable(folderId),- width: Option.fromNullable(input.width),- height: Option.fromNullable(input.height),- duration: Option.fromNullable(input.durationSeconds),- metadata: Option.none(),- transcriptionStatus: Option.none(),- });-- yield* database.use((db) =>- db.insert(Db.videoUploads).values({- videoId,- total: input.contentLength ?? 0,- mode: "singlepart",- }),+ const videoId = yield* repo.create(+ {+ ownerId: user.id,+ orgId: organizationId,+ name: getUploadTitle(input.fileName),- public: serverEnv().CAP_VIDEOS_DEFAULT_PUBLIC,++ public: yield* Effect.tryPromise(() => getNewVideoPublic(organizationId)),+ source: { type: "webMP4" },+ bucketId: writable.bucketId,+ storageIntegrationId: writable.storageIntegrationId,+ folderId: Option.fromNullable(folderId),+ width: Option.fromNullable(input.width),+ height: Option.fromNullable(input.height),+ duration: Option.fromNullable(input.durationSeconds),+ metadata: Option.none(),+ transcriptionStatus: Option.none(),+ },+ {+ initialUpload: {+ total: input.contentLength ?? 0,+ mode: "singlepart",+ },+ },);-const rawFileKey = `${user.id}/${videoId}/raw-upload.${getFileExtension(input)}`;const upload = yield* writable.access.createUploadTarget(rawFileKey, {contentType: input.contentType,@@@ -2567,28 -2569,28 +2568,28 @@@ const createRecording = Effect.fn("Mobiuser.id,organizationId,);- const videoId = yield* repo.create({- ownerId: user.id,- orgId: organizationId,- name: getUploadTitle(input.fileName),- public: yield* Effect.tryPromise(() => getNewVideoPublic(organizationId)),- source: { type: "desktopSegments" },- bucketId: writable.bucketId,- storageIntegrationId: writable.storageIntegrationId,- folderId: Option.fromNullable(folderId),- width: Option.some(input.width),- height: Option.some(input.height),- duration: Option.none(),- metadata: Option.some({ source: "mobileCamera", fps: input.fps }),- transcriptionStatus: Option.none(),- });-- yield* database.use((db) =>- db.insert(Db.videoUploads).values({- videoId,- total: 0,- mode: "singlepart",- }),+ const videoId = yield* repo.create(+ {+ ownerId: user.id,+ orgId: organizationId,+ name: getUploadTitle(input.fileName),- public: serverEnv().CAP_VIDEOS_DEFAULT_PUBLIC,++ public: yield* Effect.tryPromise(() => getNewVideoPublic(organizationId)),+ source: { type: "desktopSegments" },+ bucketId: writable.bucketId,+ storageIntegrationId: writable.storageIntegrationId,+ folderId: Option.fromNullable(folderId),+ width: Option.some(input.width),+ height: Option.some(input.height),+ duration: Option.none(),+ metadata: Option.some({ source: "mobileCamera", fps: input.fps }),+ transcriptionStatus: Option.none(),+ },+ {+ initialUpload: {+ total: 0,+ mode: "singlepart",+ },+ },);return {