Closed VILANI closed 1 month ago
The changes involve updates to two main components: the ConversationBuilder
class and the Settings.vue
component. In ConversationBuilder
, the look_up_exising_conversation
method now prioritizes retrieving open conversations, with a fallback to the most recently updated conversation. In Settings.vue
, the logic for locking single conversations has been expanded to include API inboxes, and new input fields for webhookUrl
and externalToken
are conditionally rendered based on the inbox type.
File Path | Change Summary |
---|---|
app/builders/conversation_builder.rb | Updated look_up_exising_conversation to prioritize 'open' conversations and update their status. |
app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue | Modified canLocktoSingleConversation to include isAPIInbox ; added webhookUrl and externalToken input fields based on isAPIInbox . |
sequenceDiagram
participant User
participant Settings
participant API
User->>Settings: Open settings page
Settings->>Settings: Check if API Inbox
alt isAPIInbox
Settings->>User: Display webhookUrl and externalToken fields
end
User->>Settings: Input webhookUrl and externalToken
Settings->>API: Save settings
🐰 In the garden of code, I hop with glee,
New paths for conversations, as bright as can be!
With API inboxes, we now can play,
Configuring settings in a brand new way!
So let’s celebrate changes, both big and small,
For in this code burrow, we’re having a ball! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
When enabling this option, the message will be created in the current open conversation, if there is no open conversation or multiple open conversations, it will be created in the conversation that had the last iteration.
Summary by CodeRabbit
New Features
webhookUrl
andexternalToken
for API integrations.Bug Fixes
webhookUrl
to ensure proper URL formatting.