ish_manager 0.1.8.440 → 0.1.8.441

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: c76d84dfb6865e2469dcf6c92fa6ba382aaf6121664bc6c2c5030d517e436def
4
- data.tar.gz: bb81afa3195283fe7e37347dd126490daa13a3e9ee79e4e7aebcfcb4cc330933
3
+ metadata.gz: 6ce64aaafb4bd3dbd060130af2561c9fa55c05e2bb40421ec488ed7cadd49949
4
+ data.tar.gz: 24bf8ebaa112f151a9fe0f5a95629a879aa102061dd6b3b9385501eec0e453a4
5
5
  SHA512:
6
- metadata.gz: 1b7c4a6015f671f1d7814d4cf0e706e6a0f41a3d88b42267193256c145e1a8c164427433389be0c58384abaed4de6e25c4bc4f77da0fb95fd3e430208f8f2c8a
7
- data.tar.gz: dd66635adab427556e6590d3ebfc10eeae6441be0deaeece93eb39804d48fdbc5896da15493f6cab9621faeadfb6f3d203d08c64ffca49d65c0473fa78a07eba
6
+ metadata.gz: 0f6c63048a0449bf28aabdf076364e421c4c515ecc0ec2061c399bbfd680bfd483c9b0baa1d7e1422443576db7bd741077532cf9bdb115fe78edc1d56a1d8305
7
+ data.tar.gz: 902decd1516986d31701c458f7236e3dc137f1cda1e067abe2b4f728e7f20e69b95b4a684ffbf6475cbf7e2464058a9b46405832a867a84e53102075ba8f0162
@@ -254,6 +254,17 @@ table.dataTable {
254
254
  display: none;
255
255
  position: absolute;
256
256
  min-width: 250px;
257
+ z-index: 1;
258
+
259
+ form {
260
+ min-width: 300px;
261
+ border: 1px solid blue;
262
+ border-radius: 0.5em;
263
+ padding: 0.5em;
264
+
265
+ background: #ccc;
266
+ display: inline-block;
267
+ }
257
268
  }
258
269
 
259
270
  /* E */
@@ -67,6 +67,7 @@
67
67
 
68
68
  .leads {
69
69
  .item {
70
+ display: inline;
70
71
  border: 1px solid green;
71
72
  // background: cyan;
72
73
  }
@@ -1,8 +1,4 @@
1
1
 
2
- .scheduled-email-actions--form {
3
- min-width: 300px;
4
- }
5
-
6
2
  .scheduled-emails-new {
7
3
  border: 1px solid red;
8
4
  border-radius: .5em;
@@ -24,16 +20,6 @@
24
20
  }
25
21
 
26
22
  .scheduled-email-actions--form {
27
-
28
- form {
29
- border: 1px solid blue;
30
- border-radius: 0.5em;
31
- padding: 0.5em;
32
-
33
- background: #ccc;
34
- display: inline-block;
35
- }
36
-
37
23
  .actions {
38
24
  display: flex;
39
25
  justify-content: flex-end;
@@ -43,5 +29,4 @@
43
29
  .flex-row {
44
30
  justify-content: space-between;
45
31
  }
46
-
47
32
  }
@@ -69,15 +69,15 @@ class ::IshManager::EmailContextsController < ::IshManager::ApplicationControlle
69
69
  authorize! :index, ::Ish::EmailContext
70
70
  @ctxs = ::Ish::EmailContext.all.page( params[:ctxs_page] ).per( current_profile.per_page )
71
71
 
72
- if my_truthy? params[:sent]
73
- @ctxs = @ctxs.where( :sent_at.ne => nil )
74
- else
75
- @ctxs = @ctxs.where( sent_at: nil )
76
- end
77
-
78
72
  if params[:lead_id]
79
73
  @lead = Lead.find params[:lead_id]
80
- @ctxs = @ctxs.where( to_email: @lead.email )
74
+ @ctxs = @ctxs.where( lead_id: @lead.id )
75
+ else
76
+ if my_truthy? params[:sent]
77
+ @ctxs = @ctxs.where( :sent_at.ne => nil )
78
+ else
79
+ @ctxs = @ctxs.where( sent_at: nil )
80
+ end
81
81
  end
82
82
  end
83
83
 
@@ -3,15 +3,17 @@
3
3
 
4
4
  .header.collapse-expand-trash#emailContextsIndex
5
5
  %h2.title
6
- - if my_truthy? params[:sent]
7
- = link_to '[notsent]', email_contexts_path({ sent: false })
8
- <u>sent</u>
9
- - else
10
- <u>notsent</u>
11
- = link_to '[sent]', email_contexts_path({ sent: true })
6
+
12
7
  Email Contexts (#{@ctxs.length})
13
8
  - if @lead
14
- For lead `#{@lead.name}`
9
+ For lead #{@lead.email}
10
+ - else
11
+ - if my_truthy? params[:sent]
12
+ = link_to '[notsent]', email_contexts_path({ sent: false })
13
+ <u>sent</u>
14
+ - else
15
+ <u>notsent</u>
16
+ = link_to '[sent]', email_contexts_path({ sent: true })
15
17
  = link_to '[+]', new_email_context_path
16
18
 
17
19
 
@@ -16,8 +16,20 @@
16
16
 
17
17
  .leads.max-width
18
18
  Leads (#{@email_conversation.leads.length}):
19
- = @email_conversation.leads.map(&:id)
20
- -# .leadsC= render 'ish_manager/leads/index_rows', leads: @email_conversation.leads
19
+ - @email_conversation.leads.each do |lead|
20
+ .item
21
+ = link_to "#{lead.id} #{lead.email}", lead_path(lead)
22
+ \(ctxs:
23
+ = link_to email_contexts_for_lead_path( lead ) do
24
+ = lead.email_contexts.count
25
+ %i.fa.fa-envelope
26
+ .relative.inline-block
27
+ %i.fa.fa-plus.expand-next
28
+ .expand-hide= render 'ish_manager/email_contexts/form', ctx: Ctx.new({ lead_id: lead.id, email_template: Tmpl.blank })
29
+ \)
30
+ .relative.inline-block
31
+ %i.fa.fa-clock-o.expand-next{ style: "color: red;" }
32
+ .expand-hide= render 'ish_manager/scheduled_email_actions/form', scheduled_email_action: Sch.new({ lead_id: lead.id })
21
33
 
22
34
  .messages.max-width
23
35
  - @email_messages.each do |msg|
@@ -31,14 +43,7 @@
31
43
  = msg.id
32
44
  <b>To:</b> #{msg.to}
33
45
  <b>From:</b> #{lead.email}
34
- = link_to email_contexts_for_lead_path( lead ) do
35
- \(
36
- = lead.email_contexts.count
37
- %i.fa.fa-envelope
38
- \)
39
- .relative.inline-block
40
- %i.fa.fa-clock-o.expand-next{ style: "color: red;" }
41
- .expand-hide= render 'ish_manager/scheduled_email_actions/form', scheduled_email_action: Sch.new({ lead_id: lead.id })
46
+
42
47
 
43
48
  .datetime
44
49
  .date= msg.date&.strftime('%Y-%m-%d')
@@ -22,8 +22,8 @@
22
22
  %ul
23
23
  - @ctxs.each do |ctx|
24
24
  %li
25
- = link_to ctx.subject, email_context_path(ctx)
26
- = pp_date ctx.sent_at
25
+ = pp_date( ctx.sent_at ) || 'not sent'
26
+ = link_to ctx.subject.presence||"No Subj?!", email_context_path(ctx)
27
27
  .col-md-6.schs
28
28
  %h5
29
29
  Scheduled actions (#{@schs.length})
@@ -18,7 +18,7 @@
18
18
  = f.select :email_action, options_for_select( @email_actions_list, selected: sch_a[:email_action_id] ), {}, class: 'select2'
19
19
  .flex-row
20
20
  = f.label :perform_at
21
- = f.text_field :perform_at
21
+ = f.text_field :perform_at, value: sch_a.new_record? ? Time.now : sch_a.perform_at
22
22
 
23
23
  .actions
24
24
  = submit_tag 'Schedule'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.440
4
+ version: 0.1.8.441
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-24 00:00:00.000000000 Z
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails