-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathyoda-burndown.html
206 lines (168 loc) · 6.97 KB
/
yoda-burndown.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Yoda. GitHub lightweight extention for Agile Project Management using GitHub issues. Burndown Tool.">
<!--
Copyright 2018 Hewlett Packard Enterprise Development LP
Copyright 2024- Jens Vedel Markussen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<title>GitHub Burndown Chart</title>
<link rel="icon" href="burndown-icon-32.png" type="image/png" />
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js"></script>
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.4.1/papaparse.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css">
<link rel="stylesheet" type="text/css" href="yoda.css">
</head>
<body>
<div class="frame">
<div class="dropdown">
<img id="hamburger" src="threebars.png" class="dropimg">
<div id="yodamenu" class="dropdown-content"></div>
</div>
<div class="field">
<label>Owner</label>
<input type="text" id="owner" size="15" value="">
<span class="tooltip">GitHub organisation or user</span>
</div>
<div class="field">
<label>Repositories</label>
<select id="repolist" style="width: 350px" class="select2" multiple></select>
<span class="tooltip">Repositories to show</span>
</div>
<div class="field" style="display: none;">
<label>GitHub user</label>
<input type="text" size="15" id="user" value="">
<span class="tooltip">Your GitHub user-id</span>
</div>
<div class="field" style="display: none;">
<label>GitHub token</label>
<input type="password" size="25" id="token" value="">
<span class="tooltip">GitHub personal token</span>
</div>
<div class="field">
<label>Tentative Label</label>
<input type="text" id="tentative" size="13" value="P - Tentative">
<span class="tooltip">Label indicating tentative/stretch issues</span>
</div>
<div class="field">
<label>In Progress Label</label>
<input type="text" id="inprogress" size="13" value="Q - In Progress">
<span class="tooltip">Label indicating work has started</span>
</div>
<div class="field">
<label>Not Codefreeze</label>
<input type="text" id="notcodefreeze" size="13" value="Q - NotCodeFreeze">
<span class="tooltip">Label indicating work is not needed for code freeze</span>
</div>
<div class="field">
<label>Label subtotals</label>
<input type="text" id="labelsplit" size="13" value="^T[1-9] -">
<span class="tooltip">Regular expression for doing subtotals</span>
</div>
<div class="field">
<label>Additional Data</label>
<input type="text" id="additionaldata" size="15" value="Severity,^S[1-4] -">
<span class="tooltip">Headline and label regular expression separated by comma (blank to skip)</span>
</div>
<div class="field">
<label>Estimates</label><div id="estimateradio">
<label><input type="radio" name="estimate" value="noissues"># issues</label>
<label><input type="radio" name="estimate" value="inbody" checked="checked">In body</label>
<label><input type="radio" name="estimate" value="inlabels">In Labels</label>
</div>
<span class="tooltip">Where to get estimates</span>
</div>
</div>
<div class="frame">
<div class="field">
<label>Milestone</label>
<select id="milestonelist" style="width: 250px" class="select2"></select>
<span class="tooltip">Milestone(s) to show</span>
</div>
<div class="field">
<label>Start date</label>
<input type="text" id="milestone_start" size="8" value="">
<span class="tooltip">Sprint start date</span>
</div>
<div class="field">
<label>Due date</label>
<input type="text" id="milestone_due" size="8" value="">
<span class="tooltip">Sprint due/end date</span>
</div>
<div class="field">
<label>Burndown date</label>
<input type="text" id="burndown_due" size="8" value="">
<span class="tooltip">Burndown date (optional)</span>
</div>
<div class="field">
<label>Capacity</label>
<input type="text" id="capacity" size="5" value="">
<span class="tooltip">Sprint capacity (story points)</span>
</div>
<div class="field">
<label>Label filter</label>
<input type="text" size="20" id="labelfilter" value="">
<span class="tooltip">Label filter as comma separated list w/o spaces (AND)</span>
</div>
<div class="field">
<label>Assignee</label>
<input type="text" id="assignee" size="20" value="">
<span class="tooltip">Only include issues assigned to this GitHub login</span>
</div>
<div class="field">
<label>Title</label>
<input type="text" id="title" size="20" value="">
<span class="tooltip">Chart title</span>
</div>
<div class="field">
<label>Trend</label>
<input type="checkbox" id="trendline">
<span class="tooltip">Draw a burndown trendline</span>
</div>
<div class="field" style="display: none;">
<label>CSV delimiter</label> <input type="text" id="csvdelimiter" size="5" value=';'>
<span class="tooltip">CSV field delimiter</span>
</div>
<div class="field">
<label>Closed issues</label>
<input type="checkbox" id="showclosed" checked>
<span class="tooltip">Show closed issues in table</span>
</div>
<div class="field">
<label>Closed milestones</label>
<input type="checkbox" id="closedmilestones">
<span class="tooltip">Show closed milestones</span>
</div>
<button id="drawbutton">Draw chart</button>
<button id="tablebutton">Show table</button>
</div>
<br>
<div>
<table id="issuesTable"></table>
</div>
<div style="width: 90%">
<canvas id="canvas"></canvas>
</div>
<div id="snackbar">Some text some message..</div>
<script type="module">
import { init } from './yoda-burndown.js';
init();
</script>
</body>
</html>