Skip to content

feat(slack): show check state, uptime and incident status in link unfurls - #827

Merged
fclairamb merged 2 commits into
mainfrom
claude/project-thread-5w3dum
Nov 10, 2026
Merged

fclairamb merged 2 commits into
mainfrom
claude/project-thread-5w3dum

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Requested by Florent · project thread

What & why

Follow-up to #769. Dashboard links pasted in Slack unfurled to a single line with only the entity's name. They now show a short card built from the Slack app's link_shared event:

  • Check: 🟢 <name> · *Up* for 3h, then HTTP · every 1m · 99.95% uptime (24h) · last checked just now. Paused, no recent data, degraded, warning, confirming failure and waiting for first result each get their own state.
  • Incident: 🚨 #42 · title with Ongoing for 12m · acknowledged, or ✅ … with Resolved 2h ago · lasted 14m.

Uptime comes from the last 24h of raw results with the shared models.RawAvailability rule (the one badges use). Uptime is truncated, not rounded, so one missed result never reads 100.00%. The lookup is still scoped to the workspace's own organization. Slack calls the app authenticated, so nothing is exposed to anonymous crawlers. The unfurl code moved from events.go into unfurl.go.

How to test

cd server && go test -short ./internal/integrations/slack/ and golangci-lint run ./internal/integrations/slack/... (v2.15.0): both pass. Manually: paste a check or incident link in a Slack workspace connected to the org.

Checklist

  • make fmt && make lint && make test pass locally (ran gofmt, golangci-lint and go test -short on the changed package only, not the full suite)
  • Tests added or updated for the change
  • Docs updated (web/docs/) if user-visible: "Link previews" section in configuration/notifications.md
  • Schema changes: n/a

Generated by Claude Code

…urls

Dashboard check links now unfurl with the check's state and how long it has
held it, its type, period, 24h uptime and last run. Incident links show
whether the incident is ongoing (and acknowledged) or when it was resolved
and how long it lasted. Still scoped to the workspace's own organization.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XE5BqoaEgJpkS1iYrKoEm4
@fclairamb fclairamb self-assigned this Nov 9, 2026

Copy link
Copy Markdown
Owner Author

Upgrade sqlite from v0.45.0 fails, but not because of this PR: docker run cannot find ghcr.io/fclairamb/solidping:0.45.0 (not found, exit 125) before any test runs. v0.45.0 was tagged at 23:44 UTC, a few minutes before this run, so its image wasn't published yet. This PR only touches the Slack unfurl code and the docs. I'll re-run the failed jobs once the image is up.


Generated by Claude Code

@fclairamb
fclairamb marked this pull request as ready for review November 10, 2026 00:00
@fclairamb
fclairamb enabled auto-merge (squash) November 10, 2026 00:07
@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.00000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.27%. Comparing base (6659b0f) to head (5a84163).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
server/internal/integrations/slack/unfurl.go 95.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #827      +/-   ##
==========================================
+ Coverage   89.25%   89.27%   +0.01%     
==========================================
  Files        1334     1335       +1     
  Lines      136508   136568      +60     
==========================================
+ Hits       121842   121920      +78     
+ Misses      14657    14639      -18     
  Partials        9        9              
Files with missing lines Coverage Δ
server/internal/integrations/slack/events.go 88.76% <ø> (-1.47%) ⬇️
server/internal/integrations/slack/unfurl.go 95.00% <95.00%> (ø)

... and 18 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb
fclairamb merged commit 2362ca9 into main Nov 10, 2026
37 checks passed
@fclairamb
fclairamb deleted the claude/project-thread-5w3dum branch November 10, 2026 00:22
fclairamb added a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.46.0](v0.45.0...v0.46.0)
(2026-11-10)


### Features

* **slack:** show check state, uptime and incident status in link
unfurls ([#827](#827))
([2362ca9](2362ca9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants