Sort integrations in A-Z order. Rename "LineNotify" -> "LINE Notify". Update the LINE Notify icon.

This commit is contained in:
Pēteris Caune 2020-08-20 11:16:59 +03:00
parent f15e16a0bb
commit 94b993354f
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
6 changed files with 27 additions and 26 deletions

View File

@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- Removing unused /api/v1/notifications/{uuid}/bounce endpoint - Removing unused /api/v1/notifications/{uuid}/bounce endpoint
- Less verbose output in the `senddeletionnotices` command - Less verbose output in the `senddeletionnotices` command
- Host a read-only dashboard (from github.com/healthchecks/dashboard/) - Host a read-only dashboard (from github.com/healthchecks/dashboard/)
- LINE Notify integration (#412)
## Bug Fixes ## Bug Fixes
- Handle excessively long email addresses in the signup form - Handle excessively long email addresses in the signup form

View File

@ -51,7 +51,7 @@ CHANNEL_KINDS = (
("zulip", "Zulip"), ("zulip", "Zulip"),
("spike", "Spike"), ("spike", "Spike"),
("call", "Phone Call"), ("call", "Phone Call"),
("linenotify", "LineNotify"), ("linenotify", "LINE Notify"),
) )
PO_PRIORITIES = {-2: "lowest", -1: "low", 0: "normal", 1: "high", 2: "emergency"} PO_PRIORITIES = {-2: "lowest", -1: "low", 0: "normal", 1: "high", 2: "emergency"}
@ -759,6 +759,7 @@ class Channel(models.Model):
doc = json.loads(self.value) doc = json.loads(self.value)
return doc["token"] return doc["token"]
class Notification(models.Model): class Notification(models.Model):
class Meta: class Meta:
get_latest_by = "created" get_latest_by = "created"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -227,6 +227,15 @@
</li> </li>
{% endif %} {% endif %}
<li>
<img src="{% static 'img/integrations/linenotify.png' %}"
class="icon" alt="LINE Notify icon" />
<h2>LINE Notify</h2>
<p>Receive a notification on LINE when a check goes up or down.</p>
<a href="{% url 'hc-add-linenotify' project.code %}" class="btn btn-primary">Add Integration</a>
</li>
{% if enable_matrix %} {% if enable_matrix %}
<li> <li>
<img src="{% static 'img/integrations/matrix.png' %}" <img src="{% static 'img/integrations/matrix.png' %}"
@ -412,15 +421,6 @@
<a href="{% url 'hc-add-zulip' project.code %}" class="btn btn-primary">Add Integration</a> <a href="{% url 'hc-add-zulip' project.code %}" class="btn btn-primary">Add Integration</a>
</li> </li>
<li>
<img src="{% static 'img/integrations/linenotify.png' %}"
class="icon" alt="LineNotify icon" />
<h2>LineNotify</h2>
<p>Get a LineNotify message when a check goes up or down.</p>
<a href="{% url 'hc-add-linenotify' project.code %}" class="btn btn-primary">Add Integration</a>
</li>
<li class="link-to-github"> <li class="link-to-github">
<img src="{% static 'img/integrations/missing.png' %}" <img src="{% static 'img/integrations/missing.png' %}"
class="icon" alt="Suggest New Integration" /> class="icon" alt="Suggest New Integration" />

View File

@ -435,6 +435,13 @@
</div> </div>
{% endif %} {% endif %}
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="integration">
<img src="{% static 'img/integrations/linenotify.png' %}" class="icon" alt="" />
<h3>LINE Notify<br><small>Chat</small></h3>
</div>
</div>
{% if enable_matrix %} {% if enable_matrix %}
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"> <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="integration"> <div class="integration">
@ -642,13 +649,6 @@
</h3> </h3>
</div> </div>
</div> </div>
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
<div class="integration">
<img src="{% static 'img/integrations/linenotify.png' %}" class="icon" alt="" />
<h3>LineNotify<br><small>Chat</small></h3>
</div>
</div>
</div> </div>
<div class="row tour-section"> <div class="row tour-section">

View File

@ -7,13 +7,12 @@
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<h1>LineNotify</h1> <h1>LINE Notify</h1>
<p><a href="https://notify-bot.line.me/en/">LineNotify</a> <p><a href="https://notify-bot.line.me/en/">LINE Notify</a>
allows you to send web notifications directly to your LINE chats. allows you to send notifications directly to your LINE chats.
If you use or plan on using LineNotify, You can set up {% site_name %} to post status updates directly to an
you can set up {% site_name %} to post status updates directly to an appropriate LineNotify channel. appropriate LINE chat. </p>
Here are a few steps that can integrate it with your {% site_name %} account.</p>
<h2>Setup Guide</h2> <h2>Setup Guide</h2>
@ -22,9 +21,9 @@
<div class="col-sm-6"> <div class="col-sm-6">
<span class="step-no"></span> <span class="step-no"></span>
<p> <p>
Log into your Line account, Log into your LINE account,
go to <strong>My Pages</strong> in the upper right corner. go to <strong>My Page</strong> in the upper right corner.
In the <strong>My Pages</strong>, scroll to the bottom of the page, In the <strong>My Page</strong>, scroll to the bottom of the page,
and click on <strong>Generate token</strong> button. and click on <strong>Generate token</strong> button.
</p> </p>
</div> </div>