Skip to content

Commit 2882708

Browse files
WilliamBergaminseratchfilmaj
authored
feat: Add deprecation warnings to Steps from Apps components and Docs (#1089)
* Add warnings and comments * deprecate in docs * add deprecation warnings to examples * Improve formating * Update docs/_config.yml * Update docs/_steps/workflow_steps_overview.md Co-authored-by: Fil Maj <[email protected]> --------- Co-authored-by: Kazuhiro Sera <[email protected]> Co-authored-by: Fil Maj <[email protected]>
1 parent 549252c commit 2882708

File tree

15 files changed

+154
-20
lines changed

15 files changed

+154
-20
lines changed

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ t:
3535
start: Getting started
3636
contribute: Contributing
3737
beta: BETA
38-
legacy: LEGACY
38+
deprecated: Deprecated
3939
ja-jp:
4040
basic: 基本的な概念
4141
steps: ワークフローステップ
4242
advanced: 応用コンセプト
4343
start: Bolt 入門ガイド
4444
contribute: 貢献
4545
beta: BETA
46-
legacy: LEGACY
46+
deprecated: 非推奨
4747

4848
# Metadata
4949
repo_name: bolt-python

docs/_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
<ul class="sidebar-section">
5757
<a href="{{ site.url | append: site.baseurl | append: localized_base_url }}/concepts#steps">
5858
<li class="title">
59-
{{ site.t[page.lang].steps }}
60-
<!-- UNCOMMENT AFTER GA <span class="label-legacy">{{ site.t[page.lang].legacy }}</span> -->
59+
{{ site.t[page.lang].steps }}
60+
<span class="label-deprecated">{{ site.t[page.lang].deprecated }}</span>
6161
</li>
6262
</a>
6363
{% assign workflow_steps = site.steps | sort: "order" | where: "lang", page.lang %}

docs/_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ <h3 id="{{section.slug}}">{{ section.title }}</h3>
4949
workflow_steps %}
5050
<div class="section-wrapper">
5151
<h3 id="{{section.slug}}">
52-
{{ section.title }}
53-
<!-- UNCOMMENT AFTER GA <span class="label-legacy">{{ site.t[page.lang].legacy }}</span> -->
52+
{{ section.title }}
53+
<span class="label-deprecated">{{ site.t[page.lang].deprecated }}</span>
5454
</h3>
5555
{{ section.content | markdownify }}
5656
<hr />

docs/_steps/workflow_steps_overview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ order: 1
66
---
77

88
<div class="section-content">
9+
10+
Steps from Apps for legacy workflows are now deprecated. Use new [custom steps](https://api.slack.com/automation/functions/custom-bolt).
11+
912
Workflow Steps from apps allow your app to create and process custom workflow steps that users can add using [Workflow Builder](https://api.slack.com/workflows).
1013

11-
A workflow step is made up of three distinct user events:
14+
A workflow step is made up of three distinct user events:
1215

1316
- Adding or editing the step in a Workflow
1417
- Saving or updating the step's configuration

docs/assets/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ span.beta {
117117
font-weight: 600;
118118
}
119119

120-
.panel .sidebar-content ul.sidebar-section .label-legacy {
120+
.panel .sidebar-content ul.sidebar-section .label-deprecated {
121121
line-height: 1em;
122122
vertical-align: middle;
123123
color: var(--white);
@@ -321,7 +321,7 @@ td.rouge-gutter {
321321
width: 100%;
322322
}
323323

324-
.content .section-wrapper .label-legacy {
324+
.content .section-wrapper .label-deprecated {
325325
line-height: 1em;
326326
vertical-align: middle;
327327
color: var(--white);

examples/workflow_steps/async_steps_from_apps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
AsyncFail,
1010
)
1111

12+
################################################################################
13+
# Steps from Apps for legacy workflows are now deprecated. #
14+
# Use new custom steps: https://api.slack.com/automation/functions/custom-bolt #
15+
################################################################################
16+
1217
logging.basicConfig(level=logging.DEBUG)
1318

1419
# export SLACK_SIGNING_SECRET=***

examples/workflow_steps/async_steps_from_apps_decorator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
AsyncWorkflowStep,
1212
)
1313

14+
################################################################################
15+
# Steps from Apps for legacy workflows are now deprecated. #
16+
# Use new custom steps: https://api.slack.com/automation/functions/custom-bolt #
17+
################################################################################
18+
1419
logging.basicConfig(level=logging.DEBUG)
1520

1621
# export SLACK_SIGNING_SECRET=***

examples/workflow_steps/async_steps_from_apps_primitive.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
from slack_sdk.web.async_client import AsyncSlackResponse, AsyncWebClient
44
from slack_bolt.async_app import AsyncApp, AsyncAck
55

6+
################################################################################
7+
# Steps from Apps for legacy workflows are now deprecated. #
8+
# Use new custom steps: https://api.slack.com/automation/functions/custom-bolt #
9+
################################################################################
10+
611
logging.basicConfig(level=logging.DEBUG)
712

813
# export SLACK_SIGNING_SECRET=***

examples/workflow_steps/steps_from_apps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
from slack_bolt import App, Ack
77
from slack_bolt.workflows.step import Configure, Update, Complete, Fail
88

9+
################################################################################
10+
# Steps from Apps for legacy workflows are now deprecated. #
11+
# Use new custom steps: https://api.slack.com/automation/functions/custom-bolt #
12+
################################################################################
13+
914
logging.basicConfig(level=logging.DEBUG)
1015

1116
# export SLACK_SIGNING_SECRET=***

examples/workflow_steps/steps_from_apps_decorator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
from slack_bolt import App, Ack
88
from slack_bolt.workflows.step import Configure, Update, Complete, Fail, WorkflowStep
99

10+
################################################################################
11+
# Steps from Apps for legacy workflows are now deprecated. #
12+
# Use new custom steps: https://api.slack.com/automation/functions/custom-bolt #
13+
################################################################################
14+
1015
logging.basicConfig(level=logging.DEBUG)
1116

1217
# export SLACK_SIGNING_SECRET=***

0 commit comments

Comments
 (0)