-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
446 lines (421 loc) · 24.8 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-150933985-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-150933985-1');
</script>
<!-- Page Information -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Agile Gitlab CE</title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!-- Open Graph -->
<meta property="og:url" content="https://lilyheart.github.io/agile-gitlabce/" />
<meta property="og:title" content="Burndown for Gitlab CE" />
<meta property="og:description" content="This project is to fill in the missing gaps regarding the Agile/Scrum workflow in a CE Gitlab installation. Utilizes the Gitlab API to generate additional reports such as Burndown charts and hours spent by team members." />
<meta property="og:image" content="https://lilyheart.github.io/agile-gitlabce/media/ase.jpg" />
<meta property="og:image:type" content="1510" />
<meta property="og:image:width" content="1510" />
<meta property="og:image:height" content="1510" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="fb:app_id" content="3540076199342146" />
<!-- Libraries -->
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- DataTables -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap4.min.css">
<!-- Fontawesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Feedback -->
<!-- <link rel="stylesheet" href="libraries/feedback.css?ver=2012"> -->
<!-- Local -->
<link rel="stylesheet" href="libraries/selectize.bootstrap3.css?ver=v0.12.6">
<link rel="stylesheet" href="style/main.min.css?ver=0.2.8" media="screen" title="no title" charset="utf-8">
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<!-- For sorting sprints on the release tab -->
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>
<div class="head" id="head">
<header id="header" class="stripe">
<div class="text-center">
Created by
<a href="https://github.com/Lilyheart/agile-gitlabce">
Lily Romano</a>
</div>
</header>
<!-- Title -->
<h1>
<a href="index.html">Agile Gitlab</a>
</h1>
<!-- Menu Bar -->
<div id="stripe" class="stripe">
<div class="dropdown">
<a href="https://gitlab.bucknell.edu/nrr004/agile-gitlab-feedback/-/issues/new?issue[title]=Feedback&issuable_template=feedback&issue[confidential]=true">
<button id="feedback-link">Send Feedback</button>
</a>
</div>
</div>
</div>
<div id="container" class="container-fluid">
<div class="row">
<!-- Large screens 1/3 - 2/3, Small screens Stacked -->
<div class="col-md-4 col-sm-12">
<hr />
<h3 class="pad-below">Gitlab Setup</h3>
<div id="gitlab_auth">
<ul class="nav nav-pills nav-justified mb-3" id="pills-tab" role="tablist">
<!-- <li class="nav-item">
<a class="nav-link active" id="gitlab_auth_oauth" data-toggle="pill" href="#pills-auth-oauth" role="tab" aria-controls="pills-auth-oauth" aria-selected="true">
Log in
</a>
</li> -->
<li class="nav-item">
<a class="nav-link active" id="gitlab_auth_apikey" data-toggle="pill" href="#pills-auth-apikey" role="tab" aria-controls="pills-auth-apikey" aria-selected="false">
Api Key
</a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<!-- <div class="tab-pane fade show active" id="pills-auth-oauth" role="tabpanel" aria-labelledby="gitlab_auth_oauth">
<div id="">
<div class="form-group row">
<label for="auth-server-dropdown" class="col-sm-4 align-self-center col-form-label">Gitlab Website:</label>
<div class="col-sm-8 ">
<select id="auth-server-dropdown" class="align-self-center" placeholder="Start typing name..." name="auth_server_id" onchange="setupAuthenticate(this.options[this.selectedIndex].value)">
</select>
</div>
</div>
<div id="gitlab-login-link">
<button type="button" id="" class="btn btn-primary btn-lg btn-block d-flex align-items-center" onclick="openAuthPage()">
Log in to Gitlab
</button>
</div>
<div id="gitlab-logout-link" style="display: none;">
<button type="button" id="" class="btn btn-primary btn-lg btn-block d-flex align-items-center" onclick="location.href = currURL;">
Logout
</button>
</div>
</div>
</div> -->
<div class="tab-pane fade show active" id="pills-auth-apikey" role="tabpanel" aria-labelledby="gitlab_auth_apikey">
<div class="form-group row">
<label for="base_url" class="col-sm-4 col-form-label">Gitlab URL:</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="base_url" value="">
</div>
</div>
<div class="form-group row">
<label for="gitlab_key" class="col-sm-4 col-form-label">
<a href="#" class="nodec" data-toggle="tooltip" data-placement="top" title="This is obtained by creating an Access Token with api access from the settings page of your Gitlab profile.">
API Key: <i class="fa fa-info-circle"></i>
</a>
</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="gitlab_key" placeholder="API Key">
</div>
</div>
<button type="button" id="btnGetProjects" class="btn btn-primary btn-lg btn-block d-flex align-items-center" onclick="projects.getProjects('auto')">Get Projects</button>
</div>
</div>
<hr />
</div>
<div id="loading_projects" class="m-5" style="display: none">
<div class="d-flex justify-content-center">
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Loading Projects...
</div>
</div>
<div id="show_repo_options" class="row justify-content-end" style="display: none">
<div class="col-8">
<div id="bookmark-input" class="form-check form-check-inline d-none">
<input class="form-check-input" name="filter" type="radio" id="radio0" value="bookmarked" onclick="projects.getProjects('bookmarked')" checked>
<label class="form-check-label" for="radio0">Show bookmarked project</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" name="filter" type="radio" id="radio1" value="user" onclick="projects.getProjects('user')">
<label class="form-check-label" for="radio1">Show only repos I maintain</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" name="filter" type="radio" id="radio2" value="all" onclick="projects.getProjects('all')" >
<label class="form-check-label" for="radio2">Show all repos</label>
</div>
</div>
</div>
<div id="gitlab_get_project" class="pb-4" style="display: none">
<div class="form-group row">
<label for="project-dropdown" class="col-sm-4 align-self-center col-form-label">Project ID:</label>
<div class="col-sm-8">
<select id="project-dropdown" class="align-self-center" placeholder="Start typing name..." name="project_id" onchange="issues.enableIssueBtn()"></select>
</div>
</div>
<button type="button" id="btnGetIssues" class="btn btn-primary btn-lg btn-block d-flex align-items-center" onclick="issues.getIssues()">
Get Issues
</button>
</div>
<div id="kofi_button" class="text-center">
<button type="button" id="kofiLink" class="btn btn-secondary btn-sm align-items-center" onclick="location.href='https://ko-fi.com/Q5Q51UZYS'">
<img src="https://storage.ko-fi.com/cdn/cup-border.png" class="kofiimg"> Support Me on Ko-fi
</button>
</div>
</div>
<!-- Second Column -->
<div class="col-md-8 col-sm-12">
<hr />
<div id="updateAlert" class="alert alert-dark alert-dismissible fade show align-items-center" role="alert">
<span>
There have been updates on Gitlab.
</span>
<button type="button" id="btnGetIssues" class="btn btn-primary" onclick="issues.getIssues()">
Update Issues
</button>
<button type="button" class="close" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link disabled" id="issues-tab" data-toggle="tab" href="#issuestab" role="tab" aria-controls="issuestab" aria-selected="false" onclick="checkForUpdates()">Issues</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" id="burndown-tab" data-toggle="tab" href="#burndowntab" role="tab" aria-controls="burndowntab" aria-selected="false" onclick="checkForUpdates()">Burndown</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" id="release-tab" data-toggle="tab" href="#releasetab" role="tab" aria-controls="releasetab" aria-selected="false" onclick="checkForUpdates()">Release <span class="badge badge-secondary">Beta</span></a>
</li>
<li class="nav-item d-none" id="error-tab-item">
<a class="nav-link error" id="errors-tab" data-toggle="tab" href="#errorstab" role="tab" aria-controls="errorstab" aria-selected="false" onclick="checkForUpdates()">Errors</a>
</li>
<li class="nav-item">
<a class="nav-link active" id="faq-tab" data-toggle="tab" href="#faqtab" role="tab" aria-controls="faqtab" aria-selected="true" onclick="checkForUpdates()">FAQ</a>
</li>
<li class="nav-item d-none" id="survey-tab-item">
<a class="nav-link survey-tab" id="survey-tab" data-toggle="tab" href="#surveytab" role="tab" aria-controls="surveytab" aria-selected="true" onclick="checkForUpdates()">
Survey
<button type="button" class="close surveyclose" aria-label="Close" onclick="document.getElementById('survey-tab-item').classList.add('d-none');">
<span aria-hidden="true"> ×</span>
</button>
</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade" id="issuestab" role="tabpanel" aria-labelledby="issues-tab">
<div id="loading_issues" style="display: none">
<div class="d-flex justify-content-center m-5">
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Loading Issues...
</div>
</div>
<div id="gitlab_show_issues" style="display: none">
<table id="issuestable" class="table table-dark table-hover" style="width:100%;"></table>
</div>
</div>
<div class="tab-pane fade" id="burndowntab" role="tabpanel" aria-labelledby="burndown-tab">
<div id="loading_burndown" style="display: none">
Loading Burndown...
<div class="progress m-5" style="height: 2rem;">
<div id="burndown_progress" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">0%</div>
</div>
</div>
<div id="burndown-unavailable" style="display: none">
<p>
Burndown charts are only available when logged in using an API Key.
</p>
</div>
<div id="burndown" style="display: none">
<div id="milestone-selection" class="milestone-selection form-group row">
<p class="col-sm-12">
<span class="badge badge-primary">Hint</span> Click on three lines on the upper right of the chart to download, print, and view in full screen.
</p>
<label for="milestone-dropdown" class="col-sm-3 col-form-label">
Show Milestone:
<a id="milestone-link" class="d-none" href="#" target="_blank">
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
</label>
<div class="col-sm-9">
<select id="milestone-dropdown" class="align-self-center" name="milestone_id" onchange="burndown.updateBurndown(this.options[this.selectedIndex].value)">
</select>
</div>
<label for="estimate-type-dropdown" class="col-sm-3 col-form-label">Estimate Type: <a href="#" data-target="#collapse-burndown-types" onclick="document.getElementById('faq-tab').click();$('#collapse-burndown-types').collapse('show')"><i class="fa fa-info-circle" aria-hidden="true"></i></a></label>
<div class="col-sm-9">
<select id="estimate-type-dropdown" class="align-self-center" name="milestone_id" onchange="burndown.setEstimateStyle(this.value)">
<option value="Final">Use Final Estimate Only</option>
<option value="Changes">Show Changes in Estimate</option>
</select>
</div>
</div>
<div id="burndown-chart" style="height: 400px"></div>
<hr />
<div class="alert alert-dark alert-dismissible fade show" role="alert">
The following section is under development.
<ul>
<li>Hr Completed shows the actual total of time marked as spent by each user.</li>
<li>Hr Assigned is not currently determined.
</ul>
If spent hours are assigned to the incorrect person, this can be fixed. Please contact Lily Romano for more information.
<button type="button" class="close" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="show_hours" style="display: none">
<table id="hourstable" class="table table-dark table-hover" style="width:100%;"></table>
<p>
* Hours completed only represents hours worked specifically on issues.
This does not include time spent on the project outside of those issues.
Time not included in this table include tasks such as writing up reports, meeting with clients, etc.
</p>
</div>
</div>
</div>
<div class="tab-pane fade" id="releasetab" role="tabpanel" aria-labelledby="release-tab">
<div id="release-unavailable" style="display: none">
<p>
Release charts are only available when logged in using an API Key.
</p>
</div>
<div id="release" style="display: none">
<div id="release-selection" class="release-selection form-group row">
<p class="col-sm-12">
<span class="badge badge-primary">Hint</span> Click on three lines on the upper right of the chart to download, print, and view in full screen.
</p>
<label for="" class="col-sm-3 col-form-label">
Release name (for chart):
</label>
<div class="col-sm-9 input-group mb-2">
<input type="text" class="form-control" id="release-name" placeholder="" aria-label="Release Name" aria-describedby="basic-addon2" onchange="release.updateRelease('Auto')">
<div class="input-group-append">
<span class="input-group-text" id="basic-addon2" onclick="release.updateRelease('Auto')">Update</span>
</div>
</div>
<label for="release-dropdown" class="col-sm-3 col-form-label">
Select Sprints:
<a id="release-link" class="d-none" href="#" target="_blank">
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
</label>
<div class="col-sm-9 input-group">
<input id="release-dropdown" type="text" name="release_id" class="form-control align-self-center" value="" onchange="release.updateRelease(this.value)">
</input>
</div>
</div>
<div id="release-chart" style="height: 400px"></div>
</div>
</div>
<div class="tab-pane fade" id="errorstab" role="tabpanel" aria-labelledby="errors-tab">
<p id="error-counts">
There are 0 errors and 0 warnings.
</p>
<p>
<span class="badge badge-primary">Hint</span> Click on the issue title to open the issue on Gitlab.
</p>
<div id="issue_error_section">
<div class="alert alert-primary" role="alert" data-toggle="collapse" data-target="#issue_errors">
<h4 class="d-inline-flex">Errors</h4>
<button type="button" class="h-100">
<span aria-hidden="true" class="align-middle"><i class="fa fa-sort" aria-hidden="true"></i></span>
</button>
</div>
<div id="issue_errors" class="collapse show mb-5">
<p>Types of issues and possible solution ideas.</p>
<ul class="mb-4">
<li><strong>Spent time with no estimate:</strong>
<ul>
<li>Add estimated time</li>
<li>Remove incorrectly added spent time</li>
</ul>
</li>
<li><strong>More spent time than estimated:</strong>
<ul>
<li>Correct estimated time</li>
<li>Remove incorrectly added spent time</li>
</ul>
</li>
</ul>
<table id="issueerrorstable" class="table table-dark table-hover" style="width:100%;"></table>
</div>
</div>
<div id="issue_warning_section" class="mb-3">
<div class="alert alert-primary mt-3" role="alert" data-toggle="collapse" data-target="#issue_warning">
<h4 class="d-inline-flex">Warnings</h4>
<button type="button" class="h-100">
<span aria-hidden="true" class="align-middle"><i class="fa fa-sort" aria-hidden="true"></i></span>
</button>
</div>
<div id="issue_warning" class="collapse show">
<p>Types of issues and possible solution ideas.</p>
<ul class="mb-4">
<li><strong>Missing estimate:</strong> </li>
<ul>
<li>Close the issue</li>
<li>Add an estimate</li>
</ul>
</ul>
<table id="issuewarningstable" class="table table-dark table-hover" style="width:100%;"></table>
</div>
</div>
</div>
<div class="tab-pane fade show active" id="faqtab" role="tabpanel" aria-labelledby="faq-tab">
<div id="faqtab-html">
<script>
$("#faqtab-html").load("partials/faqtab.html?ver=0.3.5");
</script>
</div>
</div>
<div class="tab-pane fade pb-5" id="surveytab" role="tabpanel" aria-labelledby="survey-tab">
<div class="card">
<div class="card-body p-0">
<div id="surveyContainer"></div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- end class="row" -->
</div>
<!-- Script Libraries -->
<span>
<!-- highcharts -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/annotations.js"></script>
<!-- Popper -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<!-- DataTables -->
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap4.min.js"></script>
<!-- Bootstrap -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- Feedback -->
<!-- <script type="text/javascript" src="libraries/feedback.js?ver=2012"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js" integrity="sha256-my/qJggBjG+JoaR9MUSkYM+EpxVkxZRNn3KODs+el74=" crossorigin="anonymous"></script> -->
<!-- Survey -->
<script src="libraries/survey.jquery.min.js?ver=1.1.23"></script>
<script type="text/javascript" src="scripts/surveyJSON.js?ver=0.2.8"></script>
<!-- Local -->
<script type="text/javascript" src="libraries/selectize.min.js?ver=v0.12.6"></script>
<script type="text/javascript" src="libraries/defiant.min.js?ver=v2.2.6"></script>
<script type="text/javascript" src="scripts/survey.js?ver=0.3.2"></script>
<script type="text/javascript" src="scripts/projects.js?ver=0.2.8"></script>
<script type="text/javascript" src="scripts/issues.js?ver=0.3.1"></script>
<script type="text/javascript" src="scripts/burndown.js?ver=0.3.2a"></script>
<script type="text/javascript" src="scripts/release.js?ver=0.3.1"></script>
<script type="text/javascript" src="scripts/hours.js?ver=0.3.1"></script>
<script type="text/javascript" src="gitlab_servers.js?ver=0.2.8"></script>
<script type="text/javascript" src="scripts/main.js?ver=0.3.5"></script>
</span>
</body>
</html>