Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
slack: manifest improvment (#2828)
Thibault Le Ouay10c1de7bd194
diff --git a/apps/server/slack-manifest.json b/apps/server/slack-manifest.jsonindex b0ebe94fe..f6953e78f 100644--- a/apps/server/slack-manifest.json+++ b/apps/server/slack-manifest.json@@ -54,8 +54,8 @@{"command": "/openstatus","url": "https://api.openstatus.dev/slack/commands",- "description": "Run incidents and manage status page subscriptions",- "usage_hint": "incident declare | incident list | subscribe <status-page-url> | help",+ "description": "Declare incidents and subscribe channels to status pages",+ "usage_hint": "[incident | subscribe | help]","should_escape": false}]diff --git a/apps/server/src/routes/slack/commands.test.ts b/apps/server/src/routes/slack/commands.test.tsindex 4735c844c..765e171a3 100644--- a/apps/server/src/routes/slack/commands.test.ts+++ b/apps/server/src/routes/slack/commands.test.ts@@ -109,6 +109,12 @@ describe("handleSlackCommand (members only)", () => {expect(json.text).toContain("/openstatus subscribe");});+ test("no argument shows help", async () => {+ const res = await post(app, "", `U_${crypto.randomUUID()}`);+ const json = (await res.json()) as { text: string };+ expect(json.text).toContain("/openstatus subscribe");+ });+test("an unlinked user gets the link card instead of running the command", async () => {slackTestState.usersInfoImpl = () =>Promise.resolve({ ok: true, user: { profile: {} } });