Skip to content

Commit

Permalink
Release 2.5.1 (#115)
Browse files Browse the repository at this point in the history
* Release 2.5.1
  • Loading branch information
danniehansen authored Jul 18, 2023
1 parent dceaf32 commit 9b4fae2
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 14 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Released]

## [2.5.1] - 2023-07-18

### Changed
- Changed sorting of labels both in the dropdown & table column under data exporter to be alphabetically https://github.com/danniehansen/activity-timer/issues/114

### Added
- Added new contextmenu item under board button to display the current Activity timer version. This is useful for debugging purposes to ensure users run the latest version.

## [2.5.0] - 2023-07-17

### Security
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "activity_timer",
"version": "2.5.0",
"version": "2.5.1",
"author": "Dannie Hansen",
"license": "MIT",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/capabilities/board-buttons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ export async function getBoardButtons(): Promise<
});
}

items.push({
text: 'Version: 2.5.1'
});

await t.popup({
title: 'Activity timer',
items
Expand Down
14 changes: 8 additions & 6 deletions src/pages/DataExporter/Estimates/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,14 @@ const tableBody = computed<ApiCardRowData[]>(() => {
});
const labelOptions = computed<Option[]>(() => {
return uniqueLabels.value.map<Option>((label) => {
return {
text: label.name,
value: label.id
};
});
return uniqueLabels.value
.map<Option>((label) => {
return {
text: label.name,
value: label.id
};
})
.sort((a, b) => a.text.toLowerCase().localeCompare(b.text.toLowerCase()));
});
async function trelloTick() {
Expand Down
5 changes: 4 additions & 1 deletion src/pages/DataExporter/TimeTracking/ApiCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ export class ApiCard {
'card.id': this._data.id,
'card.title': this._data.name,
'card.description': this._data.desc,
'card.labels': this._data.labels.map((label) => label.name).join(', '),
'card.labels': this._data.labels
.map((label) => label.name)
.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()))
.join(', '),
'list.id': this._data.idList,
'list.name': this._listById[this._data.idList]?.name ?? 'N/A',
start_datetime: furthestBack
Expand Down
14 changes: 8 additions & 6 deletions src/pages/DataExporter/TimeTracking/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,14 @@ const tableBody = computed<ApiCardRowData[]>(() => {
});
const labelOptions = computed<Option[]>(() => {
return uniqueLabels.value.map<Option>((label) => {
return {
text: label.name,
value: label.id
};
});
return uniqueLabels.value
.map<Option>((label) => {
return {
text: label.name,
value: label.id
};
})
.sort((a, b) => a.text.toLowerCase().localeCompare(b.text.toLowerCase()));
});
async function trelloTick() {
Expand Down

0 comments on commit 9b4fae2

Please sign in to comment.