Skip to content

Add mobile app groundwork for media assets and timelines - #246

Closed
s3rot0n1n wants to merge 2 commits into
mainfrom
t3/mobile-file-access-camera-sync
Closed

s3rot0n1n wants to merge 2 commits into
mainfrom
t3/mobile-file-access-camera-sync

Conversation

@s3rot0n1n

Copy link
Copy Markdown
Contributor

Summary

  • Add the mobile app product requirements document.
  • Extend media uploads with asset identity, capture time, dimensions, and video duration.
  • Add asset lookup and paginated timeline endpoints, with duplicate upload handling and migration 0009.

Testing

  • API unit suite: 194 tests passed.
  • Local stack integration suites for REST, MCP, and CLI passed against PostgreSQL and MinIO.
  • Typecheck and lint passed.

Rajat and others added 2 commits November 2, 2026 15:03
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Groundwork for the mobile app (docs/prds/mobile-app-prd.md, sections 5.2-5.4).

- Migration 0009 (additive): media.asset_id/taken_at/width/height/
  duration_ms/thumbnail_private, media_settings.private_thumbnails/
  thumbnail_fit, a unique (app_id, asset_id) index and a timeline index.
- REST and TUS uploads accept assetId and takenAt. A repeated assetId
  returns 409 asset_exists; a lost race removes the loser's stored files.
- Width, height and video duration are read with ffprobe at upload.
- POST /media/get/assets reports which asset IDs exist and whether sealed.
- GET /media/timeline returns sealed media by capture time with an
  opaque keyset cursor.
- Tests run real REST and TUS flows against PGlite and a fake S3, and the
  integration suite covers the new endpoints.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T09:50:36.306476Z e0b619b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

"upload-offset": "0",
"content-type": "application/offset+octet-stream",
},
body: new Uint8Array(png),
@s3rot0n1n

Copy link
Copy Markdown
Contributor Author

Let's not venture into B2C for now.

@s3rot0n1n s3rot0n1n closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants