Skip to content

Commit

Permalink
Task trigger
Browse files Browse the repository at this point in the history
add trigger url
update readme
  • Loading branch information
aladoui committed May 24, 2024
1 parent 739ac96 commit 4c918e3
Show file tree
Hide file tree
Showing 5 changed files with 1,454 additions and 1,694 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# `<SKILL NAME>`
# `MW YTF`

## Quickstart

Install `<SKILL_NAME>` with yarn​:
Install `MW YTF` with yarn​:

```bash
cd `<SKILL_NAME>`
cd `skill-mw-ytf`
yarn
yarn start
```
Expand All @@ -20,11 +20,10 @@ Install `<SKILL_NAME>` with yarn​:

## Skill trigger

- Credentials (if needed or link into 1password)
- Steps to trigger (describe in steps how to receive a trigger add link):
- go to https://trigger.page.com (main page)​
- [Credentials](https://start.1password.com/open/i?a=KBXK36HQOFATFGS55MUTEP54XM&h=matterway.1password.com&i=tcwoz4g7xxfyxmq46faeywn5i4&v=vyzebl4klpdt6t6ttafsctogze)
- Steps to trigger:
- go to https://yetiforce.matterway.io/index.php

## Additional Notes​

- Coda: [Link to Coda]()
- Design: [Link to Designer]()
- Design: [Link to Designer](https://designer.matterway.io/skill/35e97485-89bc-4f77-b306-e6162921c5f8/main/flow/to-be/v3?action=trigger&view=snapshot)
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "my-skill",
"name": "skill-mw-ytf",
"version": "0.1.0",
"private": true,
"dependencies": {
"@matterway/background-react": "^10.0.0",
"@matterway/sdk": "^0.53.3",
"@matterway/background-react": "^10.0.3",
"@matterway/sdk": "^0.59.3",
"@matterway/skill-scripts": "^10.0.6-stable",
"@matterway/types": "^10.0.0",
"@matterway/types": "^10.0.3",
"i18next": "^22.4.15",
"puppeteer-core": "^21.0.0",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 3,
"identifier": "@acme/skill-template",
"identifier": "@matterway/ytf",
"name": "My Skill",
"description": "Description of My Skill.",
"name_de": "New skill German name",
Expand All @@ -13,5 +13,5 @@
"background_script": "background.js",
"content_script": "content.js",
"matcher_script": "matcher.js",
"urls": ["*example.com"]
"urls": ["*/yetiforce.matterway.io/index.php*"]
}
2 changes: 1 addition & 1 deletion src/matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function matcher(
return true;
}

const triggerUrl = 'example.com';
const triggerUrl = 'https://yetiforce.matterway.io/index';

const matcherResult =
window.location.href.includes(triggerUrl) && skillEnv.tag === 'local';
Expand Down
Loading

0 comments on commit 4c918e3

Please sign in to comment.