-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreport.html
330 lines (309 loc) · 17.7 KB
/
report.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
<!DOCTYPE html>
<html>
<head>
<!-- Page Information -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Agile Gitlab CE - Generate Report</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="Student Reports 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">
<button id="feedback-link">Send Feedback</button>
</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" 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" 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" 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>
<!-- 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>
<div id="loading_burndown" style="display: none">
Loading Sprints...
<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="project_report" class="d-none">
<h3>Project Summary</h3>
<div id="error-counts"></div> <!-- There are 3 errors and 1 warning. -->
<h3 class="mt-3">Project Details</h3>
<div id="issue_error_section" class="d-none">
<div class="alert alert-primary" role="alert" data-toggle="collapse" data-target="#issue_errors">
<h4 class="d-inline-flex">User Story 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 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="d-none mb-3">
<div class="alert alert-primary mt-3" role="alert" data-toggle="collapse" data-target="#issue_warning">
<h4 class="d-inline-flex">User Story 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">
<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 id="hours_section" class="mb-3">
<div class="alert alert-primary mt-3" role="alert" data-toggle="collapse" data-target="#hours">
<h4 class="d-inline-flex">Total Hours Reported</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="hours" class="collapse">
<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 id="sprint_burndowns_section" class="mb-3">
<div class="alert alert-primary" role="alert" data-toggle="collapse" data-target="#sprint_burndowns">
<h4 class="d-inline-flex">Sprint Burndown Charts</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="sprint_burndowns" class="collapse mb-5">
<p>Charts Here.</p>
</div>
</div>
<div id="project_burndown_section" class="mb-3">
<div class="alert alert-primary" role="alert" data-toggle="collapse" data-target="#project_burndown">
<h4 class="d-inline-flex">Project Burndown Chart</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="project_burndown" class="collapse mb-5">
<p>Charts Here.</p>
</div>
</div>
<a id="milestone-link" class="d-none" href="#" target="_blank">
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
</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.2.8"></script> -->
<script type="text/javascript" src="scripts/report.js?ver=0.3.0"></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.1"></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.1"></script>
</span>
</body>
</html>