wco_email 0.1.1.74 → 0.1.1.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascript/wco_email/conversations.js +36 -0
- data/app/assets/stylesheets/wco_email/application.scss +6 -1
- data/app/assets/stylesheets/wco_email/conversations.scss +10 -0
- data/app/controllers/wco_email/conversations_controller.rb +2 -1
- data/app/controllers/wco_email/message_stubs_controller.rb +14 -2
- data/app/views/wco_email/conversations/{_actions.haml → _tags_actions.haml} +2 -1
- data/app/views/wco_email/conversations/index.haml +5 -2
- data/app/views/wco_email/conversations/show.haml +4 -7
- data/app/views/wco_email/messages/_meta.haml +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e5810186275a7a37d06ac7b2c65d996f3b3414ba2077b4783e29920975aa0b0
|
4
|
+
data.tar.gz: 450fe77b6c9eb93c3d82ab53f2408c4e67c56912fb17bddd129afca79e2624c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 635a3779ea7913a42509d88f16e7f37970ecc89dfee34c2856bbebc803cc4d83ab5f3178dca47488e048c10c5ef9731f527feccd171a4cb46ec422a662768cda
|
7
|
+
data.tar.gz: c9f9d98d9dcf9d109ed5b8d762691430740901a2fed62871452471d4c87874d66bfc87e7f4ea26275716db5c0d06ad447fc79b4ffca842e9263134fdf7a82a23
|
@@ -68,6 +68,42 @@ $(".add-tag-btn").click(function(e) {
|
|
68
68
|
|
69
69
|
})
|
70
70
|
|
71
|
+
|
72
|
+
$(".office-action-templates-perform-btn").click(function(e) {
|
73
|
+
if ( !confirm('Are you sure?') ) { return; }
|
74
|
+
|
75
|
+
const jwt_token = $("#Config").data('jwt-token')
|
76
|
+
const action_path = $(this).data('url')
|
77
|
+
const oat_id = $("select[name='office_action_template']").val()
|
78
|
+
const out = []
|
79
|
+
|
80
|
+
$( $("input[type='checkbox'].i-sel:checked") ).each( idx => {
|
81
|
+
let val = $($("input[type='checkbox'].i-sel:checked")[idx]).val()
|
82
|
+
out.push(val)
|
83
|
+
})
|
84
|
+
|
85
|
+
let data = {
|
86
|
+
conversation_ids: out,
|
87
|
+
jwt_token: jwt_token,
|
88
|
+
id: oat_id,
|
89
|
+
}
|
90
|
+
$.ajax({
|
91
|
+
url: action_path,
|
92
|
+
type: 'POST',
|
93
|
+
data: data,
|
94
|
+
success: e => {
|
95
|
+
logg((e||{}).responseText, 'Ok')
|
96
|
+
location.reload()
|
97
|
+
},
|
98
|
+
error: e => {
|
99
|
+
logg((e||{}).responseText, 'Err')
|
100
|
+
location.reload()
|
101
|
+
},
|
102
|
+
})
|
103
|
+
|
104
|
+
})
|
105
|
+
|
106
|
+
|
71
107
|
$(".remove-tag-btn").click(function(e) {
|
72
108
|
if ( !confirm('Are you sure?') ) { return; }
|
73
109
|
|
@@ -152,9 +152,10 @@ class WcoEmail::ConversationsController < WcoEmail::ApplicationController
|
|
152
152
|
end
|
153
153
|
|
154
154
|
def set_lists
|
155
|
-
@tags = Wco::Tag.all
|
156
155
|
@email_templates_list = [ [nil, nil] ] + WcoEmail::EmailTemplate.all.map { |tmpl| [ tmpl.slug, tmpl.id ] }
|
157
156
|
@leads_list = Wco::Lead.list
|
157
|
+
@office_action_templates_list = Wco::OfficeActionTemplate.list
|
158
|
+
@tags = Wco::Tag.all
|
158
159
|
@tags_list = Wco::Tag.list
|
159
160
|
end
|
160
161
|
|
@@ -4,8 +4,20 @@ class WcoEmail::MessageStubsController < WcoEmail::ApplicationController
|
|
4
4
|
def churn
|
5
5
|
@stub = WcoEmail::MessageStub.find params[:id]
|
6
6
|
authorize! :churn, @stub
|
7
|
-
|
8
|
-
|
7
|
+
|
8
|
+
# WcoEmail::MessageIntakeJob.perform_async( @stub.id.to_s )
|
9
|
+
begin
|
10
|
+
@stub.do_process
|
11
|
+
rescue => err
|
12
|
+
@stub.update({ status: WcoEmail::MessageStub::STATUS_FAILED })
|
13
|
+
puts! err, "WcoEmail::MessageIntakeJob error"
|
14
|
+
::ExceptionNotifier.notify_exception(
|
15
|
+
err,
|
16
|
+
data: { stub: @stub }
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
flash_notice "Churned 1 stub."
|
9
21
|
redirect_to request.referrer
|
10
22
|
end
|
11
23
|
|
@@ -3,6 +3,8 @@
|
|
3
3
|
= render 'wco_email/sidebar'
|
4
4
|
|
5
5
|
.conversations-index
|
6
|
+
= render '/wco_email/conversations/search'
|
7
|
+
|
6
8
|
.header
|
7
9
|
%h5.title
|
8
10
|
- if @tag
|
@@ -10,8 +12,9 @@
|
|
10
12
|
- if @tag_not
|
11
13
|
Tag-not `#{@tag_not}`
|
12
14
|
(#{@conversations.length})
|
13
|
-
|
14
|
-
= render '/wco_email/conversations/
|
15
|
+
|
16
|
+
= render '/wco_email/conversations/tags_actions'
|
17
|
+
= render '/wco/office_actions/actions'
|
15
18
|
|
16
19
|
= render '/wco/paginate', resource: @conversations, param_name: :conv_page
|
17
20
|
= render '/wco_email/conversations/table', convs: @conversations
|
@@ -12,15 +12,12 @@
|
|
12
12
|
%span.gray.mini= @conversation.id
|
13
13
|
|
14
14
|
= render '/wco/tags/index_chips', tags: @conversation.tags
|
15
|
-
|
16
|
-
= render '/
|
17
|
-
|
18
|
-
.Leads.mb-2
|
19
|
-
.d-inline <b>Leads:</b>
|
20
|
-
- @conversation.leads.each do |lead|
|
21
|
-
.Chip= link_to lead.email, wco.lead_path( lead )
|
15
|
+
= render '/wco_email/conversations/tags_actions'
|
16
|
+
= render '/wco/leads/index_chips', leads: @conversation.leads
|
17
|
+
= render '/wco/leadsets/index_chips', leadsets: @conversation.leadsets
|
22
18
|
|
23
19
|
- if @other_convs.present?
|
20
|
+
%h5 Other convs:
|
24
21
|
- @other_convs.each do |conv|
|
25
22
|
.d-flex
|
26
23
|
= button_to "Merge", merge_conversations_path( @conversation, conv ), data: { confirm: 'Are you sure?' }
|
@@ -19,6 +19,10 @@
|
|
19
19
|
<b>message_id:</b> #{message.message_id}
|
20
20
|
%li
|
21
21
|
<b>object_key:</b> #{message.object_key}
|
22
|
+
%li
|
23
|
+
<b>Stub:</b>
|
24
|
+
#{message.stub.id}
|
25
|
+
.d-inline-block= button_to 'reprocess', churn_message_stub_path(message.stub)
|
22
26
|
%li <b>in_reply_to_id:</b> #{message.in_reply_to_id}
|
23
27
|
%li
|
24
28
|
<b>n_images:</b> #{message.photos.length}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -376,9 +376,9 @@ files:
|
|
376
376
|
- app/views/wco_email/contexts/show_iframe.haml
|
377
377
|
- app/views/wco_email/contexts/summary.csv.erb
|
378
378
|
- app/views/wco_email/contexts/summary.haml
|
379
|
-
- app/views/wco_email/conversations/_actions.haml
|
380
379
|
- app/views/wco_email/conversations/_form.haml
|
381
380
|
- app/views/wco_email/conversations/_search.haml
|
381
|
+
- app/views/wco_email/conversations/_tags_actions.haml
|
382
382
|
- app/views/wco_email/conversations/edit.haml
|
383
383
|
- app/views/wco_email/conversations/index.haml
|
384
384
|
- app/views/wco_email/conversations/show.haml
|