Conversation
|
Caution Review failedThe pull request is closed. WalkthroughConsolidates and scopes conversation/chunk query fields across hooks and call sites, introducing a shared conversation field set. Updates hooks to accept customizable fields and applies them in routes/layout. Adjusts ConversationAccordion hasContent logic. Aligns ConversationChunkAudioTranscript prop type and normalizes chunk props at use site. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as UI (Routes/Layout)
participant Hooks as Conversation Hooks
participant API as Directus API
UI->>Hooks: useConversationById({ fields: CONVERSATION_FIELDS_WITHOUT_PROCESSING_STATUS, deep: { chunks: {_limit:25} } })
Hooks->>API: readItems("conversations", { fields: [...], deep })
API-->>Hooks: Conversation data (scoped fields)
Hooks-->>UI: Conversation data
UI->>Hooks: useConversationChunks(conversationId, limit, fields)
Hooks->>API: readItems("conversation_chunks", { filter, limit, fields })
API-->>Hooks: Chunk list (scoped fields)
Hooks-->>UI: Chunk list
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Bug Fixes
Refactor
Style