-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
221 lines (221 loc) · 16.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/style.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js" integrity="sha256-R4pqcOYV8lt7snxMQO/HSbVCFRPMdrhAFMH+vr9giYI=" crossorigin="anonymous"></script>
<title>Solutions Reporting App</title>
</head>
<body class="bg-light">
<div class="container">
<div class="py-5 text-center">
<img class="headshots animation1 mx-auto mb-4" src="assets/img/1.jpeg" alt="" width="72" height="72">
<img class="headshots animation2 mx-auto mb-4" src="assets/img/2.png" alt="" width="72" height="72"><br>
<img class="headshots animation2 mx-auto mb-4" src="assets/img/4.jpeg" alt="" width="72" height="72">
<img class="headshots animation1 mx-auto mb-4" src="assets/img/3.jpeg" alt="" width="72" height="72"><br><br>
<h2>Solutions Reporting Dashboard</h2><br>
<span id="googlePreLoader">Checking if Google Sheets has been authorized...<br></span>
<button id='authorize_button' class="btn-block btn btn-primary" type="button" name="button" style="display: none;">Login with Google</button>
<div id='dataForm' class="dataForm" style="text-align:left; display: none;">
<div class="row">
<div class="col-md-6 mb-6">
<div class="row">
<div class="col-md-6 mb-6">
<label for="pageSize">Number of Results</label>
<input class="form-control" type="number" name="pageSize" id="pageSize" value="5000" min="10" max="10000" step="1">
</div>
<div class="col-md-6 mb-6">
<label for="timeframe">Timeframe</label>
<select id="timeframe" name="timeframe" class="custom-select d-block w-100">
<option value="all">All Time</option>
<option value="week">This Week</option>
<option value="month">This Month</option>
<option value="quarter">This Quarter</option>
<option value="year">This Year</option>
<option value="last7">Last 7 Days</option>
<option value="last30">Last 30 Days</option>
<option value="last60">Last 60 Days</option>
<option value="last90">Last 90 Days</option>
<option value="last365">Last 365 Days</option>
<option value="custom">Custom range</option>
</select>
</div>
</div>
<div class="row">
<div class="col-md-6 mb-6">
<label for="pageSize">Start Date Range</label>
<input class="form-control" id="startRange" type="date" name="startRange">
</div>
<div class="col-md-6 mb-6">
<label for="pageSize">End Date Range</label>
<input class="form-control" id="endRange" type="date" name="endRange">
</div>
</div>
</div>
<div class="col-md-3 mb-3">
<div class="button-group">
<input id="scope" type="checkbox" name="scope" value="external" checked> External calls only<br>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><label for="participant">Participants<span class="caret"></span></label></button>
<ul class="dropdown-menu">
<li><input class="participant" id="participant1" type="checkbox" value="9088225365379367685" checked>Joshua Perk</li>
<li><input class="participant" id="participant2" type="checkbox" value="8948771410146644384" checked>Nate Hoffelmeyer</li>
<li><input class="participant" id="participant3" type="checkbox" value="4618243625088269996" checked>David Thompson</li>
<li><input class="participant" id="participant4" type="checkbox" value="1341274696220001313" checked>Ashley Basinger</li>
</ul>
</div>
</div>
<div class="col-md-3 mb-3">
<button id='generateURL'class="btn-block btn btn-primary" type="button" name="button">Generate URL + 📋</button><br>
<input class="form-control" type="text" name="gongURL" id="gongURL" placeholder="Gong request URL">
</div>
</div>
<hr class="mb-5">
<div class="input-group">
<input type="text" class="form-control" placeholder="Gong API data" id="inputGongData">
<div class="input-group-append">
<button type="button" class="btn btn-primary" id="processData">Process data</button>
</div>
</div>
</div>
<br><br>
</div>
</div>
<div class="results" id="results" style="display: none;">
<div class="container">
<div class="row">
<div class="col-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><label for="participant">Filter by Unit<span class="caret"></span></label></button>
<ul class="dropdown-menu">
<li><input class="unitFilter" id="unitFilter1" type="checkbox" value="SMB" checked>SMB</li>
<li><input class="unitFilter" id="unitFilter2" type="checkbox" value="SME" checked>SME</li>
<li><input class="unitFilter" id="unitFilter3" type="checkbox" value="INT" checked>INT</li>
<li><input class="unitFilter" id="unitFilter4" type="checkbox" value="ENT" checked>ENT</li>
<li><input class="unitFilter" id="unitFilter5" type="checkbox" value="Siftrock" checked>Siftrock</li>
<li><input class="unitFilter" id="unitFilter6" type="checkbox" value="Undefined" checked>Undefined</li>
</ul>
</div>
<div class="col-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><label for="participant">Filter by Org<span class="caret"></span></label></button>
<ul class="dropdown-menu">
<li><input class="orgFilter" id="orgFilter1" type="checkbox" value="Sales" checked>Sales</li>
<li><input class="orgFilter" id="orgFilter2" type="checkbox" value="CSM" checked>CSM</li>
<li><input class="orgFilter" id="orgFilter3" type="checkbox" value="Partner" checked>Partner</li>
<li><input class="orgFilter" id="orgFilter4" type="checkbox" value="AM" checked>AM</li>
<li><input class="orgFilter" id="orgFilter5" type="checkbox" value="Undefined" checked>Undefined</li>
</ul>
</div>
<div class="col-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><label for="participant">Filter by Topics<span class="caret"></span></label></button>
<ul class="dropdown-menu">
<li><input class="topicFilter" id="topicFilter0" type="checkbox" value="Any Topic" checked>Any Topic</li>
<li><input class="topicFilter" id="topicFilter1" type="checkbox" value="About the Prospect">About the Prospect</li>
<li><input class="topicFilter" id="topicFilter2" type="checkbox" value="Account Lists">Account Lists</li>
<li><input class="topicFilter" id="topicFilter3" type="checkbox" value="Buying Experience Strategy">Buying Experience Strategy</li>
<li><input class="topicFilter" id="topicFilter4" type="checkbox" value="CRM Integration">CRM Integration</li>
<li><input class="topicFilter" id="topicFilter5" type="checkbox" value="Call Setup">Call Setup</li>
<li><input class="topicFilter" id="topicFilter6" type="checkbox" value="Capturing Emails">Capturing Emails</li>
<li><input class="topicFilter" id="topicFilter7" type="checkbox" value="Clearbit">Clearbit</li>
<li><input class="topicFilter" id="topicFilter8" type="checkbox" value="Decision Timeline">Decision Timeline</li>
<li><input class="topicFilter" id="topicFilter9" type="checkbox" value="Discovery">Discovery</li>
<li><input class="topicFilter" id="topicFilter10" type="checkbox" value="Legal & Privacy">Legal & Privacy</li>
<li><input class="topicFilter" id="topicFilter11" type="checkbox" value="Meetings">Meetings</li>
<li><input class="topicFilter" id="topicFilter12" type="checkbox" value="Metrics">Metrics</li>
<li><input class="topicFilter" id="topicFilter13" type="checkbox" value="Next Steps">Next Steps</li>
<li><input class="topicFilter" id="topicFilter14" type="checkbox" value="Notifications">Notifications</li>
<li><input class="topicFilter" id="topicFilter15" type="checkbox" value="Onboarding & CS">Onboarding & CS</li>
<li><input class="topicFilter" id="topicFilter16" type="checkbox" value="Page Intent Tracking">Page Intent Tracking</li>
<li><input class="topicFilter" id="topicFilter17" type="checkbox" value="Pricing">Pricing</li>
<li><input class="topicFilter" id="topicFilter18" type="checkbox" value="Reports">Reports</li>
<li><input class="topicFilter" id="topicFilter19" type="checkbox" value="Routing">Routing</li>
<li><input class="topicFilter" id="topicFilter20" type="checkbox" value="Second Net">Second Net</li>
<li><input class="topicFilter" id="topicFilter21" type="checkbox" value="Small Talk">Small Talk</li>
<li><input class="topicFilter" id="topicFilter22" type="checkbox" value="Support">Support</li>
</ul>
</div>
<div class="col-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><label for="participant">Filter by Stage<span class="caret"></span></label></button>
<ul class="dropdown-menu">
<li><input class="stageFilter" id="stageFilter1" type="checkbox" value="At Risk" checked>At Risk</li>
<li><input class="stageFilter" id="stageFilter2" type="checkbox" value="Best Case" checked>Best Case</li>
<li><input class="stageFilter" id="stageFilter3" type="checkbox" value="Business Case Identified" checked>Business Case Identified</li>
<li><input class="stageFilter" id="stageFilter4" type="checkbox" value="Closed Lost" checked>Closed Lost</li>
<li><input class="stageFilter" id="stageFilter5" type="checkbox" value="Closed Won" checked>Closed Won</li>
<li><input class="stageFilter" id="stageFilter6" type="checkbox" value="Contracting/Verbal" checked>Contracting/Verbal</li>
<li><input class="stageFilter" id="stageFilter7" type="checkbox" value="Discovery" checked>Discovery</li>
<li><input class="stageFilter" id="stageFilter8" type="checkbox" value="Executing Shared Plan" checked>Executing Shared Plan</li>
<li><input class="stageFilter" id="stageFilter9" type="checkbox" value="Negotiation" checked>Negotiation</li>
<li><input class="stageFilter" id="stageFilter10" type="checkbox" value="Pipeline" checked>Pipeline</li>
<li><input class="stageFilter" id="stageFilter11" type="checkbox" value="Presentation Schedule" checked>Presentation Schedule</li>
<li><input class="stageFilter" id="stageFilter12" type="checkbox" value="Save" checked>Save</li>
<li><input class="stageFilter" id="stageFilter13" type="checkbox" value="Shared Plan Defined" checked>Shared Plan Defined</li>
<li><input class="stageFilter" id="stageFilter14" type="checkbox" value="Solution Review" checked>Solution Review</li>
<li><input class="stageFilter" id="stageFilter15" type="checkbox" value="Solution Validation" checked>Solution Validation</li>
<li><input class="stageFilter" id="stageFilter16" type="checkbox" value="Use Case Identified" checked>Use Case Identified</li>
<li><input class="stageFilter" id="stageFilter17" type="checkbox" value="null" checked>null</li>
</ul>
</div>
<div class="col-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><label for="participant">Filter by Type<span class="caret"></span></label></button>
<ul class="dropdown-menu">
<li><input class="typeFilter" id="typeFilter1" type="checkbox" value="At Risk" checked>At Risk</li>
<li><input class="typeFilter" id="typeFilter2" type="checkbox" value="Churn" checked>Churn</li>
<li><input class="typeFilter" id="typeFilter3" type="checkbox" value="Contraction" checked>Contraction</li>
<li><input class="typeFilter" id="typeFilter4" type="checkbox" value="Cross-Sell" checked>Cross-Sell</li>
<li><input class="typeFilter" id="typeFilter5" type="checkbox" value="Expansion" checked>Expansion</li>
<li><input class="typeFilter" id="typeFilter6" type="checkbox" value="New Business" checked>New Business</li>
<li><input class="typeFilter" id="typeFilter7" type="checkbox" value="No Change" checked>No Change</li>
<li><input class="typeFilter" id="typeFilter8" type="checkbox" value="Reactivation" checked>Reactivation</li>
<li><input class="typeFilter" id="typeFilter9" type="checkbox" value="Renewal" checked>Renewal</li>
<li><input class="typeFilter" id="typeFilter10" type="checkbox" value="Services" checked>Services</li>
<li><input class="typeFilter" id="typeFilter11" type="checkbox" value="Term Change" checked>Term Change</li>
<li><input class="typeFilter" id="typeFilter12" type="checkbox" value="Upgrade" checked>Upgrade</li>
<li><input class="typeFilter" id="typeFilter13" type="checkbox" value="null" checked>null</li>
</ul>
</div>
<div class="col-2">
<button type="button" class="btn btn-primary btn-block" id="applyFilter">Apply filter</button>
</div>
</div>
<div class="row" id="teamCard" style="padding-top:10px;"></div>
<div class="row">
<div class="col-6">
<h4 class='d-flex justify-content-between align-items-center mb-3' style="padding:40px 0 20px 0;"> <span class='text-muted'>Calls by account type</span> <span class='badge badge-secondary badge-pill'>Entire Team</span> </h4>
<canvas id="accountTypeChart" height="300"></canvas>
</div>
<div class="col-6">
<h4 class='d-flex justify-content-between align-items-center mb-3' style="padding:40px 0 20px 0;"> <span class='text-muted'>Usage by org</span> <span class='badge badge-secondary badge-pill'>Entire Team</span> </h4>
<canvas id="orgUsageChart" height="300"></canvas>
</div>
<div class="col-6">
<h4 class='d-flex justify-content-between align-items-center mb-3' style="padding:40px 0 20px 0;"> <span class='text-muted'>Calls by opportunity stage</span> <span class='badge badge-secondary badge-pill'>Entire Team</span> </h4>
<canvas id="stageUsageChart" height="300"></canvas>
</div>
<div class="col-6">
<h4 class='d-flex justify-content-between align-items-center mb-3' style="padding:40px 0 20px 0;"> <span class='text-muted'>Usage by topic</span> <span class='badge badge-secondary badge-pill'>Entire Team</span> </h4>
<canvas id="topicUsageChart" height="300"></canvas>
</div>
<div class="col-6">
<h4 class='d-flex justify-content-between align-items-center mb-3' style="padding:40px 0 20px 0;"> <span class='text-muted'>Usage by unit</span> <span class='badge badge-secondary badge-pill'>Entire Team</span> </h4>
<canvas id="unitUsageChart" height="300"></canvas>
</div>
<div class="col-6">
<h4 class='d-flex justify-content-between align-items-center mb-3' style="padding:40px 0 20px 0;"> <span class='text-muted'>Calls by opportunity type</span> <span class='badge badge-secondary badge-pill'>Entire Team</span> </h4>
<canvas id="opportunityTypeChart" height="300"></canvas>
</div>
</div>
<br>
<hr class="mb-4">
<br>
</div>
<div class="row" id="memberCards" style="margin:0 20px;"></div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://apis.google.com/js/api.js"></script>
<script src="assets/js/CSVExport.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>