Muhsin Keloth
6eb4fa41ff
feat: Add sender details and message create date in the attachment API ( #7308 )
2023-06-14 17:29:13 +05:30
Nithin David Thomas
d2aa19579e
feat: Adds support for superscript in help center articles ( #7279 )
...
- Adds support for superscript when rendering article markdown
- Chatwoot Markdown Render to render markdown everywhere
Co-authored-by: Sojan <sojan@pepalo.com >
2023-06-14 15:39:00 +05:30
Shivam Mishra
2e79a32db7
fix: calculation for resolution count ( #7293 )
...
* fix: calculation for resolution count
* test: resolution count bug fix
- ensure enqueued jobs are run
- fix the dates check, conversations resolved today should show up in today
* feat: ensure conversations are resolved
* test: do not count extra events if the conversation is not resolved currently
* fix: typo
2023-06-14 13:50:10 +05:30
Shivam Mishra
a86e236d19
feat: update cache headers for cache_keys ( #7283 )
...
Update the cache headers for cache_keys to max-age=10, private, stale-while-revalidate=300
1. The cache will be fresh for 10 seconds (max-age=10). During this time, the browser will use the cached version without checking with the server.
2. After the initial 10 seconds, the browser can continue to serve the stale cache for up to 5 minutes (stale-while-revalidate=300). During this period, it will also try to revalidate and update the cache in the background.
3. After 310 seconds in total (10 seconds fresh, 300 seconds stale), if the browser has not been able to revalidate the cache, it will attempt to fetch the fresh resource directly from the server for subsequent requests, causing potential latency equivalent to a network request.
This means that the data will be directly revalidated only every 5 mins. Other times, it will stay fresh for 10 seconds and revalidate in the background. In most cases, we won't have to rely on a cache validation check because there is a WebSocket event for revalidation, so we know if something changes.
Right now the stale-while-revalidate is 5 minutes, we can then move it to 15 minutes.
> The stale-while-revalidate header is not supported in Safari, for Safari the cache keys will only stay in memory for 10 seconds before being marked stale
2023-06-14 13:21:51 +05:30
Shivam Mishra
c755978352
feat: update banner design [CW-1491] ( #7296 )
...
* refactor: banner styling
* refactor: update button style for reply assign banner
* feat: remove update-banner classes
---------
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-06-14 12:56:42 +05:30
Tejaswini Chile
23ca6d56f9
feat: Contact Exports ( #7258 )
2023-06-13 09:18:43 +05:30
Shivam Mishra
429ec7194f
feat: add index to reporting events [CW-1960] ( #7294 )
...
* fix: annotation
* feat: add better index for reporting_events
2023-06-12 18:23:42 +05:30
Tejaswini Chile
c99d9f9557
fix: search for nil in-reply-to messages ( #7286 )
2023-06-12 16:01:56 +05:30
Vishnu Narayanan
9ff5978d6e
feat: Add audit trail events for team ( #7285 )
2023-06-09 17:30:36 -07:00
Muhsin Keloth
cd28f401ba
fix: Custom attribute date is not working in some time zone ( #7224 )
2023-06-09 16:55:03 -07:00
Tejaswini Chile
879a244f93
fix: Automations condition based quoted text ( #7272 )
2023-06-09 17:00:05 +05:30
Tejaswini Chile
f64f2138db
fix: Update mail check for html_part ( #7273 )
2023-06-09 16:08:40 +05:30
Sojan Jose
48f2e58e59
feat: Ability to update avatars from super admin ( #7264 )
...
- Ability to update user avatars from super admin
- Ability to update bot avatars from super admin
fixes : #7060
2023-06-09 15:32:24 +05:30
Chamath K.B. Attanayaka
c715e396f0
feat: added input_select type message support for whatsapp ( #6886 )
...
- Added input_select message type support for Whatsapp Cloud API and Whatsapp 360dialog.
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-06-09 15:20:45 +05:30
Pranav Raj S
c8fac08e0b
fix: Cannot read properties of undefined (reading 'some') ( #7278 )
...
Fixes https://linear.app/chatwoot/issue/CW-2041/typeerror-cannot-read-properties-of-undefined-reading-some
Fixes https://linear.app/chatwoot/issue/CW-2042/typeerror-cannot-read-properties-of-undefined-reading-filter
2023-06-08 20:12:14 -07:00
Sivin Varghese
7fd220c177
feat: Adds the ability to edit saved segments ( #7254 )
...
* feat: Ability to edit saved filters
* chore: Adds edit contact segment
* chore: Minor fixes
* fix: code climate
* chore: Minor fixes
* chore: Adds ability to custom view name
* chore: Minor fixes
* chore: Adds spec for helper
* chore: Revert contact filter to split to new PR
* Delete editSegmentMixin.js
* chore: Revert fixes
* Update app/javascript/dashboard/i18n/locale/en/advancedFilters.json
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
* Update app/javascript/dashboard/i18n/locale/en/advancedFilters.json
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
* chore: Moved from mixin to helper for reusing in segments
* Delete editFolderMixin.js
* chore: Fix specs and added new specs
* chore: review comment fixes
* chore: Minor fixes
* fix: Not resetting applied filter
* feat: Adds the ability to edit saved segments
* feat: Adds specs for API part
---------
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
2023-06-08 21:25:51 +05:30
Pranav Raj S
b3b76d00ff
fix: Do not use the default value if the out of office message is empty ( #7268 )
2023-06-08 08:22:10 -07:00
Shivam Mishra
2f2ae88cba
fix: unattended count mismatch in report and list ( #7263 )
2023-06-08 17:58:13 +05:30
Tejaswini Chile
2b7989f52b
fix: reply mailer with sender name ( #7232 )
2023-06-08 17:07:08 +05:30
Sivin Varghese
d7314079c9
feat: Ability to edit saved folders ( #7236 )
...
* feat: Ability to edit saved filters
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
2023-06-08 14:58:57 +05:30
Nithin David Thomas
1017903ee1
fix: Adds domain option to user cookies set by SDK [CW-352] ( #7070 )
...
* fix: Adds domain option to user cookies set by SDK
* Adds domain to init event from chatwootSettings variable
* Testing multiple domains on heroku
* Updates with sdk from staging
* Removes sdk init code
* Testing why cookie is not getting set
* Cleans up testing code
* Refactors code to fix codeclimate issues
* Update app/javascript/sdk/cookieHelpers.js
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
* Adds test cases for setCookieWithDomain
---------
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com >
2023-06-08 14:27:49 +05:30
Tejaswini Chile
d25e7fd54e
fix: add email logging for source-id email-id and message-id ( #7262 )
...
* fix: mail logger for source-id email-id and message-id
* added mail provided to the tracking
* change the logger verb from info to error
* app/jobs/inboxes/fetch_imap_emails_job.rb
* codeclimate fix
* remove extra filter
* fixes: specs
2023-06-07 18:24:37 +05:30
Sojan Jose
7e89e3a34a
chore: Ensure template_sync timestamp is updated ( #7265 )
...
Fix for the cases where there are multiple channels with invalid provider config, which results in the templates sync scheduler failing to schedule jobs for valid channels.
fixes: https://linear.app/chatwoot/issue/CW-2032/bug-whatsapp-template-sync-failing-in-cloud
2023-06-07 17:18:24 +05:30
Pranav Raj S
39eaed7766
fix: Cannot read properties of undefined (reading 'always_play_audio_alert') ( #7260 )
2023-06-06 15:16:25 -07:00
Pranav Raj S
b1a4907ede
fix: around_action not yielding is params are present ( #7259 )
2023-06-06 14:55:08 -07:00
Vishnu Narayanan
a01d81a7e1
feat: Update display text for auditlog entries ( #7226 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-06-05 12:51:45 -07:00
Sojan Jose
117d5301b4
chore: API documentation updates for CSAT surveys ( #7255 )
...
- Expose conversation uuid in APIs
- swagger documentation for cast survey update via public/message/update endpoints
- swagger documentation for survey/responses/conversation_uuid endpoint
Fixes : #6328
2023-06-05 21:14:01 +05:30
Tejaswini Chile
aae6081d73
fix: check content disposition, for inline messages in mail ( #7231 )
2023-06-05 20:28:32 +05:30
Sojan Jose
d03924b846
feat: Enable sending template messages in webhooks ( #7252 )
...
fixes: https://github.com/chatwoot/chatwoot/issues/5291
2023-06-05 20:27:28 +05:30
Sivin Varghese
b333d0c986
feat: Attachments view ( #7156 )
...
* feat: Attachments view with key shortcuts and dynamically updates when user delete or sent new attachments
---------
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-06-05 19:21:47 +05:30
TOMMY
9203b097d2
chore: Show chatwoot_edition in Instance details ( #7200 )
...
- Displays the chatwoot edition in the instance details
2023-06-05 17:32:21 +05:30
Tejaswini Chile
09971fd613
fix: Wrap references string into array ( #7243 )
2023-06-03 07:33:36 +05:30
Shivam Mishra
f28533bc47
feat(perf): update query to reduce N+1 impact [CW-1926] ( #7228 )
...
* feat: update query to reduce N+1 impact
* feat: remove channel eager loading
fixes the error: ActiveRecord::EagerLoadPolymorphicError Exception: Cannot eagerly load the polymorphic association :channel
* test: fix search test
* chore: revert change
2023-06-02 11:11:55 +05:30
Tejaswini Chile
abc27fa791
fix: find mail message by references ( #7220 )
2023-05-31 19:23:29 +05:30
Sojan Jose
d93a8d05bc
chore: Increase character limit for external url fields ( #7230 )
...
- Increase the external url field validation to 2048 characters
fixes: https://github.com/chatwoot/chatwoot/issues/7098
2023-05-31 19:17:24 +05:30
Sivin Varghese
ae7df60a75
fix: Special characters not being decoded ( #7218 )
2023-05-30 18:54:51 +05:30
Vishnu Narayanan
412d750b6a
feat: auditlogs design refactor cw1764 ( #7181 )
...
* chore: refactor auditlogs design
* chore: refactor aduit log text
* chore: fix 60% width for activity column
* chore: improve log text formatting
* Apply suggestions from code review
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
* feat: show agent names if available in auditlogs
* chore: add sign_out
* Apply suggestions from code review
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
* chore: handle custom user actions
---------
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-05-30 14:41:29 +05:30
Shivam Mishra
f1a77ba934
feat: allow superadmins to reset cache keys for IndexedDB ( #7180 )
...
Allows super admins to reset the cache for an account. This will force the front end to fetch the data again on the next load.
fixes: https://linear.app/chatwoot/issue/CW-1817
Co-authored-by: Sojan <sojan@pepalo.com >
2023-05-29 23:05:17 +05:30
Sojan Jose
ffc6364690
chore: Improve Whatsapp Templates Sync ( #7210 )
...
- update the templates updated at, even if the API request fails ( to prevent jobs from stacking up in case of API failures upstream )
- sequence the job in batches of 25 requests per minutes schedule ( in case API response time is high, also not to send too many requests in a single batch )
- move the sync job re-rerun to 3 hours ( since we are updating the updated at even in case of failures )(prev 15 minutes )
Fixes: https://linear.app/chatwoot/issue/CW-1590
2023-05-29 22:23:22 +05:30
Sojan Jose
3a7633b564
feat: API to create HMAC verified conversations ( #7209 )
...
Fixes : #6744
2023-05-29 21:57:24 +05:30
amplitudes
91d1d44aa9
fix: profile picture distortion ( #7203 )
...
By applying pr-1 on a container div instead of directly on the image (which distorts it), it creates the intended padding effect without any image distortion.
2023-05-29 15:00:14 +05:30
Sojan Jose
afc97faa8b
chore: Rotate pubsub token on password change ( #7194 )
...
Fixes: https://linear.app/chatwoot/issue/CW-1350/
2023-05-27 13:24:31 +05:30
Muhsin Keloth
2c85098698
fix: Mentions in assigned/participation notification( #7185 )
2023-05-25 18:18:56 +05:30
Sivin Varghese
6bd0e074dc
feat: Sort agents on availability status ( #7174 )
2023-05-25 14:49:56 +05:30
Vishnu Narayanan
123fc73394
feat: add audit trail for sign_in and sign_out ( #7158 )
...
* feat: add audit_trail for sign_in event
* chore: ignore unrelated User model columns for auditing
* chore: fix prepend call for webhook/automation rule
* chore: add spec for sign_in event
* chore: refactor sign_in auditlog method to enterprise namespace
* feat: add sign_out audit trail
* feat: review comments
2023-05-25 14:27:30 +05:30
Sivin Varghese
88cef88d80
fix: Instagram story with video not rendering ( #7184 )
...
* fix: instagram story with video not rendering
* chore: Minor fixes
---------
Co-authored-by: Tejaswini Chile <tejaswini@chatwoot.com >
2023-05-25 12:20:42 +05:30
Tejaswini Chile
8e79cf72e1
fix: issue with slack job ( #7179 )
2023-05-24 20:22:34 +05:30
Muhsin Keloth
5618b5ebd3
fix: Enable ogg format for audio recording in API channel ( #7178 )
2023-05-24 15:05:31 +05:30
Shivam Mishra
44b1047b90
feat(perf): contacts query performance ( #7175 )
...
* feat: use more indexable where condition
* feat: add index concurrently
* chore: update schema
* refactor: update index name
2023-05-23 17:22:47 +05:30
Shivam Mishra
9c6c19c3e5
fix: CSAT filter metrics rendering & conversation reports not working [CW-1840, CW-1818] ( #7170 )
...
* fix: emoji rendering for CSAT
* feat: add tests for CSAT Metrics
* fix: allow rating in metrics
* refactor: hide satisfaction score & total response chart if rating filter is enabled
* refactor: optional chaining in group by
* fix: spacing using autofill
* test: update csat metrics tests
* test: CSAT metric card
2023-05-23 16:47:04 +05:30