diff --git a/.github/chainguard/semantic-release.sts.yaml b/.github/chainguard/semantic-release.sts.yaml new file mode 100644 index 0000000..8174fdd --- /dev/null +++ b/.github/chainguard/semantic-release.sts.yaml @@ -0,0 +1,9 @@ +--- +issuer: https://token.actions.githubusercontent.com +subject_pattern: repo:liatrio/react-dora-charts:.* + +permissions: + contents: write + packages: write + issues: write + pull_requests: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a386373..d633161 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,30 +21,51 @@ jobs: permissions: id-token: write contents: write + issues: write + pull-requests: write env: HUSKY: 0 steps: - - uses: actions/checkout@v4 + - name: Generate Token with Octo-STS + id: octo-sts + uses: octo-sts/action@210248e8ae1ae1550aa6e232c6f192b3ccbf7335 with: - persist-credentials: false + scope: 'liatrio/react-dora-charts' + identity: semantic-release - - name: Setup node - id: node + - name: Checkout + uses: actions/checkout@v4 + with: + token: ${{ steps.octo-sts.outputs.token }} + fetch-depth: 0 + + - name: Set up Node.js uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - cache: 'npm' + cache: 'yarn' - name: Install dependencies - run: yarn install + run: yarn install --frozen-lockfile - name: Build the project run: yarn rollup - - name: Bump and Release + - name: Get GitHub App User ID for octo-sts[bot] + id: get-user-id + run: echo "user_id=$(gh api "/users/octo-sts[bot]" --jq .id)" >> "$GITHUB_OUTPUT" env: - GITHUB_TOKEN: ${{ secrets.TAGGING_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GH_TOKEN: ${{ steps.octo-sts.outputs.token }} + + - name: Configure Git User + run: | + git config --global user.name "octo-sts[bot]" + git config --global user.email "${{ steps.get-user-id.outputs.user_id }}+octo-sts[bot]@users.noreply.github.com" + + - name: Run semantic-release run: npx semantic-release + env: + GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..5660f81 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org/ \ No newline at end of file diff --git a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-darwin.png b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-darwin.png index e1edb99..a246ac3 100644 Binary files a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-darwin.png and b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-linux.png b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-linux.png index a709b41..02ebc91 100644 Binary files a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-linux.png and b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Elite-Checkbox-Always-Show-Details-1-linux.png differ diff --git a/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-darwin.png b/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-darwin.png index 5b6e446..a9655e5 100644 Binary files a/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-darwin.png and b/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-linux.png b/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-linux.png index a152b23..06f41c1 100644 Binary files a/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-linux.png and b/playwright/tests/components.test.js-snapshots/Board-Data-Set-High-Checkbox-Always-Show-Details-1-linux.png differ diff --git a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-darwin.png b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-darwin.png index 41071a1..e379ff9 100644 Binary files a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-darwin.png and b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-linux.png b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-linux.png index d6ec616..d52e9ff 100644 Binary files a/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-linux.png and b/playwright/tests/components.test.js-snapshots/Board-Data-Set-Team-Checkbox-Always-Show-Details-1-linux.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png index fe07ade..f57d705 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 155945e..d871610 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png index 6f6542c..3c399bb 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index a46e3f5..1d99dc7 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png index 44dcd08..de3291b 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 9a9eacf..6f0e5a3 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png index fef8566..5aa0a55 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 08fd5e5..d4a8253 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeFailureRateGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png index 1771751..6ed0cff 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index a41e1f6..642407d 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png index e552d45..1488cc3 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 7549ad0..dad2a70 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png index 211e672..0f1cb51 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index bf82b66..dbcd19f 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png index 47d813c..5c9b776 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index e323792..6c23d96 100644 Binary files a/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/ChangeLeadTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png index a0c747f..97091f1 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index bb9ef69..2d12821 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png index e6459c3..2d4cd58 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 821afc5..6204f46 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-Include-Weekends-1-darwin.png index 4440b6b..2591819 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index a4c8296..8683423 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Low-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png index 64137d1..bd827d9 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 2567e87..1e06dc1 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png index 8ac67f6..513e7df 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 5346f29..36be9bc 100644 Binary files a/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/DeploymentFrequencyGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png index 83fda84..f15d69e 100644 Binary files a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 93e6c85..62fdf11 100644 Binary files a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Elite-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png index c6796ed..dad1347 100644 Binary files a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-Include-Weekends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index bd8f463..8930069 100644 Binary files a/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/RecoverTimeGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Elite-Checkbox-Show-Metric-Trends-1-darwin.png b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Elite-Checkbox-Show-Metric-Trends-1-darwin.png index cf51e99..8ae36e4 100644 Binary files a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Elite-Checkbox-Show-Metric-Trends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Elite-Checkbox-Show-Metric-Trends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 4504d6d..df6b29e 100644 Binary files a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-Show-Metric-Trends-1-darwin.png b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-Show-Metric-Trends-1-darwin.png index 19a0f04..101555e 100644 Binary files a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-Show-Metric-Trends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-High-Checkbox-Show-Metric-Trends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 3010953..b376563 100644 Binary files a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-Show-Metric-Trends-1-darwin.png b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-Show-Metric-Trends-1-darwin.png index 9a9e29f..fa74a37 100644 Binary files a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-Show-Metric-Trends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Medium-Checkbox-Show-Metric-Trends-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png index 438c056..fce67a7 100644 Binary files a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png and b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-NO-CHECKBOX-CHANGE-1-darwin.png differ diff --git a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-Show-Metric-Trends-1-darwin.png b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-Show-Metric-Trends-1-darwin.png index b950c57..8015676 100644 Binary files a/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-Show-Metric-Trends-1-darwin.png and b/playwright/tests/components.test.js-snapshots/TrendGraph-Data-Set-Team-Checkbox-Show-Metric-Trends-1-darwin.png differ diff --git a/src/functions/metricFunctions.tsx b/src/functions/metricFunctions.tsx index 6936c52..c7d2b0c 100644 --- a/src/functions/metricFunctions.tsx +++ b/src/functions/metricFunctions.tsx @@ -88,11 +88,9 @@ const calculateChangeFailureRateAverage = ( return NaN; } - return ( - (totalFailedRecords / - (totalSuccessfulRecords === 0 ? 1 : totalSuccessfulRecords)) * - 100 - ); + const totalRecords = totalSuccessfulRecords + totalFailedRecords; + + return (totalFailedRecords / totalRecords) * 100; }; const calculateChangeLeadTimeAverage = (