Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.32 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.32 KB

Accessing this Power-Up

This Power-Up's docs folder is published using Github Pages and can be accessed from this URL: https://emgoto.github.io/trello-sla/ You'll need to put that link in your Trello Power-ups admin page.

Tests

npm test

Testing the power-up locally with Jekyll and ngrok

Github pages uses Jekyll so you'll need to do a few things to test this locally:

Initial setup:

gem install github-pages

Every time:

jekyll serve ./ngrok http 4000 #in another terminal window npm run build -- --watch # in another terminal window

[See a full explanation here](https://www.emgoto.com/testing-trello-power-ups-on-github-pages/)

## Pushing your changes
Make sure to run `npm run build` before pushing changes. This will use the settings in `webpack.config.js` and put your js files into the `docs/js` folder.

We store our code in `/docs` instead of `/public` as this is a limitation of the way Github Pages works.

## Calculating SLAs
We make use of Trello's actions API (this requires the user to authenticate and provide us their token) to grab all the times a card has been moved from one list to another.

When a new SLA is created, it will retroactively apply to all cards on the board, and use all past actions to calculate it.

When a SLA is updated, it will also retroactively apply to all cards on the board.