feat(console): set an incident's status right in the incident list #145

Merged
Sebi merged 1 commits from feat/incident-quick-status into main 2026-11-23 22:59:49 +00:00
Owner

Builds on #144 (→ #143); merge those first.

  • Incident list: every row has a Set status button for those with incidents.write on the monitor's group. It opens a small form: status (built-in and own statuses, the next one preselected), optional message, show on status pages; posts an update and returns to the list. Viewers see no button.
  • Status-only updates: migration 00050 allows an empty message; the API accepts it (message optional). Such updates show just their status in the console and on status pages.
  • API docs updated.

Tests: owner sees the button with the right endpoint, viewer does not; status-only update changes the status. Full suite and lint green. Dev env on :8080 migrated (00050) and restarted.

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

> Builds on #144 (→ #143); merge those first. - **Incident list**: every row has a **Set status** button for those with `incidents.write` on the monitor's group. It opens a small form: status (built-in and own statuses, the next one preselected), optional message, *show on status pages*; posts an update and returns to the list. Viewers see no button. - **Status-only updates**: migration 00050 allows an empty message; the API accepts it (`message` optional). Such updates show just their status in the console and on status pages. - API docs updated. Tests: owner sees the button with the right endpoint, viewer does not; status-only update changes the status. Full suite and lint green. Dev env on :8080 migrated (00050) and restarted. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 3 commits 2026-11-23 22:57:16 +00:00
feat: incident updates with a status, public or internal
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m54s
ci / test (pull_request) Successful in 12m15s
ci / image (pull_request) Successful in 4m23s
ci / build (pull_request) Successful in 11m0s
43a04e99b1
Outages open and close with their monitor; now people can say what is
going on. An incident gets an optional title and updates, each with a
status (investigating, identified, monitoring, resolved) and a Markdown
message, shown on status pages or kept as an internal note. The incident
shows the latest update's status, resolved once its monitor recovered.

The console lists title and status and has a page per incident with its
timeline (outage, updates, recovery) and, for incidents.write in the
monitor's group, forms to post updates and set the title. Status pages
show title, status and public updates. API: GET/PATCH
/org/incidents/:id, POST and DELETE /org/incidents/:id/updates; the
incident list carries title and status; the organization export
includes the updates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
feat: own incident statuses with a color; incidents before maintenance
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 9m38s
ci / build (pull_request) Successful in 16m36s
ci / image (pull_request) Successful in 3m37s
ci / test (pull_request) Successful in 14m21s
2409a919c3
Organizations add statuses of their own, with a name and a color, next
to the built-in ones (Settings, incident statuses; API under
/org/incident-statuses, managed with org.manage). Updates pick them by
ID; the console and status pages show them in their color. Renaming or
recoloring carries into the history; a status in use cannot be deleted
(409 status_in_use). API responses give status "custom" with status_id,
status_name and status_color.

Status pages now list recent incidents before planned maintenance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
feat(console): set an incident's status right in the incident list
ci / test (push) Skipped
ci / lint (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / build (pull_request) Successful in 15m32s
ci / test (pull_request) Successful in 12m58s
ci / image (pull_request) Successful in 4m29s
ci / lint (pull_request) Successful in 12m19s
437b6e934f
Each row of the incident list offers "Set status" to those who may write
the monitor's incidents: a status (built-in or own, the next one
preselected), an optional message and whether it shows on status pages.
An update may now just change the status, without a message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 45123ff93a into main 2026-11-23 22:59:49 +00:00
Sebi deleted branch feat/incident-quick-status 2026-11-23 22:59:51 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#145