This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The script at https://p.trellocdn.com/card.min.js | |
// must already be loaded at this point | |
const idCard = 'CjBy4OpQ'; | |
const api = 'https://api.trello.com/1/card'; | |
const opts = { | |
fields: 'name,closed,cover,url,badges,labels', | |
customFields: true, | |
customFieldItems: true, | |
members: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<blockquote class="trello-card-compact"> | |
<a href="https://trello.com/c/CjBy4OpQ"></a> | |
</blockquote> | |
<script src="https://p.trellocdn.com/embed.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const normalizeActionType = (action) => { | |
const collapsable = [ | |
'updateBoard', | |
'updateCard', | |
'updateList', | |
'updateChecklist' | |
]; | |
if (collapsable.includes(action.type)) { | |
const updatedKeys = Object.keys(action.data.old); | |
if (updatedKeys.length > 0) { |