Skip to content

feat: larger default camera, 60% cap, scissors on the trim tool - #992

Merged
EtienneLescot merged 2 commits into
mainfrom
feat/camera-size-scissors
Oct 3, 2026
Merged

EtienneLescot merged 2 commits into
mainfrom
feat/camera-size-scissors

Conversation

@EtienneLescot

@EtienneLescot EtienneLescot commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Picture-in-picture camera: default size 25% → 40%, maximum 50% → 60% (WEBCAM_SIZE_MAX, DEFAULT_WEBCAM_SIZE_PRESET, the project default). Projects that stored a size keep it; a stored size above 60 still clamps to 60.
  • Timeline: the trim tool's icon is now scissors (Scissors, as on the trim lane pills and the trim inspector), mirrored in the website recreation.
  • Docs: the product-demo guide's size range and default, in all 8 website locales.

Tests

  • Updated the tests that pinned the old bounds (compositeLayout, sceneDescription, editorSettings, RightPanes.layout); the circle roundness test pins its own size instead of following the default.
  • npm run test, both tsc configs and npm run lint pass locally.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Picture-in-picture camera size can now be adjusted from 15% to 60% of the frame, up from a 50% maximum. The default size is now 40%, up from 25%.
  • Style
    • The Cut tool now uses a scissors icon.

The picture-in-picture camera opened at 25%, too small to read a face once a zoom shrinks it, and stopped at 50%. Existing projects keep the size they stored.
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
AGENTS.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 093130ed-cc9d-4049-9afe-20b6ba0e8a6f
📥 Commits

Reviewing files that changed from the base of the PR and between 746277d and fc2a794.

📒 Files selected for processing (17)
  • src/components/ai-edition/RightPanes.layout.test.tsx
  • src/components/ai-edition/v4/V4Timeline.tsx
  • src/components/video-editor/types.ts
  • src/lib/ai-edition/store/editorSettings.test.ts
  • src/lib/compositeLayout.test.ts
  • src/lib/compositeLayout.ts
  • src/lib/projectDefaults.ts
  • src/native/sceneDescription.test.ts
  • website/docs/guides/product-demo-video.md
  • website/i18n/de/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
  • website/i18n/es/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
  • website/i18n/fr/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
  • website/i18n/ja/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
  • website/i18n/pt-BR/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
  • website/i18n/zh-CN/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
  • website/i18n/zh-TW/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
  • website/src/components/Recreation/index.tsx

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

The Picture-in-Picture webcam size maximum changes from 50% to 60%, and its default changes from 25% to 40%. The Cut tool icon changes from SplitSquareHorizontal to Scissors in the video editor timeline and website tool palette.

Changes

Picture-in-Picture webcam sizing

Layer / File(s) Summary
Webcam size range and default
src/components/video-editor/types.ts, src/lib/projectDefaults.ts, src/lib/compositeLayout.ts, src/lib/*test.ts, src/components/ai-edition/RightPanes.layout.test.tsx, src/lib/ai-edition/store/editorSettings.test.ts, src/native/sceneDescription.test.ts, website/docs/guides/product-demo-video.md, website/i18n/*/docusaurus-plugin-content-docs/current/guides/product-demo-video.md
The maximum webcam size changes from 50% to 60%, while the minimum remains 15%. The default changes from 25% to 40%. Tests and product-demo documentation reflect the updated range and default.

Cut tool icons

Layer / File(s) Summary
Replace the Cut tool icon
src/components/ai-edition/v4/V4Timeline.tsx, website/src/components/Recreation/index.tsx
The Cut tool uses the Scissors icon instead of SplitSquareHorizontal in both tool palettes.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to fc2a7

The camera-size change preserves the newly supported range and clamps larger values when read; the Cut icon change is presentational. No actionable merge-blocking issue was identified.

Security Architecture Review

Security architecture risk: 🔵 Low · up to fc2a7

The change remains limited to camera layout and existing project settings. Settings reads and scene construction retain finite-value checks and size limits. No introduced security issue was identified, but native persistence recovery and direct native inputs were not fully verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The supported effect is camera geometry in projects, previews, and exports consuming the shared setting. The inspected changes do not add identities, permissions, credentials, or remote entrypoints; no expansion into other tenants, services, or data stores was established.

Trust Boundaries and Controls

  • observed — The scene-construction path clamps webcam size before native consumption. The legacy native parameter producer accepts a settings snapshot, but the Rust webcam parameter handler applies only a lower limit, not an upper limit. That handler is unchanged by this PR; validation and reachability of every direct native caller remain unverified.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 9 files. (8 skipped: 8… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: the larger default camera size, 60% cap, and scissors icon for the trim tool.
Description check ✅ Passed The description explains the main changes and testing. It omits the template’s Related issue, Type of change, Release impact, Desktop impact, and Screenshots / video sections, but the summary and test…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 9 files. (8 skipped: 8 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@EtienneLescot
EtienneLescot merged commit db9ba2a into main Oct 3, 2026
21 checks passed
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.

1 participant