Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
showcase:
- "block-kit"
- "surfaces/app-home"
steps:
- name: Checkout code
uses: actions/checkout@v5
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ This collections of examples highlights features of a Slack app in the language
## Available demonstration

- **[Block Kit](./block-kit)**: The framework of visual components arranged to create app layouts.
- **[Surfaces](./surfaces)**: Places where your app can express itself and communicate with users.
9 changes: 9 additions & 0 deletions surfaces/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Surfaces

Places where your app can express itself and communicate with users.

Read the [docs](https://docs.slack.dev/surfaces/) to learn concepts behind these constructions.

## What's on display

- **[App Home](https://docs.slack.dev/surfaces/app-home)**: A space shared between the user and app with tabbed views. [Implementation](./app-home).
1 change: 1 addition & 0 deletions surfaces/app-home/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions surfaces/app-home/.slack/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apps.json
apps.dev.json
cache/
config.json
5 changes: 5 additions & 0 deletions surfaces/app-home/.slack/hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"get-hooks": "npx -q --no-install -p @slack/cli-hooks slack-cli-get-hooks"
}
}
13 changes: 13 additions & 0 deletions surfaces/app-home/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# App Home

A space shared between the user and app with tabbed views.

Read the [docs](https://docs.slack.dev/surfaces/app-home) to learn concepts behind these constructions.

## Running the app

Start the app then go to the app's Home tab in Slack:

```sh
$ slack run
```
34 changes: 34 additions & 0 deletions surfaces/app-home/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}
32 changes: 32 additions & 0 deletions surfaces/app-home/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"display_information": {
"name": "Bolt JS Example - App Home"
},
"features": {
"app_home": {
"home_tab_enabled": true,
"messages_tab_enabled": true,
"messages_tab_read_only_enabled": false
},
"bot_user": {
"display_name": "Bolt JS Example - App Home",
"always_online": true
}
},
"oauth_config": {
"scopes": {
"bot": ["chat:write", "im:history"]
}
},
"settings": {
"event_subscriptions": {
"bot_events": ["app_home_opened", "message.im"]
},
"interactivity": {
"is_enabled": true
},
"org_deploy_enabled": true,
"socket_mode_enabled": true,
"token_rotation_enabled": false
}
}
Loading