-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(editor): Add visual Undo/Redo buttons & Fix tooltip visibility #661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(editor): Add visual Undo/Redo buttons & Fix tooltip visibility #661
Conversation
👷 Deploy request for appcut pending review.Visit the deploys page to approve it
|
|
@iknizzz1807 is attempting to deploy a commit to the OpenCut OSS Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughAdded undo and redo buttons to the timeline toolbar, consuming store methods and history state. Buttons display disabled states when no history is available. Updated tooltip z-index layer for proper stacking order. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (3)**/*.{jsx,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧬 Code graph analysis (1)apps/web/src/components/editor/timeline/timeline-toolbar.tsx (2)
🔇 Additional comments (4)
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. Comment |
Description
This PR improves the Timeline accessibility and UX by introducing visual Undo/Redo buttons to the toolbar. Previously, these actions were restricted to keyboard shortcuts (
Ctrl+Z/Ctrl+Y).While implementing this feature, I identified a UI issue where tooltips in the timeline were being obscured by the track headers (due to conflicting
z-indexlayering). Consequently, this PR also includes a fix for theTooltipcomponent to ensure it properly renders above all editor layers.Changes included:
UndoandRedobuttons toTimelineToolbar.Tooltipcomponentz-indexfrom50to1000to prevent them from being clipped by the Track Header (z-100).Type of change
How Has This Been Tested?
Test Configuration:
Screenshots
1. New Feature: Undo/Redo Buttons
2. Bug Fix: Tooltip Layering
Before this fix, the tooltip text was cut off by the track panel.

Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.