Commit graph

1358 commits

Author SHA1 Message Date
Pēteris Caune
c7c48477df
Fix report templates to not show the "started" status 2021-12-08 09:41:49 +02:00
Pēteris Caune
1da03f1662
Add HTTP POST example in PowerShell usage examples
Fixes #575
2021-12-02 15:42:15 +02:00
Pēteris Caune
9e36eb5fcc
Remove the "welcome" landing page
Redirect unauthenticated users to the sign in page
instead. Rationale:

- The content on the welcome page is what often belongs
  to a separate "marketing site". The marketing content
  is of no use on self-hosted instances, which typically
  have new signups disabled and are for internal use only
- (the real reason, let's be honest) a number of
  self-hosted instances are accessible over the public
  internet. Search engines index the nearly identical
  landing pages and see them as duplicated content.
2021-11-10 11:59:55 +02:00
Pēteris Caune
e0d2f36928
Improve period and grace controls, allow up to 365 day periods
Fixes: #281
2021-11-04 15:44:51 +02:00
Pēteris Caune
cfd0bd2a6e
Change "Add Users from Other Teams" -> "Add Users from Other Projects" 2021-11-03 10:34:56 +02:00
Pēteris Caune
bcc7009437
Update channels.html to use Channel.last_notify
Channel.last_notify is the datetime of the most recent
notification sent via the channel. Channel.last_error is
the error message (blank if the delivery was successful).

In the integrations list, "Last Notification" column,
use these fields instead of looking up the most recent
Notification object. This saves some db queries,
and also fixes a subtle issue: if prunenotifications
cleans up all notifications for a given channel, the
"Last Notification" column would display "Never", which
would not be correct – not any more.
2021-10-21 11:42:13 +03:00
Pēteris Caune
38c480bab5
Update PowerShell example 2021-10-19 16:33:37 +03:00
Pēteris Caune
dc0ea1e8ce
Remove unused bits from the base email template 2021-10-18 18:58:39 +03:00
Pēteris Caune
d2c701fb77
Add {% spaceless %} tags to reduce uncompressed email size
If the email body is above a certain size, Gmail trims it
and displays "[Message clipped]  View entire message" at
the end. The spaceless tag is a quick fix to reduce
HTML size a bit and allow more table rows to fit before
clipping.
2021-10-18 17:47:01 +03:00
Pēteris Caune
141d71d9fe
Switch from croniter to cronsim (vendored in hc.lib.cronsim) 2021-10-14 12:42:31 +03:00
Pēteris Caune
b8771b9eb8
Add uuid/slug switcher in the Details page 2021-10-06 16:12:28 +03:00
Pēteris Caune
5fe4a60b30
Upgrade to jQuery 3.6.0 2021-10-01 13:12:20 +03:00
Pēteris Caune
b5f7ec1324
Add "Ping Key Required" dialog
In the Details page, if the user click "Ping Now",
and the project is using {ping-key}/{slug} URLs,
but the ping key is not set, then show a
"Ping Key Required" message instead of trying to ping
and invalid URL.
2021-09-24 16:25:24 +03:00
Pēteris Caune
4618108046
Make "or" bold
cc: #547
2021-09-20 08:44:33 +03:00
Pēteris Caune
2adf4b6aee
Add "(not unique)" note next to ambiguous ping URLs 2021-09-17 15:09:31 +03:00
Pēteris Caune
7f766e4f48
Improve docs 2021-09-16 09:16:29 +03:00
Pēteris Caune
9299ee4516
Improve response code descriptions in Ping API docs 2021-09-15 13:30:19 +03:00
Pēteris Caune
be66ec73e5
Add the slug-based endpoints in Ping API docs 2021-09-15 11:39:05 +03:00
Pēteris Caune
5905560583
Add content about the new slug-based ping URLs in docs/introduction.md 2021-09-14 16:40:29 +03:00
Pēteris Caune
66af88145a
Add "if read-write" conditionals for modals in project.html 2021-09-09 15:13:04 +03:00
Pēteris Caune
3dfdbc09ca
Add ability to create/revoke individual keys 2021-09-09 14:55:17 +03:00
Pēteris Caune
9517035501
Fix N+1 queries issue in "My Checks" and clean up Check.url() 2021-09-09 10:56:23 +03:00
Pēteris Caune
5b9008e321
Implement alternative ping URLs, WIP 2021-09-09 09:32:10 +03:00
Pēteris Caune
5fafc871dd
Fix unwanted text wrapping in the URL cell 2021-08-26 17:24:04 +03:00
Pēteris Caune
3f078e6cda
Optimize HTML in the "list of checks" page
In a project with ~300 checks,

* HTML size (uncompressed) before: 772KiB
* HTML size (uncompressed) after: 703KiB
2021-08-26 17:11:56 +03:00
Pēteris Caune
be641aea96
Add tests for LINE and Trello transports 2021-08-26 15:54:05 +03:00
Pēteris Caune
2c662dac20
Fix HTML validation issues 2021-08-26 12:02:09 +03:00
Pēteris Caune
6f5a22fd98
Improve up/down flag validation
In SMS, Signal and WhatsApp forms, reject the form if
user unchecks both "alert when check goes DOWN" and
"alert when check goes UP".
2021-08-26 10:35:05 +03:00
Pēteris Caune
8541ec59ca
Add ability to edit existing WhatsApp integrations 2021-08-26 10:17:01 +03:00
Pēteris Caune
5af09ed4dd
Add ability to edit existing Signal integrations 2021-08-26 10:01:09 +03:00
Pēteris Caune
3807c200ce
Add ability to edit existing SMS integrations 2021-08-26 09:42:35 +03:00
Pēteris Caune
a27652d762
Combine the add_webhook and edit_webhook views 2021-08-25 20:29:46 +03:00
Pēteris Caune
2a9a544ddf
Add ability to edit existing email integrations 2021-08-25 18:04:54 +03:00
Pēteris Caune
ebac101209
Remove unused class attributes 2021-08-23 10:53:45 +03:00
Pēteris Caune
c7317a87fc
Improve /api/v1/badges/ docs 2021-08-19 13:00:42 +03:00
Pēteris Caune
28506deb74
Improve /api/v1/badges/ docs
cc: #552
2021-08-19 12:42:24 +03:00
Pēteris Caune
98eb7cc14a
Add /api/v1/badges/ endpoint
cc: #552
2021-08-18 17:47:57 +03:00
Pēteris Caune
c2ee8222e4
Update the "experimental" note 2021-08-18 17:00:01 +03:00
Pēteris Caune
a2fe5653c0
Improve copy in the "Change Schedule" dialog
cc: #547
2021-08-18 14:02:32 +03:00
Pēteris Caune
642d436ae9
Add absolute_site_logo_url template tag
This commit adds a {% absolute_site_logo_url %} template tag.
The tag emits an absolute url pointing to either
SITE_LOGO_URL or to the fallback picture.

The tag is used in base email template, in slack message
template, and in "Add MS Teams" page.

This commit also fixes a couple instances where absolute URLs
were constructed like so:

    {% site_root %}/docs/

This would result in incorrect links if Healthchecks is not
running at webserver's root. The correct way is:

    {% site_root %}{% url 'hc-docs' %}

Finally, this commit removes stuff/logo.svg and
stuff/logo-full.svg. Selfhosted sites should not use the
official Healthchecks.io logos, so no point keeping them around
there.
2021-08-13 14:57:15 +03:00
Pēteris Caune
484c0befbc
Fix email template to use SITE_LOGO_URL (with img/logo.png fallback)
Fixes: #550
2021-08-13 14:21:20 +03:00
Pēteris Caune
8109529329
Render docs 2021-08-12 16:53:08 +03:00
Jan Dittrich
289afd5683 Fix grammar issue in docs 2021-08-12 16:40:15 +03:00
Pēteris Caune
4756527185
Improve docs 2021-08-12 13:07:19 +03:00
Pēteris Caune
1248dd22ea
Add a note about keyword filtering in Docs / Email 2021-08-12 11:55:55 +03:00
Pēteris Caune
234b681df8
Improve docs, addd "Concepts" section
cc: #547
2021-08-12 09:30:45 +03:00
Pēteris Caune
78113e1aea
Improve "Grace Time" description in docs
cc: #547
2021-08-09 17:52:20 +03:00
Pēteris Caune
74f56a5501
Improve the note about start signals and alerting logic
cc: #547
2021-08-06 16:10:06 +03:00
Pēteris Caune
f85aec225d
Fix redirect-after-login when using TOTP
If user has both WebAuthn and TOTP configured,
when logging in, they will be asked to choose between
"Use security keys" and "Use authenticator app".
The "Use authenticator app" is a link to a different
page (/accounts/login/two_factor/totp/). This commit makes
sure the ?next= query parameter is preserved when navigating
to that page.

For reference, the ?next= query parameter is the URL we should
redirect to after a successful login. Use case:
User is logged out. They click on a bookmarked "Check Details"
link. They get redirected to the login form. After
entering username & password and completing 2FA,
they get redirected to the "Check Details" page they
originally wanted to visit.
2021-08-06 12:09:41 +03:00
Pēteris Caune
ca3afa33f9
Add auth method selection step
This has dual purpose:

* if user has both WebAuthn and TOTP set up, they can choose
  between the two as equal options.
* we initiate WebAuthn flow only after an explicit user action
  (button press). This may help with authentication failures
  on recent MacOS, iOS and iPadOS versions [1]

[1] https://support.yubico.com/hc/en-us/articles/360022004600-No-reaction-when-using-WebAuthn-on-macOS-iOS-and-iPadOS
2021-08-05 16:27:06 +03:00