1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib
Nuno Góis 383e522127
feat: Slack App addon (#4238)
https://linear.app/unleash/issue/2-1232/implement-first-iteration-of-the-new-slack-app-addon

This PR implements the first iteration of the new Slack App addon.
Unlike the old Slack addon, this one uses a Slack App (bot) that is
installed to Slack workspaces in order to post messages. This uses
`@slack/web-api`, which internally uses the latest Slack API endpoints
like `postMessage`.

This is currently behind a flag: `slackAppAddon`.

The current flow is that the Unleash Slack App is installed from
whatever source:
 - Unleash addons page;
 - Direct link;
 - https://unleash-slack-app.vercel.app/ (temporary URL);
 - Slack App Directory (in the future);
 - Etc;

After installed, we resolve the authorization to an `access_token` that
the user can paste into the Unleash Slack App addon configuration form.


https://github.com/Unleash/unleash/assets/14320932/6a6621b9-5b8a-4921-a279-30668be6d46c

Co-authored by: @daveleek

---------

Co-authored-by: David Leek <david@getunleash.io>
2023-07-14 09:49:34 +01:00
..
__snapshots__ #4205: add flag for emitting potentially stale events (#4237) 2023-07-13 12:57:34 +00:00
addons feat: Slack App addon (#4238) 2023-07-14 09:49:34 +01:00
db feat: Persist strategy variants (#4236) 2023-07-13 16:04:55 +02:00
domain/project-health Project health tests (#3028) 2023-02-02 12:01:16 +01:00
error refactor: move status codes into classes (#4200) 2023-07-11 09:20:11 +02:00
features feat: feature creation limit crud together with frontend (#4221) 2023-07-13 14:02:35 +03:00
middleware fix: reduce severity of api token middleware errors (#4216) 2023-07-11 13:33:02 +03:00
openapi feat: Slack App addon (#4238) 2023-07-14 09:49:34 +01:00
proxy refactor: playground in feature oriented architecture (#3942) 2023-06-09 12:55:54 +02:00
routes Feat/add strategy update event on strategy ordering (#4234) 2023-07-14 04:46:13 +03:00
schema chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
segments chore: add additional methods we want exposed (#3771) 2023-05-15 10:23:28 +00:00
services feat: Slack App addon (#4238) 2023-07-14 09:49:34 +01:00
types feat: Slack App addon (#4238) 2023-07-14 09:49:34 +01:00
util fix: correct escaping of ui flags for plausible (#3907) 2023-07-07 17:40:37 +02:00
app.test.ts
app.ts fix: remove consecutive slashes (#3882) 2023-05-27 16:16:51 +00:00
create-config.test.ts chore: remove optimal 304 flag (#3665) 2023-05-05 09:18:04 +02:00
create-config.ts fix: SERVER_KEEPALIVE_TIMEOUT env variable should be seconds (#4130) 2023-07-03 09:35:02 +02:00
default-custom-auth-deny-all.ts
internals.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
logger.test.ts fix: convert more tests to typescript 2021-09-14 20:30:37 +02:00
logger.ts
metric-events.ts fix: refactor event types 2021-04-29 10:21:29 +02:00
metrics.test.ts chore: add linter rules for regexp (#3500) 2023-04-17 07:11:22 +00:00
metrics.ts Poc: calculate etag based on query and latest revison id (#3062) 2023-03-17 14:10:21 +01:00
server-impl.test.ts chore: drop event hook (#3565) 2023-04-21 09:44:18 +02:00
server-impl.ts chore: set unleash version to be either the enterprise version or OSS (#3974) 2023-06-13 19:39:49 +02:00