wco_email 0.1.1.117 → 0.1.1.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/wco_email/messages_controller.rb +2 -7
- data/app/views/wco_email/conversations/_form_mini.haml +5 -5
- data/app/views/wco_email/conversations/show.haml +8 -4
- data/app/views/wco_email/email_filter_conditions/_form.haml +2 -2
- data/app/views/wco_email/email_filters/_form2.haml +9 -15
- data/app/views/wco_email/email_filters/_list.haml +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92ad474046091dfd7141e80a9271656b9242723d79794d7be5f1a38a7456934a
|
|
4
|
+
data.tar.gz: 7cbc4eb3a83e02bb63b82da434be6896d9ff48c4cf4fded2f411bcfd9c0c1f9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3996c80beead70714683394593f675af0adf25dcceaae6c6295c2558bbe5e15d5a204efdec71b78f000fb4b32bf5d909f79c7532e32f21f5d28fb794f8b2a272
|
|
7
|
+
data.tar.gz: 77f684c826db4188459a1970cdd4ecda98e34932256bc0cf7b4464f357e68e9ac74b48a60c4a50bad326c18061ef0ef91a6436853eed8f956801e71ed1c4c1db
|
|
@@ -4,19 +4,14 @@ class WcoEmail::MessagesController < WcoEmail::ApplicationController
|
|
|
4
4
|
before_action :set_lists, except: %i| show_iframe |
|
|
5
5
|
|
|
6
6
|
def show
|
|
7
|
+
@client ||= Aws::S3::Client.new(::SES_S3_CREDENTIALS)
|
|
7
8
|
@message = WcoEmail::Message.find params[:id]
|
|
9
|
+
authorize! :show, @message
|
|
8
10
|
|
|
9
|
-
@client ||= Aws::S3::Client.new({
|
|
10
|
-
region: ::S3_CREDENTIALS[:region_ses] || 'us-east-1',
|
|
11
|
-
access_key_id: ::S3_CREDENTIALS[:access_key_id_ses],
|
|
12
|
-
secret_access_key: ::S3_CREDENTIALS[:secret_access_key_ses],
|
|
13
|
-
})
|
|
14
11
|
stub = @message.stub
|
|
15
12
|
raw = @client.get_object( bucket: stub.bucket, key: stub.object_key ).body.read
|
|
16
13
|
raw = raw.encode('utf-8', invalid: :replace, undef: :replace, replace: '_' )
|
|
17
14
|
@the_mail = Mail.new( raw )
|
|
18
|
-
|
|
19
|
-
authorize! :show, @message
|
|
20
15
|
end
|
|
21
16
|
|
|
22
17
|
def show_iframe
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
-# only change the subject
|
|
4
4
|
-#
|
|
5
5
|
|
|
6
|
-
= form_for conversation do |f|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
= form_for conversation, html: { class: 'd-flex flex-grow' } do |f|
|
|
7
|
+
|
|
8
|
+
%label Subj
|
|
9
|
+
= f.text_field :subject, class: 'w-100 flex-grow'
|
|
10
|
+
= f.submit '~>'
|
|
@@ -5,20 +5,24 @@
|
|
|
5
5
|
.conversations-list
|
|
6
6
|
= check_box_tag 'conversation_ids[]', @conversation.id.to_s, true, { class: 'i-sel', disabled: true }
|
|
7
7
|
.conversations-show.maxwidth
|
|
8
|
-
= render '/wco_email/conversations/form_mini', conversation: @conversation
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
|
|
10
|
+
.d-flex
|
|
11
|
+
= render '/wco_email/conversations/form_mini', conversation: @conversation
|
|
11
12
|
<b>(#{@messages.length})</b>
|
|
12
13
|
%span.gray.mini= @conversation.id
|
|
14
|
+
.d-flex
|
|
13
15
|
= render '/wco/tags/index_chips', tags: @conversation.tags, config: { skip_checkbox: true }
|
|
14
|
-
|
|
15
|
-
= render '/wco_email/conversations/tags_actions'
|
|
16
|
+
= render '/wco_email/conversations/tags_actions'
|
|
16
17
|
.d-flex
|
|
17
18
|
%i.fa.fa-compress.collapse-expand#leads Leads (#{@conversation.leads.length}):
|
|
18
19
|
= render '/wco/leads/list', leads: @conversation.leads
|
|
19
20
|
.d-flex
|
|
20
21
|
%i.fa.fa-compress.collapse-expand#leadsets Leadsets (#{@conversation.leadsets.length}):
|
|
21
22
|
= render '/wco/leadsets/list', leadsets: @conversation.leadsets
|
|
23
|
+
.d-flex
|
|
24
|
+
%i.fa.fa-compress.collapse-expand#filters Filters (#{@conversation.filters.length}):
|
|
25
|
+
= render '/wco_email/email_filters/list', filters: @conversation.filters
|
|
22
26
|
|
|
23
27
|
- if @other_convs.present?
|
|
24
28
|
%h5 Other convs:
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
.field
|
|
11
11
|
%label Operator
|
|
12
12
|
= f.select :operator, options_for_select([[nil,nil]] + WcoEmail::EmailFilterCondition::OPERATOR_OPTS, selected: cond.operator)
|
|
13
|
-
.field
|
|
13
|
+
.field.d-flex.w-100
|
|
14
14
|
%label Value
|
|
15
|
-
= f.text_field :value, value: cond.value
|
|
15
|
+
= f.text_field :value, value: cond.value, class: 'flex-grow'
|
|
16
16
|
|
|
17
17
|
-# .a= cond.inspect
|
|
18
18
|
|
|
@@ -7,27 +7,21 @@
|
|
|
7
7
|
.email-filters--from.maxwidth
|
|
8
8
|
= form_for email_filter, url: url, as: :email_filter do |f|
|
|
9
9
|
|
|
10
|
-
%
|
|
11
|
-
|
|
12
|
-
=
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-# %label add
|
|
16
|
-
-# = form_for @new_email_filter_condition do |f_cond|
|
|
17
|
-
-# = render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
|
|
10
|
+
%label.collapse-expand#if_ <> If (any)
|
|
11
|
+
%ol
|
|
12
|
+
= f.fields_for( :conditions ) do |f_cond|
|
|
13
|
+
%li= render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
|
|
14
|
+
.c
|
|
18
15
|
|
|
19
|
-
%
|
|
16
|
+
%label.collapse-expand#skip_ <> Skip (any)
|
|
20
17
|
= f.fields_for( :skip_conditions ) do |f_cond|
|
|
21
18
|
= render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
|
|
19
|
+
.c
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
-# %label add
|
|
25
|
-
-# = form_for @new_email_filter_condition do |f_cond|
|
|
26
|
-
-# = render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
|
|
27
|
-
|
|
28
|
-
%p Then
|
|
21
|
+
%label.collapse-expand#then_ <> Then
|
|
29
22
|
= f.fields_for( :actions ) do |f_action|
|
|
30
23
|
= render '/wco_email/email_filter_actions/form', f: f_action, action: f_action.object
|
|
24
|
+
.c
|
|
31
25
|
|
|
32
26
|
.actions
|
|
33
27
|
= f.submit 'Go'
|
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.118
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Pudeyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-s3
|
|
@@ -428,6 +428,7 @@ files:
|
|
|
428
428
|
- app/views/wco_email/email_filters/_form.haml
|
|
429
429
|
- app/views/wco_email/email_filters/_form2.haml
|
|
430
430
|
- app/views/wco_email/email_filters/_header.haml
|
|
431
|
+
- app/views/wco_email/email_filters/_list.haml
|
|
431
432
|
- app/views/wco_email/email_filters/_main_header.haml
|
|
432
433
|
- app/views/wco_email/email_filters/_show.haml
|
|
433
434
|
- app/views/wco_email/email_filters/edit.haml
|