From a04f9089d19ba32d2b2e80738d2d5f4dac0d3e0c Mon Sep 17 00:00:00 2001 From: dougfabris Date: Wed, 13 Sep 2023 19:25:53 -0300 Subject: [PATCH] chore: Improve continuous delivery (#1165) --- .changeset/calm-suits-fail.md | 5 +++ .changeset/config.json | 12 +++++-- .changeset/dull-walls-bake.md | 5 +++ .changeset/early-spoons-return.md | 5 +++ .changeset/eighty-fans-fold.md | 5 +++ .changeset/funny-pets-grow.md | 5 +++ .changeset/honest-eels-complain.md | 5 +++ .changeset/kind-lions-love.md | 5 +++ .changeset/little-stingrays-jump.md | 5 +++ .changeset/moody-dingos-rest.md | 5 +++ .changeset/neat-fishes-confess.md | 5 +++ .changeset/nice-cows-relax.md | 5 +++ .changeset/odd-hornets-sing.md | 5 +++ .changeset/old-terms-reflect.md | 5 +++ .changeset/plenty-donuts-poke.md | 5 +++ .changeset/real-pots-heal.md | 5 +++ .changeset/shy-cows-sort.md | 5 +++ .changeset/silver-schools-allow.md | 5 +++ .changeset/sour-bears-rest.md | 5 +++ .changeset/sour-dolphins-breathe.md | 5 +++ .changeset/stale-hairs-mate.md | 5 +++ .changeset/stupid-emus-hunt.md | 5 +++ .changeset/sweet-bulldogs-press.md | 5 +++ .changeset/tall-eels-cover.md | 5 +++ .changeset/two-lies-sin.md | 5 +++ .changeset/wicked-tools-relax.md | 5 +++ .github/workflows/cd.yml | 23 ++++--------- .github/workflows/codeql.yml | 6 ++-- package.json | 1 + yarn.lock | 50 +++++++++++++++++++++++++++++ 30 files changed, 195 insertions(+), 22 deletions(-) create mode 100644 .changeset/calm-suits-fail.md create mode 100644 .changeset/dull-walls-bake.md create mode 100644 .changeset/early-spoons-return.md create mode 100644 .changeset/eighty-fans-fold.md create mode 100644 .changeset/funny-pets-grow.md create mode 100644 .changeset/honest-eels-complain.md create mode 100644 .changeset/kind-lions-love.md create mode 100644 .changeset/little-stingrays-jump.md create mode 100644 .changeset/moody-dingos-rest.md create mode 100644 .changeset/neat-fishes-confess.md create mode 100644 .changeset/nice-cows-relax.md create mode 100644 .changeset/odd-hornets-sing.md create mode 100644 .changeset/old-terms-reflect.md create mode 100644 .changeset/plenty-donuts-poke.md create mode 100644 .changeset/real-pots-heal.md create mode 100644 .changeset/shy-cows-sort.md create mode 100644 .changeset/silver-schools-allow.md create mode 100644 .changeset/sour-bears-rest.md create mode 100644 .changeset/sour-dolphins-breathe.md create mode 100644 .changeset/stale-hairs-mate.md create mode 100644 .changeset/stupid-emus-hunt.md create mode 100644 .changeset/sweet-bulldogs-press.md create mode 100644 .changeset/tall-eels-cover.md create mode 100644 .changeset/two-lies-sin.md create mode 100644 .changeset/wicked-tools-relax.md diff --git a/.changeset/calm-suits-fail.md b/.changeset/calm-suits-fail.md new file mode 100644 index 0000000000..6a11d1cfbd --- /dev/null +++ b/.changeset/calm-suits-fail.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage-hooks": minor +--- + +feat: create useElementIsVisible diff --git a/.changeset/config.json b/.changeset/config.json index 09190b2b09..9d3b0912b6 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,11 +1,17 @@ { "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", - "changelog": "@changesets/changelog-git", + "changelog": [ + "@changesets/changelog-github", + { "repo": "RocketChat/fuselage" } + ], "commit": false, "fixed": [], "linked": [], "access": "public", - "baseBranch": "develop", + "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": [] + "ignore": [], + "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { + "onlyUpdatePeerDependentsWhenOutOfRange": true + } } diff --git a/.changeset/dull-walls-bake.md b/.changeset/dull-walls-bake.md new file mode 100644 index 0000000000..e916d621ea --- /dev/null +++ b/.changeset/dull-walls-bake.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): Field deprecation message diff --git a/.changeset/early-spoons-return.md b/.changeset/early-spoons-return.md new file mode 100644 index 0000000000..e90e7edfae --- /dev/null +++ b/.changeset/early-spoons-return.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Button size diff --git a/.changeset/eighty-fans-fold.md b/.changeset/eighty-fans-fold.md new file mode 100644 index 0000000000..ac9a48e1fd --- /dev/null +++ b/.changeset/eighty-fans-fold.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): OptionInput margins and alignment diff --git a/.changeset/funny-pets-grow.md b/.changeset/funny-pets-grow.md new file mode 100644 index 0000000000..8562120e77 --- /dev/null +++ b/.changeset/funny-pets-grow.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): AudioPlayer: Infinity duration audio files crashing diff --git a/.changeset/honest-eels-complain.md b/.changeset/honest-eels-complain.md new file mode 100644 index 0000000000..5f9d3a402a --- /dev/null +++ b/.changeset/honest-eels-complain.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): css theme diff --git a/.changeset/kind-lions-love.md b/.changeset/kind-lions-love.md new file mode 100644 index 0000000000..ab3c4a8d94 --- /dev/null +++ b/.changeset/kind-lions-love.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): MessageReactionAction icon size diff --git a/.changeset/little-stingrays-jump.md b/.changeset/little-stingrays-jump.md new file mode 100644 index 0000000000..fc3204affb --- /dev/null +++ b/.changeset/little-stingrays-jump.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): prevent button-disabled click animation diff --git a/.changeset/moody-dingos-rest.md b/.changeset/moody-dingos-rest.md new file mode 100644 index 0000000000..86bc66c21b --- /dev/null +++ b/.changeset/moody-dingos-rest.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): IconButton with badge click-animation diff --git a/.changeset/neat-fishes-confess.md b/.changeset/neat-fishes-confess.md new file mode 100644 index 0000000000..2109447660 --- /dev/null +++ b/.changeset/neat-fishes-confess.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): change FieldLabel typography diff --git a/.changeset/nice-cows-relax.md b/.changeset/nice-cows-relax.md new file mode 100644 index 0000000000..20f89fb3e2 --- /dev/null +++ b/.changeset/nice-cows-relax.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +fix(fuselage): Remove unnecessary aria-label fallback in `IconButton diff --git a/.changeset/odd-hornets-sing.md b/.changeset/odd-hornets-sing.md new file mode 100644 index 0000000000..f8f18126cb --- /dev/null +++ b/.changeset/odd-hornets-sing.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/ui-kit": minor +--- + +fix(ui-kit): Remove icons package dependency in ui-kit package diff --git a/.changeset/old-terms-reflect.md b/.changeset/old-terms-reflect.md new file mode 100644 index 0000000000..ae8aafd193 --- /dev/null +++ b/.changeset/old-terms-reflect.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/onboarding-ui": minor +--- + +fix(onboarding-ui): Development warnings diff --git a/.changeset/plenty-donuts-poke.md b/.changeset/plenty-donuts-poke.md new file mode 100644 index 0000000000..b79553b6be --- /dev/null +++ b/.changeset/plenty-donuts-poke.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): ToggleSwitch best practices adjustments diff --git a/.changeset/real-pots-heal.md b/.changeset/real-pots-heal.md new file mode 100644 index 0000000000..0582dcd677 --- /dev/null +++ b/.changeset/real-pots-heal.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Modal a11y improvements diff --git a/.changeset/shy-cows-sort.md b/.changeset/shy-cows-sort.md new file mode 100644 index 0000000000..516dfadf47 --- /dev/null +++ b/.changeset/shy-cows-sort.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Table background-color diff --git a/.changeset/silver-schools-allow.md b/.changeset/silver-schools-allow.md new file mode 100644 index 0000000000..eff4d0106b --- /dev/null +++ b/.changeset/silver-schools-allow.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): color a11y report changes diff --git a/.changeset/sour-bears-rest.md b/.changeset/sour-bears-rest.md new file mode 100644 index 0000000000..827ac74227 --- /dev/null +++ b/.changeset/sour-bears-rest.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage-hooks": minor +--- + +fix(fuselage-hooks): usePosition fallback positioning diff --git a/.changeset/sour-dolphins-breathe.md b/.changeset/sour-dolphins-breathe.md new file mode 100644 index 0000000000..df5023d048 --- /dev/null +++ b/.changeset/sour-dolphins-breathe.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): button click animation diff --git a/.changeset/stale-hairs-mate.md b/.changeset/stale-hairs-mate.md new file mode 100644 index 0000000000..8cf8f865a0 --- /dev/null +++ b/.changeset/stale-hairs-mate.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Checkbox best practices adjustments diff --git a/.changeset/stupid-emus-hunt.md b/.changeset/stupid-emus-hunt.md new file mode 100644 index 0000000000..8f45ee4c99 --- /dev/null +++ b/.changeset/stupid-emus-hunt.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Fix Accordion a11y diff --git a/.changeset/sweet-bulldogs-press.md b/.changeset/sweet-bulldogs-press.md new file mode 100644 index 0000000000..9ee9a7a132 --- /dev/null +++ b/.changeset/sweet-bulldogs-press.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/ui-kit": minor +--- + +refactor(ui-kit): Review some types diff --git a/.changeset/tall-eels-cover.md b/.changeset/tall-eels-cover.md new file mode 100644 index 0000000000..ce4c8f13ac --- /dev/null +++ b/.changeset/tall-eels-cover.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Avatar a11y improvements diff --git a/.changeset/two-lies-sin.md b/.changeset/two-lies-sin.md new file mode 100644 index 0000000000..7ca42a1db4 --- /dev/null +++ b/.changeset/two-lies-sin.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Prop to keep MessageToolbox visible. diff --git a/.changeset/wicked-tools-relax.md b/.changeset/wicked-tools-relax.md new file mode 100644 index 0000000000..c8ba310c90 --- /dev/null +++ b/.changeset/wicked-tools-relax.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": minor +--- + +chore(fuselage): Field & Label best practices adjustments diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 63baef077c..af6a73e24d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -3,8 +3,7 @@ name: Continuous Delivery on: push: branches: - - master - - develop + - main jobs: build-and-test: @@ -46,8 +45,8 @@ jobs: packages/fuselage/storybook-static packages/onboarding-ui/storybook-static packages/layout/storybook-static - - if: github.ref == 'refs/heads/master' - uses: actions/upload-artifact@v2 + + - uses: actions/upload-artifact@v2 with: name: docs path: | @@ -88,21 +87,13 @@ jobs: path: packages - run: yarn install if: steps.yarn-cache.outputs.cache-hit != 'true' - - run: yarn resolve-workspace-deps - if: github.ref == 'refs/heads/master' + - uses: changesets/action@v1 with: publish: yarn release - if: github.ref == 'refs/heads/master' env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: yarn bump-next - if: github.ref == 'refs/heads/develop' - - run: yarn release-next - if: github.ref == 'refs/heads/develop' - env: - YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} publish-to-gh-pages: name: Publish to GitHub Pages @@ -120,8 +111,8 @@ jobs: with: name: storybooks path: packages - - if: github.ref == 'refs/heads/master' - uses: actions/download-artifact@v2 + + - uses: actions/download-artifact@v2 with: name: docs path: . diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2f9a52183e..96c9501bc2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,9 @@ name: "CodeQL" on: push: - branches: [ "develop", "master" ] + branches: "main" pull_request: - branches: [ "develop" ] + branches: "main" schedule: - cron: "54 21 * * 4" @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - language: [ javascript ] + language: [javascript] steps: - name: Checkout diff --git a/package.json b/package.json index 286a382a58..eaa78cb963 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "tools/*" ], "devDependencies": { + "@changesets/changelog-github": "~0.4.8", "@changesets/cli": "~2.26.2", "bump": "workspace:~", "husky": "~7.0.4", diff --git a/yarn.lock b/yarn.lock index 421485918a..7d004eedfc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1704,6 +1704,17 @@ __metadata: languageName: node linkType: hard +"@changesets/changelog-github@npm:~0.4.8": + version: 0.4.8 + resolution: "@changesets/changelog-github@npm:0.4.8" + dependencies: + "@changesets/get-github-info": ^0.5.2 + "@changesets/types": ^5.2.1 + dotenv: ^8.1.0 + checksum: 8a357cc08757e0eeca267ee05141f68bef936582abef8b78a5d30d99f5a86e41b7d3debba70992b73b2f57b0fc6201ec1cc3c65116930167ee3197b427b865c5 + languageName: node + linkType: hard + "@changesets/cli@npm:~2.26.2": version: 2.26.2 resolution: "@changesets/cli@npm:2.26.2" @@ -1784,6 +1795,16 @@ __metadata: languageName: node linkType: hard +"@changesets/get-github-info@npm:^0.5.2": + version: 0.5.2 + resolution: "@changesets/get-github-info@npm:0.5.2" + dependencies: + dataloader: ^1.4.0 + node-fetch: ^2.5.0 + checksum: 067e07eeaecdbedbd1c715513c4aa6206a941bd1d3af292d067792808c6fa6644caad2b35fba614a44892559c031c234df8028f8d2abd4cb2682d48080ef5df3 + languageName: node + linkType: hard + "@changesets/get-release-plan@npm:^3.0.17": version: 3.0.17 resolution: "@changesets/get-release-plan@npm:3.0.17" @@ -6423,6 +6444,7 @@ __metadata: version: 0.0.0-use.local resolution: "@rocket.chat/fuselage-root@workspace:." dependencies: + "@changesets/changelog-github": ~0.4.8 "@changesets/cli": ~2.26.2 bump: "workspace:~" husky: ~7.0.4 @@ -13800,6 +13822,13 @@ __metadata: languageName: node linkType: hard +"dataloader@npm:^1.4.0": + version: 1.4.0 + resolution: "dataloader@npm:1.4.0" + checksum: e2c93d43afde68980efc0cd9ff48e9851116e27a9687f863e02b56d46f7e7868cc762cd6dcbaf4197e1ca850a03651510c165c2ae24b8e9843fd894002ad0e20 + languageName: node + linkType: hard + "dateformat@npm:^3.0.0": version: 3.0.3 resolution: "dateformat@npm:3.0.3" @@ -14401,6 +14430,13 @@ __metadata: languageName: node linkType: hard +"dotenv@npm:^8.1.0": + version: 8.6.0 + resolution: "dotenv@npm:8.6.0" + checksum: 38e902c80b0666ab59e9310a3d24ed237029a7ce34d976796349765ac96b8d769f6df19090f1f471b77a25ca391971efde8a1ea63bb83111bd8bec8e5cc9b2cd + languageName: node + linkType: hard + "dotgitignore@npm:^2.1.0": version: 2.1.0 resolution: "dotgitignore@npm:2.1.0" @@ -21632,6 +21668,20 @@ fsevents@^1.2.7: languageName: node linkType: hard +"node-fetch@npm:^2.5.0": + version: 2.7.0 + resolution: "node-fetch@npm:2.7.0" + dependencies: + whatwg-url: ^5.0.0 + peerDependencies: + encoding: ^0.1.0 + peerDependenciesMeta: + encoding: + optional: true + checksum: d76d2f5edb451a3f05b15115ec89fc6be39de37c6089f1b6368df03b91e1633fd379a7e01b7ab05089a25034b2023d959b47e59759cb38d88341b2459e89d6e5 + languageName: node + linkType: hard + "node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7": version: 2.6.7 resolution: "node-fetch@npm:2.6.7"