feat: add activity message for priority change (#6933)
* feat: add priority const * feat: add toggle priority method * feat: update controller route and specs * refactor: status change method * refactor: abstract label change and mute activity * feat: add priority change_activity * fix: interpolation for previous_changes * refactor: reduce cognitive complexity of priority_change_activity * refactor: move priority activity message handler to a separate module * refactor: move typing logic to a service * refactor: tests to reduce complexity * fix: typo * fix: constants * fix: priority conditions * fix: add a response * fix: argument destructuring in I18n.t --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -129,6 +129,10 @@ en:
|
||||
snoozed: "Conversation was snoozed by %{user_name}"
|
||||
auto_resolved: "Conversation was marked resolved by system due to %{duration} days of inactivity"
|
||||
system_auto_open: System reopened the conversation due to a new incoming message.
|
||||
priority:
|
||||
added: '%{user_name} set the priority to %{new_priority}'
|
||||
updated: '%{user_name} changed the priority from %{old_priority} to %{new_priority}'
|
||||
removed: '%{user_name} removed the priority'
|
||||
assignee:
|
||||
self_assigned: "%{user_name} self-assigned this conversation"
|
||||
assigned: "Assigned to %{assignee_name} by %{user_name}"
|
||||
|
||||
@@ -91,6 +91,7 @@ Rails.application.routes.draw do
|
||||
post :unmute
|
||||
post :transcript
|
||||
post :toggle_status
|
||||
post :toggle_priority
|
||||
post :toggle_typing_status
|
||||
post :update_last_seen
|
||||
post :unread
|
||||
|
||||
Reference in New Issue
Block a user