forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Conversation Code to support TicketID on automation and Canned #4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Draft
ThanhKhoaIT
wants to merge
19
commits into
develop
Choose a base branch
from
lxb/dynamic-content-with-conversation-code
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LXB: Custom Email display and Lixibox Engine
Wait to merge and release chatwoot/utils#47 |
🐢 Turtley slow progress alert! This pull request has been idle for over 30 days. Can we please speed things up and either merge it or release it back into the wild? |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
code
attribute to theConversation
model and updates various parts of the codebase to support this new attribute. The changes include modifications to the model, database schema, and several views.Key changes include:
Model and Database Changes:
code
attribute to theConversation
model, including validation and abefore_validation
callback to generate a unique code for each conversation (app/models/conversation.rb
). [1] [2] [3] [4]code
column to theconversations
table and populate it with unique values (db/migrate/20250227072350_add_code_to_conversations.rb
).code
column and its index (db/schema.rb
). [1] [2] [3]View Changes:
code
attribute in the conversation data (app/views/api/v1/accounts/search/conversations.json.jbuilder
,app/views/api/v1/conversations/partials/_conversation.json.jbuilder
,app/views/api/v1/models/_conversation.json.jbuilder
,app/views/public/api/v1/models/_conversation.json.jbuilder
). [1] [2] [3] [4]Frontend Changes:
conversation.code
andinbox
details in the constants file (app/javascript/shared/constants/messages.js
).ReplyBox.vue
component to include theinbox
in the message variables (app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue
).Helper Method:
code
method to theConversationDrop
class to expose the new attribute (app/drops/conversation_drop.rb
).