From 3f34a1fb87efa7469aadf4045973ac5ce073bff2 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 25 May 2022 18:13:32 +0200 Subject: [PATCH 1/3] Updated to node 16 --- .github/workflows/ci.yml | 2 +- .github/workflows/deploy-preview.yml | 2 +- .github/workflows/publish-release.yml | 2 +- Dockerfile | 2 +- docker-compose.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc639987..d129ff33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,6 @@ jobs: ci: uses: shlinkio/github-actions/.github/workflows/web-app-ci.yml@main with: - node-version: 16.14 + node-version: 16.15 with-mutation-tests: true publish-coverage: true diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 7761747d..b958cc37 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -16,7 +16,7 @@ jobs: - name: Use node.js uses: actions/setup-node@v1 with: - node-version: 16.14 + node-version: 16.15 - name: Build run: | npm ci && \ diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 18ff70d8..1ab257a4 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -14,7 +14,7 @@ jobs: - name: Use node.js uses: actions/setup-node@v1 with: - node-version: 16.14 + node-version: 16.15 - name: Generate release assets run: npm ci && VERSION=${GITHUB_REF#refs/tags/v} npm run build:dist - name: Publish release with assets diff --git a/Dockerfile b/Dockerfile index b9bb22ba..d907daa8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16.14-alpine as node +FROM node:16.15-alpine as node COPY . /shlink-web-client ARG VERSION="latest" ENV VERSION ${VERSION} diff --git a/docker-compose.yml b/docker-compose.yml index 4fdce7d6..3c8589a3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3' services: shlink_web_client_node: container_name: shlink_web_client_node - image: node:16.14-alpine + image: node:16.15-alpine command: /bin/sh -c "cd /home/shlink/www && npm install && npm run start" volumes: - ./:/home/shlink/www From 8d69945e8e0f56e068d060775ba05c6b7c54683f Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 25 May 2022 18:26:34 +0200 Subject: [PATCH 2/3] Switched visits buttons order --- src/visits/VisitsStats.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/visits/VisitsStats.tsx b/src/visits/VisitsStats.tsx index f0e35b89..59885d5f 100644 --- a/src/visits/VisitsStats.tsx +++ b/src/visits/VisitsStats.tsx @@ -300,19 +300,19 @@ const VisitsStats: FC = ({ {visits.length > 0 && (
- exportCsv(normalizedVisits)} /> +
)} From 073617b6d3ed6b3d1b8ff786431eed59bd797feb Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Wed, 25 May 2022 20:26:34 +0200 Subject: [PATCH 3/3] Fixed rendering of values greater than 1000 --- CHANGELOG.md | 4 ++-- src/utils/helpers/charts.ts | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6809351..25c52727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org). -## [Unreleased] +## [3.7.1] - 2022-05-25 ### Added * *Nothing* @@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), * *Nothing* ### Fixed -* *Nothing* +* [#653](https://github.com/shlinkio/shlink-web-client/pull/653) Fixed rendering values greater than 1000 in charts, when the browser has certain locales configured. ## [3.7.0] - 2022-05-14 diff --git a/src/utils/helpers/charts.ts b/src/utils/helpers/charts.ts index 5a849064..7914eee8 100644 --- a/src/utils/helpers/charts.ts +++ b/src/utils/helpers/charts.ts @@ -11,8 +11,6 @@ export const pointerOnHover = ({ native }: ChartEvent, [firstElement]: ActiveEle canvas.style.cursor = firstElement ? 'pointer' : 'default'; }; -export const renderChartLabel = ({ dataset, formattedValue }: TooltipItem) => - `${dataset.label}: ${prettify(formattedValue)}`; +export const renderChartLabel = ({ dataset, raw }: TooltipItem) => `${dataset.label}: ${prettify(`${raw}`)}`; -export const renderPieChartLabel = ({ label, formattedValue }: TooltipItem) => - `${label}: ${prettify(formattedValue)}`; +export const renderPieChartLabel = ({ label, raw }: TooltipItem) => `${label}: ${prettify(`${raw}`)}`;