wco_email 0.1.1.61 → 0.1.1.63

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b82b0b780a32dc0536435691c43bd337e7f868f31eb1107dc3a1ddbc26bb816c
4
- data.tar.gz: 0ffce82f7e29d66f6def36004685b2ed4b43a07305dc6ea2e7450b5842107701
3
+ metadata.gz: f805c9c1a7afca2746021a03262841dea1d91082a484a8466fbf97aec6f33a45
4
+ data.tar.gz: ee6aa3515782753729fed878741e8e10e8751699d0c40c885ca2b4a3c1d1ebbd
5
5
  SHA512:
6
- metadata.gz: 5f9c43740eea5dd1a0aa6df539422cc545ae6dec7659ca16ef0b59ede7ce41da8b9fb5a639ccfd754a59fb3f16233cb6febf532079d729bfae1c55d203b35fdb
7
- data.tar.gz: 4996db4ce2668cf8d0109db6ff591398d769d040880941581a2ad0751f71fda62828483be75a3d6af8145bbff1a41f347066644bdfac1bf313fdfe803d18e39f
6
+ metadata.gz: 3c76002ef3aeda957bf51df966885aa2167e267812f974869d912a78031e46103d912030f3d0074d0322b2dd96b9e7b2c7d1b5edd4a3ffaa054bf58bc75eed4e
7
+ data.tar.gz: 2f27caae727569baa76656185c9fc68940c11ed5ba42ca29826611ef912b6b848aca4033d37d0646e0553e50b2d3a312d3781743b422ca7185b3152bb322bfed
@@ -115,7 +115,7 @@ $(".remove-tag-btn").click(function(e) {
115
115
  const emailtag = $("select[name='emailtag']").val()
116
116
  const out = []
117
117
 
118
- $( $("input[type='checkbox'].i-sel:checked") ).each( idx => {
118
+ $( $(".conversations-list input[type='checkbox'].i-sel:checked") ).each( idx => {
119
119
  let val = $($("input[type='checkbox'].i-sel:checked")[idx]).val()
120
120
  out.push(val)
121
121
  })
@@ -1,4 +1,10 @@
1
1
 
2
+ .Context {
3
+ border: 1px solid var(--wco-color-2);
4
+ border-radius: .5em;
5
+ padding: 0.5em;
6
+ }
7
+
2
8
  .email-contexts--form-reply {
3
9
  margin-bottom: 2em;
4
10
  }
@@ -4,6 +4,7 @@
4
4
  // display: flex;
5
5
  // }
6
6
 
7
+
7
8
  th.select-all {
8
9
  width: 50px;
9
10
 
@@ -0,0 +1,21 @@
1
+
2
+ .Message {
3
+ border: 1px solid var(--wco-color-1);
4
+ border-radius: .5em;
5
+ padding: 0.5em;
6
+ }
7
+
8
+ .Meta {
9
+ ul {
10
+ margin: 0;
11
+ padding: 0;
12
+ list-style-type: none;
13
+
14
+ li {
15
+ border-left: 3px solid var(--wco-color-2);
16
+ padding-left: 0.5em;
17
+ margin-bottom: 0.5em;
18
+ }
19
+
20
+ }
21
+ }
@@ -4,7 +4,7 @@
4
4
  - @tags.each do |tag|
5
5
  %li
6
6
  = link_to tag.slug, conversations_in_path( tag.slug )
7
- -# <b>#{tag.conversations.unread.length}</b>
8
- -# (#{tag.conversations.length})
7
+ <b>#{tag.conversations.unread.length}</b>
8
+ (#{tag.conversations.length})
9
9
  = link_to "not", conversations_not_in_path( tag.slug )
10
10
 
@@ -1,29 +1,29 @@
1
1
 
2
2
  -# = ctx.inspect
3
3
 
4
- .email-contexts--form-reply.form-mini
4
+ .Context.email-contexts--form-reply.form-mini
5
5
  = form_for ctx do |f|
6
6
 
7
7
  .flex-row
8
8
  .flex-row
9
- %label from
9
+ %label from&nbsp;
10
10
  = f.select :from_email, options_for_select( WcoEmail::EmailTemplate.from_emails_list, selected: ctx.from_email ), {}, class: 'select2'
11
- %label to (lead)
11
+ %label &nbsp;to&nbsp;
12
12
  = f.select :lead, options_for_select( @leads_list, selected: lead_id ), {}, class: 'select2', required: true
13
13
  .flex-row
14
- = f.label :template
14
+ %label &nbsp;template&nbsp;
15
15
  = f.select :email_template_id, options_for_select( @email_templates_list, selected: ctx.email_template_id ), {}, class: 'select2', required: true
16
16
  = link_to '[+]', new_email_template_path, target: :_blank
17
- .flex-row
18
- %label Subject
19
- = f.text_field :subject, class: 'w-100'
17
+ -# .flex-row
18
+ -# %label Subject&nbsp;
19
+ -# = f.text_field :subject, class: 'w-100', disabled: true
20
20
  .field
21
21
  = f.text_area :body, class: 'tinymce'
22
22
  .flex-row
23
23
  .flex-row
24
- %label Respond inline?
24
+ %label Respond inline?&nbsp;
25
25
  = check_box_tag :respond_inline, message.id, checked: true
26
26
  .flex-row
27
- = f.label :send_at
27
+ %label &nbsp;send_at&nbsp;
28
28
  = f.text_field :send_at, placeholder: 'YYYY-MM-DD', value: Time.now, size: 30, class: 'input-date'
29
29
  = f.submit 'Send/Schedule'
@@ -1,24 +1,14 @@
1
1
 
2
- .conversations--actions.bordered.d-flex
3
2
 
4
- -# %a.btn.archive-btn{ href: "javascript: void(0)", data: { url: conversations_rmtag_path(Wco::Tag::INBOX) } }
5
- -# %i.material-icons archive
6
- -# archive
7
- -# %a.btn.delete-btn{ href: "javascript: void(0)", data: { url: conversations_path } }
8
- -# %i.material-icons delete
9
- -# delete
10
- -# %a.btn.reload-btn{ href: "javascript: location.reload()" }
11
- -# %i.material-icons refresh
12
- -# refresh
3
+ .bordered.inline-block.mb-2
4
+ .d-inline-block
5
+ = select_tag :emailtag, options_for_select(@tags_list), class: 'select2'
6
+ = check_box_tag :is_move
7
+ %label move?
8
+ %a.btn.add-tag-btn{ href: "javascript: void(0)", data: { url: conversations_addtag_path } }
9
+ %i.material-icons add
10
+ Addtag
11
+ %a.btn.remove-tag-btn{ href: "javascript: void(0)", data: { url: conversations_rmtag_path } }
12
+ %i.material-icons remove
13
+ Rmtag
13
14
 
14
- .bordered.inline-block
15
- .d-inline-block
16
- = select_tag :emailtag, options_for_select(@tags_list), class: 'select2'
17
- = check_box_tag :is_move
18
- %label move?
19
- %a.btn.add-tag-btn{ href: "javascript: void(0)", data: { url: conversations_addtag_path } }
20
- %i.material-icons add
21
- Addtag
22
- %a.btn.remove-tag-btn{ href: "javascript: void(0)", data: { url: conversations_rmtag_path } }
23
- %i.material-icons remove
24
- Rmtag
@@ -2,29 +2,37 @@
2
2
  - content_for :sidebar do
3
3
  = render 'wco_email/sidebar'
4
4
 
5
+ .conversations-list
6
+ = check_box_tag 'conversation_ids[]', @conversation.id.to_s, true, { class: 'i-sel', disabled: true }
5
7
  .conversations-show.maxwidth
6
8
  %h5
7
9
  = @conversation.subject
8
10
  <b>(#{@conversation.messages.length})</b>
9
11
  = link_to '[~]', edit_conversation_path(@conversation)
10
12
  %span.gray.mini= @conversation.id
11
- .leads
13
+
14
+ = render 'wco/tags/list_mini', tags: @conversation.tags
15
+
16
+
17
+ = render '/wco_email/conversations/actions'
18
+
19
+ .Leads.mb-2
12
20
  .d-inline <b>Leads:</b>
13
21
  - @conversation.leads.each do |lead|
14
22
  .Chip= link_to lead.email, wco.lead_path( lead )
15
23
 
16
- -# - if @other_convs.present?
17
- -# - @other_convs.each do |conv|
18
- -# .d-flex
19
- -# = button_to "Merge", merge_conversations_path( @conversation, conv ), data: { confirm: 'Are you sure?' }
20
- -# = conv.subject
21
- -# (#{conv.messages.length})
22
- -# %span.gray.mini= conv.id
24
+ - if @other_convs.present?
25
+ - @other_convs.each do |conv|
26
+ .d-flex
27
+ = button_to "Merge", merge_conversations_path( @conversation, conv ), data: { confirm: 'Are you sure?' }
28
+ = conv.subject
29
+ (#{conv.messages.length})
30
+ %span.gray.mini= conv.id
23
31
 
24
32
 
25
- %ul.m-0.p-0
33
+ .m-0.p-0
26
34
  - @conversation.messages.each do |msg|
27
- %li
35
+ .Message.mb-2
28
36
  = render '/wco_email/messages/meta', message: msg
29
37
  = link_to '[expand]', message_iframe_path(msg, expand_history: true), target: "iframe_#{msg.id}"
30
38
  = link_to '[collapse]', message_iframe_path(msg), target: "iframe_#{msg.id}"
@@ -1,6 +1,6 @@
1
1
 
2
- .d-inline-block
3
- .collapse-expand{ id: "meta_#{message.id}" }
2
+ .d-inline-block.Meta
3
+ %i.fa.fa-compress.collapse-expand
4
4
  Meta
5
5
  .messages--meta.flex-row{ style: 'display: none' }
6
6
 
@@ -8,6 +8,6 @@
8
8
 
9
9
  = render 'meta', message: @message
10
10
  %iframe.message-iframe{ src: message_iframe_path(@message) }
11
- = render '/wco_email/contexts/form_reply', lead_id: @message.lead_id, message: @message
11
+ = render '/wco_email/contexts/form_reply', lead_id: @message.lead_id, message: @message, ctx: WcoEmail::Context.new({ from_email: @message.to&.downcase, subject: @message.subject, email_template_id: ET.find_by( slug: 'blank').id })
12
12
 
13
13
 
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.61
4
+ version: 0.1.1.63
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-02-27 00:00:00.000000000 Z
11
+ date: 2024-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -306,6 +306,7 @@ files:
306
306
  - app/assets/stylesheets/wco_email/application.scss
307
307
  - app/assets/stylesheets/wco_email/contexts.scss
308
308
  - app/assets/stylesheets/wco_email/conversations.scss
309
+ - app/assets/stylesheets/wco_email/messages.scss
309
310
  - app/assets/stylesheets/wco_email/tags.scss
310
311
  - app/controllers/wco_email/api_controller.rb
311
312
  - app/controllers/wco_email/application_controller.rb