ish_manager 0.1.8.484 → 0.1.8.485
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ish_manager/application.js +12 -6
- data/app/assets/stylesheets/ish_manager/application.scss +31 -18
- data/app/assets/stylesheets/ish_manager/email.scss +2 -7
- data/app/assets/stylesheets/ish_manager/email_conversations.scss +17 -25
- data/app/assets/stylesheets/ish_manager/leads_leadsets.scss +10 -13
- data/app/assets/stylesheets/ish_manager/tags.scss +23 -0
- data/app/assets/stylesheets/ish_manager/variables.css +5 -0
- data/app/views/ish_manager/email_conversations/show.haml +63 -61
- 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: '02678fe84b00fba305b44750200135609fd9a241f201559c5cebf9b1883882e0'
|
4
|
+
data.tar.gz: '0584dbda773a9d2767f6f8c444bf23874c1a9d26cfe6f5d0ffdc4c92568c05eb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a46b672da3150b86baa338ccbfc90847b8cf9a277386bddc0ac3d379ce2f90ccf76d002ef56f2ce5f6c1afb6513b69f4bf6bb161b7955e44d3d1c2ceed2e9aa9
|
7
|
+
data.tar.gz: 34940ee437929577ef05d699a8ea1705a379ff4d500695591924439498cc2610068f72e9c838b6185ec71b026cc572841f2e359292ced736d5ebf65aa0d8c261
|
@@ -94,12 +94,16 @@ $(function () {
|
|
94
94
|
$(this).parent().slideToggle()
|
95
95
|
})
|
96
96
|
|
97
|
+
|
98
|
+
|
97
99
|
$(".collapse-expand").each(function() {
|
98
100
|
const thisId = $(this).attr('id')
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
101
|
+
if (thisId) {
|
102
|
+
const state = localStorage.getItem("collapse-expand#"+thisId)
|
103
|
+
if (state === 'collapsed') {
|
104
|
+
$(this).next().slideToggle()
|
105
|
+
$(this).addClass('wco-collapse')
|
106
|
+
}
|
103
107
|
}
|
104
108
|
})
|
105
109
|
$(".collapse-expand").click(function (_e) {
|
@@ -107,16 +111,18 @@ $(function () {
|
|
107
111
|
const state = localStorage.getItem("collapse-expand#"+thisId)
|
108
112
|
if (state === 'collapsed') {
|
109
113
|
localStorage.removeItem("collapse-expand#"+thisId)
|
110
|
-
$(this).removeClass('
|
114
|
+
$(this).removeClass('wco-collapse')
|
111
115
|
} else {
|
112
116
|
localStorage.setItem("collapse-expand#"+thisId, "collapsed")
|
113
|
-
$(this).addClass('
|
117
|
+
$(this).addClass('wco-collapse')
|
114
118
|
}
|
115
119
|
$(this).next().slideToggle();
|
116
120
|
}).children().click(function (e) {
|
117
121
|
e.stopPropagation()
|
118
122
|
})
|
119
123
|
|
124
|
+
|
125
|
+
|
120
126
|
$(".expand-next").click(function (_e) {
|
121
127
|
$(this).next().slideToggle()
|
122
128
|
})
|
@@ -4,6 +4,7 @@
|
|
4
4
|
*= require ish_manager/vendor/jquery-ui
|
5
5
|
* require ish_manager/vendor/summernote-bs4.min
|
6
6
|
*
|
7
|
+
*= require ish_manager/variables
|
7
8
|
*= require_self
|
8
9
|
*= require ish_manager/appliances
|
9
10
|
*= require ish_manager/email_contexts
|
@@ -93,12 +94,11 @@ ul:not(.browser-default).bullets, {
|
|
93
94
|
width: 100vwh;
|
94
95
|
overflow-x: auto;
|
95
96
|
}
|
96
|
-
.application-home {
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
}
|
97
|
+
// .application-home {
|
98
|
+
// .bordered-card {
|
99
|
+
// display: inline-block;
|
100
|
+
// }
|
101
|
+
// }
|
102
102
|
|
103
103
|
|
104
104
|
/* B */
|
@@ -118,6 +118,12 @@ ul:not(.browser-default).bullets, {
|
|
118
118
|
padding: 1em;
|
119
119
|
}
|
120
120
|
|
121
|
+
div.bordered {
|
122
|
+
border: 1px solid black;
|
123
|
+
border-radius: 0.5em;
|
124
|
+
|
125
|
+
padding: 0.5em;
|
126
|
+
}
|
121
127
|
table.bordered {
|
122
128
|
tbody {
|
123
129
|
td {
|
@@ -126,13 +132,13 @@ table.bordered {
|
|
126
132
|
}
|
127
133
|
}
|
128
134
|
|
129
|
-
.bordered-card {
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
}
|
135
|
+
// .bordered-card {
|
136
|
+
// border: 1px solid grey;
|
137
|
+
// padding: .5em;
|
138
|
+
// border-radius: 8px;
|
139
|
+
// margin-bottom: .5em;
|
140
|
+
// padding: 0.5em;
|
141
|
+
// }
|
136
142
|
|
137
143
|
.btn {
|
138
144
|
border: 1px solid red;
|
@@ -224,12 +230,11 @@ table.bordered {
|
|
224
230
|
.collapse-expand::after {
|
225
231
|
content: " [<]";
|
226
232
|
}
|
227
|
-
.
|
233
|
+
.wco-collapse::after {
|
228
234
|
content: " [>]";
|
229
235
|
}
|
230
|
-
.
|
231
|
-
|
232
|
-
// display: none !important;
|
236
|
+
.wco-collapsed {
|
237
|
+
display: none;
|
233
238
|
}
|
234
239
|
|
235
240
|
/* D */
|
@@ -450,7 +455,15 @@ textarea.large {
|
|
450
455
|
display: inline;
|
451
456
|
}
|
452
457
|
|
453
|
-
|
458
|
+
.ml-100 {
|
459
|
+
margin-left: 100px;
|
460
|
+
}
|
461
|
+
.ml-200 {
|
462
|
+
margin-left: 200px;
|
463
|
+
}
|
464
|
+
.ml-300 {
|
465
|
+
margin-left: 300px;
|
466
|
+
}
|
454
467
|
|
455
468
|
/* N */
|
456
469
|
|
@@ -38,16 +38,11 @@ td.ctxs {
|
|
38
38
|
|
39
39
|
display: inline-block;
|
40
40
|
|
41
|
-
// display: flex;
|
42
|
-
// flex-direction: column;
|
43
|
-
|
44
|
-
// max-width: 400px; // @TODO: where is this used?!
|
45
|
-
|
46
|
-
margin-left: 20px;
|
47
|
-
|
48
41
|
border: 1px solid #666;
|
49
42
|
border-radius: 5px;
|
43
|
+
|
50
44
|
padding: 5px;
|
45
|
+
|
51
46
|
background: #eee;
|
52
47
|
|
53
48
|
* {
|
@@ -27,8 +27,6 @@
|
|
27
27
|
border-bottom: 1px solid yellow;
|
28
28
|
margin-bottom: 0.3em;
|
29
29
|
|
30
|
-
// display: flex;
|
31
|
-
|
32
30
|
.subject {
|
33
31
|
// background: #ccc;
|
34
32
|
|
@@ -51,48 +49,50 @@
|
|
51
49
|
|
52
50
|
.header {
|
53
51
|
display: flex;
|
54
|
-
align-items:
|
52
|
+
align-items: center;
|
55
53
|
|
56
54
|
.label {
|
57
55
|
padding-right: 0.2em;
|
58
56
|
}
|
59
57
|
}
|
60
58
|
|
61
|
-
.leads {
|
59
|
+
.leads-list {
|
60
|
+
margin: 1em 0;
|
61
|
+
|
62
62
|
.item {
|
63
63
|
display: inline;
|
64
|
+
|
64
65
|
border: 1px solid green;
|
65
|
-
|
66
|
+
border-radius: 0.5em;
|
67
|
+
padding: 0.5em;
|
68
|
+
|
69
|
+
margin-right: 0.5em;
|
70
|
+
|
66
71
|
}
|
67
72
|
}
|
68
73
|
|
69
|
-
|
70
|
-
.messages {
|
74
|
+
/* these are inside a conversation. _vp_ 2023-02-28 */
|
75
|
+
.messages-list {
|
71
76
|
// border: 1px solid red;
|
72
77
|
|
73
78
|
padding-left: 0;
|
74
79
|
list-style-type: none;
|
75
80
|
|
76
81
|
.item:first-child {
|
77
|
-
border-top: 1px solid
|
82
|
+
border-top: 1px solid var(--m3-dol-accent-color);
|
78
83
|
}
|
79
84
|
.item {
|
80
|
-
border-bottom: 1px solid
|
85
|
+
border-bottom: 1px solid var(--m3-dol-accent-color);
|
81
86
|
margin-bottom: 0.2em;
|
82
87
|
|
83
|
-
|
84
|
-
// border: 1px solid red;
|
85
|
-
// max-height: 500px;
|
86
|
-
// overflow: auto;
|
87
|
-
// }
|
88
|
+
padding: 0.5em 0;
|
88
89
|
|
89
90
|
iframe {
|
90
|
-
border: 2px solid yellow;
|
91
|
+
// border: 2px solid yellow;
|
91
92
|
|
92
93
|
width: 100%;
|
93
94
|
min-height: 500px;
|
94
|
-
height:
|
95
|
-
// display: none;
|
95
|
+
height: 75vh;
|
96
96
|
}
|
97
97
|
|
98
98
|
.my-actions {
|
@@ -157,13 +157,5 @@
|
|
157
157
|
font-weight: bold;
|
158
158
|
}
|
159
159
|
|
160
|
-
.tags {
|
161
|
-
display: flex;
|
162
|
-
flex-direction: column;
|
163
|
-
|
164
|
-
.chip {
|
165
|
-
border: 1px solid cyan;
|
166
|
-
}
|
167
|
-
}
|
168
160
|
|
169
161
|
}
|
@@ -27,14 +27,17 @@
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
30
|
-
tr {
|
31
|
-
border-bottom: 1px solid yellow;
|
32
30
|
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
.chip {
|
32
|
+
display: inline;
|
33
|
+
|
34
|
+
border: 1px solid #eee;
|
35
|
+
border-radius: 0.5em;
|
36
|
+
padding: 0.1em .3em;
|
37
|
+
background: #fff;
|
36
38
|
}
|
37
39
|
|
40
|
+
|
38
41
|
th.leads {
|
39
42
|
margin-left: 1em;
|
40
43
|
}
|
@@ -91,6 +94,8 @@
|
|
91
94
|
}
|
92
95
|
}
|
93
96
|
|
97
|
+
/* belongs here, not in tags.scss */
|
98
|
+
|
94
99
|
.tags {
|
95
100
|
// background: #eee;
|
96
101
|
|
@@ -105,14 +110,6 @@
|
|
105
110
|
vertical-align: top;
|
106
111
|
}
|
107
112
|
|
108
|
-
.chip {
|
109
|
-
display: inline;
|
110
|
-
|
111
|
-
border: 1px solid #eee;
|
112
|
-
border-radius: 0.5em;
|
113
|
-
padding: 0.1em .3em;
|
114
|
-
background: #fff;
|
115
|
-
}
|
116
113
|
|
117
114
|
}
|
118
115
|
|
@@ -3,3 +3,26 @@ form.tags--form-mini {
|
|
3
3
|
display: flex;
|
4
4
|
}
|
5
5
|
|
6
|
+
/*
|
7
|
+
* used in
|
8
|
+
* .email-conversations-index
|
9
|
+
* .email-conversations-show
|
10
|
+
**/
|
11
|
+
.tags-list {
|
12
|
+
display: flex;
|
13
|
+
flex-wrap: wrap;
|
14
|
+
align-items: baseline;
|
15
|
+
|
16
|
+
// border: 1px dashed var(--m3-dol-text-color);
|
17
|
+
// border-radius: 5px;
|
18
|
+
// padding: 0.5em;
|
19
|
+
|
20
|
+
margin: 0.5em 0;
|
21
|
+
|
22
|
+
.label,
|
23
|
+
b {
|
24
|
+
margin-right: 0.5em;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
|
@@ -1,77 +1,79 @@
|
|
1
1
|
|
2
2
|
.email-conversations-show
|
3
3
|
|
4
|
-
.
|
5
|
-
-# %i.material-icons mail
|
4
|
+
.padded
|
6
5
|
|
7
|
-
|
6
|
+
.header
|
7
|
+
= link_to '[<<-]', email_conversations_path
|
8
|
+
%i.material-icons mail
|
8
9
|
|
9
|
-
|
10
|
-
|
10
|
+
.subject #{@email_conversation.subject}
|
11
|
+
(#{@email_conversation.email_messages.all.count})
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
.tags-list
|
14
|
+
%b Tags (#{@email_conversation.tags.length}):
|
15
|
+
-# = @email_conversation.wp_term_ids
|
16
|
+
- @email_conversation.tags.each do |tag|
|
17
|
+
.chip= link_to "[#{tag.term_id}] #{tag.name}", category_path( tag )
|
16
18
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
19
|
+
.leads-list
|
20
|
+
%b Leads (#{@email_conversation.leads.length}):
|
21
|
+
- @email_conversation.leads.each do |lead|
|
22
|
+
.item
|
23
|
+
= link_to "#{lead.id} #{lead.email}", lead_path(lead)
|
24
|
+
\(ctxs:
|
25
|
+
= link_to email_contexts_for_lead_path( lead ) do
|
26
|
+
= lead.email_contexts.count
|
27
|
+
%i.fa.fa-envelope
|
28
|
+
.relative.inline-block
|
29
|
+
%i.fa.fa-plus.expand-next
|
30
|
+
.expand-hide= render 'ish_manager/email_contexts/form', ctx: Ctx.new({ lead_id: lead.id, email_template: Tmpl.blank })
|
31
|
+
\)
|
32
|
+
.relative.inline-block
|
33
|
+
%i.fa.fa-clock-o.expand-next{ style: "color: red;" }
|
34
|
+
.expand-hide= render 'ish_manager/scheduled_email_actions/form', scheduled_email_action: Sch.new({ lead_id: lead.id })
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
.messages-list
|
37
|
+
- @email_messages.each do |msg|
|
38
|
+
- lead = msg.lead || Lead.new(email: 'NO LEAD!', id: 'no lead')
|
37
39
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
<b>From:</b> #{lead.email}
|
40
|
+
.item.msg-container{ data: { msg: { id: msg.id } } }
|
41
|
+
.row-1
|
42
|
+
.gray
|
43
|
+
<b>From:</b> #{lead.email}
|
44
|
+
<b>To:</b> #{msg.to}
|
45
|
+
= msg.id
|
46
|
+
<b>object_key:</b> #{msg.object_key}
|
46
47
|
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
|
49
|
+
.datetime
|
50
|
+
.date= msg.date&.strftime('%Y-%m-%d')
|
51
|
+
.time= msg.date&.strftime('%l:%M%P')
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
53
|
+
.row-2
|
54
|
+
.flexy
|
55
|
+
= link_to "Expand w/img", ishapi.email_message_path(msg, jwt_token: @jwt_token, load_images: true ), target: msg.message_id, class: 'preview-btn', data: { msg: { id: msg.id.to_s } }
|
56
|
+
\- or -
|
57
|
+
= link_to "Expand", ishapi.email_message_path(msg, jwt_token: @jwt_token ), target: msg.message_id, class: 'preview-btn', data: { msg: { id: msg.id.to_s } }
|
58
|
+
= msg.preview_str
|
58
59
|
|
59
|
-
|
60
|
+
.ml-200.to-expand
|
60
61
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
62
|
+
- if msg.attachments.present?
|
63
|
+
.attachments
|
64
|
+
- msg.attachments.map do |att|
|
65
|
+
.item
|
66
|
+
%h5= att.photo.original_filename
|
67
|
+
= image_tag att.photo.url(:original)
|
67
68
|
|
68
|
-
|
69
|
+
%iframe{ name: msg.message_id }
|
69
70
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
71
|
+
= render 'ish_manager/email_contexts/form_reply', lead: lead
|
72
|
+
.collapse-expand.wco-collapse Reply
|
73
|
+
.bordered.mt-3.wco-collapsed
|
74
|
+
= render 'ish_manager/email_contexts/form', ctx: Ctx.new({ lead_id: lead.id, email_template: Tmpl.blank_template, from_email: msg.to, subject: msg.subject, body: (msg.part_html||msg.part_txt) }), lead: lead
|
75
|
+
-# = button_to 'Reply'
|
76
|
+
-# = button_to 'Reply All'
|
77
|
+
-# = button_to 'New Template'
|
78
|
+
-# = button_to 'Schedule Reply'
|
79
|
+
-# = render 'ish_manager/email_templates/form_schedule_mini'
|
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.
|
4
|
+
version: 0.1.8.485
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -477,6 +477,7 @@ files:
|
|
477
477
|
- app/assets/stylesheets/ish_manager/tags.scss
|
478
478
|
- app/assets/stylesheets/ish_manager/trash/pagination.scss
|
479
479
|
- app/assets/stylesheets/ish_manager/user_profiles.scss
|
480
|
+
- app/assets/stylesheets/ish_manager/variables.css
|
480
481
|
- app/assets/stylesheets/ish_manager/vendor/jquery-ui.css
|
481
482
|
- app/assets/stylesheets/ish_manager/vendor/summernote-bs4.min.css
|
482
483
|
- app/assets/stylesheets/ish_manager/videos.scss
|