@@ -28,78 +28,99 @@ <h3 class="text-3xl font-semibold ">Scrum Helper</h3>
28
28
< p class =""> Report your development progress by auto-fetching your Git activity for a selected period</ p >
29
29
</ div >
30
30
31
- < div class ="center mt-2 ">
32
- < label class ="flex items-center justify-center gap-2 ">
31
+ < div class ="center mt-2 flex justify-between ">
32
+ < label class ="flex items-center justify-center gap-2 ">
33
33
Disable
34
- < input type ="checkbox " value ="" id ="enable " class ="sr-only peer " checked >
34
+ < input type ="checkbox " value ="" id ="enable " class ="sr-only peer " >
35
35
< div class ="relative w-11 h-6 bg-gray-200 rounded-full peer peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600 dark:peer-checked:bg-blue-600 "> </ div >
36
36
< span class =""> </ span >
37
37
Enable
38
38
</ label >
39
+ < button id ="settingsToggle ">
40
+ < img id ="settingsIcon " src ="icons/settings-light.png " alt ="Settings " class ="w-7 h-7 mx-3 cursor-pointer ">
41
+ </ button >
39
42
</ div >
40
43
</ div >
41
44
42
45
< div class ="rounded-2xl ">
43
46
< div class =" border-gray-100 border-2 bg-white rounded-3xl px-4 py-4 mx-2 my-2 ">
44
- < div >
45
- < h4 > Your Project Name</ h4 >
46
- < input id ="projectName " type ="text " class ="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 " placeholder ="Enter your project name ">
47
- </ div >
48
- < div >
49
- < h4 > Your Github Username</ h4 >
50
- < input id ="githubUsername " type ="text " class ="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 " placeholder ="Required for fetching your contributions ">
51
- </ div >
52
-
53
- < div >
54
- < p class ="text-sm "> Fetch your contributions between:</ p >
55
- < div class ="flex justify-between items-center my-2 mx-4 ">
56
- < div class ="flex items-center gap-2 ">
57
- < input type ="radio " id ="lastWeekContribution " name ="timeframe " class ="form-radio " onclick ="toggleRadio(this) ">
58
- < label for ="lastWeekContribution "> Last 7 days</ label >
59
- </ div >
60
- < div class ="flex items-center gap-2 ">
61
- < input type ="radio " id ="yesterdayContribution " name ="timeframe " class ="form-radio " onclick ="toggleRadio(this) ">
62
- < label for ="yesterdayContribution "> Last 1 day</ label >
63
- </ div >
47
+
48
+ < div id ="reportSection " class ="tab-content ">
49
+ < div >
50
+ < h4 > Your Project Name</ h4 >
51
+ < input id ="projectName " type ="text " class ="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 " placeholder ="Enter your project name ">
52
+ </ div >
53
+ < div >
54
+ < h4 > Your Github Username</ h4 >
55
+ < input id ="githubUsername " type ="text " class ="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 " placeholder ="Required for fetching your contributions ">
64
56
</ div >
65
57
66
- < div id ="customDateContainer " class ="flex justify-between items-center mt-2 ">
67
- < div >
68
- < label for ="startingDate "> Start Date:</ label >
69
- < input type ="date " id ="startingDate " class ="border-2 border-gray-200 bg-gray-200 rounded-xl p-1 ">
58
+ < div >
59
+ < p class ="text-sm "> Fetch your contributions between:</ p >
60
+ < div class ="flex justify-between items-center my-2 mx-4 ">
61
+ < div class ="flex items-center gap-2 ">
62
+ < input type ="radio " id ="lastWeekContribution " name ="timeframe " class ="form-radio " onclick ="toggleRadio(this) ">
63
+ < label for ="lastWeekContribution "> Last 7 days</ label >
64
+ </ div >
65
+ < div class ="flex items-center gap-2 ">
66
+ < input type ="radio " id ="yesterdayContribution " name ="timeframe " class ="form-radio " onclick ="toggleRadio(this) ">
67
+ < label for ="yesterdayContribution "> Last 1 day</ label >
68
+ </ div >
70
69
</ div >
71
- < div >
72
- < label for ="endingDate "> End Date:</ label >
73
- < input type ="date " id ="endingDate " class ="border-2 border-gray-200 bg-gray-200 rounded-xl p-1 ">
70
+
71
+ < div id ="customDateContainer " class ="flex justify-between items-center mt-2 ">
72
+ < div >
73
+ < label for ="startingDate "> Start Date:</ label >
74
+ < input type ="date " id ="startingDate " class ="border-2 border-gray-200 bg-gray-200 rounded-xl p-1 ">
75
+ </ div >
76
+ < div >
77
+ < label for ="endingDate "> End Date:</ label >
78
+ < input type ="date " id ="endingDate " class ="border-2 border-gray-200 bg-gray-200 rounded-xl p-1 ">
79
+ </ div >
74
80
</ div >
75
81
</ div >
76
- </ div >
77
-
78
- < div class ="col s12 ">
79
- < br />
80
- < input type ="checkbox " id ="showOpenLabel " class ="form-checkbox h-4 w-4 text-blue-600 ">
81
- < label id ="checkboxLabel " for ="showOpenLabel " class ="text-gray-700 font-medium text-sm "> Show Open/Closed Label</ label >
82
- </ div >
83
- < div class ="my-4 ">
84
- < p class ="text-sm font-medium "> What is blocking you from making progress?</ p >
85
- < input id ="userReason " type ="text " class ="w-full text-gray-800 mt-3 rounded-xl px-4 py-1 " placeholder ="Enter your reason ">
86
- < hr class ="border-t-2 border-gray-700 mt-1 ">
87
- </ div >
88
- < div >
82
+
83
+ < div class ="col s12 ">
84
+ < br />
85
+ < input type ="checkbox " id ="showOpenLabel " class ="form-checkbox h-4 w-4 text-blue-600 ">
86
+ < label id ="checkboxLabel " for ="showOpenLabel " class ="text-gray-700 font-medium text-sm "> Show Open/Closed Label</ label >
87
+ </ div >
88
+ < div class ="my-4 ">
89
+ < p class ="text-sm font-medium "> What is blocking you from making progress?</ p >
90
+ < input id ="userReason " type ="text " class ="w-full text-gray-800 mt-3 rounded-xl px-4 py-1 " placeholder ="Enter your reason ">
91
+ < hr class ="border-t-2 border-gray-700 mt-1 ">
92
+ </ div >
89
93
< div >
90
- < h6 class ="text-base font-semibold "> Scrum Report</ h6 >
91
- < div id ="scrumReport "
92
- contenteditable ="true "
93
- class ="min-h-[200px] overflow-y-auto whitespace-pre-wrap border-2 border-gray-200 bg-gray-100 rounded-xl text-gray-800 p-2 my-2 ">
94
+ < div >
95
+ < h6 class ="text-base font-semibold "> Scrum Report</ h6 >
96
+ < div id ="scrumReport "
97
+ contenteditable ="true "
98
+ class ="min-h-[200px] overflow-y-auto whitespace-pre-wrap border-2 border-gray-200 bg-gray-100 rounded-xl text-gray-800 p-2 my-2 ">
99
+ </ div >
100
+ </ div >
101
+ < div class ="flex justify-between gap-2 ">
102
+ < button id ="generateReport " class ="flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded ">
103
+ < i class ="fa fa-refresh "> </ i > Generate Report
104
+ </ button >
105
+ < button id ="copyReport " class ="flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded ">
106
+ < i class ="fa fa-copy "> </ i > Copy Report
107
+ </ button >
94
108
</ div >
95
109
</ div >
96
- < div class ="flex justify-between gap-2 ">
97
- < button id ="generateReport " class ="flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded ">
98
- < i class ="fa fa-refresh "> </ i > Generate Report
99
- </ button >
100
- < button id ="copyReport " class ="flex items-center gap-2 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded ">
101
- < i class ="fa fa-copy "> </ i > Copy Report
102
- </ button >
110
+ </ div >
111
+
112
+ < div id ="settingsSection " class ="tab-content hidden ">
113
+
114
+ < div class ="">
115
+ < p class ="text-sm font-medium "> Enter cache TTL
116
+ < span class ="tooltip-container ">
117
+ < i class ="fa fa-question-circle question-icon "> </ i >
118
+ < span class ="tooltip-bubble ">
119
+ We are caching the data to avoid redundant calls. By default the cache expires after 10 minutes, you can change it here to your desired time. We have given a refresh cache button in case you want to fetch fresh data right now.
120
+ </ span >
121
+ </ span >
122
+ </ p >
123
+ < input type ="text " id ="cacheInput " class ="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 " placeholder ="Write Cache TTL in minutes (Default 10 minutes) ">
103
124
</ div >
104
125
< div class ="">
105
126
< button id ="refreshCache " class ="w-full mt-3 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded flex items-center justify-center gap-2 transition-colors duration-200 ">
@@ -108,21 +129,24 @@ <h6 class="text-base font-semibold">Scrum Report</h6>
108
129
</ button >
109
130
< p class ="cache-info ">
110
131
< i class ="fa fa-info-circle "> </ i >
111
- Data is cached for 10 minutes. Use this button to fetch fresh data immediately.
132
+ Use this button to fetch fresh data immediately.
112
133
</ p >
113
134
</ div >
114
- < div class ="border-gray-100 border-2 bg-white rounded-3xl px-4 py-2 mx-2 my-2 ">
115
- < div >
116
- < h4 class ="font-semibold text-xl "> Note:</ h4 >
117
- < ul class ="text-xs list-disc list-inside ">
118
- < li > The PRs fetched are based on the most recent review by any contributor. If you reviewed a PR 10 days ago and someone else reviewed it 2 days ago, it will still appear in your activity for the past week. (< a target ="_blank " href ="https://github.com/fossasia/scrum_helper/issues/20 "> See this issue</ a > .)
119
- </ li >
120
- < li > Please note that some discrepancies may occur in the generated SCRUM. We recommend manually reviewing and editing the report to ensure accuracy before sharing
121
- </ li >
122
- </ ul >
123
- </ div >
135
+
136
+ </ div >
137
+
138
+ <!-- asdfghjklkjhgfdsasdfghjkjhgfdsasdfghjk -->
139
+ < div class ="border-gray-100 border-2 bg-white rounded-3xl px-4 py-2 mx-2 my-2 ">
140
+ < div >
141
+ < h4 class ="font-semibold text-xl "> Note:</ h4 >
142
+ < ul class ="text-xs list-disc list-inside ">
143
+ < li > The PRs fetched are based on the most recent review by any contributor. If you reviewed a PR 10 days ago and someone else reviewed it 2 days ago, it will still appear in your activity for the past week. (< a target ="_blank " href ="https://github.com/fossasia/scrum_helper/issues/20 "> See this issue</ a > .)
144
+ </ li >
145
+ < li > Please note that some discrepancies may occur in the generated SCRUM. We recommend manually reviewing and editing the report to ensure accuracy before sharing
146
+ </ li >
147
+ </ ul >
124
148
</ div >
125
- </ div >
149
+ </ div >
126
150
</ div >
127
151
128
152
< div class ="mt-6 border-t border-gray-300 ">
0 commit comments