2.6 KiB · text History 905ae26
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                          http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
  <kcfgfile name=""/>

  <group name="General">
    <entry name="serverUrl" type="String">
      <label>Vigil address</label>
      <default>https://vigil.neiam.org</default>
    </entry>

    <entry name="accessToken" type="String">
      <label>API token from Settings → API tokens</label>
      <default></default>
    </entry>

    <!-- An organization slug; "" = the only (or first) one the token sees -->
    <entry name="organization" type="String">
      <label>The organization the widget watches</label>
      <default></default>
    </entry>

    <!-- JSON list of project slugs, in circle order; empty = every project -->
    <entry name="projects" type="String">
      <label>Watched projects (JSON)</label>
      <default>[]</default>
    </entry>

    <entry name="foldOrg" type="Bool">
      <label>Fold the watched projects into one circle</label>
      <default>false</default>
    </entry>

    <entry name="updateInterval" type="Int">
      <label>Refresh interval (seconds)</label>
      <default>60</default>
    </entry>

    <entry name="recentHours" type="Int">
      <label>How far back a new or regressed issue counts against a circle (hours)</label>
      <default>24</default>
      <min>1</min>
      <max>720</max>
    </entry>
  </group>

  <group name="Notifications">
    <entry name="notifyNewIssues" type="Bool">
      <label>Notify when a new issue appears</label>
      <default>true</default>
    </entry>

    <entry name="notifyRegressions" type="Bool">
      <label>Notify when a resolved issue comes back</label>
      <default>true</default>
    </entry>

    <entry name="notifyMonitors" type="Bool">
      <label>Notify when a cron or uptime monitor starts failing</label>
      <default>true</default>
    </entry>
  </group>

  <!-- State kept from the popup, not set in the config dialog -->
  <group name="View">
    <!-- "" = every watched project; else a project slug -->
    <entry name="projectFilter" type="String">
      <label>The project the popup's list shows</label>
      <default></default>
    </entry>

    <entry name="monitorsOpen" type="Bool">
      <label>The popup's monitors section is open</label>
      <default>true</default>
    </entry>

    <entry name="pin" type="Bool">
      <label>Keep the popup open when it loses focus</label>
      <default>false</default>
    </entry>
  </group>
</kcfg>