-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into renovate/patch-all-minor-patch
- Loading branch information
Showing
28 changed files
with
659 additions
and
320 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,33 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [4.6.1](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-chart | ||
|
||
|
||
|
||
|
||
|
||
# [4.6.0](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
|
||
### Features | ||
|
||
* **analytics-utilities:** date-fns warning fix ([#1604](https://github.com/Kong/public-ui-components/issues/1604)) ([a195e2c](https://github.com/Kong/public-ui-components/commit/a195e2cb8294e71e3c11fd8469f66a7a3b91d260)) | ||
|
||
|
||
|
||
|
||
|
||
## [4.5.2](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-chart | ||
|
||
|
||
|
||
|
||
|
||
## [4.5.1](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-chart | ||
|
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
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
2 changes: 1 addition & 1 deletion
2
packages/analytics/analytics-chart/src/composables/useChartSelectedRange.ts
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,8 @@ | ||
import { formatInTimeZone } from 'date-fns-tz' | ||
import type { TimeFormatOptions } from '@kong-ui-public/analytics-utilities' | ||
|
||
export const DECIMAL_DISPLAY = 2 | ||
export const FONT_SIZE_SMALL = 10 | ||
export const FONT_SIZE_REGULAR = 12 | ||
|
||
const numberFormatter = new Intl.NumberFormat(document?.documentElement?.lang || 'en-US') | ||
|
||
export { numberFormatter } | ||
|
||
// TODO: import `formatTime` from `analytics-utilities`; update Konnect + MFE imports as well | ||
export function formatTime(ts: number, options: TimeFormatOptions = {}) { | ||
if (!ts) { | ||
return ts | ||
} | ||
|
||
const tz = options.tz || Intl.DateTimeFormat().resolvedOptions().timeZone | ||
|
||
try { | ||
let timeFormat = 'MMM dd, YYY hh:mm a' | ||
if (options.short) { | ||
timeFormat = 'MMM dd, YYY' | ||
} | ||
|
||
if (options.includeTZ) { | ||
timeFormat += ' (z)' | ||
} | ||
|
||
const date = new Date(ts) | ||
|
||
// Note: We always need to use `formatInTimeZone` (rather than plain `format`) | ||
// in order to achieve consistent results based on the tz of the current computer. | ||
// Otherwise, unit tests can fail depending on the tz of the dev's computer (or in CI), etc. | ||
// Even if we don't care about timezones, timezones care about us. :/ | ||
return formatInTimeZone(date, tz, timeFormat) | ||
} catch (exc) { | ||
console.error('Invalid value passed to formatTime', ts) | ||
|
||
return '(invalid date)' | ||
} | ||
} | ||
|
||
export const MAX_LABEL_LENGTH = 10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,30 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [0.8.4](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-config-store | ||
|
||
|
||
|
||
|
||
|
||
## [0.8.3](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-config-store | ||
|
||
|
||
|
||
|
||
|
||
## [0.8.2](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-config-store | ||
|
||
|
||
|
||
|
||
|
||
## [0.8.1](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-06) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-config-store | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,30 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [0.2.5](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-geo-map | ||
|
||
|
||
|
||
|
||
|
||
## [0.2.4](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-geo-map | ||
|
||
|
||
|
||
|
||
|
||
## [0.2.3](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-geo-map | ||
|
||
|
||
|
||
|
||
|
||
## [0.2.2](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-geo-map | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,30 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [8.4.5](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-metric-provider | ||
|
||
|
||
|
||
|
||
|
||
## [8.4.4](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-metric-provider | ||
|
||
|
||
|
||
|
||
|
||
## [8.4.3](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-metric-provider | ||
|
||
|
||
|
||
|
||
|
||
## [8.4.2](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-09) | ||
|
||
**Note:** Version bump only for package @kong-ui-public/analytics-metric-provider | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,39 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [4.8.1](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* clean up request filter types ([#1610](https://github.com/Kong/public-ui-components/issues/1610)) ([c6c14df](https://github.com/Kong/public-ui-components/commit/c6c14df61aa20faf8ee4f8507cde353413cb7566)) | ||
|
||
|
||
|
||
|
||
|
||
# [4.8.0](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
|
||
### Features | ||
|
||
* **analytics-utilities:** date-fns warning fix ([#1604](https://github.com/Kong/public-ui-components/issues/1604)) ([a195e2c](https://github.com/Kong/public-ui-components/commit/a195e2cb8294e71e3c11fd8469f66a7a3b91d260)) | ||
|
||
|
||
|
||
|
||
|
||
# [4.7.0](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-11) | ||
|
||
|
||
### Features | ||
|
||
* update to new filter schema ([#1606](https://github.com/Kong/public-ui-components/issues/1606)) ([3d18ff2](https://github.com/Kong/public-ui-components/commit/3d18ff241929adbaf9383826c2bd1a6c61c156ad)) | ||
|
||
|
||
|
||
|
||
|
||
# [4.6.0](https://github.com/Kong/public-ui-components/compare/@kong-ui-public/[email protected]...@kong-ui-public/[email protected]) (2024-09-06) | ||
|
||
|
||
|
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
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
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
Oops, something went wrong.