-
-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): expose 30d badges and response chart selector for duration #994
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to build it locally and I got this:
VueCompilerError: Invalid end tag.
at <secret>/gatus/web/app/src/views/Details.vue:48:9
46 | <option value="7d">7 days</option>
47 | <option value="30d">30 days</option>
48 | </select>
| ^
49 | </div>
50 | <img :src="generateResponseTimeChartImageURL(selectedChartDuration)" alt="response time chart" class="mt-6" />
This reverts commit 517f0ce.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #994 +/- ##
==========================================
+ Coverage 75.82% 75.91% +0.08%
==========================================
Files 74 75 +1
Lines 6764 6883 +119
==========================================
+ Hits 5129 5225 +96
- Misses 1328 1345 +17
- Partials 307 313 +6 ☔ View full report in Codecov by Sentry. |
response time is only stored at 1h intervals, having a chart for the past 1h does not make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work! Thank you for contributing @toredash!
Summary
This PR will expose the 30d badges in the endpoints details view, it may be confusing to not find it in the details view, as reported here.
Additionally, PR exposes a new dropdown menu in the endpoints details view to allow the user to select a different response time chart period. I'm a little unsure about the styling of it, but the end-result looks like this:
![image](https://private-user-images.githubusercontent.com/312038/409992567-b0ebd9d6-f081-428f-84c8-1b3e4963e757.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDg1NzMsIm5iZiI6MTczOTM0ODI3MywicGF0aCI6Ii8zMTIwMzgvNDA5OTkyNTY3LWIwZWJkOWQ2LWYwODEtNDI4Zi04NGM4LTFiM2U0OTYzZTc1Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwODE3NTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZDVhMjk3MTA5ZjI5NTA3NDhiYWNiYmE1ZTc1ZjdiOTViM2M4YzQ4OWM4OGU1ZjgzMzBhOWQxYzZjYzdmOWEyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.AuKb0_peOKx4fGnUgI-zMDK9iY3eQRkqv_Qf9b-H1PQ)
I noticed that there was no support for 1h response time chart. I added code for it with an additional test. If you want this present but with a dedicated PR please let me know.
Checklist
README.md
, if applicable.