Skip to content

Feat/Create Pack Template from Video#1988

Merged
mikib0 merged 3 commits into
developmentfrom
feat/pack-template-from-video
Mar 21, 2026
Merged

Feat/Create Pack Template from Video#1988
mikib0 merged 3 commits into
developmentfrom
feat/pack-template-from-video

Conversation

@mikib0
Copy link
Copy Markdown
Collaborator

@mikib0 mikib0 commented Mar 21, 2026

No description provided.

@mikib0 mikib0 requested a review from Copilot March 21, 2026 14:33
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 21, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c2c0eb0d-aed6-4a4a-b08c-4d6c6316914f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/pack-template-from-video

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

Migrating from UI to YAML configuration.

Use the @coderabbitai configuration command in a PR comment to get a dump of all your UI settings in YAML format. You can then edit this YAML file and upload it to the root of your repository to configure CodeRabbit programmatically.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds TikTok video support to the “generate pack template from TikTok” flow in the API by extending the TikTok container to return/rehost either slideshow images or a video URL, and switching AI analysis for this endpoint to Google Gemini.

Changes:

  • Add videoUrl support end-to-end (container import response + API route prompt construction).
  • Switch /pack-templates/generate-from-tiktok AI provider from OpenAI to @ai-sdk/google (Gemini).
  • Add env validation/test env for GOOGLE_GENERATIVE_AI_API_KEY and update mobile copy to mention videos.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/api/test/setup.ts Adds test env var for Google Generative AI key.
packages/api/src/utils/env-validation.ts Adds GOOGLE_GENERATIVE_AI_API_KEY to validated env schema.
packages/api/src/schemas/packTemplates.ts Updates request schema description to include videos.
packages/api/src/routes/packTemplates/generateFromTikTok.ts Fetches videoUrl from container and sends video/images to Gemini for analysis.
packages/api/package.json Adds @ai-sdk/google dependency.
packages/api/drizzle/meta/_journal.json Records new migration snapshot metadata.
packages/api/drizzle/meta/0034_snapshot.json Drizzle snapshot update (reflects schema state).
packages/api/drizzle/0034_thin_spirit.sql Migration adding users.avatar_url.
packages/api/container_src/server.ts Extends TikTok import to handle videos + optional video rehosting to R2.
bun.lock Lockfile updates for new dependency and transitive upgrades.
apps/expo/lib/i18n/locales/en.json Updates TikTok import UI text to mention videos/slideshows.

Comment thread packages/api/src/utils/env-validation.ts
Comment thread packages/api/src/routes/packTemplates/generateFromTikTok.ts
Comment thread packages/api/container_src/server.ts Outdated
Comment on lines +345 to +346
console.log('TikTok API Parsed Response:', JSON.stringify(result, null, 2));

Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log('TikTok API Parsed Response:', JSON.stringify(result, null, 2)) will dump the full third-party response into logs, which can be very large and may include user/content metadata. Please remove this or guard it behind a debug flag and log only minimal fields needed for troubleshooting.

Copilot uses AI. Check for mistakes.
Comment thread packages/api/container_src/server.ts
@mikib0 mikib0 merged commit 8674e08 into development Mar 21, 2026
2 of 4 checks passed
@mikib0 mikib0 deleted the feat/pack-template-from-video branch March 21, 2026 14:42
andrew-bierman pushed a commit that referenced this pull request May 14, 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