Skip to content

Commit ec7cf5c

Browse files
authored
[TOO-423] Adding callout to Sllack docks (#868)
1 parent 99d3309 commit ec7cf5c

2 files changed

Lines changed: 20 additions & 15 deletions

File tree

toolkit-docs-generator/data/toolkits/slack.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,14 @@
12931293
}
12941294
}
12951295
],
1296-
"documentationChunks": [],
1296+
"documentationChunks": [
1297+
{
1298+
"type": "markdown",
1299+
"location": "header",
1300+
"position": "after",
1301+
"content": "<Callout type=\"info\" title=\"Channel creation not supported\">\nManaging channels in Slack requires the `channels:manage` scope, which is only available with bot tokens. Arcade uses user tokens (the type of token Arcade supports), so creating new channels is not possible with this toolkit. You can invite users to an existing channel, but channel creation is not supported.\n</Callout>"
1302+
}
1303+
],
12971304
"customImports": [],
12981305
"subPages": [],
12991306
"generatedAt": "2026-02-26T20:45:10.433Z",

toolkit-docs-generator/tests/scenarios/removed-toolkit-cleanup.test.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ describe("Scenario: Removed toolkit files are deleted after change detection", (
120120

121121
expect(result.deleted).toEqual(["oldkit.json"]);
122122
const remaining = await readdir(dir);
123-
expect(remaining).not.toContain("oldkit.json");
124-
expect(remaining).toContain("github.json");
123+
expect(remaining.sort()).toEqual(["github.json", "index.json"].sort());
125124
});
126125

127126
it("deletes all JSON files for multiple toolkits removed from the API", async () => {
@@ -152,9 +151,7 @@ describe("Scenario: Removed toolkit files are deleted after change detection", (
152151
["complextools.json", "deepwiki.json"].sort()
153152
);
154153
const remaining = await readdir(dir);
155-
expect(remaining).toContain("github.json");
156-
expect(remaining).not.toContain("deepwiki.json");
157-
expect(remaining).not.toContain("complextools.json");
154+
expect(remaining.sort()).toEqual(["github.json", "index.json"].sort());
158155
});
159156

160157
it("never deletes unchanged or modified toolkits — only removed ones", async () => {
@@ -192,9 +189,9 @@ describe("Scenario: Removed toolkit files are deleted after change detection", (
192189

193190
expect(result.deleted).toEqual(["gonekit.json"]);
194191
const remaining = await readdir(dir);
195-
expect(remaining).toContain("github.json");
196-
expect(remaining).toContain("slack.json");
197-
expect(remaining).not.toContain("gonekit.json");
192+
expect(remaining.sort()).toEqual(
193+
["github.json", "slack.json", "index.json"].sort()
194+
);
198195
});
199196

200197
it("rebuilds index.json that no longer lists the removed toolkit", async () => {
@@ -249,8 +246,9 @@ describe("Scenario: Removed toolkit files are deleted after change detection", (
249246

250247
expect(result.deleted).toHaveLength(0);
251248
const remaining = await readdir(dir);
252-
expect(remaining).toContain("github.json");
253-
expect(remaining).toContain("slack.json");
249+
expect(remaining.sort()).toEqual(
250+
["github.json", "slack.json", "index.json"].sort()
251+
);
254252
});
255253

256254
it("handles mixed-case toolkit IDs: diff returns CamelCase, file on disk is lowercase", async () => {
@@ -280,8 +278,7 @@ describe("Scenario: Removed toolkit files are deleted after change detection", (
280278

281279
expect(result.deleted).toEqual(["googlecalendar.json"]);
282280
const remaining = await readdir(dir);
283-
expect(remaining).not.toContain("googlecalendar.json");
284-
expect(remaining).toContain("slack.json");
281+
expect(remaining.sort()).toEqual(["slack.json", "index.json"].sort());
285282
});
286283

287284
it("treats a zero-tools API response as removed and deletes the stale file", async () => {
@@ -312,8 +309,7 @@ describe("Scenario: Removed toolkit files are deleted after change detection", (
312309

313310
expect(result.deleted).toEqual(["brokenkit.json"]);
314311
const remaining = await readdir(dir);
315-
expect(remaining).not.toContain("brokenkit.json");
316-
expect(remaining).toContain("github.json");
312+
expect(remaining.sort()).toEqual(["github.json", "index.json"].sort());
317313
});
318314

319315
it("merging removed IDs with pre-existing exclusions deletes each file exactly once", async () => {
@@ -345,5 +341,7 @@ describe("Scenario: Removed toolkit files are deleted after change detection", (
345341

346342
expect(result.deleted).toEqual(["oldkit.json"]);
347343
expect(result.warnings).toHaveLength(0);
344+
const remaining = await readdir(dir);
345+
expect(remaining.sort()).toEqual(["github.json", "index.json"].sort());
348346
});
349347
});

0 commit comments

Comments
 (0)