feat(reports): details page for problems, and ignoring them #49

Manually merged
jfro merged 2 commits from feat/45-48-problems into main 2026-11-10 21:25:31 +00:00
Owner

Closes #45, closes #48

Details page (#45)

  • New /reports/:id (ReportLive, in the authenticated live_session): severity, kind, status, title and summary; source, subject, started, last observed, resolved and how long it lasted; what the source saw (cause, resolution, raw facts folded away); the full AI diagnosis with model, queries and Diagnose/Ask; other occurrences of the same problem (same fingerprint). Updates live.
  • Dashboard and History rows now show a short summary (summary, or the cause when there's none, two lines at most) plus a one-line diagnosis hint ("AI diagnosis ready", "Diagnosing…", "Diagnosis failed"). The title links to the details page.

Ignore (#48)

  • Ignoring mutes the problem by fingerprint (new report_ignores table, who ignored it is recorded), so it stays ignored when it resolves and opens again, until un-ignored.
  • Ignored problems: no notifications (opened, escalated, resolved), no automatic diagnosis, not counted in the dashboard status/kind cards or /api/v1/summary. The API's reports now carry ignored.
  • Ignore/Un-ignore on the details page and on each dashboard/history row. The dashboard has a collapsed Ignored section with the latest report of each ignored problem.

No new env vars, source settings or dependencies. One migration.

Screenshots (example data)

Dashboard list with short summaries

Desktop
list desktop
390px
list 390

Details page

Desktop
details desktop
390px
details 390

Ignored section (expanded)

Desktop
ignored desktop
390px
ignored 390

Tests

mix precommit clean: 836 tests. New: report_live_test.exs (details, failed diagnosis, resolved, diagnose, ignore/un-ignore, occurrences, unknown id), ignore in reports_test.exs (list/summary, latest per fingerprint, un-ignore, no auto-diagnosis), triggers_notifications_test.exs (no notifications while ignored, survives resolve + reopen, notifies again once un-ignored), dashboard/history/API tests.

Closes #45, closes #48 ## Details page (#45) - New `/reports/:id` (`ReportLive`, in the authenticated `live_session`): severity, kind, status, title and summary; source, subject, started, last observed, resolved and how long it lasted; what the source saw (cause, resolution, raw facts folded away); the full AI diagnosis with model, queries and Diagnose/Ask; other occurrences of the same problem (same fingerprint). Updates live. - Dashboard and History rows now show a short summary (summary, or the cause when there's none, two lines at most) plus a one-line diagnosis hint ("AI diagnosis ready", "Diagnosing…", "Diagnosis failed"). The title links to the details page. ## Ignore (#48) - Ignoring mutes the problem **by fingerprint** (new `report_ignores` table, who ignored it is recorded), so it stays ignored when it resolves and opens again, until un-ignored. - Ignored problems: no notifications (opened, escalated, resolved), no automatic diagnosis, not counted in the dashboard status/kind cards or `/api/v1/summary`. The API's reports now carry `ignored`. - Ignore/Un-ignore on the details page and on each dashboard/history row. The dashboard has a collapsed **Ignored** section with the latest report of each ignored problem. No new env vars, source settings or dependencies. One migration. ## Screenshots (example data) ### Dashboard list with short summaries Desktop ![list desktop](https://git.knope.dev/attachments/bab1738d-d40c-4467-8434-609b2b9670f8) 390px ![list 390](https://git.knope.dev/attachments/938a01c7-9e2c-4079-b517-5ee8f07ff2fb) ### Details page Desktop ![details desktop](https://git.knope.dev/attachments/f3d5de03-d8a1-4a81-85f2-f7ebb3daae5c) 390px ![details 390](https://git.knope.dev/attachments/f0611425-95ef-40d6-a9a8-de8798f75640) ### Ignored section (expanded) Desktop ![ignored desktop](https://git.knope.dev/attachments/907adc76-c978-4bf5-ad9e-ff5ca3fdbd51) 390px ![ignored 390](https://git.knope.dev/attachments/1d93d51f-7181-471e-a1fc-672f2f0e35e9) ## Tests `mix precommit` clean: 836 tests. New: `report_live_test.exs` (details, failed diagnosis, resolved, diagnose, ignore/un-ignore, occurrences, unknown id), ignore in `reports_test.exs` (list/summary, latest per fingerprint, un-ignore, no auto-diagnosis), `triggers_notifications_test.exs` (no notifications while ignored, survives resolve + reopen, notifies again once un-ignored), dashboard/history/API tests.
feat(reports): details page for problems, and ignoring them
All checks were successful
CI / test (pull_request) Successful in 1m14s
45dc981bd8
Each report gets its own page (/reports/:id) with its timeline, what the
source saw, the full AI diagnosis, and other occurrences of the problem.
The dashboard and history now list a short summary that links there.

A problem can be ignored when it's expected: it's muted by fingerprint,
so it stays ignored when it resolves and comes back, until un-ignored.
Ignored problems send no notifications, aren't diagnosed automatically,
don't count toward the dashboard's status or the API summary, and are
listed in a collapsed Ignored section on the dashboard.

Closes #45
Closes #48
fix(reports): ignored problems aren't a source's open reports, and huge ids redirect
All checks were successful
CI / test (pull_request) Successful in 1m13s
9b80178d4b
Sources.statuses/1 now leaves ignored fingerprints out of open_reports, so
Settings → Sources, the API and chat tools match the dashboard. The details
page treats ids beyond bigint like any unknown id instead of crashing.
jfro manually merged commit 73de2cb46f into main 2026-11-10 21:25:31 +00:00
Sign in to join this conversation.
No description provided.