Commit Graph
4528 Commits
Author SHA1 Message Date
iamsivin 9210d2cecd chore: Minor fix 2024-11-11 22:49:16 +05:30
iamsivin fd4b1f2d21 feat: Contact Empty state 2024-11-11 22:38:08 +05:30
iamsivin ae804baf9b chore: More changes 2024-11-11 21:51:32 +05:30
iamsivin e2c1e6ff00 chore: Fix warning 2024-11-11 21:26:21 +05:30
iamsivin 2dbe5bd1c0 chore: Fix validations for custom attributes 2024-11-11 21:24:34 +05:30
iamsivin 0fe6d404b9 feat: Contact attributes 2024-11-11 21:07:12 +05:30
iamsivin d6cc5422d0 feat: Add avatar upload and merge EditableAvatar.vue with Avatar.vue 2024-11-09 15:30:52 +05:30
iamsivin 271b322761 feat: Contact exporting 2024-11-09 14:06:33 +05:30
iamsivin 1b013544a8 chore: Fix sidebar filter issue and sort reactivity issue 2024-11-09 13:39:22 +05:30
iamsivin d53c60363b feat: Contact filtering by labels and segments 2024-11-08 15:44:10 +05:30
iamsivin 3d6d6e2afb feat: Import contact 2024-11-08 10:30:14 +05:30
Sivin VargheseandGitHub 430c6d2526 Merge branch 'develop' into feat/contacts-redesign 2024-11-08 10:16:07 +05:30
Sivin VargheseandGitHub db327378fa feat(v4): Add new conversation card component (#10392) 2024-11-07 20:30:56 -08:00
iamsivin 8320ecd92b feat: Create contact 2024-11-08 02:22:22 +05:30
iamsivin ecd8b265bc feat: Contact sort 2024-11-08 01:27:51 +05:30
iamsivin c5974f97cd chore: Update the usage with camel case 2024-11-07 20:46:29 +05:30
iamsivin 314a33e053 chore: Use camel case 2024-11-07 10:32:38 +05:30
iamsivin 4b85a9045a chore: Minor fix 2024-11-06 23:22:52 +05:30
iamsivin d41857abc4 feat: Contact search 2024-11-06 23:20:00 +05:30
iamsivin 816c65df2d chore: Sort labels 2024-11-06 23:04:53 +05:30
iamsivin 91ee5fc2f0 chore: Form validations 2024-11-06 21:35:05 +05:30
iamsivin 28cbdb6133 feat: Contact merge 2024-11-06 21:08:14 +05:30
iamsivin 703b36e38c chore: Add or remove labels 2024-11-06 18:42:35 +05:30
iamsivin 51cf4df3e3 chore: Code clean up 2024-11-06 18:08:14 +05:30
Sivin VargheseandGitHub caaf8d55c6 Merge branch 'develop' into feat/contacts-redesign 2024-11-06 17:52:52 +05:30
iamsivin d5a1c7f49b chore: Fix build 2024-11-06 17:51:42 +05:30
iamsivin db6f08c12b feat: Contact history 2024-11-06 17:51:03 +05:30
iamsivin 7021e96ad4 chore: More changes 2024-11-06 17:34:04 +05:30
iamsivin c254c44994 chore: Minor fix 2024-11-06 00:06:02 +05:30
iamsivin 05b76f7182 chore: Fix build 2024-11-06 00:03:16 +05:30
iamsivin ae1c6e3f98 chore: Replace thumbnail component with avatar 2024-11-05 23:56:11 +05:30
iamsivin 3c58d6af59 chore: Minor fix 2024-11-05 21:35:19 +05:30
iamsivin fa8a7db612 feat: COntact sidebar 2024-11-05 21:34:05 +05:30
54740e3bb9 fix: Update the translation for the text used in isTyping method (#10384)
This fix consists of translating the message when another user is typing on the other side.
---
Co-authored-by: Pranav <pranavrajs@gmail.com>
Co-authored-by: Pranav <pranav@chatwoot.com>
2024-11-04 20:04:08 -08:00
iamsivin 759ce1229d chore: Minor color fix 2024-11-04 23:37:13 +05:30
iamsivin b92805933f chore: fix build 2024-11-04 23:26:04 +05:30
iamsivin b71a05f790 feat: Contact details screen 2024-11-04 19:46:02 +05:30
iamsivin dd9e9286b3 feat: Contact card with expand view 2024-11-04 15:15:17 +05:30
iamsivin f341d159c2 feat: Route view 2024-11-04 15:14:43 +05:30
iamsivin a7bf762bcd feat: Contacts layout 2024-11-04 15:14:01 +05:30
PranavandGitHub 8cdbdaaa07 fix: Process attachments as regular attachments if the text/plain or text/html part is empty (#10379)
Some email clients automatically set Content-Disposition to inline for
specific content types, such as images. In cases where the email body is
empty, inline attachments may not display correctly due to our previous
implementation. Our assumption was that these attachments are referenced
within text/plain or text/html parts.

Customer-reported issues, especially with Apple Mail, show emails with
attachments marked as inline but without any corresponding text parts.
This leads to missing attachments even though would have processed the
attachment.

This update introduces a check for the presence of a text part. If none
exists, inline attachments are treated as regular attachments and added
to the external attachments array, ensuring that all attachments display
properly.

<details>
<summary><b>Script to update the existing emails that are already
available in the system</b></summary>

```rb
def update_content id
  message = Message.find id
  conversation = message.conversation
  message_id = message.source_id

  channel = message.inbox.channel

  authentication_type = 'XOAUTH2'
  imap_password = Google::RefreshOauthTokenService.new(channel: channel).access_token
  imap = Net::IMAP.new(channel.imap_address, port: channel.imap_port, ssl: true)
  imap.authenticate(authentication_type, channel.imap_login, imap_password)
  imap.select('INBOX')

  results = imap.search(['HEADER', 'MESSAGE-ID', message_id])
  message_content = imap.fetch(results.first, 'RFC822').first.attr['RFC822']
  mail = MailPresenter.new(Mail.read_from_string(message_content))

  mail_content = if mail.text_content.present?
                   mail.text_content[:reply]
                 elsif mail.html_content.present?
                   mail.html_content[:reply]
                 end

  attachments = mail.attachments.last(Message::NUMBER_OF_PERMITTED_ATTACHMENTS)
  inline_attachments = attachments.select { |attachment| attachment[:original].inline? && mail_content.present? }
  regular_attachments = attachments - inline_attachments

  regular_attachments.each do |mail_attachment|
    attachment = message.attachments.new(
      account_id: conversation.account_id,
      file_type: 'file'
    )
    attachment.file.attach(mail_attachment[:blob])
  end

  message.save!
end
```
</details>
2024-11-04 10:25:01 +01:00
579efd933b feat(v4): Update the campaigns page design (#10371)
<img width="1439" alt="Screenshot 2024-10-30 at 8 58 12 PM"
src="https://github.com/user-attachments/assets/26231270-5e73-40fb-9efa-c661585ebe7c">


Fixes
https://linear.app/chatwoot/project/campaign-redesign-f82bede26ca7/overview

---------

Co-authored-by: Pranav <pranavrajs@gmail.com>
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
2024-10-31 11:57:13 +05:30
6e6c5a2f02 refactor: use css only last item detection (#10363)
The last item in the sidebar top level group has an indicator specified,
the problem in our case is that the structure can be nested and have sub
groups. So selecting the last item correctly can be tricky.

Previous implementation relied on the using DOM queries to find the last
item from a flat list of children, it would trigger on a `watch`. This
was error-prone as well as non idiomatic. The new approach is CSS-only
and reduces the unnecessary compute required.

Codepen for reference: https://codepen.io/scmmishra/pen/yLmKNLW

---------

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
2024-10-31 09:39:18 +05:30
Shivam MishraandGitHub 2d35fa135b feat: Update colors (#10365) 2024-10-29 22:20:37 -07:00
Vishnu NarayananandGitHub 6da6a80ae7 chore: force pnpm install in vite docker (#10367)
- Force `pnpm install` during vite docker image
2024-10-29 17:13:17 +05:30
Vishnu NarayananandGitHub 87719a8fcd chore: fix pnpm path in rails and memory issue during vite build (#10366)
- Fix pnpm path in rails
- Fix memory issue during vite build


Fixes https://github.com/chatwoot/chatwoot/issues/10356
2024-10-29 16:41:12 +05:30
Sivin VargheseandGitHub aa57431c48 fix: Dropdown menu issues (#10364) 2024-10-29 16:10:35 +05:30
Vishnu NarayananandGitHub 55dfd7db50 fix: pnpm in vite docker (#10344)
- Fix pnpm path in vite docker
- Remove webpack files
- fFx vite server port
2024-10-29 15:16:10 +05:30
Sivin VargheseandGitHub 0689f59a05 feat: Update button component (#10362) 2024-10-29 14:00:24 +05:30
Sivin VargheseandGitHub f73798a1aa feat(v4): Help center portal redesign improvements (#10349) 2024-10-28 21:04:43 -07:00