Repository navigation
Conversation
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
| const { Modal } = require('react-native'); | ||
| render(<ActiveCallsPanel />); | ||
|
|
||
| await waitFor(() => { |
There was a problem hiding this comment.
The awaited waitFor operation at src/components/dispatch-console/tests/active-calls-panel.test.tsx:528 can reject without explicit asynchronous failure handling. Wrap it in try/catch or attach a .catch handler.
Kody rule violation: Handle async operations with proper error handling
await waitFor(() => { /* handle rejection with try/catch or .catch(...) */Prompt for LLM
File src/components/dispatch-console/__tests__/active-calls-panel.test.tsx:
Line 522:
The awaited waitFor operation at src/components/dispatch-console/__tests__/active-calls-panel.test.tsx:528 can reject without explicit asynchronous failure handling. Wrap it in try/catch or attach a .catch handler.
Suggested Code:
await waitFor(() => { /* handle rejection with try/catch or .catch(...) */
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
| leaving the Modal as an empty, transparent full-screen layer on top that swallows every tap and scroll. */} | ||
| <DispatchSelectionModal | ||
| isVisible={!!dispatchTargetCall} | ||
| onClose={() => setDispatchTargetCall(null)} |
There was a problem hiding this comment.
The inline arrow function in the JSX onClose prop creates a new function on every render, impacting performance. Move the function definition outside the render method.
Kody rule violation: Avoid using .bind() or arrow functions in JSX props
Prompt for LLM
File src/components/dispatch-console/active-calls-panel.tsx:
Line 518:
The inline arrow function in the JSX onClose prop creates a new function on every render, impacting performance. Move the function definition outside the render method.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
|
Approve |
Summary
Fixes the Active Calls panel’s dispatch picker so it opens and remains interactive without being wrapped in a React Native
Modal.Changes
Modalwrapper aroundDispatchSelectionModal.Modalis rendered around it.This prevents an empty transparent modal layer from blocking scrolling and user interaction with the dispatch picker.
Summary by CodeRabbit