@vixoniccom/kpi-chart 0.0.2-dev.7 → 0.0.2-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +20 -0
- package/.github/workflows/sonarqube.yml +4 -4
- package/CHANGELOG.md +14 -0
- package/configuration/chartGroup/index.ts +2 -2
- package/configuration.json +1 -1
- package/package.json +3 -3
- package/renovate.json +4 -0
- package/sonar-project.properties +2 -1
- package/.github/workflows/npm-publish.yml +0 -98
- package/build.zip +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Deploy job
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
types: [closed]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
release:
|
|
12
|
+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
|
|
13
|
+
uses: Vixonic/github-workflows/.github/workflows/store-release.yml@d8dcbbbb14ef6f9b944ce0a079940fea4d7c9ba5 # main
|
|
14
|
+
with:
|
|
15
|
+
app-name: store-sheets-kpi
|
|
16
|
+
secrets:
|
|
17
|
+
PRIVATE_TOKEN_GITHUB: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
|
|
18
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
19
|
+
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
|
|
20
|
+
EP_JIRA_COMPONENT: ${{ secrets.EP_JIRA_COMPONENT }}
|
|
@@ -3,7 +3,7 @@ name: Sonarqube Analysis
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- main
|
|
7
7
|
pull_request:
|
|
8
8
|
types: [opened, synchronize, reopened]
|
|
9
9
|
|
|
@@ -11,19 +11,19 @@ jobs:
|
|
|
11
11
|
sonarqube:
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
14
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
15
15
|
with:
|
|
16
16
|
# Disabling shallow clone is recommended for improving relevancy of reporting.
|
|
17
17
|
fetch-depth: 0
|
|
18
18
|
|
|
19
19
|
- name: SonarQube Scan
|
|
20
|
-
uses: sonarsource/sonarqube-scan-action@
|
|
20
|
+
uses: sonarsource/sonarqube-scan-action@22918119ff8e1ca75a623e15c8296b6ea4fbe28f # v8.2.1
|
|
21
21
|
env:
|
|
22
22
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
23
23
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
24
24
|
|
|
25
25
|
- name: SonarQube Quality Gate Check
|
|
26
|
-
uses: sonarsource/sonarqube-quality-gate-action@
|
|
26
|
+
uses: sonarsource/sonarqube-quality-gate-action@cf038b0e0cdecfa9e56c198bbb7d21d751d62c3b # v1.2.0
|
|
27
27
|
timeout-minutes: 5
|
|
28
28
|
env:
|
|
29
29
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.2-dev.9](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.8...v0.0.2-dev.9) (2026-08-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* VXD-901 Add text formatting options for chart values and labels ([6cc17ad](https://github.com/Vixonic/store-sheets-kpi/commit/6cc17ad7f28337c973589784dfeca4544d3dbf73))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* fixed pipeline ([121e14c](https://github.com/Vixonic/store-sheets-kpi/commit/121e14c5f3f58a0c7c5f24a7a9ca5e44e40b84c2))
|
|
16
|
+
|
|
17
|
+
### [0.0.2-dev.8](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.7...v0.0.2-dev.8) (2026-03-19)
|
|
18
|
+
|
|
5
19
|
### [0.0.2-dev.7](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.6...v0.0.2-dev.7) (2026-03-19)
|
|
6
20
|
|
|
7
21
|
### [0.0.2-dev.6](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.5...v0.0.2-dev.6) (2026-03-19)
|
|
@@ -123,8 +123,8 @@ export const chartGroup = new Group({
|
|
|
123
123
|
}),
|
|
124
124
|
new TextFormat({
|
|
125
125
|
id: "labelTextFormat",
|
|
126
|
-
label: "Formato
|
|
127
|
-
description: "Formato de texto para las
|
|
126
|
+
label: "Formato categorías",
|
|
127
|
+
description: "Formato de texto para las categorías del eje horizontal y del eje vertical.",
|
|
128
128
|
}),
|
|
129
129
|
new Label({ label: "Eje vertical" }),
|
|
130
130
|
new Switch({
|
package/configuration.json
CHANGED
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"id": "labelTextFormat",
|
|
211
211
|
"label": "Formato categorías",
|
|
212
212
|
"type": "text-format",
|
|
213
|
-
"description": "Formato de texto para las
|
|
213
|
+
"description": "Formato de texto para las categorías del eje horizontal y del eje vertical."
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"type": "label",
|
package/package.json
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Lorenzo Alfaro Bravo"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.0.2-dev.
|
|
11
|
+
"version": "0.0.2-dev.9",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"
|
|
13
|
+
"prepublish": "vixonic-module-packager --mode=build",
|
|
14
14
|
"watch": "vixonic-module-packager --mode=watch",
|
|
15
15
|
"run": "vixonic-module-packager --mode=run",
|
|
16
16
|
"configuration": "vixonic-module-packager --mode generate-configuration",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/react": "^17.0.2",
|
|
30
30
|
"@types/react-dom": "^17.0.11",
|
|
31
|
-
"@vixoniccom/module-packager": "^2.
|
|
31
|
+
"@vixoniccom/module-packager": "^2.14.1",
|
|
32
32
|
"@vixoniccom/modules": "^2.25.0-dev.6",
|
|
33
33
|
"standard-version": "^9.5.0"
|
|
34
34
|
}
|
package/renovate.json
ADDED
package/sonar-project.properties
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
sonar.projectKey=Vixonic_store-sheets-kpi_12e7b95b-fc91-4f7e-a0e7-1dd33cc0de3d
|
|
1
|
+
sonar.projectKey=Vixonic_store-sheets-kpi_12e7b95b-fc91-4f7e-a0e7-1dd33cc0de3d
|
|
2
|
+
sonar.exclusions=.github/**/*
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
- main
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
publish:
|
|
11
|
-
# Solo ejecutar si es un push a main/master
|
|
12
|
-
if: github.event_name == 'push'
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout code
|
|
17
|
-
uses: actions/checkout@v4
|
|
18
|
-
with:
|
|
19
|
-
fetch-depth: 0
|
|
20
|
-
|
|
21
|
-
- name: Setup Node.js 20
|
|
22
|
-
uses: actions/setup-node@v4
|
|
23
|
-
with:
|
|
24
|
-
node-version: '20'
|
|
25
|
-
registry-url: 'https://registry.npmjs.org'
|
|
26
|
-
scope: '@vixoniccom'
|
|
27
|
-
|
|
28
|
-
- name: Configure npm authentication
|
|
29
|
-
run: |
|
|
30
|
-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
31
|
-
echo "@vixoniccom:registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
32
|
-
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
|
|
33
|
-
|
|
34
|
-
- name: Cache node modules
|
|
35
|
-
uses: actions/cache@v4
|
|
36
|
-
with:
|
|
37
|
-
path: ~/.npm
|
|
38
|
-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
39
|
-
restore-keys: |
|
|
40
|
-
${{ runner.os }}-node-
|
|
41
|
-
|
|
42
|
-
- name: Install dependencies
|
|
43
|
-
run: npm ci
|
|
44
|
-
env:
|
|
45
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
46
|
-
|
|
47
|
-
- name: Build package
|
|
48
|
-
run: npm run prepublish
|
|
49
|
-
env:
|
|
50
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
51
|
-
|
|
52
|
-
- name: Verify build.zip exists
|
|
53
|
-
run: |
|
|
54
|
-
if [ ! -f "build.zip" ]; then
|
|
55
|
-
echo "❌ Error: build.zip not found after build process"
|
|
56
|
-
exit 1
|
|
57
|
-
fi
|
|
58
|
-
echo "✅ build.zip found successfully"
|
|
59
|
-
ls -la build.zip
|
|
60
|
-
|
|
61
|
-
- name: Check if version already exists on npm
|
|
62
|
-
id: check-version
|
|
63
|
-
run: |
|
|
64
|
-
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
65
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
66
|
-
|
|
67
|
-
echo "Checking if $PACKAGE_NAME@$PACKAGE_VERSION exists on npm..."
|
|
68
|
-
|
|
69
|
-
if npm view "$PACKAGE_NAME@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
70
|
-
echo "version-exists=true" >> $GITHUB_OUTPUT
|
|
71
|
-
echo "⚠️ Version $PACKAGE_VERSION already exists on npm"
|
|
72
|
-
else
|
|
73
|
-
echo "version-exists=false" >> $GITHUB_OUTPUT
|
|
74
|
-
echo "✅ Version $PACKAGE_VERSION does not exist on npm - ready to publish"
|
|
75
|
-
fi
|
|
76
|
-
|
|
77
|
-
- name: Publish to npm
|
|
78
|
-
if: steps.check-version.outputs.version-exists == 'false'
|
|
79
|
-
run: |
|
|
80
|
-
echo "Publishing to npm..."
|
|
81
|
-
npm publish --access public
|
|
82
|
-
env:
|
|
83
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
84
|
-
|
|
85
|
-
- name: Publication success
|
|
86
|
-
if: steps.check-version.outputs.version-exists == 'false'
|
|
87
|
-
run: |
|
|
88
|
-
PACKAGE_NAME=$(node -p "require('./package.json').name")
|
|
89
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
90
|
-
echo "🎉 Successfully published $PACKAGE_NAME@$PACKAGE_VERSION to npm!"
|
|
91
|
-
echo "📦 Package includes build.zip with the compiled application"
|
|
92
|
-
|
|
93
|
-
- name: Skip publication
|
|
94
|
-
if: steps.check-version.outputs.version-exists == 'true'
|
|
95
|
-
run: |
|
|
96
|
-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
97
|
-
echo "⏭️ Skipping publication - version $PACKAGE_VERSION already exists on npm"
|
|
98
|
-
echo "💡 To publish a new version, update the version in package.json or run 'npm run release'"
|
package/build.zip
DELETED
|
Binary file
|