From 95674eb60176460349998038e728baf5aafb5e36 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 4 Dec 2024 17:32:50 +0530 Subject: [PATCH] feat: more attachments --- .../message/fixtures/emailConversation.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/message/fixtures/emailConversation.js b/app/javascript/dashboard/components-next/message/fixtures/emailConversation.js index 1129455a8..8d75d107e 100644 --- a/app/javascript/dashboard/components-next/message/fixtures/emailConversation.js +++ b/app/javascript/dashboard/components-next/message/fixtures/emailConversation.js @@ -30,7 +30,7 @@ export default camelcaseKeys( message_id: 'CAM_Qp+-tdJ2Muy4XZmQfYKOPzsFwrH5H=6j=snsFZEDw@mail.gmail.com', multipart: true, - number_of_attachments: 1, + number_of_attachments: 2, subject: 'Inquiry and Quotation for Cotton Fabric', text_content: { full: 'Dear Sam,\n\nWe are looking for high-quality cotton fabric for our T-shirt production.\nPlease find attached a document with our specifications and requirements.\nCould you provide us with a quotation and lead time?\n\nLooking forward to your response.\n\nBest regards,\nAlex\nT-Shirt Co.\n', @@ -75,6 +75,20 @@ export default camelcaseKeys( width: null, height: null, }, + { + id: 18, + message_id: 5307, + file_type: 'file', + account_id: 2, + extension: null, + data_url: + 'http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaUVLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4f7e671db635b73d12ee004e87608bc098ef6b3b/quantity-requirements.xls', + thumb_url: + 'http://localhost:3000/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBaUVLIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4f7e671db635b73d12ee004e87608bc098ef6b3b/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9UY21WemFYcGxYM1J2WDJacGJHeGJCMmtCK2pBPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--5c454d5f03daf1f9f4068cb242cf9885cc1815b6/all-files.zip', + file_size: 99844, + width: null, + height: null, + }, ], }, {