Skip to content

Commit

Permalink
Merge branch 'main' into flutter-v2-gen2
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 authored May 20, 2024
2 parents 43f87c3 + de729d6 commit 603f34f
Show file tree
Hide file tree
Showing 194 changed files with 7,948 additions and 4,701 deletions.
165 changes: 122 additions & 43 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,104 +1,183 @@
* @aws-amplify/documentation-team
/src/fragments/ @ykethan @jay2113 @chrisbonifacio @aspittel @renebrandel @swaminator @dbanksdesign @josefaidt @ErikCH @arundna @hdworld11 @aws-amplify/documentation-team
/src/pages/ @ykethan @jay2113 @chrisbonifacio @aspittel @renebrandel @swaminator @dbanksdesign @josefaidt @ErikCH @arundna @hdworld11 @aws-amplify/documentation-team

#Other
/src/pages/gen1/[platform]/build-a-backend/existing-resources/ @josefaidt @hdworld11 @renebrandel @dbanksdesign
/src/pages/gen1/[platform]/build-a-backend/functions/ @josefaidt
/src/pages/gen1/[platform]/how-amplify-works/ @aspittel
/src/pages/gen1/[platform]/sdk/api/ @hdworld11
/src/pages/gen1/[platform]/sdk/info @hdworld11
/src/pages/gen1/[platform]/sdk/configuration/ @hdworld11
/src/pages/[platform]/how-amplify-works/ @aspittel
/src/pages/[platform]/build-a-backend/functions/ @josefaidt
/src/pages/[platform]/build-a-backend/functions/ @josefaidt
/src/pages/[platform]/build-a-backend/add-aws-services/custom-resources/ @josefaidt @hdworld11 @renebrandel @dbanksdesign
/src/pages/[platform]/build-a-backend/add-aws-services/delete-backup-resources/ @josefaidt @hdworld11 @renebrandel @dbanksdesign
/src/pages/[platform]/build-a-backend/add-aws-services/environment-variables-and-secrets/ @swaminator @josefaidt
/src/pages/[platform]/build-a-backend/q-developer/ @arundna

#CLI
/src/**/cli/ @josefaidt @aws-amplify/documentation-team
/src/fragments/cli/ @josefaidt
/src/pages/gen1/[platform]/tools/cli/ @josefaidt
/src/pages/gen1/[platform]/tools/cli-legacy/ @josefaidt
/src/pages/[platform]/reference/cli-commands/ @josefaidt

#Studio
/src/pages/console/ @dbanksdesign @aws-amplify/documentation-team
/src/pages/gen1/[platform]/tools/console/ @dbanksdesign

#Analytics
/src/**/**/analytics @hdworld11 @dbanksdesign @aws-amplify/documentation-team
/src/fragments/**/analytics/ @hdworld11
/src/pages/gen1/[platform]/build-a-backend/more-features/analytics/ @hdworld11
/src/pages/gen1/[platform]/prev/build-a-backend/more-features/analytics/ @hdworld11
/src/pages/gen1/[platform]/sdk/analytics/ @hdworld11
/src/pages/[platform]/build-a-backend/add-aws-services/analytics/ @hdworld11
/src/pages/gen1/[platform]/build-a-backend/existing-resources/cli @hdworld11

#Auth
/src/**/**/auth @josefaidt @aws-amplify/documentation-team
/src/**/**/authz @josefaidt @renebrandel @aws-amplify/documentation-team
/src/**/**/authentication @renebrandel @josefaidt @aws-amplify/documentation-team
/src/fragments/**/auth/ @josefaidt
/src/pages/gen1/[platform]/build-a-backend/auth/ @josefaidt
/src/pages/gen1/[platform]/prev/build-a-backend/auth/ @josefaidt
/src/pages/gen1/[platform]/sdk/auth/ @josefaidt
/src/pages/gen1/[platform]/start/getting-started/auth/ @josefaidt
/src/pages/[platform]/build-a-backend/auth/ @josefaidt

#Client Configuration
/src/**/**/client-configuration @renebrandel @josefaidt @hdworld11 @aws-amplify/documentation-team
/src/**/**/configuration @renebrandel @josefaidt @hdworld11 @aws-amplify/documentation-team
/src/fragments/**/client-configuration @renebrandel @josefaidt @hdworld11
/src/fragments/**/configuration @renebrandel @josefaidt @hdworld11

#Common
/src/fragments/common @renebrandel @hdworld11 @josefaidt @dbanksdesign @aws-amplify/documentation-team
/src/fragments/lib/common @renebrandel @hdworld11 @josefaidt @dbanksdesign @aws-amplify/documentation-team
/src/fragments/common @renebrandel @hdworld11 @josefaidt @dbanksdesign
/src/fragments/**/common @renebrandel @hdworld11 @josefaidt @dbanksdesign

#Data
/src/**/**/datastore @renebrandel @aws-amplify/documentation-team
/src/**/**/data @renebrandel @aws-amplify/documentation-team
/src/fragments/**/datastore @renebrandel
/src/pages/gen1/[platform]/build-a-backend/more-features/datastore @renebrandel
/src/pages/gen1/[platform]/prev/build-a-backend/more-features/datastore/ @renebrandel
/src/pages/[platform]/build-a-backend/data/ @renebrandel

#Debugging
/src/fragments/**/debugging @josefaidt @aws-amplify/documentation-team
/src/fragments/**/debugging @josefaidt
/src/pages/gen1/[platform]/build-a-backend/debugging/ @josefaidt
/src/pages/gen1/[platform]/prev/build-a-backend/debugging/ @josefaidt

#Geo
/src/**/**/geo @hdworld11 @aws-amplify/documentation-team
/src/fragments/**/geo @hdworld11
/src/pages/gen1/[platform]/build-a-backend/more-features/geo/ @hdworld11
/src/pages/gen1/[platform]/prev/build-a-backend/more-features/geo/ @hdworld11
/src/pages/[platform]/build-a-backend/add-aws-services/geo/ @hdworld11

#Getting Started
/src/**/start @renebrandel @hdworld11 @josefaidt @dbanksdesign @aws-amplify/documentation-team
/src/fragments/start @aspittel
/src/fragments/gen2/quickstart/ @aspittel
/src/fragments/**/start/ @aspittel
/src/fragments/**/project-setup @aspittel
/src/pages/gen1/[platform]/prev/start/ @aspittel
/src/pages/gen1/[platform]/start/ @aspittel
/src/pages/[platform]/start/ @aspittel

#GraphQL API
/src/**/**/api-graphql @renebrandel @aws-amplify/documentation-team
/src/**/**/graphqlapi @renebrandel @aws-amplify/documentation-team
/src/**/cli-legacy/graphql-transformer @renebrandel @aws-amplify/documentation-team
/src/fragments/sdk/api/**/graphql.mdx @renebrandel @aws-amplify/documentation-team
/src/fragments/**/api-graphql @renebrandel
/src/fragments/**/graphqlapi @renebrandel
/src/fragments/sdk/api/**/graphql.mdx @renebrandel
/src/pages/gen1/[platform]/build-a-backend/functions/graphql-from-lambda/ @renebrandel
/src/pages/gen1/[platform]/build-a-backend/graphqlapi/ @renebrandel
/src/pages/gen1/[platform]/prev/build-a-backend/graphqlapi/ @renebrandel
/src/pages/gen1/[platform]/sdk/api/graphql/ @renebrandel

#In-App Messaging
/src/**/**/in-app-messaging @hdworld11 @aws-amplify/documentation-team
/src/fragments/**/in-app-messaging @hdworld11
/src/pages/gen1/[platform]/build-a-backend/more-features/in-app-messaging/ @hdworld11
/src/pages/gen1/[platform]/prev/build-a-backend/more-features/in-app-messaging/ @hdworld11
/src/pages/[platform]/build-a-backend/add-aws-services/in-app-messaging/ @hdworld11

#Info
/src/fragments/**/info @renebrandel @hdworld11 @josefaidt @dbanksdesign @aws-amplify/documentation-team
/src/fragments/**/info @renebrandel @hdworld11 @josefaidt @dbanksdesign

#Interactions
/src/**/**/interactions @josefaidt @aws-amplify/documentation-team
/src/fragments/**/interactions @josefaidt
/src/pages/gen1/[platform]/build-a-backend/more-features/interactions/ @josefaidt
/src/pages/gen1/[platform]/prev/build-a-backend/more-features/interactions/ @josefaidt
/src/pages/[platform]/build-a-backend/add-aws-services/interactions/ @josefaidt

#Logging
/src/fragments/lib/logging @hdworld11 @aws-amplify/documentation-team
/src/fragments/**/logging @hdworld11
/src/pages/gen1/[platform]/build-a-backend/more-features/logging/ @hdworld11
/src/pages/[platform]/build-a-backend/add-aws-services/logging/ @hdworld11

#Predictions
/src/**/**/predictions @hdworld11 @dbanksdesign @aws-amplify/documentation-team

#Project Setup
/src/**/**/project-setup @renebrandel @josefaidt @dbanksdesign @hdworld11 @aws-amplify/documentation-team
/src/fragments/**/predictions @hdworld11 @dbanksdesign
/src/pages/gen1/[platform]/build-a-backend/more-features/predictions/ @hdworld11 @dbanksdesign
/src/pages/gen1/[platform]/prev/build-a-backend/more-features/predictions/ @hdworld11 @dbanksdesign
/src/pages/[platform]/build-a-backend/add-aws-services/predictions/ @hdworld11 @dbanksdesign

#PubSub
/src/**/**/pubsub @renebrandel @aws-amplify/documentation-team
/src/fragments/**/pubsub @renebrandel
/src/pages/gen1/[platform]/build-a-backend/more-features/pubsub/ @renebrandel
/src/pages/gen1/[platform]/prev/build-a-backend/more-features/pubsub/ @renebrandel
/src/pages/gen1/[platform]/sdk/pubsub/ @renebrandel
/src/pages/[platform]/build-a-backend/add-aws-services/pubsub/ @renebrandel

#Push Notifications
/src/**/**/push-notifications @hdworld11 @dbanksdesign @aws-amplify/documentation-team
/src/fragments/**/push-notifications @hdworld11 @dbanksdesign
/src/pages/gen1/[platform]/build-a-backend/push-notifications/ @hdworld11 @dbanksdesign
/src/pages/gen1/[platform]/prev/build-a-backend/push-notifications/ @hdworld11 @dbanksdesign
/src/pages/gen1/[platform]/sdk/push-notifications/ @hdworld11 @dbanksdesign

#Rest API
/src/**/**/api-rest @josefaidt @aws-amplify/documentation-team
/src/**/**/restapi @josefaidt @aws-amplify/documentation-team
/src/fragments/sdk/api/**/rest.mdx @josefaidt @aws-amplify/documentation-team
/src/fragments/**/api-rest @josefaidt
/src/fragments/**/restapi @josefaidt
/src/fragments/sdk/api/**/rest.mdx @josefaidt
/src/pages/gen1/[platform]/build-a-backend/restapi/ @josefaidt
/src/pages/gen1/[platform]/prev/build-a-backend/restapi/ @josefaidt
/src/pages/gen1/[platform]/sdk/api/rest/ @josefaidt
/src/pages/[platform]/build-a-backend/add-aws-services/rest-api/ @josefaidt

#SSR
/src/fragments/lib/ssr @renebrandel @josefaidt @dbanksdesign @aws-amplify/documentation-team
/src/fragments/**/ssr @renebrandel @josefaidt @dbanksdesign
/src/pages/gen1/[platform]/build-a-backend/server-side-rendering/ @renebrandel @josefaidt @dbanksdesign
/src/pages/gen1/[platform]/prev/build-a-backend/server-side-rendering/ @renebrandel @josefaidt @dbanksdesign
/src/pages/[platform]/build-a-backend/server-side-rendering/ @renebrandel @josefaidt @dbanksdesign

#Storage
/src/**/**/storage @hdworld11 @aws-amplify/documentation-team
/src/fragments/**/storage @hdworld11
/src/pages/gen1/[platform]/build-a-backend/storage/ @hdworld11
/src/pages/gen1/[platform]/prev/build-a-backend/storage/ @hdworld11
/src/pages/gen1/[platform]/sdk/storage/ @hdworld11
/src/pages/[platform]/build-a-backend/storage/ @hdworld11

#Troubleshooting
/src/fragments/lib/troubleshooting @josefaidt @aws-amplify/documentation-team
/src/fragments/**/troubleshooting @josefaidt
/src/pages/gen1/[platform]/build-a-backend/troubleshooting/ @josefaidt
/src/pages/gen1/[platform]/prev/build-a-backend/troubleshooting/ @josefaidt
/src/pages/[platform]/build-a-backend/troubleshooting/ @josefaidt

#UI
/src/fragments/ui/auth/react/ @dbanksdesign
/src/pages/gen1/[platform]/build-ui/ @dbanksdesign
/src/pages/gen1/[platform]/prev/build-ui/ @dbanksdesign
/src/pages/[platform]/build-ui/ @dbanksdesign

#Utilities
/src/**/**/utilities @josefaidt @aws-amplify/documentation-team
/src/fragments/**/utilities @josefaidt
/src/pages/gen1/[platform]/build-a-backend/utilities/ @josefaidt
/src/pages/gen1/[platform]/prev/build-a-backend/utilities/ @josefaidt

#Gen2
/src/pages/gen2 @ykethan @jay2113 @chrisbonifacio @aspittel @renebrandel @swaminator @dbanksdesign @josefaidt @ErikCH @arundna @hdworld11
#Deploy and Host
/src/pages/gen1/[platform]/deploy-and-host/ @mauerbac
/src/pages/gen1/[platform]/prev/deploy-and-host/ @mauerbac
/src/pages/[platform]/deploy-and-host/ @mauerbac

#Docs Engineering
/src/components @aws-amplify/documentation-team
/src/constants @aws-amplify/documentation-team
/src/data @aws-amplify/documentation-team
/src/directory @aws-amplify/documentation-team
/src/directory @aws-amplify/documentation-team
/src/directory/directory.mjs @aspittel @swaminator @renebrandel
/src/pages/contribute/ @aws-amplify/documentation-team
/src/pages/_app.tsx @aws-amplify/documentation-team
/src/pages/_document.tsx @aws-amplify/documentation-team
/src/pages/404.tsx @aws-amplify/documentation-team
/src/pages/contribute @aws-amplify/documentation-team
/src/pages/index.tsx @aws-amplify/documentation-team
/src/pages/**/index.tsx @aws-amplify/documentation-team
/src/plugins @aws-amplify/documentation-team
/src/public @aws-amplify/documentation-team
/src/styles @aws-amplify/documentation-team
/src/themes @aws-amplify/documentation-team
Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ updates:
allow:
# Allow updates for any packages starting with "@aws-amplify"
- dependency-name: "@aws-amplify*"
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"
schedule:
interval: "monthly"
10 changes: 5 additions & 5 deletions .github/workflows/add_deleted_assets_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
pull-requests: write # used to add label
steps:
- name: Checkout repository to get the workflow scripts
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Download artifact
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
WORKSPACE: ${{ github.workspace }}
with:
Expand All @@ -26,16 +26,16 @@ jobs:
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const workspace = process.env.WORKSPACE
getArtifact({github, context, fs, artifactName, workspace});
await getArtifact({github, context, fs, artifactName, workspace});
- name: Unzip artifact
run: unzip '${{ env.ARTIFACT_NAME }}.zip'
- name: Add redirects-needed label to PR
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { addLabelForDeletedFiles } = require('./.github/workflows/scripts/add_label_for_deleted_files.js');
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const label = process.env.LABEL_TO_ADD;
addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
await addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
10 changes: 5 additions & 5 deletions .github/workflows/add_redirects_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
pull-requests: write # used to add label
steps:
- name: Checkout repository to get the workflow scripts
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 https://github.com/actions/checkout/commit/c85c95e3d7251135ab7dc9ce3241c5835cc595a9
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Download artifact
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
WORKSPACE: ${{ github.workspace }}
with:
Expand All @@ -26,16 +26,16 @@ jobs:
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const workspace = process.env.WORKSPACE
getArtifact({github, context, fs, artifactName, workspace});
await getArtifact({github, context, fs, artifactName, workspace});
- name: Unzip artifact
run: unzip '${{ env.ARTIFACT_NAME }}.zip'
- name: Add redirects-needed label to PR
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { addLabelForDeletedFiles } = require('./.github/workflows/scripts/add_label_for_deleted_files.js');
const fs = require('fs');
const artifactName = process.env.ARTIFACT_NAME;
const label = process.env.LABEL_TO_ADD;
addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
await addLabelForDeletedFiles({github, context, fs, core, artifactName, label});
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Node.js 20.x
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v.3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install Dependencies
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/check_bundle_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: main
- name: Setup Node.js 20
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install dependencies
Expand All @@ -26,19 +26,19 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
run: ANALYZE=true yarn next-build
- name: Check base bundle size of select pages
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: base-bundle-sizes
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { checkBundleSize } = require('./.github/workflows/scripts/check_bundle_size.js');
return checkBundleSize();
- name: Checkout PR branch
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js 20
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v.3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- name: Install dependencies
Expand All @@ -50,15 +50,15 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
run: ANALYZE=true yarn next-build
- name: Check head bundle size of select pages
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: head-bundle-sizes
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { checkBundleSize } = require('./.github/workflows/scripts/check_bundle_size.js');
return checkBundleSize();
- name: Compare bundle page bundle sizes
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: compare-bundles
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading

0 comments on commit 603f34f

Please sign in to comment.