Skip to content

fix(timeline): remove the dead Add Full Camera toolbar button - #466

Merged
EtienneLescot merged 1 commit into
mainfrom
claude/remove-nonfunctional-button-246b9e
Aug 22, 2026
Merged

fix(timeline): remove the dead Add Full Camera toolbar button#466
EtienneLescot merged 1 commit into
mainfrom
claude/remove-nonfunctional-button-246b9e

Conversation

@EtienneLescot

@EtienneLescot EtienneLescot commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the "Add Full Camera" icon button from the timeline toolbar (Maximize2, V4Timeline.tsx) — it always looked clickable but silently no-ops (addCameraFullscreen refuses to write a region) on any project without a webcam clip, per the [Bug]: Add Full Camera is offered on projects with no webcam and silently renders nothing #353 gate.
  • Add Full Camera stays fully reachable: the C shortcut and the AI agent tool both call the same gated addCameraFullscreen store action, and the timeline lane still renders/edits existing camera-fullscreen regions.
  • Drop the two tests that asserted the removed button's enabled/disabled state, and the now-orphaned buttons.addCameraFullscreen string from all 13 locales.

Related issue

No tracked issue — reported directly by screenshot (button circled in the timeline toolbar), confirmed non-functional by reading the code path.

Type of change

  • Bug fix

Release impact

  • Patch

Desktop impact

  • Not platform-specific

Screenshots / video

Not attached — this removes one existing toolbar icon (Maximize2, "Add Full Camera") with no other visual change; see the code diff for the exact before/after.

Testing

  • npx vitest run over src/components/ai-edition + src/lib/ai-edition + src/lib/shortcuts — 883 tests pass
  • npx biome check on all changed files — clean
  • npx tsc --noEmit — clean
  • npm run i18n:check — all 12 locales still match en across all namespaces

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Updates
    • Simplified camera controls by removing the redundant fullscreen camera button from the timeline toolbar.
    • Camera lanes without webcam access now display the standard “No webcam” guidance for a more consistent experience.
    • Camera-related messaging and shortcuts remain supported, including the “Add Full Camera” workflow.
    • Updated translated timeline labels across supported languages to reflect the streamlined camera controls.

The button always looked clickable but silently no-opped on any project
without a webcam clip. Add Full Camera stays reachable via the C shortcut
and the AI agent tool, both of which already gate on hasAnyClipWithCamera
(#353) and are unaffected by this change.
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e7b8ae86-071b-4931-9e30-cb7b39cc033d

📥 Commits

Reviewing files that changed from the base of the PR and between 80d4663 and 9cfc011.

📒 Files selected for processing (16)
  • src/components/ai-edition/v4/V4Timeline.geometry.test.tsx
  • src/components/ai-edition/v4/V4Timeline.tsx
  • src/i18n/locales/ar/timeline.json
  • src/i18n/locales/en/timeline.json
  • src/i18n/locales/es/timeline.json
  • src/i18n/locales/fr/timeline.json
  • src/i18n/locales/it/timeline.json
  • src/i18n/locales/ja-JP/timeline.json
  • src/i18n/locales/ko-KR/timeline.json
  • src/i18n/locales/pt-BR/timeline.json
  • src/i18n/locales/ru/timeline.json
  • src/i18n/locales/tr/timeline.json
  • src/i18n/locales/vi/timeline.json
  • src/i18n/locales/zh-CN/timeline.json
  • src/i18n/locales/zh-TW/timeline.json
  • src/lib/ai-edition/store/useTimeline.ts

Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The camera timeline now uses shared no-webcam messaging and removes the redundant fullscreen camera toolbar entry. Related availability tests and locale translations were removed. Camera shortcut and empty-lane messaging tests remain.

Changes

Camera timeline cleanup

Layer / File(s) Summary
Camera behavior and validation
src/components/ai-edition/v4/V4Timeline.tsx, src/components/ai-edition/v4/V4Timeline.geometry.test.tsx, src/lib/ai-edition/store/useTimeline.ts
The camera lane comments describe shared no-webcam messaging. The redundant fullscreen toolbar button tests were removed. Camera shortcut and empty-lane messaging coverage remains.
Camera toolbar translations
src/i18n/locales/*/timeline.json
The buttons.addCameraFullscreen translation was removed from all listed locales.

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

Merge Risk: ⚪ Minimal · up to 9cfc0

This change removes a nonfunctional timeline button while preserving the existing shortcut, AI action, and camera-region editing paths; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. (13 skipped: 13 unsupported.) Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly and concisely identifies removal of the nonfunctional Add Full Camera toolbar button.
Description check ✅ Passed The description covers the change, issue context, classifications, release and platform impact, testing, and visual impact.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/remove-nonfunctional-button-246b9e

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

Copy link
Copy Markdown
Collaborator Author

Addressed the CodeRabbit pre-merge warnings:

  • Description check — filled in the missing template sections (related issue, type of change, release/desktop impact, screenshots).
  • Docstring coverage — not adding docstrings here. The functions this diff touches are internal (a store callback, a component's toolbar renderer) and this codebase's convention throughout is narrative // "why" comments on non-obvious logic rather than /** */ docstrings on internal functions — which this diff already has, unchanged. The review itself found no actionable comments, so I'm treating the 0% docstring metric as a threshold mismatch for this codebase rather than something to chase.

No other findings from the review.

@EtienneLescot
EtienneLescot merged commit cca6fe8 into main Aug 22, 2026
19 checks passed
@EtienneLescot
EtienneLescot deleted the claude/remove-nonfunctional-button-246b9e branch August 22, 2026 10:10
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