Skip to content

Commit

Permalink
Release 2.7.5 (#137)
Browse files Browse the repository at this point in the history
## [2.7.5] - 2024-03-12

### Security

- Updated packages to latest version matching version selectors.
- Updated node from 18 -> 20

### Fixed

- Fixed locale issues with estimation input not always accepting decimals. Now it's statically configured for en-GB locale.
- Fixed some cases of UI scroll when estimates, time spent and total estimate exceeded the visual limit.

### Removed

- Removed Jest and associated code as there was no actual tests.
  • Loading branch information
danniehansen authored Mar 12, 2024
1 parent bab53d9 commit 1d9a896
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Released]

## [2.7.4] - 2024-03-11
## [2.7.5] - 2024-03-12

### Security

Expand All @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

. Removed Jest and associated code as there was no actual tests.
- Removed Jest and associated code as there was no actual tests.

## [2.7.4] - 2024-01-28

Expand Down
10 changes: 7 additions & 3 deletions src/capabilities/board-buttons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ export async function getBoardButtons(): Promise<
return [
{
icon: {
light: `${window.location.origin}${ClockImageWhite}`,
dark: `${window.location.origin}${ClockImageWhite}`
light: `${
!ClockImageWhite.includes('http') ? window.location.origin : ''
}${ClockImageWhite}`,
dark: `${
!ClockImageWhite.includes('http') ? window.location.origin : ''
}${ClockImageWhite}`
},
text: 'Activity timer',
callback: async (t) => {
Expand Down Expand Up @@ -107,7 +111,7 @@ export async function getBoardButtons(): Promise<
}

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

await t.popup({
Expand Down
4 changes: 3 additions & 1 deletion src/capabilities/card-back-section/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export async function getCardBackSection(
): Promise<Trello.PowerUp.CardBackSection> {
return {
title: 'Activity timer',
icon: `${window.location.origin}${ClockImageBlack}`,
icon: `${
!ClockImageBlack.includes('http') ? window.location.origin : ''
}${ClockImageBlack}`,
content: {
type: 'iframe',
url: t.signUrl('./index.html', {
Expand Down
8 changes: 6 additions & 2 deletions src/capabilities/card-badges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ import {
import { isVisible } from '../../utils/visibility';
import { hasAutoTimer } from '../../utils/auto-timer';

const clockIcon = `${window.location.origin}${ClockImageBlack}`;
const estimateImage = `${window.location.origin}${EstimateImage}`;
const clockIcon = `${
!ClockImageBlack.includes('http') ? window.location.origin : ''
}${ClockImageBlack}`;
const estimateImage = `${
!EstimateImage.includes('http') ? window.location.origin : ''
}${EstimateImage}`;

export async function getCardBadges(
t: Trello.PowerUp.IFrame
Expand Down
4 changes: 3 additions & 1 deletion src/capabilities/card-buttons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { settingsCallback } from './callbacks/Settings';
import { timeSpentCallback } from './callbacks/TimeSpent';
import { isVisible } from '../../utils/visibility';

const icon = `${window.location.origin}${ClockImageBlack}`;
const icon = `${
!ClockImageBlack.includes('http') ? window.location.origin : ''
}${ClockImageBlack}`;

export async function getCardButtons(): Promise<Trello.PowerUp.CardButton[]> {
const visible = await isVisible();
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
plugins: [vue(), mkcert()],
server: { https: true },
build: {
sourcemap: true
sourcemap: true,
assetsInlineLimit: 0
}
});

0 comments on commit 1d9a896

Please sign in to comment.