Repository navigation
Feature/debug - #175
Feature/debug#175
Conversation
…integrate debugging context for enhanced development insights
…nd device selection - Implement draggable local video preview in CallScreen with corner snapping. - Add camera and microphone selection in SetupScreen using dynamic device enumeration. - Introduce Dropdown component for selecting devices with improved UI. - Integrate debug state management for conditional logging in development. - Update layout to disable gestures during video calls for better user experience. - Refactor PhoneNumberInput to support initial values and improved validation.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughIntroduces runtime debug state management via a new Changes
Sequence DiagramssequenceDiagram
actor User
participant Settings as Settings Screen
participant DebugState as Debug State
participant DebugContext as Debug Context
User->>Settings: Tap version text 5+ times (within 2s)
Settings->>DebugState: setDebugEnabled(true/false)
DebugState->>Settings: notify listeners
Settings->>Settings: re-render + show Alert
DebugState->>DebugContext: isDebug updated
DebugContext->>DebugContext: re-register/unregister debug sections
sequenceDiagram
participant SetupScreen as Setup Screen
participant MediaEnum as mediaDevices API
participant Dropdown as Field + Dropdown
participant CallFlow as Call Flow
SetupScreen->>MediaEnum: enumerateDevices()
MediaEnum-->>SetupScreen: [{id, label}, ...]
SetupScreen->>SetupScreen: map to entries, auto-select first
User->>Dropdown: tap to expand device list
Dropdown-->>User: modal dropdown with options
User->>Dropdown: select device
SetupScreen->>CallFlow: pass selected deviceId to startCall()
CallFlow->>CallFlow: apply exact deviceId constraint in getUserMedia()
sequenceDiagram
participant CallScreen
participant PanResponder as Pan Responder
participant Animated as Animated API
participant Preview as Video Preview
CallScreen->>CallScreen: compute corner positions from window dims
CallScreen->>PanResponder: create responder with corner snapping
User->>PanResponder: drag preview
PanResponder->>PanResponder: snap to nearest corner
User->>Preview: tap to swap streams
Preview->>Animated: update swapScale animation
Animated->>Preview: re-render with swapped=true/false
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Summary by CodeRabbit
New Features
Bug Fixes