Skip to content

Commit

Permalink
Merge branch 'main' into chore/ma-1995-datetimepicker-use-analytics-u…
Browse files Browse the repository at this point in the history
…tils-types
  • Loading branch information
mihai-peteu committed Sep 15, 2023
2 parents b38d2e9 + 8450907 commit 6fca4fd
Show file tree
Hide file tree
Showing 26 changed files with 2,627 additions and 1,615 deletions.
48 changes: 2 additions & 46 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# Workflows & CI
/.github/ @adamdehaven @jillztom
/lefthook.yaml @adamdehaven @jillztom
/netlify.toml @adamdehaven @jillztom
/netlify.toml @adamdehaven @jillztom @ValeryG
/renovate.json @adamdehaven @jillztom @ValeryG

# CLI
/cli/ @adamdehaven @jillztom
Expand All @@ -25,51 +26,6 @@
/.gitignore @adamdehaven @jillztom @kaiarrowood
/vite.config.ts @adamdehaven @jillztom

# Design Tokens Implemented Kongponents
# This is temporary codeowners until we introduce design tokens practices to the whole team
/src/components/KAlert @adamdehaven @jillztom @portikM
/src/components/KBadge @adamdehaven @jillztom @portikM
/src/components/KBreadcrumbs @adamdehaven @jillztom @portikM
/src/components/KButton @adamdehaven @jillztom @portikM
/src/components/KCard @adamdehaven @jillztom @portikM
/src/components/KCatalog @adamdehaven @jillztom @portikM
/src/components/KCheckbox @adamdehaven @jillztom @portikM
/src/components/KCodeBlock @adamdehaven @jillztom @portikM
/src/components/KCollapse @adamdehaven @jillztom @portikM
/src/components/KDateTimePicker @adamdehaven @jillztom @portikM
/src/components/KDropdownMenu @adamdehaven @jillztom @portikM
/src/components/KEmptyState @adamdehaven @jillztom @portikM
/src/components/KExternalLink @adamdehaven @jillztom @portikM
/src/components/KFileUpload @adamdehaven @jillztom @portikM
/src/components/KIcon @adamdehaven @jillztom @portikM
/src/components/KInlineEdit @adamdehaven @jillztom @portikM
/src/components/KInput @adamdehaven @jillztom @portikM
/src/components/KInputSwitch @adamdehaven @jillztom @portikM
/src/components/KLabel @adamdehaven @jillztom @portikM
/src/components/KMenu @adamdehaven @jillztom @portikM
/src/components/KMethodBadge @adamdehaven @jillztom @portikM
/src/components/KModal @adamdehaven @jillztom @portikM
/src/components/KModalFullscreen @adamdehaven @jillztom @portikM
/src/components/KMultiselect @adamdehaven @jillztom @portikM
/src/components/KPagination @adamdehaven @jillztom @portikM
/src/components/KPop @adamdehaven @jillztom @portikM
/src/components/KPrompt @adamdehaven @jillztom @portikM
/src/components/KRadio @adamdehaven @jillztom @portikM
/src/components/KSegmentedControl @adamdehaven @jillztom @portikM
/src/components/KSelect @adamdehaven @jillztom @portikM
/src/components/KSlideout @adamdehaven @jillztom @portikM
/src/components/KStepper @adamdehaven @jillztom @portikM
/src/components/KSkeleton @adamdehaven @jillztom @portikM
/src/components/KTable @adamdehaven @jillztom @portikM
/src/components/KTabs @adamdehaven @jillztom @portikM
/src/components/KTextArea @adamdehaven @jillztom @portikM
/src/components/KToaster @adamdehaven @jillztom @portikM
/src/components/KTooltip @adamdehaven @jillztom @portikM
/src/components/KTreeList @adamdehaven @jillztom @portikM
/src/components/KTruncate @adamdehaven @jillztom @portikM
/src/components/KViewSwitcher @adamdehaven @jillztom @portikM
/src/styles/_utils.scss @adamdehaven @jillztom @portikM

# Dependabot approvals
# Allow Kongponents BOT to approve dependabot updates
# These rules MUST remain at the bottom as the last entry
Expand Down
8 changes: 2 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
## PR Checklist

* [ ] **Conventional Commits** all commits follow the conventional commit standards [outlined in the main README](https://github.com/Kong/kongponents#committing-changes).
* [ ] **Functional:** all changes do not break existing APIs and if so, bump major version.
* [ ] **Tests pass:** check the output of yarn test
* [ ] **Naming:** the files and the method and prop variables use the same naming conventions as other Kongponents
* [ ] **Framework style:** abides by the essential rules in Vue's style guide
* [ ] **Cleanliness:** does not have formatting issues, unused code (e.g., console.logs, debugger), or leftover comments
* [ ] **Docs:** includes a technically accurate README, uses JSDOC where appropriate
* [ ] **Tests coverage:** test coverage was added for new features and bug fixes
* [ ] **Docs:** includes a technically accurate README
29 changes: 0 additions & 29 deletions .github/dependabot.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Dependabot auto-approve
name: Renovate Bot dependency updates auto-merge

permissions:
pull-requests: write
Expand All @@ -8,19 +8,14 @@ permissions:
on: pull_request_target

jobs:
dependabot-autoapprove:
renovate-autoapprove:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
# Do not auto-approve branches `alpha` or `beta`
if: github.actor == 'renovate[bot]' && !contains(github.head_ref || github.ref_name, 'alpha') && !contains(github.head_ref || github.ref_name, 'beta')
steps:
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
# Use the bot account PAT to allow auto-approve and merge the PRs
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-preview-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout Source Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare cleanup
id: prepare
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ main, 'release/**' ]
branches: [ main, alpha, beta, 'release/**' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, 'release/**' ]
branches: [ main, alpha, beta, 'release/**' ]
schedule:
- cron: '36 7 * * 6'

Expand All @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint Commit Messages

on:
pull_request:

jobs:
commitlint:
if: ${{ github.actor != 'renovate[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# See https://github.com/wagoid/commitlint-github-action/issues/560
- name: Remove tsconfig
run: rm tsconfig.json

- uses: wagoid/commitlint-github-action@v5.4.3
with:
configFile: commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,36 @@ on:
jobs:
get-changed-files:
name: Check changed files
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
component-files-changed: ${{ steps.component-files-changed.outputs.any_modified }}
docs-files-changed: ${{ steps.docs-files-changed.outputs.any_modified }}
components-or-docs-or-cypress-files-changed: ${{ steps.components-or-docs-or-cypress-files-changed.outputs.any_modified }}
package-json-yarn-lock-files-changed: ${{ steps.package-json-yarn-lock-files-changed.outputs.any_modified }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Check if component (`src` directory) files have changed
uses: tj-actions/changed-files@v37
uses: tj-actions/changed-files@v39
id: component-files-changed
# Return 'true' for any directories listed here that changed
with:
files: |
src/**
- name: Check if docs (`docs` directory) files have changed
uses: tj-actions/changed-files@v37
uses: tj-actions/changed-files@v39
id: docs-files-changed
# Return 'true' for any directories listed here that changed
with:
files: |
docs/**
- name: Check if files changed in `src/`, `docs/`, or `cypress/` directories
uses: tj-actions/changed-files@v37
uses: tj-actions/changed-files@v39
id: components-or-docs-or-cypress-files-changed
# Return 'true' for any directories listed here that changed
with:
Expand All @@ -58,7 +58,7 @@ jobs:
cypress/**
- name: Check if package.json or yarn.lock files changed
uses: tj-actions/changed-files@v37
uses: tj-actions/changed-files@v39
id: package-json-yarn-lock-files-changed
# Return 'true' for any directories listed here that changed
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Remove preview consumption comment
uses: marocchino/sticky-pull-request-comment@v2
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml → .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ on:
push:
branches:
- main
- alpha
- beta

jobs:
get-changed-files:
name: Get Changed Files
uses: ./.github/workflows/get-changed-files.yml
uses: ./.github/workflows/get-changed-files.yaml

run-tests:
name: Tests
needs:
- get-changed-files
uses: ./.github/workflows/test.yml
uses: ./.github/workflows/test.yaml
# Must pass in secrets here so that the calling workflow can pass in the NPM_TOKEN needed to install private packages.
secrets:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
Expand All @@ -34,7 +36,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.KONGPONENTS_BOT_PAT }}

Expand All @@ -59,7 +61,7 @@ jobs:
run: yarn build:kongponents

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4
env:
# Since branch protections are on (pushing commits) you need to use a bot PAT
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- main
- alpha
- beta

# Allow calling manually from GitHub
workflow_dispatch:
Expand Down Expand Up @@ -36,7 +38,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -59,7 +61,7 @@ jobs:

- name: Publish Package Preview
id: package-preview
if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
if: github.event_name == 'pull_request' && github.actor != 'renovate[bot]'
run: |
git config user.email "konnectx-engineers+kongponents-bot@konghq.com"
git config user.name "Kong UI Bot"
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.KONGPONENTS_BOT_PAT }}

- name: Run Cypress component tests
uses: cypress-io/github-action@v4
uses: cypress-io/github-action@v6
with:
install: false
command: yarn test
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.12.1
18.17.1
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
## [8.123.7](https://github.com/Kong/kongponents/compare/v8.123.6...v8.123.7) (2023-09-13)


### Bug Fixes

* **kcodeblock:** dark theme styles not applying to slotted content ([#1723](https://github.com/Kong/kongponents/issues/1723)) ([082e4ca](https://github.com/Kong/kongponents/commit/082e4ca519917d2959c09ce244c405f8325da101))

## [8.123.6](https://github.com/Kong/kongponents/compare/v8.123.5...v8.123.6) (2023-09-12)


### Bug Fixes

* **kfileupload:** underline ([06f0d76](https://github.com/Kong/kongponents/commit/06f0d76c11fdbb096203e704a3b83319631f66c0))
* **kfileupload:** width ([96bfc4b](https://github.com/Kong/kongponents/commit/96bfc4bf9fc7c9123fdd1641f4b7240a50b6f51a))

## [8.123.5](https://github.com/Kong/kongponents/compare/v8.123.4...v8.123.5) (2023-09-11)


### Bug Fixes

* **release:** trigger release ([609a1b8](https://github.com/Kong/kongponents/commit/609a1b80efff216ae1001c4aee8d4bee1112b9c9))

## [8.123.4](https://github.com/Kong/kongponents/compare/v8.123.3...v8.123.4) (2023-09-11)


### Bug Fixes

* **deps:** update dependency date-fns-tz to v2 ([#1712](https://github.com/Kong/kongponents/issues/1712)) ([35bb517](https://github.com/Kong/kongponents/commit/35bb517b0b66692bd9062f7333a630ffb0e263e3))
* **deps:** update dependency uuid to v9 ([#1713](https://github.com/Kong/kongponents/issues/1713)) ([d9d2d6c](https://github.com/Kong/kongponents/commit/d9d2d6cab1148877be34551892bd095d4fddb2e1))

## [8.123.3](https://github.com/Kong/kongponents/compare/v8.123.2...v8.123.3) (2023-09-08)


### Bug Fixes

* renovate config ([#1688](https://github.com/Kong/kongponents/issues/1688)) ([0e0ef2b](https://github.com/Kong/kongponents/commit/0e0ef2b06971c097e953c32f93c8fecf46f1ef96))

## [8.123.2](https://github.com/Kong/kongponents/compare/v8.123.1...v8.123.2) (2023-09-07)


### Bug Fixes

* **deps:** update vitepress and vue-tsc ([#1679](https://github.com/Kong/kongponents/issues/1679)) ([c675a1a](https://github.com/Kong/kongponents/commit/c675a1a1c4de7ff5fd7103224f6bb100ec2d1066))

## [8.123.1](https://github.com/Kong/kongponents/compare/v8.123.0...v8.123.1) (2023-09-07)


### Bug Fixes

* **multi-select:** optimize overflow detection for selected items container ([#1677](https://github.com/Kong/kongponents/issues/1677)) ([973fa81](https://github.com/Kong/kongponents/commit/973fa818f3d97925cb7e412aadc95af7c7500d0a))

# [8.123.0](https://github.com/Kong/kongponents/compare/v8.122.9...v8.123.0) (2023-08-30)


Expand Down
Loading

0 comments on commit 6fca4fd

Please sign in to comment.