diff --git a/.github/workflows/run_foss_spec.yml b/.github/workflows/run_foss_spec.yml
index 3a6ff5f7b..395e063e7 100644
--- a/.github/workflows/run_foss_spec.yml
+++ b/.github/workflows/run_foss_spec.yml
@@ -42,7 +42,8 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
- ref: ${{ github.head_ref }}
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: ruby/setup-ruby@v1
with:
diff --git a/Gemfile b/Gemfile
index e94303f45..9bc330d93 100644
--- a/Gemfile
+++ b/Gemfile
@@ -104,7 +104,7 @@ gem 'sentry-sidekiq'
##-- background job processing --##
gem 'sidekiq', '~> 6.4.0'
# We want cron jobs
-gem 'sidekiq-cron'
+gem 'sidekiq-cron', '~> 1.3'
##-- Push notification service --##
gem 'fcm'
diff --git a/Gemfile.lock b/Gemfile.lock
index 2789f09da..ba8f04ec9 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -9,63 +9,63 @@ GIT
GEM
remote: https://rubygems.org/
specs:
- actioncable (6.1.4.7)
- actionpack (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ actioncable (6.1.5.1)
+ actionpack (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
- actionmailbox (6.1.4.7)
- actionpack (= 6.1.4.7)
- activejob (= 6.1.4.7)
- activerecord (= 6.1.4.7)
- activestorage (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ actionmailbox (6.1.5.1)
+ actionpack (= 6.1.5.1)
+ activejob (= 6.1.5.1)
+ activerecord (= 6.1.5.1)
+ activestorage (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
mail (>= 2.7.1)
- actionmailer (6.1.4.7)
- actionpack (= 6.1.4.7)
- actionview (= 6.1.4.7)
- activejob (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ actionmailer (6.1.5.1)
+ actionpack (= 6.1.5.1)
+ actionview (= 6.1.5.1)
+ activejob (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
- actionpack (6.1.4.7)
- actionview (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ actionpack (6.1.5.1)
+ actionview (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
rack (~> 2.0, >= 2.0.9)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
- actiontext (6.1.4.7)
- actionpack (= 6.1.4.7)
- activerecord (= 6.1.4.7)
- activestorage (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ actiontext (6.1.5.1)
+ actionpack (= 6.1.5.1)
+ activerecord (= 6.1.5.1)
+ activestorage (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
nokogiri (>= 1.8.5)
- actionview (6.1.4.7)
- activesupport (= 6.1.4.7)
+ actionview (6.1.5.1)
+ activesupport (= 6.1.5.1)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
active_record_query_trace (1.8)
- activejob (6.1.4.7)
- activesupport (= 6.1.4.7)
+ activejob (6.1.5.1)
+ activesupport (= 6.1.5.1)
globalid (>= 0.3.6)
- activemodel (6.1.4.7)
- activesupport (= 6.1.4.7)
- activerecord (6.1.4.7)
- activemodel (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ activemodel (6.1.5.1)
+ activesupport (= 6.1.5.1)
+ activerecord (6.1.5.1)
+ activemodel (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
activerecord-import (1.3.0)
activerecord (>= 4.2)
- activestorage (6.1.4.7)
- actionpack (= 6.1.4.7)
- activejob (= 6.1.4.7)
- activerecord (= 6.1.4.7)
- activesupport (= 6.1.4.7)
- marcel (~> 1.0.0)
+ activestorage (6.1.5.1)
+ actionpack (= 6.1.5.1)
+ activejob (= 6.1.5.1)
+ activerecord (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
+ marcel (~> 1.0)
mini_mime (>= 1.1.0)
- activesupport (6.1.4.7)
+ activesupport (6.1.5.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
@@ -136,7 +136,7 @@ GEM
climate_control (1.0.1)
coderay (1.1.3)
commonmarker (0.23.4)
- concurrent-ruby (1.1.9)
+ concurrent-ruby (1.1.10)
connection_pool (2.2.5)
crack (0.4.5)
rexml
@@ -183,7 +183,7 @@ GEM
email_reply_trimmer (0.1.13)
erubi (1.10.0)
erubis (2.7.0)
- et-orbi (1.2.6)
+ et-orbi (1.2.7)
tzinfo
execjs (2.8.1)
facebook-messenger (2.0.1)
@@ -210,8 +210,8 @@ GEM
ruby_parser (~> 3.0)
sexp_processor (~> 4.0)
foreman (0.87.2)
- fugit (1.5.2)
- et-orbi (~> 1.1, >= 1.1.8)
+ fugit (1.5.3)
+ et-orbi (~> 1, >= 1.2.7)
raabro (~> 1.4)
gapic-common (0.3.4)
google-protobuf (~> 3.12, >= 3.12.2)
@@ -349,7 +349,7 @@ GEM
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
- loofah (2.14.0)
+ loofah (2.16.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
@@ -419,31 +419,31 @@ GEM
rack-test (1.1.0)
rack (>= 1.0, < 3)
rack-timeout (0.6.0)
- rails (6.1.4.7)
- actioncable (= 6.1.4.7)
- actionmailbox (= 6.1.4.7)
- actionmailer (= 6.1.4.7)
- actionpack (= 6.1.4.7)
- actiontext (= 6.1.4.7)
- actionview (= 6.1.4.7)
- activejob (= 6.1.4.7)
- activemodel (= 6.1.4.7)
- activerecord (= 6.1.4.7)
- activestorage (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ rails (6.1.5.1)
+ actioncable (= 6.1.5.1)
+ actionmailbox (= 6.1.5.1)
+ actionmailer (= 6.1.5.1)
+ actionpack (= 6.1.5.1)
+ actiontext (= 6.1.5.1)
+ actionview (= 6.1.5.1)
+ activejob (= 6.1.5.1)
+ activemodel (= 6.1.5.1)
+ activerecord (= 6.1.5.1)
+ activestorage (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
bundler (>= 1.15.0)
- railties (= 6.1.4.7)
+ railties (= 6.1.5.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.2)
loofah (~> 2.3)
- railties (6.1.4.7)
- actionpack (= 6.1.4.7)
- activesupport (= 6.1.4.7)
+ railties (6.1.5.1)
+ actionpack (= 6.1.5.1)
+ activesupport (= 6.1.5.1)
method_source
- rake (>= 0.13)
+ rake (>= 12.2)
thor (~> 1.0)
rainbow (3.1.1)
rake (13.0.6)
@@ -551,8 +551,8 @@ GEM
connection_pool (>= 2.2.2)
rack (~> 2.0)
redis (>= 4.2.0)
- sidekiq-cron (1.2.0)
- fugit (~> 1.1)
+ sidekiq-cron (1.4.0)
+ fugit (~> 1)
sidekiq (>= 4.2.1)
signet (0.16.0)
addressable (~> 2.8)
@@ -731,7 +731,7 @@ DEPENDENCIES
sentry-sidekiq
shoulda-matchers
sidekiq (~> 6.4.0)
- sidekiq-cron
+ sidekiq-cron (~> 1.3)
simplecov (= 0.17.1)
slack-ruby-client
spring
@@ -755,4 +755,4 @@ RUBY VERSION
ruby 3.0.2p107
BUNDLED WITH
- 2.3.8
+ 2.3.9
diff --git a/app/builders/v2/report_builder.rb b/app/builders/v2/report_builder.rb
index 475a34ccb..5cd8b4a63 100644
--- a/app/builders/v2/report_builder.rb
+++ b/app/builders/v2/report_builder.rb
@@ -96,7 +96,7 @@ class V2::ReportBuilder
def conversations
@open_conversations = scope.conversations.where(account_id: @account.id).open
- first_response_count = scope.reporting_events.where(name: 'first_response', conversation_id: @open_conversations.pluck('id')).count
+ first_response_count = @account.reporting_events.where(name: 'first_response', conversation_id: @open_conversations.pluck('id')).count
metric = {
open: @open_conversations.count,
unattended: @open_conversations.count - first_response_count
diff --git a/app/controllers/public/api/v1/inboxes/contacts_controller.rb b/app/controllers/public/api/v1/inboxes/contacts_controller.rb
index 6932386fd..eb794f2a0 100644
--- a/app/controllers/public/api/v1/inboxes/contacts_controller.rb
+++ b/app/controllers/public/api/v1/inboxes/contacts_controller.rb
@@ -43,6 +43,6 @@ class Public::Api::V1::Inboxes::ContactsController < Public::Api::V1::InboxesCon
end
def permitted_params
- params.permit(:identifier, :identifier_hash, :email, :name, :avatar_url, custom_attributes: {})
+ params.permit(:identifier, :identifier_hash, :email, :name, :avatar_url, :phone_number, custom_attributes: {})
end
end
diff --git a/app/javascript/dashboard/assets/scss/widgets/_reply-box.scss b/app/javascript/dashboard/assets/scss/widgets/_reply-box.scss
index 8a53545fe..1d2c3f63d 100644
--- a/app/javascript/dashboard/assets/scss/widgets/_reply-box.scss
+++ b/app/javascript/dashboard/assets/scss/widgets/_reply-box.scss
@@ -27,6 +27,16 @@
padding: 0 $space-small;
}
+ .video-js {
+ background: transparent;
+ // Override min-height : 50px in foundation
+ //
+ max-height: $space-mega * 2.4;
+ min-height: 4.8rem;
+ padding: var(--space-normal) 0 0;
+ resize: none;
+ }
+
>textarea {
@include ghost-input();
@include margin(0);
diff --git a/app/javascript/dashboard/components/widgets/WootWriter/AudioRecorder.vue b/app/javascript/dashboard/components/widgets/WootWriter/AudioRecorder.vue
index 4d6df7793..8796065ac 100644
--- a/app/javascript/dashboard/components/widgets/WootWriter/AudioRecorder.vue
+++ b/app/javascript/dashboard/components/widgets/WootWriter/AudioRecorder.vue
@@ -1,16 +1,29 @@