diff --git a/app/javascript/dashboard/components-next/message/fixtures/textWithMedia.js b/app/javascript/dashboard/components-next/message/fixtures/textWithMedia.js index 7af4600d0..b81b01412 100644 --- a/app/javascript/dashboard/components-next/message/fixtures/textWithMedia.js +++ b/app/javascript/dashboard/components-next/message/fixtures/textWithMedia.js @@ -839,6 +839,231 @@ export default camelcaseKeys( status: ['sent', 'read'], }, }, + { + conversation_id: 1016, + status: 'read', + content_type: 'text', + processed_message_content: + 'This is a video demo of how to safely pack your device for mail', + id: 5318, + content: + 'This is a video demo of how to safely pack your device for mail', + account_id: 2, + inbox_id: 486, + message_type: 1, + created_at: 1732788718, + updated_at: '2024-11-28T10:11:59.587Z', + private: false, + source_id: null, + content_attributes: {}, + sender_type: 'User', + sender_id: 1, + external_source_ids: {}, + additional_attributes: {}, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 0, + last_activity_at: 1732788718, + contact_inbox: { + source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7', + }, + }, + attachments: [ + { + id: 21, + message_id: 5318, + file_type: 'video', + account_id: 2, + extension: null, + data_url: + 'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaVVLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2b713098fcdb9fde921f7575ac7d7539d0ffd5df/CleanShot%202024-11-26%20at%2018.07.56.mp4', + thumb_url: '', + file_size: 1176246, + width: null, + height: null, + }, + ], + sender: { + id: 1, + name: 'John', + available_name: 'John', + avatar_url: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + type: 'user', + availability_status: null, + thumbnail: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + }, + previous_changes: { + updated_at: ['2024-11-28T10:11:58.967Z', '2024-11-28T10:11:59.587Z'], + status: ['sent', 'read'], + }, + }, + { + conversation_id: 1016, + status: 'read', + content_type: 'text', + processed_message_content: null, + id: 5319, + content: "Here's a recording of the call", + account_id: 2, + inbox_id: 486, + message_type: 1, + created_at: 1732788745, + updated_at: '2024-11-28T10:12:25.906Z', + private: false, + source_id: null, + content_attributes: {}, + sender_type: 'User', + sender_id: 1, + external_source_ids: {}, + additional_attributes: {}, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 0, + last_activity_at: 1732788745, + contact_inbox: { + source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7', + }, + }, + attachments: [ + { + id: 22, + message_id: 5319, + file_type: 'audio', + account_id: 2, + extension: null, + data_url: + 'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaVlLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f0cff1a4a9ae79518d878ebd16d0c864275c50f/9bcbcc4d44aa.mp3', + thumb_url: '', + file_size: 345644, + width: null, + height: null, + }, + ], + sender: { + id: 1, + name: 'John', + available_name: 'John', + avatar_url: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + type: 'user', + availability_status: null, + thumbnail: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + }, + previous_changes: { + updated_at: ['2024-11-28T10:12:25.364Z', '2024-11-28T10:12:25.906Z'], + status: ['sent', 'read'], + }, + }, + { + conversation_id: 1016, + status: 'read', + content_type: 'text', + processed_message_content: null, + id: 5319, + content: null, + account_id: 2, + inbox_id: 486, + message_type: 1, + created_at: 1732788745, + updated_at: '2024-11-28T10:12:25.906Z', + private: false, + source_id: null, + content_attributes: {}, + sender_type: 'User', + sender_id: 1, + external_source_ids: {}, + additional_attributes: {}, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 0, + last_activity_at: 1732788745, + contact_inbox: { + source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7', + }, + }, + attachments: [ + { + id: 22, + message_id: 5319, + file_type: 'audio', + account_id: 2, + extension: null, + data_url: + 'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaVlLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9f0cff1a4a9ae79518d878ebd16d0c864275c50f/9bcbcc4d44aa.mp3', + thumb_url: '', + file_size: 345644, + width: null, + height: null, + }, + ], + sender: { + id: 1, + name: 'John', + available_name: 'John', + avatar_url: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + type: 'user', + availability_status: null, + thumbnail: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + }, + previous_changes: { + updated_at: ['2024-11-28T10:12:25.364Z', '2024-11-28T10:12:25.906Z'], + status: ['sent', 'read'], + }, + }, + { + conversation_id: 1016, + status: 'read', + content_type: 'text', + processed_message_content: + 'Hope this helps\n\n--\n\n~ John Acme \n![](http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHNGIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--49eeccbbf9eea2ce5c72c6ed6a7eb0cf0be024b1/picologo.png?cw_image_height=24px)Picoletter', + id: 5320, + content: + 'Hope this helps\n\n--\n\n~ John Acme \n![](http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHNGIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--49eeccbbf9eea2ce5c72c6ed6a7eb0cf0be024b1/picologo.png?cw_image_height=24px)Picoletter', + account_id: 2, + inbox_id: 486, + message_type: 1, + created_at: 1732788759, + updated_at: '2024-11-28T10:12:40.464Z', + private: false, + source_id: null, + content_attributes: {}, + sender_type: 'User', + sender_id: 1, + external_source_ids: {}, + additional_attributes: {}, + sentiment: {}, + conversation: { + assignee_id: 1, + unread_count: 0, + last_activity_at: 1732788759, + contact_inbox: { + source_id: 'f42d4630-7c41-4af3-bbc7-7c43e2aa2fc7', + }, + }, + sender: { + id: 1, + name: 'John', + available_name: 'John', + avatar_url: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + type: 'user', + availability_status: null, + thumbnail: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaDBLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4e625d80e7ef2dc41354392bc214832fbe640840/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--ebe60765d222d11ade39165eae49cc4b2de18d89/picologo.png', + }, + previous_changes: { + updated_at: ['2024-11-28T10:12:39.665Z', '2024-11-28T10:12:40.464Z'], + status: ['sent', 'read'], + }, + }, { id: 5315, content: "Great. I'll send it across. Thanks",