sendingtk / chatwoot

Other
89 stars 78 forks source link

. #85

Closed mtuliosan closed 1 month ago

mtuliosan commented 1 month ago

Summary by CodeRabbit

coderabbitai[bot] commented 1 month ago

[!CAUTION]

Review failed

The pull request is closed.

Walkthrough

This update introduces significant enhancements to message handling, including the ability to forward multiple messages and improved error management across various components. The removal of unused configurations streamlines the user experience, while localization updates refine the user interface for Portuguese speakers. Additionally, new features such as a search function in chat components and expanded automation capabilities create a more intuitive and efficient messaging environment.

Changes

Files Change Summary
.env.example Removed commented-out configuration variables for clarity.
app/controllers/api/v1/accounts/... Improved error handling in AutomationRulesController and enhanced message processing in MessagesController.
app/javascript/dashboard/api/inbox/message.js Modified forwardMessage method to handle multiple messages and updated request structure.
app/javascript/dashboard/components/ChatList.vue, Introduced search functionality and custom snooze feature to improve user interaction.
app/javascript/dashboard/components/ChatListHeader.vue Added searchQuery prop to enhance search capabilities within chats.
app/javascript/dashboard/i18n/... Various localization updates for improved clarity in Portuguese, including new keys and adjusted translations.
app/javascript/dashboard/store/modules/... Added forwardMessage module to manage message forwarding state in Vuex and updated actions accordingly.
app/jobs/conversations/forward_message_job.rb Enhanced message forwarding logic to support multiple messages and improved error handling.
app/models/automation_rule.rb, app/services/action_service.rb Added support for new action reopen_conversation within automation rules and action service.
app/javascript/dashboard/routes/dashboard/... Renamed constants related to conversation bulk actions for clarity and modified associated logic.
theme/colors.js Renamed color categories, swapping woot and primary keys.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ChatList
    participant MessageApi
    participant Store

    User->>ChatList: Search for conversations
    ChatList->>Store: Update searchQuery
    Store->>ChatList: Filter conversation list
    User->>MessageApi: Forward messages
    MessageApi->>Store: Update selectedMessageIds
    Store-->>MessageApi: Confirm message forwarding

🐰 In a world of chats and hops so bright,
New features bloom, a joyous sight!
Forwarding messages, a breeze to share,
With a search so swift, it’s beyond compare.
So let’s celebrate with a happy cheer,
For updates are here, let’s spread the cheer!

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?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)