wco_email 0.1.1.117 → 0.1.1.119

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec62edaefde7f02c66548edb5178e5a178c97aa11f570dbcd26e8b0252a25a8f
4
- data.tar.gz: 186a42fa6d54d069c10216a3976949ef487381d8b1b21282c388482f1bacb58c
3
+ metadata.gz: 1217d25c7670587d9ec3395090a8f7774847534dddee9a2a3d0c502c2aaeb703
4
+ data.tar.gz: 243dcbe1098550f673ba972414f865e7e14111589ed6f271f9998577ce438398
5
5
  SHA512:
6
- metadata.gz: '09eb81d24cedae7fd885149f1cb5ed455b8436665ce1058c91541aaafc04e8041bceb470bfa30c5ae87a7d0cc051e57fb1243f9bb6a211a658ad77b3a19a2ebc'
7
- data.tar.gz: f0c32984b659fbf98700562df9beabfc5e291d5366cb8c1ec750b46729de307f7835743b3d8baa193b7f8f415cc49a3358609380d07b184588571be05465ed41
6
+ metadata.gz: ab3d21fac2fcd377a2011fd7d1b810617ec7f3e735cea3afe265598a8e9536a480ee848b5bb0a71395ad441c4a4df0297e965c43930caf8cb807103992aa9fdc
7
+ data.tar.gz: 06edfeafb22b5982a1585935d60d7ed3855af1e8e0dcc52864e6570da49f56c890ca161c5dc03b6efe7a56138b6968341bca89d1b815a180e23acf0ee38eafce
@@ -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
- .d-flex
8
- %label Subj
9
- = f.text_field :subject, class: 'w-100'
10
- = f.submit '~>'
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
- %h5
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,27 @@
7
7
  .email-filters--from.maxwidth
8
8
  = form_for email_filter, url: url, as: :email_filter do |f|
9
9
 
10
- %p If
11
- = f.fields_for( :conditions ) do |f_cond|
12
- = render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
13
-
14
- -# .d-flex
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
18
-
19
- %p Skip
20
- = f.fields_for( :skip_conditions ) do |f_cond|
21
- = render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
22
-
23
- -# .d-flex
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
29
- = f.fields_for( :actions ) do |f_action|
30
- = render '/wco_email/email_filter_actions/form', f: f_action, action: f_action.object
10
+ .field
11
+ %label slug
12
+ = f.text_field :slug
13
+
14
+ %label.collapse-expand#if_ &lt;> If (any)
15
+ %ol
16
+ = f.fields_for( :conditions ) do |f_cond|
17
+ %li= render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
18
+ .c
19
+
20
+ %label.collapse-expand#skip_ &lt;> Skip (any)
21
+ %ol
22
+ = f.fields_for( :skip_conditions ) do |f_cond|
23
+ %li= render '/wco_email/email_filter_conditions/form', f: f_cond, cond: f_cond.object
24
+ .c
25
+
26
+ %label.collapse-expand#then_ &lt;> Then
27
+ %ol
28
+ = f.fields_for( :actions ) do |f_action|
29
+ %li= render '/wco_email/email_filter_actions/form', f: f_action, action: f_action.object
30
+ .c
31
31
 
32
32
  .actions
33
33
  = f.submit 'Go'
@@ -0,0 +1,4 @@
1
+
2
+ %ul.email-filters--list
3
+ - filters.each do |f|
4
+ %li= link_to f.to_s, wco_email.email_filter_path(f)
@@ -6,11 +6,6 @@
6
6
  = link_to '[+]', new_email_filter_path
7
7
  = link_to '[2+]', new2_email_filter_path
8
8
 
9
- -# .maxwidth
10
- -# %hr
11
- -# %h5.title.collapse-expand#newEmailFilter New Email Filter
12
- -# = render 'form', email_filter: @email_filter
13
-
14
9
  .actions.d-flex
15
10
  .a.mr-2= button_tag 'Delete', method: :delete, class: 'delete-btn'
16
11
  = render 'wco/tags/actions', resource: 'Wco::Leadset'
@@ -26,6 +21,7 @@
26
21
  %th &nbsp;
27
22
  %th status
28
23
  %th n convs
24
+ %th slug
29
25
  %th to_s_full
30
26
  %th Match
31
27
  %th Skip
@@ -50,6 +46,8 @@
50
46
  = ef.status
51
47
  %td.n-convs
52
48
  = ef.conversations.length
49
+ %td.slug.text-nowrap
50
+ = ef.slug
53
51
  %td.to_s_full
54
52
  %pre= ef.to_s_full
55
53
  %td.match
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.117
4
+ version: 0.1.1.119
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-06-29 00:00:00.000000000 Z
11
+ date: 2026-07-02 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