Commit graph

45 commits

Author SHA1 Message Date
Pēteris Caune
44b163cc52
Fix JS formatting 2024-06-17 14:14:36 +03:00
NKETIAH53
0874ced368 format dates in logs to include year unless they are from current year
fixes: #1008
2024-06-17 14:07:18 +03:00
Pēteris Caune
9f5cec1c7a
Simplify JS that sets the favicon
* look up the favicon DOM element only once
* update the favicon only if title changes, not on every refresh
* details.js: use the base URL when constructing favicon URL
2024-03-26 17:28:47 +02:00
Prince Khunt
249b9e163d
Proposing addition of a visual indication to favicon on down (#977)
Implement dynamic favicon in the "Checks" and "Details" pages

Fixes: #971
2024-03-26 17:05:23 +02:00
Florian Apolloner
7057f6d3a5
Notification groups. Fixes #894 (#901)
* MVP for notification groups.

* Addressed review comments.

* Push notification group to the front.

* Updated icons.

* Reduce code duplication.

* Show groups at the top.

* Add label to group forms.

* Add checkboxes for integration selection.

* CSS for checkboxes.

* Added tests for group notify.
2023-10-06 17:02:41 +03:00
Pēteris Caune
dba356c5d4
For cron checks, change default display timezone to check's timezone
In the "Details" and "Log" pages Healthchecks displays a list
of events (incoming pings and sent alerts). At the top of the
events list is a two- or three-way selector for selecting
the timezone for formatting event dates and times. The selector
options are "UTC", check's configured timezone, and "Browser's
time zone". The "Browser's time zone" used to be default, initial
selection for all checks.

With this change, for checks that use cron schedule, the default
selected timezone will be the check's configured timezone.
The "Browser's time zone" option is of course still there and the
user can switch to it to see dates and times in their local time.

Rationale: I semi-regularly get support requests about unexpected
or missing alerts, where the problem boil downs to a timezone
mismatch between the client and the Healthchecks server. Sometimes
the confusion seems to be caused by the user seeing ping arrival
times in  their local time zone, comparing them to their cron
expression, and not realizing their server may be using a different
timezone. By switching the default display timezone to the check's
configured timezone, I hope users will be more likely to notice
discrepancies between ping arrival times, the cron schedule,
and their local clock.

For checks using simple schedules (timeout and grace), we still
default to browser's timezone for display.
2023-06-29 12:12:54 +03:00
Pēteris Caune
0f8c459987
Improve Rocket.Chat notification template
* Move the text field outside of the attachment object
* Rename "username" to "alias"
* Rename "icon_url" to "avatar"
* Remove unused, Slack-specific fields
* Add "Last Ping Body" field with a link to view full body

cc: #463
2023-06-03 09:58:34 +03:00
Pēteris Caune
554f6cba68
Replace bootstrap-select with the native <select> element 2023-05-26 13:44:24 +03:00
Pēteris Caune
36e8843481
Drop clipboard.js dependency, use navigator.clipboard directly 2022-12-15 15:05:40 +02:00
Pēteris Caune
1b7bdea9e9
Optimize HTML output of the events log some more 2022-09-05 19:45:11 +03:00
Pēteris Caune
29da76b953
Fix clicks on log events 2022-09-05 16:12:01 +03:00
Pēteris Caune
003d35d431
Add "Filter by keywords in the message body" feature
cc: #653
2022-07-12 15:46:15 +03:00
Pēteris Caune
a354f8eb52
Update selectize 0.12 -> 0.13 2022-06-29 11:14:49 +03:00
Pēteris Caune
a3d1bc7386
Implement the "started" progress spinner in the details pages 2022-04-08 10:56:36 +03:00
Pēteris Caune
1b2defa6ee
Optimize HTML output in /checks/<uuid>/log/ 2022-04-04 11:11:55 +03:00
Pēteris Caune
580eaceeb5
Optimize HTML output in /checks/<uuid>/log/
* Don't use 'date' and 'time' CSS classes in HTML output
* Replace the span.ua-body CSS class with code tags
2022-04-04 10:24:31 +03:00
Pēteris Caune
fd15302d2a
Improve the loading state of the "Ping Details" dialog
If the "Ping details" dialog takes more than ~300ms to load,
show an animated progress indicator.

Also, move the loading code to a ping_details.js file
to reduce code repetition.
2022-03-16 13:51:26 +02:00
Pēteris Caune
5ae85f850c
Fix JS error after copying a code snippet 2022-02-04 17:05:45 +02:00
Pēteris Caune
57336187a7
Fix HTML email preview in the checks list 2021-03-10 12:29:20 +02:00
Pēteris Caune
d4fc314696
Set iframe's charset to utf8 2021-02-26 16:36:45 +02:00
Pēteris Caune
46bc7d8306
Improve HTML email display in the "Ping Details" dialog 2021-02-26 16:25:39 +02:00
Pēteris Caune
67560c96e1
Change icon CSS class prefix to work around Fanboy's filter list
Problem: if you use uBlock Origin, and enable the
"Fanboy's Social" filter list, Healthchecks does not show
Telegram or WhatsApp icons. This is because the filter list
contains "##.icon-telegram" and "##.icon-whatsapp" entries.

This commit changes the CSS class prefix to "ic-". So we're
now using icon classes like "ic-telegram" and "ic-whatsapp".

As a bonus, we save 2 bytes in HTML per displayed icon :-)
2021-02-03 10:44:35 +02:00
Pēteris Caune
c3b6d40012
Fix selectize initialization in the Details page
Fixes: #462
2020-12-26 14:51:30 +02:00
Pēteris Caune
c9baa2d8eb
Read-only users cannot toggle channels on and off. 2020-08-26 12:50:02 +03:00
Pēteris Caune
00790dc33c
Member.rw flag. Read-only users cannot edit check's name/desc/tags or schedule 2020-08-26 12:16:43 +03:00
Pēteris Caune
0d03e3f00b
Add "Failure Keyword" filtering for inbound emails (cc: #396) 2020-07-21 14:57:48 +03:00
Pēteris Caune
f573578108
Some JS linting fixes 2020-07-01 19:23:50 +03:00
Pēteris Caune
3eebd8968d
Added "When paused, ignore pings" option in the Filtering Rules dialog (#369) 2020-06-02 10:54:16 +03:00
Pēteris Caune
ab692236eb
Fix selectize initialization when the project has 0 existing tags. 2020-03-09 14:39:03 +02:00
Pēteris Caune
6147451851
JS cleanup. 2020-03-09 10:16:39 +02:00
Pēteris Caune
00810ff123
Use Selectize.js for entering tags. Fixes #324 2020-03-05 15:49:42 +02:00
Pēteris Caune
3f19181028
"Filtering Rules" dialog, an option to require HTTP POST. Fixes #297 2019-11-27 16:33:36 +02:00
Pēteris Caune
339ac5e9d9
After adding a new check redirect to the "Check Details" page. 2019-08-27 16:03:06 +03:00
Pēteris Caune
9474006d83
Support informal time zones. 2019-08-22 11:41:08 +03:00
Pēteris Caune
dfd449b101
Three choices in timezone switcher (UTC / check's timezone / browser's timezone). Fixes #278 2019-08-22 11:17:27 +03:00
Pēteris Caune
72d608902d
Fix JS to construct correct URLs when running from a subdirectory. Fixes #273 2019-08-12 23:29:32 +03:00
Pēteris Caune
b2ebce6cf9
Show the number of downtimes and total downtime minutes in "Check Details" page. 2019-07-20 11:42:16 +03:00
Pēteris Caune
9f69dcb158
Show the Description section in Check Details screen even if the description is missing. Fixes #246 2019-05-02 13:36:34 +03:00
Pēteris Caune
c4c657f5d4
Add "Transfer to Another Project" dialog in check's Details page. 2019-01-31 22:09:46 +02:00
Pēteris Caune
7e56eb883e
Fetch ping details using HTTP GET, not HTTP POST. 2018-08-19 18:18:25 +03:00
Pēteris Caune
3ecd6bd422
Can toggle integrations in Details page by clicking on them. 2018-08-19 16:02:17 +03:00
Pēteris Caune
8ab8e15c4e
Update document.title 2018-08-19 13:33:21 +03:00
Pēteris Caune
8fa9a6f3f6
Fix local time / UTC switcher (it was getting reset on auto-updates). 2018-08-19 13:11:35 +03:00
Pēteris Caune
ecba1eb40b
More efficient log updates. 2018-08-19 12:52:51 +03:00
Pēteris Caune
a883fe38aa
Log auto-refreshes in the details page. 2018-08-19 12:32:03 +03:00