improve v2 terminal drop hover animation#3769
Conversation
Drop the dashed border, rounded corners, and inner inset so the overlay touches the pane edges. Keep the overlay mounted and fade between opacity-0 and opacity-75 so the hover state actually animates instead of popping in.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe TerminalPane component's drop-target overlay refactored from conditional mounting to always-rendered with dynamic opacity styling. The visual presentation changed from a dashed border to a subtle background tint with smooth opacity transitions. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Greptile SummaryThis PR improves the v2 terminal drop-hover UX by replacing the conditionally-rendered dashed-border overlay with an always-mounted div that transitions between Confidence Score: 5/5Safe to merge — small, well-scoped visual change with no logic or data-flow impact. The diff is minimal and correct: the overlay is always mounted with No files require special attention.
|
| Filename | Overview |
|---|---|
| apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/TerminalPane/TerminalPane.tsx | Replaces conditional-render dashed border overlay with an always-mounted, opacity-transitioned tint overlay; adds relative to outer container and moves the overlay to cover the full pane flush. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User drags file over TerminalPane] --> B{isDropActive}
B -- true --> C["overlay opacity-75\n(bg-primary/10 tinted fade)"]
B -- false --> D["overlay opacity-0\n(invisible, always mounted)"]
C -- drag leaves --> D
D -- drag enters --> C
C --> E[User drops file]
E --> F[handleDrop\nresolveDroppedText]
F --> G[terminalRuntimeRegistry.paste]
G --> H[Text pasted into terminal]
E --> D
Reviews (1): Last reviewed commit: "improve v2 terminal drop hover animation" | Re-trigger Greptile
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
Test plan
Summary by cubic
Refines the v2 terminal drag-and-drop hover to a full-bleed primary-tinted overlay that fades in/out, replacing the dashed inset outline. The overlay stays mounted and animates opacity (0 ↔ 75) for a smooth transition instead of a pop.
Written for commit 534674e. Summary will update on new commits.
Summary by CodeRabbit