Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trello.AddLabelToCard (minor) Updated list of colors #227

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/appmixer/trello/bundle.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appmixer.trello",
"version": "2.1.1",
"version": "2.1.2",
"changelog": {
"1.0.0": [
"Initial version"
Expand All @@ -24,6 +24,9 @@
"Update component CreateCard to include checklist.",
"Fix an issue when it was possible to create a card without a name.",
"Add component DeleteCard, ListCardChecklists, ListChecklistItems, AddChecklistToCard, AddItemToChecklist, UpdateChecklist, UpdateChecklistItem, DeleteChecklist, DeleteChecklistItem."
]
],
"2.1.2": [
"Updated the list of colors in color-palette of AddLabelToCard component and updated the tooltip texts and description"
]
}
}
2 changes: 1 addition & 1 deletion src/appmixer/trello/list/AddLabelToCard/AddLabelToCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function buildLabel(label) {

let labelObject = {};

labelObject['color'] = label['labelColor'] === 'none' ? null : label['labelColor'];
labelObject['color'] = label['labelColor'] === 'none' ? null : (label['labelColor'] === '#006988' ? 'sky' : label['labelColor']);
labelObject['name'] = label['labelName'] ? label['labelName'] : undefined;

return labelObject;
Expand Down
30 changes: 15 additions & 15 deletions src/appmixer/trello/list/AddLabelToCard/component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "appmixer.trello.list.AddLabelToCard",
"author": "Robert Beinaravicius <[email protected]>",
"icon": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUwMCIgaGVpZ2h0PSIyNTAwIiB2aWV3Qm94PSIwIDAgMjU2IDI1NiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjMDA5MUU2IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzAwNzlCRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNhKSIgd2lkdGg9IjI1NiIgaGVpZ2h0PSIyNTYiIHJ4PSIyNSIvPjxyZWN0IGZpbGw9IiNGRkYiIHg9IjE0NC42NCIgeT0iMzMuMjgiIHdpZHRoPSI3OC4wOCIgaGVpZ2h0PSIxMTIiIHJ4PSIxMiIvPjxyZWN0IGZpbGw9IiNGRkYiIHg9IjMzLjI4IiB5PSIzMy4yOCIgd2lkdGg9Ijc4LjA4IiBoZWlnaHQ9IjE3NiIgcng9IjEyIi8+PC9zdmc+",
"description": "Add an existing label to a specific card.",
"description": "Add an existing label to a specific card or create a new label by providing a name and color.",
"private": false,
"version": "1.0.2",
"auth": {
Expand Down Expand Up @@ -33,8 +33,8 @@
"red",
"purple",
"blue",
"turquoise",
"light green",
"#006988",
"lime",
"pink",
"black"
]
Expand Down Expand Up @@ -78,7 +78,7 @@
},
"labelId": {
"type": "select",
"label": "Label",
"label": "Select Existing Label",
"index": 3,
"source": {
"url": "/component/appmixer/trello/list/ListBoardLabels?outPort=labels",
Expand All @@ -90,7 +90,7 @@
"transform": "./transformers#cardLabelsToSelectArray"
}
},
"tooltip": "Select a label or label ID from previous component or create new label with color and name using the two inputs below."
"tooltip": "Enter a Label ID or select an existing label from the list. If you want to create a new label instead, leave this field empty and fill in 'Label Name' and 'Label Color' below."
},
"labelColor": {
"type": "color-palette",
Expand All @@ -106,20 +106,20 @@
{ "value": "red", "content": "Red" },
{ "value": "purple", "content": "Purple" },
{ "value": "blue", "content": "Blue" },
{ "value": "turquoise", "content": "Turquoise" },
{ "value": "light green", "content": "LightGreen" },
{ "value": "#006988", "content": "Sky" },
{ "value": "lime", "content": "Lime" },
{ "value": "pink", "content": "Pink" },
{ "value": "black", "content": "Black" }
],
"defaultValue": "none",
"label": "Label Color",
"tooltip": "A valid label color or none.",
"tooltip": "Choose a color for the new label. Only used if you're creating a new label. Leave empty if you're selecting an existing label.",
"index": 4
},
"labelName": {
"type": "text",
"label": "Label Name",
"tooltip": "The name for the label.",
"tooltip": "Enter a name for the new label. Only used if you're creating a new label. Leave empty if you're selecting an existing label.",
"index": 5
}
}
Expand All @@ -130,12 +130,12 @@
{
"name": "label",
"options": [
{ "label": "idLabel", "value": "id" },
{ "label": "idCard", "value": "idCard" },
{ "label": "idBoard", "value": "idBoard" },
{ "label": "name", "value": "name" },
{ "label": "color", "value": "color" },
{ "label": "uses", "value": "uses" }
{ "label": "Label ID", "value": "id" },
{ "label": "Card ID", "value": "idCard" },
{ "label": "Board ID", "value": "idBoard" },
{ "label": "Name", "value": "name" },
{ "label": "Color", "value": "color" },
{ "label": "Uses", "value": "uses" }
]
}
]
Expand Down
Loading