Vigil Widget for Plasma 6
A Plasma 6 panel widget for Vigil, the self-hosted, Sentry-compatible error tracker. It shows your projects’ health as a row of circles, with the unresolved issues, their latest events and your cron and uptime monitors in a popup.
[eye 12] ● ● ●
- Eye: Vigil’s mark, badged with the unresolved issues in the watched projects. Click it for every watched project’s issues; middle-click opens Vigil in the browser. Hover it for a summary.
- Circles: one per watched project, or one for the whole organization (see Health). Hover a circle for its counts and failing monitors. Click it for just that project.
- Popup: the organization picker (only when the token sees more than one), a project filter, the monitors, failing ones first, and the unresolved issues, newest activity first.
- Pin (Keep Open): the popup stays open when you click elsewhere, as the system tray’s does. Remembered.
- Notifications: a new issue, a resolved one coming back, a monitor starting to fail. See Notifications.
Health
| Circle | Means |
|---|---|
| red, with a slow pulse | a cron monitor failing or an uptime monitor down, or an issue that regressed in the last N hours |
| orange | an unresolved issue first seen in the last N hours |
| green | nothing of the above |
| grey ring | not loaded yet |
N is Behavior → Recent means the last (24 h by default). Circles fade while the server can’t be reached, and the popup says offline · retrying over the last data it had.
A regression is an issue that was resolved at one poll and unresolved at the next. The widget learns which issues are resolved from the hundred most recently seen ones, so it can’t tell a regression of an issue resolved long ago and silent since. That one counts as new only if it was first seen recently, and the web’s own alert rules still catch it.
Issues
Each row reads as in the web’s list and the Android app: the level (fatal and error red, warning orange, info blue, debug teal), the title, the culprit, how many events and users, the project, and when it was last seen. new or regressed follow the culprit when that’s why the circle is coloured, and the assignee when there is one.
Click a row to open its latest event:
▾ error TypeError: undefined is not a function 1.2k events 3 users
app/web.ex in handle/2 Web · 1m ago
TypeError: undefined is not a function unhandled
• render app/main.js:42:7
Breadcrumbs
• 20:16:31 http GET /x → 500
• 20:16:58 ui.click button#save
[Resolve] [Resolve in Next Release] [Ignore] [Assign to Me] [Open in Browser]
- The exception, its newest in-app frames (every frame when none is in-app), and the last four breadcrumbs. A message event shows its message.
- Resolve, Resolve in Next Release, Ignore, Unresolve and Assign to Me / Unassign Me go through the bulk issue endpoint, as the Android app’s triage. They’re only shown when the token has
event:write. A triaged row keeps its new status (and an Unresolve button) until the next refresh drops it, and Undo in the header puts the last change back. - Open in Browser opens the issue in Vigil. Right-click a row for Open in Browser and Copy Link.
Monitors
Cron monitors read failing, ok, waiting or disabled, with their schedule and last and next check-in. Uptime monitors read down, pending, up or paused, with the reason when they’re down, else the target, the response time and how long they’ve been in that state. Failing ones sort first. Click one to open it in Vigil. Click the section’s heading to fold it: folded, it still shows the failing ones.
Notifications
Under Behavior → Notifications, each on by default:
- A new issue appears: New issue in Web: TypeError: …, with the short id, culprit and level.
- A resolved issue comes back: Regressed in Web: …, urgent.
- A cron or uptime monitor starts failing: Cron monitor failing: nightly-backup or Down: homepage, urgent.
Click a notification to open the popup on that project (and that issue), or use Open in Browser. Nothing fires on the first poll, so starting Plasma doesn’t announce the backlog, nor after you switch organization or watched projects. Notifications go through Plasma’s own event, so they follow System Settings → Notifications, Do Not Disturb included.
Configuration
General
- Vigil address:
https://vigil.neiam.orgby default. - API token: in Vigil, open Settings → API tokens, tick Mobile app and make a token. It’s shown once. That bundle has the read scopes (
org:read,project:read,team:read,member:read,event:read) andevent:writefor triage. Tick Read-only too for a widget that only watches: the triage buttons are then hidden. Revoke the token there to sign the widget out. - Test Connection, and every Apply or OK, calls
GET /api/0/and says who the token belongs to, whether it can triage, and which read scopes it lacks. A refused token stops polling, and the popup says so, until you change it or press Refresh. - Organization: the first one the token sees until you pick one. The popup’s picker changes it too.
- Projects: every project, as one circle (the default), or a chosen list in circle order (↑/↓ to reorder), optionally folded into one circle.
The token is kept in the widget’s configuration, as in the other neiam widgets.
Behavior
| Setting | Default | |
|---|---|---|
| Refresh every | 60 s | Opening the popup refreshes too. While the server can’t be reached it retries every 15 s |
| Recent means the last | 24 h | How far back a new or regressed issue colours a circle |
| Notify when a new issue appears | on | |
| Notify when a resolved issue comes back | on | |
| Notify when a cron or uptime monitor starts failing | on |
Each refresh makes four calls side by side: the unresolved issues (up to three pages of 100), the hundred most recently seen resolved ones (for regressions), the cron monitors and the uptime monitors. Who the token is, the organizations and the projects are asked once and then every ten minutes. After a suspend, requests open across it are dropped and the widget starts over.
API
The widget speaks Vigil’s Sentry-compatible /api/0, the same surface as the Android app (android/ in the vigil repo), with Authorization: Bearer <token>:
| Call | For |
|---|---|
GET / |
who the token is, and its scopes |
GET /organizations/ |
the organization picker |
GET /organizations/{org}/projects/ |
the project list and circles |
GET /organizations/{org}/issues/?query=is:unresolved&project=… |
the issues, with Sentry’s Link-header cursors |
GET /organizations/{org}/issues/?query=is:resolved&project=… |
telling a regression |
GET /projects/{org}/{project}/issues/{id}/events/latest/ |
a row’s latest event |
PUT /projects/{org}/{project}/issues/?id=… |
triage: {"status": …} or {"assignedTo": "user:<id>" | ""} |
GET /organizations/{org}/monitors/ |
cron monitors |
GET /organizations/{org}/uptime/ |
uptime monitors |
Installing
From the forge’s package repositories
The package workflow publishes a .deb (trixie, forky) and an .rpm as plasma-applet-vigil on every push to master, into the same namespace-wide repository as the other neiam plasmoids. The workflow’s last step prints the apt and dnf/zypper lines.
From a checkout
./package.sh --install # install or upgrade into ~/.local
systemctl --user restart plasma-plasmashell
Then add Vigil to a panel or the desktop.
A copy installed with kpackagetool6 shadows the packaged one. Remove it with kpackagetool6 -t Plasma/Applet -r org.neiam.kde.vigil.
./package.sh 0.1.0 builds a release archive for the KDE Store instead. Both copy only metadata.json, contents/ and the licence.
Trying it without installing
plasmoidviewer -a . -f horizontal # in a panel
plasmoidviewer -a . -f planar # on the desktop
Layout
metadata.json org.neiam.kde.vigil
contents/
config/main.xml settings
icons/vigil.svg the eye (Heroicons eye-solid, MIT), as Vigil's web header and Android icon
ui/main.qml the store: polling, news, triage, notifications
ui/VigilAPI.qml /api/0 client (bearer token, watchdog timeouts)
ui/Vigil.js colours, labels, event and monitor helpers
ui/CircleStrip.qml the panel: the eye, its badge and the circles
ui/StatusCircle.qml one circle
ui/FullView.qml the popup: header, monitors, issues
ui/IssueItem.qml one issue, and its triage row
ui/EventDetail.qml an issue's latest event
ui/MonitorItem.qml one cron or uptime monitor
ui/Pill.qml, SectionHeading.qml
ui/config*.qml settings pages
package.sh, packaging/ identical in every neiam plasmoid repo
License
GPL-3.0. See LICENSE.md. The eye is Heroicons’ eye-solid (MIT), as in Vigil itself.