Browse Source

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

pull/415/head
Pēteris Caune 4 years ago
parent
commit
94b993354f
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
6 changed files with 27 additions and 26 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -1
      hc/api/models.py
  3. BIN
      static/img/integrations/linenotify.png
  4. +9
    -9
      templates/front/channels.html
  5. +7
    -7
      templates/front/welcome.html
  6. +8
    -9
      templates/integrations/add_linenotify.html

+ 1
- 0
CHANGELOG.md 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


+ 2
- 1
hc/api/models.py 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"


BIN
static/img/integrations/linenotify.png View File

Before After
Width: 512  |  Height: 512  |  Size: 18 KiB Width: 128  |  Height: 128  |  Size: 2.3 KiB

+ 9
- 9
templates/front/channels.html 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" />


+ 7
- 7
templates/front/welcome.html 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">


+ 8
- 9
templates/integrations/add_linenotify.html 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>
allows you to send web 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 appropriate LineNotify channel.
Here are a few steps that can integrate it with your {% site_name %} account.</p>
<p><a href="https://notify-bot.line.me/en/">LINE Notify</a>
allows you to send notifications directly to your LINE chats.
You can set up {% site_name %} to post status updates directly to an
appropriate LINE chat. </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,
go to <strong>My Pages</strong> in the upper right corner.
In the <strong>My Pages</strong>, scroll to the bottom of the page,
Log into your LINE account,
go to <strong>My Page</strong> in the upper right corner.
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>


Loading…
Cancel
Save