Liam
4958b3e7b6
chore: Fix codespaces not booting up ( #8264 )
...
Fixed an issue where the codespace was not correctly booting up.
Fixes #7609
Co-authored-by: Liam Ashdown <liam.ashdown@debbiesvillas.co.uk >
Co-authored-by: Sojan <sojan@pepalo.com >
2024-01-16 14:34:23 +04:00
Chatwoot Bot
e467d15f2c
chore: Update translations ( #8544 )
...
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2024-01-16 13:49:38 +04:00
Nithin David Thomas
d1e7e75638
feat: Adds internal support for markdown in Telegram outgoing messages ( #8640 )
...
This PR adds support for Markdown in the telegram API for send message. The dashboard uses commonmark syntax for markdown but telegram is using MarkdownV2.
More info - https://core.telegram.org/bots/api#markdownv2-style
Adds support for bold - *bold*, _italic text_, __underline__, ~strikethrough~
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2024-01-16 13:32:59 +04:00
Sojan
4aab63b7df
Merge branch 'release/3.5.0' into develop
2024-01-16 11:15:29 +04:00
Sojan
acf24649b0
Bump version to 3.5.0
2024-01-16 11:14:38 +04:00
Sojan Jose
316cf35795
chore: Add display manifest to whitelabel settings ( #8708 )
...
- Adds display manifest to white label settings
- Improve the app config rendering with options for display name and description
2024-01-16 09:50:23 +04:00
Muhsin Keloth
52a5a59ddb
fix: Handle error if the Twillio attachment download fails to download ( #8705 )
2024-01-15 19:13:44 +05:30
Sivin Varghese
22db201a08
chore: Hide the variable list if its empty. ( #8704 )
2024-01-15 15:45:36 +05:30
Shivam Mishra
ea7898d113
feat: fallback to DB localStorage for idb names ( #8682 )
...
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2024-01-15 15:08:15 +05:30
Vishnu Narayanan
e7e14f01e4
fix: undefined method 'zero?' for nil:NilClass ( #8689 )
2024-01-15 15:07:36 +05:30
Muhsin Keloth
7d6085cefd
fix: Log twillio attachment error ( #8703 )
2024-01-15 12:46:58 +05:30
Shivam Mishra
10076c6a3e
feat: set lock timeout to 1 second ( #8661 )
2024-01-12 08:28:07 +05:30
Vishnu Narayanan
1c44445088
chore: Update the error message to the correct one ( #8646 )
...
- Update the error message in reply_mailbox to more appropriate one.
2024-01-11 17:38:38 -08:00
Muhsin Keloth
d305c5fd0f
fix: Check the file attachment URL exists before downloading attachments in Telegram. ( #8679 )
...
In rare cases, the API call to Telegram for the file path fails. We were logging the error in sentry, switching to logs instead.
Co-authored-by: Sojan <sojan@pepalo.com >
2024-01-11 17:25:46 -08:00
Muhsin Keloth
1577288843
fix: Twilo attachment download fallback to the step where authorization headers are not passed. ( #8681 )
...
In the previous release, we enabled "HTTP Basic Authentication" to secure all attachments requiring HTTP authentication. This is particularly important for media files that may contain sensitive data, as recommended by Twilio. However, some users experienced issues because they did not enable this option despite our alerts prompting them to do so. If the authenticated attachment download call fails, add another call to download the attachment without authentication.
2024-01-11 17:23:31 -08:00
Muhsin Keloth
63b3686746
chore: Add a check to verify if the user exists before broadcasting the notification_deleted event. ( #8678 )
...
When a user is deleted, all associated notifications are also deleted from the database. As a result, the user record becomes empty. handling this case in code to prevent sentry errors.
2024-01-11 16:54:03 -08:00
Nithin David Thomas
810f950e16
fix: Fixes error with editor when --- is inserted ( #8669 )
...
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
2024-01-11 07:56:18 -08:00
Kevin Lin
dd09d560d5
fix: logic error when setting new relic logging forwarding ( #8687 )
...
Co-authored-by: Vishnu Narayanan <vishnu@chatwoot.com >
2024-01-11 21:05:04 +05:30
Sivin Varghese
c60c523851
fix: TypeError cannot read properties of undefined (reading 'queryselector') ( #8671 )
2024-01-11 20:42:24 +05:30
Sivin Varghese
22c2235d90
fix: TypeError: Cannot read properties of null (reading 'assignee') ( #8647 )
...
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2024-01-11 11:31:02 +05:30
Sojan Jose
35c26367da
chore: Unset Redis config after spec ( #8685 )
...
The sentinel configuration set in this specification seems to be affecting other specifications. So, let's ensure that the memoised config variable gets unset after execution of the spec.
2024-01-10 15:32:48 -08:00
Sojan Jose
aaf4fee9a6
chore: Fix sentry errors in email processing for bounce notifications ( #8677 )
...
This case occurs for bounce notification emails where the from address is From: "" (Mail Delivery System) . We will be discarding these emails for now.
Fixes: https://linear.app/chatwoot/issue/CW-2793/activerecordrecordinvalid-validation-failed-email-invalid-email
2024-01-10 14:30:23 -08:00
Sivin Varghese
3c21f62485
fix: Error ResizeObserver loop completed with undelivered notifications. ( #8680 )
2024-01-10 11:44:13 -08:00
Shivam Mishra
50b2ca014e
feat: UI for unsupported message ( #8660 )
...
Display an unsupported message in UI when handling unsupported messages from channels like facebook, Instagram etc.
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2024-01-09 21:53:58 -08:00
Vishnu Narayanan
d731c972ad
fix: skip auditlogs for whatsapp template sync ( #8579 )
...
Skips audit logs for whatsapp_template sync
Fixes: https://linear.app/chatwoot/issue/CW-2641/skip-whatsapp-template-updates-from-audit-logs
2024-01-09 21:51:48 -08:00
Sojan Jose
5845881b08
chore: Handle stripe events without plan data ( #8668 )
...
`plan` isn't a guaranteed object in stripe `customer.subscription.updated` events. It can be null for cases like `send_invoice` for `past_due` event as seen in the payload shown in sentry error.
fixes: https://linear.app/chatwoot/issue/CW-2925/nomethoderror-undefined-method-[]-for-nilnilclass-nomethoderror
2024-01-09 14:48:07 -08:00
Muhsin Keloth
64138ef220
chore: Rescue Slack::Web::Api::Errors::NotInChannel error ( #8670 )
...
The primary cause of this issue is when Chatwoot sends a message to a channel that has either been deleted or is unauthorized. So, we will prompt reauthorization when this error occurs.
Fixes https://linear.app/chatwoot/issue/CW-2930/slackwebapierrorsnotinchannel-not-in-channel
2024-01-09 14:30:17 -08:00
Sojan Jose
046ce68a45
chore: Improve Openai json rendering ( #8666 )
...
We have been observing JSON parsing errors for responses from GPT. Switching to the gpt-4-1106-preview model along with using response_format has significantly improved the responses from OpenAI, hence making the switch in code.
ref: https://openai.com/blog/new-models-and-developer-products-announced-at-devday
fixes: #CW-2931
2024-01-08 17:02:25 -08:00
dependabot[bot]
e34ab5957f
chore(deps): bump puma from 6.3.1 to 6.4.2 ( #8663 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 16:51:30 -08:00
Pranav Raj S
75a5492840
fix: Remove the usage of DragWrapper to fix the Dyte integration ( #8655 )
2024-01-05 15:28:20 -08:00
Shivam Mishra
56fbbe92b4
feat: trigger handoff when agent bot is the actor ( #8639 )
...
- This PR adds a feature to auto-trigger handoff events when an Agent bot toggles a conversation status from Pending to Open
Co-authored-by: Sojan <sojan@pepalo.com >
2024-01-05 15:26:52 -08:00
Sojan Jose
dc4e13b300
chore: Fix for empty update case for messages ( #8641 )
...
We observed an issue in production where the external webhook for an API inbox was failing. This, in turn, calls message update to update message status to failed. This causes a loop because rails trigger after_update callbacks even for empty commits.
Ref: rails/rails#44500
2024-01-05 13:10:26 -08:00
Pranav Raj S
2c7f93978e
fix: Update broken specs ( #8651 )
...
- Use fakeTimer for time.spec.js
- Use default sort as last_activity_at_desc
- Update specs for getAllConversations getter
2024-01-05 13:09:09 -08:00
Shivam Mishra
6e30064421
feat: handle unsupported media on the backend ( #8650 )
...
This PR logs additional information in content_attributes of a message in case it is unsupported. This info can be used by the client to render a fresh UI
2024-01-05 13:05:00 -08:00
Muhsin Keloth
68062216e4
feat: Add a job to reopen snoozed notifications ( #8545 )
2024-01-05 15:13:22 +05:30
Vishnu Narayanan
8a8f325f64
fix: messageTimestamp test ( #8644 )
2024-01-05 12:36:26 +05:30
Kevin Lin
cf90b898f4
feat: enable new relic log decorations ( #8616 )
...
This enables local decorating of logs when using a new relic. It can be used when you use a log forwarding agent to do additional enrichment on APM logs before forwarding to the new relic.
2024-01-04 15:34:55 -08:00
Sojan Jose
1f4cb0e1ca
chore: add config for Darkmode logo for whitelabeling ( #8597 )
...
- Add config for dark mode logo
2024-01-04 15:30:55 -08:00
Sojan Jose
c6ecf80dff
chore(synk): Upgrade administrate to fix 2 vulnerabilities ( #8625 )
...
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2024-01-04 13:38:03 -08:00
Sojan Jose
c29b77c214
chore(snyk): Security upgrade factory_bot_rails from 6.4.2 to 6.4.3 ( #8628 )
...
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2024-01-04 10:47:48 -08:00
Pranav Raj S
c301845ade
chore: 2023 -> 2024 ( #8635 )
2024-01-03 12:49:36 -08:00
Sivin Varghese
78fab7897d
feat: Use typing status from utils ( #8589 )
2023-12-22 13:47:41 +05:30
Nithin David Thomas
f48e014694
feat: Updates the design of the network connection warning snack bar ( #8509 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
2023-12-21 14:16:21 -08:00
Nithin David Thomas
206433db32
feat: Adds dropdown to switch locales from articles list page ( #8402 )
2023-12-21 13:16:59 -08:00
Sojan Jose
1ddb73ea97
chore(security): Security upgrade omniauth from 2.1.1 to 2.1.2 ( #8591 )
...
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2023-12-20 13:38:34 -08:00
Muhsin Keloth
b5071e61d7
feat: Add last_activity_at field to Notification model ( #8585 )
2023-12-20 13:02:37 +05:30
Muhsin Keloth
a80eff9aa3
feat: Enable custom attributes in the suggestion for variables. ( #8520 )
2023-12-20 12:20:09 +05:30
Sojan
a59fb90785
Merge branch 'release/3.4.0' into develop
2023-12-18 21:23:02 -08:00
Sojan
29478880ff
Bump version to 3.4.0
2023-12-18 21:22:06 -08:00
Vishnu Narayanan
c9f8cdb51b
fix: switch to nodejs ppa for linux installations ( #8337 )
...
Nodesource script-based installation is deprecated. Switch to a different ppa for nodejs.
Fixes: https://linear.app/chatwoot/issue/CW-2686/upgrade-warning
Fixes : #8151
2023-12-18 21:18:42 -08:00