Skip to content

Commit e20d9f6

Browse files
authored
chore: Spring clean the lorem ipsum example (#7)
Co-authored-by: Henning Muszynski <henningmu@users.noreply.github.com>
1 parent 8375685 commit e20d9f6

File tree

13 files changed

+3972
-6656
lines changed

13 files changed

+3972
-6656
lines changed

lorem-ipsum-ui-extension/.eslintrc.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

lorem-ipsum-ui-extension/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.11.1
1+
v22
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
node_modules
22
dist
33
*.hbs
4-
twist-zoom/public/zoomverify/verifyzoom.html
5-
todoist-templates/aws/todoist-templates.yml

lorem-ipsum-ui-extension/README.md

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Lorem Ipsum UI Extension
22

33
Simple integration that includes different UI extensions:
4+
45
1. Project context menu UI extension to add lorem ipsum tasks to the current Todoist project
56
2. Composer extension that injects lorem ipsum text into the composer
67
3. Settings extension that displays a message in the integration settings
@@ -11,12 +12,21 @@ Simple integration that includes different UI extensions:
1112

1213
To tailor your dev environment, create a `.env` file and put in the relevant settings:
1314

14-
- `PORT`: The port the backend will run on
15-
- `VERIFICATION_TOKENS`: This is a comma-separated list of valid tokens from https://todoist.com/app_console that will be used to verify the token has come from Todoist.
16-
- `BASE_URL`: This is the domain for accessing static files (like images)
15+
- `PORT`: The port the backend will run on
16+
- `VERIFICATION_TOKENS`: This is a comma-separated list of valid tokens from https://todoist.com/app_console that will be used to verify the token has come from Todoist.
17+
- `BASE_URL`: This is the domain for accessing static files (like images)
1718

1819
## Run your integration service
1920

21+
Make sure you're using the right Node.js version:
22+
23+
```shell
24+
nvm install
25+
nvm use
26+
```
27+
28+
Install dependencies and run the integration:
29+
2030
```shell
2131
npm install
2232
npm run dev
@@ -46,31 +56,31 @@ Take note of the URL exposed by your tool of choice, as you'll need it in the ne
4656
2. Click "Create a new app" and insert a name in the "App name" field (i.e. "Lorem Ipsum")
4757
3. Create three different UI Extensions:
4858
1. In the `UI Extensions` section, click "Add a new UI extension":
49-
* Give it a name (i.e. "Add lorem ipsum tasks")
50-
* Select "Context menu" as the "Extension type" (and "Project" as the "Context type")
51-
* Point "Data exchange endpoint URL" to your service URL followed by `/process` (or the endpoint name you chose). This value in this field might look something like `https://my-extension-service/process`
59+
- Give it a name (i.e. "Add lorem ipsum tasks")
60+
- Select "Context menu" as the "Extension type" (and "Project" as the "Context type")
61+
- Point "Data exchange endpoint URL" to your service URL followed by `/process` (or the endpoint name you chose). This value in this field might look something like `https://my-extension-service/process`
5262
2. In the `UI Extensions` section, click "Add a new UI extension":
53-
* Give it a name (i.e. "Add lorem ipsum content")
54-
* Select "Composer" as the "Extension type"
55-
* Point "Data exchange endpoint URL" to your service URL followed by `/process` (or the endpoint name you chose). This value in this field might look something like `https://my-extension-service/process`
63+
- Give it a name (i.e. "Add lorem ipsum content")
64+
- Select "Composer" as the "Extension type"
65+
- Point "Data exchange endpoint URL" to your service URL followed by `/process` (or the endpoint name you chose). This value in this field might look something like `https://my-extension-service/process`
5666
3. In the `UI Extensions` section, click "Add a new settings extension":
57-
* Give it a name (i.e. "Lorem ipsum settings")
58-
* Point "Data exchange endpoint URL" to your service URL followed by `/process` (or the endpoint name you chose). This value in this field might look something like `https://my-extension-service/process`
59-
6. Select the `task:add` scope
60-
7. In the `Installation` section, click on the `Install for me` button
67+
- Give it a name (i.e. "Lorem ipsum settings")
68+
- Point "Data exchange endpoint URL" to your service URL followed by `/process` (or the endpoint name you chose). This value in this field might look something like `https://my-extension-service/process`
69+
4. Select the `task:add` scope
70+
5. In the `Installation` section, click on the `Install for me` button
6171

6272
## Use your UI Extension
6373

64-
1. Visit [Todoist](https://todoist.com)
74+
1. Visit [Todoist](https://app.todoist.com/app)
6575
2. Test your context menu extension:
66-
* Select any of your Todoist projects (or create a new one)
67-
* Click on the context menu icon of that project, select "Integrations" and finally select your UI Extension from the list (i.e. "Add lorem ipsum tasks")
68-
* You should see a few tasks being added to your current project
69-
4. Test your composer extension:
70-
* Select any of your Todoist tasks (or create a new one)
71-
* Click inside the comment composer, select "Add lorem ipsum content" in the composer extensions menu
72-
* You should see content being injected into the composer
73-
5. Test your settings extension:
74-
* Click on the profile picture menu > "Settings" > "Integrations"
75-
* Click on the name of your app (i.e. "Lorem Ipsum"), then "Settings"
76-
* You should see some custom text
76+
- Select any of your Todoist projects (or create a new one)
77+
- Click on the context menu icon of that project, select "Integrations" and finally select your UI Extension from the list (i.e. "Add lorem ipsum tasks")
78+
- You should see a few tasks being added to your current project
79+
3. Test your composer extension:
80+
- Select any of your Todoist tasks (or create a new one)
81+
- Click inside the comment composer, select "Add lorem ipsum content" in the composer extensions menu
82+
- You should see content being injected into the composer
83+
4. Test your settings extension:
84+
- Click on the profile picture menu > "Settings" > "Integrations"
85+
- Click on the name of your app (i.e. "Lorem Ipsum"), then "Settings"
86+
- You should see some custom text
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PORT=3000
22
BASE_URL=<Base URL of your server, this will likely be your ngrok/localtunnel URL>
3-
VERIFICATION_TOKENS=<FROM https://todoist.com/app_console>
3+
VERIFICATION_TOKEN=<FROM https://todoist.com/app_console>

lorem-ipsum-ui-extension/global-setup.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)