Skip to content

Commit

Permalink
catch up main and add catch
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Mar 18, 2024
2 parents 4c0f64f + 995664c commit 728f895
Show file tree
Hide file tree
Showing 1,021 changed files with 53,422 additions and 20,020 deletions.
67 changes: 0 additions & 67 deletions .eslintrc

This file was deleted.

15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"prettier" // prettier should always come last
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/no-explicit-any": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error"
}
}
69 changes: 40 additions & 29 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
* @aws-amplify/documentation-team
/src/fragments/ @renebrandel @aws-amplify/documentation-team
/src/pages/ @renebrandel @aws-amplify/documentation-team
/src/fragments/ @renebrandel @dbanksdesign @aws-amplify/documentation-team
/src/pages/ @renebrandel @dbanksdesign @aws-amplify/documentation-team

#CLI
/src/**/cli/ @josefaidt @aws-amplify/documentation-team
Expand All @@ -9,33 +9,33 @@
/src/pages/console/ @dbanksdesign @aws-amplify/documentation-team

#Analytics
/src/**/**/analytics @renebrandel @aws-amplify/documentation-team
/src/**/**/analytics @hdworld11 @dbanksdesign @aws-amplify/documentation-team

#Auth
/src/**/**/auth @renebrandel @aws-amplify/documentation-team
/src/**/**/authz @renebrandel @aws-amplify/documentation-team
/src/**/**/authentication @renebrandel @aws-amplify/documentation-team
/src/**/**/auth @josefaidt @aws-amplify/documentation-team
/src/**/**/authz @josefaidt @renebrandel @aws-amplify/documentation-team
/src/**/**/authentication @renebrandel @josefaidt @aws-amplify/documentation-team

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

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

#Data
/src/**/**/datastore @renebrandel @aws-amplify/documentation-team
/src/**/**/data @renebrandel @aws-amplify/documentation-team

#Debugging
/src/fragments/**/debugging @renebrandel @aws-amplify/documentation-team
/src/fragments/**/debugging @josefaidt @aws-amplify/documentation-team

#Geo
/src/**/**/geo @renebrandel @aws-amplify/documentation-team
/src/**/**/geo @hdworld11 @aws-amplify/documentation-team

#Getting Started
/src/**/start @renebrandel @aws-amplify/documentation-team
/src/**/start @renebrandel @hdworld11 @josefaidt @dbanksdesign @aws-amplify/documentation-team

#GraphQL API
/src/**/**/api-graphql @renebrandel @aws-amplify/documentation-team
Expand All @@ -44,56 +44,67 @@
/src/fragments/sdk/api/**/graphql.mdx @renebrandel @aws-amplify/documentation-team

#In-App Messaging
/src/**/**/in-app-messaging @renebrandel @aws-amplify/documentation-team
/src/**/**/in-app-messaging @hdworld11 @aws-amplify/documentation-team

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

#Interactions
/src/**/**/interactions @renebrandel @aws-amplify/documentation-team
/src/**/**/interactions @josefaidt @aws-amplify/documentation-team

#Logging
/src/fragments/lib/logging @renebrandel @aws-amplify/documentation-team
/src/fragments/lib/logging @hdworld11 @aws-amplify/documentation-team

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

#Project Setup
/src/**/**/project-setup @renebrandel @hdworld11 @aws-amplify/documentation-team
/src/**/**/project-setup @renebrandel @josefaidt @dbanksdesign @hdworld11 @aws-amplify/documentation-team

#PubSub
/src/**/**/pubsub @renebrandel @aws-amplify/documentation-team

#Push Notifications
/src/**/**/push-notifications @renebrandel @aws-amplify/documentation-team
/src/**/**/push-notifications @hdworld11 @dbanksdesign @aws-amplify/documentation-team

#Rest API
/src/**/**/api-rest @renebrandel @aws-amplify/documentation-team
/src/**/**/restapi @renebrandel @aws-amplify/documentation-team
/src/fragments/sdk/api/**/rest.mdx @renebrandel @aws-amplify/documentation-team
/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

#SSR
/src/fragments/lib/ssr @renebrandel @aws-amplify/documentation-team
/src/fragments/lib/ssr @renebrandel @josefaidt @dbanksdesign @aws-amplify/documentation-team

#Storage
/src/**/**/storage @hdworld11 @aws-amplify/documentation-team

#Troubleshooting
/src/fragments/lib/troubleshooting @renebrandel @aws-amplify/documentation-team
/src/fragments/lib/troubleshooting @josefaidt @aws-amplify/documentation-team

#Utilities
/src/**/**/utilities @renebrandel @aws-amplify/documentation-team
/src/**/**/utilities @josefaidt @aws-amplify/documentation-team

#Gen2
/src/pages/gen2 @ykethan @jay2113 @chrisbonifacio @aspittel @renebrandel @swaminator @dbanksdesign @josefaidt @ErikCH @arundna @hdworld11

#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/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/ChooseFilterPage.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/styles @aws-amplify/documentation-team
/src/themes @aws-amplify/documentation-team
/src/utils @aws-amplify/documentation-team
/tasks @aws-amplify/documentation-team
.github @aws-amplify/documentation-team

#Protected Content
/src/protected @reesscot @srquinn21 @Milan-Shah @swaminator
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Which product(s) are affected by this PR (if applicable)?

Which platform(s) are affected by this PR (if applicable)?
- [ ] JS
- [ ] iOS
- [ ] Swift
- [ ] Android
- [ ] Flutter
- [ ] React Native
Expand All @@ -31,8 +31,8 @@ Which platform(s) are affected by this PR (if applicable)?
- [ ] Are any files being deleted with this PR? If so, have the needed redirects been created?

- [ ] Are all links in MDX files using the MDX link syntax rather than HTML link syntax? <br />
_ref: MDX: `[link](https://link.com)`
HTML: `<a href="https://link.com">link</a>`_
_ref: MDX: `[link](https://docs.amplify.aws/)`
HTML: `<a href="https://docs.amplify.aws/">link</a>`_

### When this PR is ready to merge, please check the box below
- [ ] Ready to merge
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 16.x
uses: actions/setup-node@main
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Setup Node.js 20.x
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v.3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16.x
node-version: 20.x
- name: Install Dependencies
run: yarn
- name: Run tests
run: yarn test
run: yarn prebuild && yarn test
- name: Run Build
run: yarn build
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_bundle_size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
ref: main
- name: Setup Node.js 16.x
- name: Setup Node.js 20
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16.x
node-version: 20.x
- name: Install dependencies
run: yarn
- name: Run build and analyze base bundle sizes
Expand All @@ -37,10 +37,10 @@ jobs:
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js 16.x
- name: Setup Node.js 20
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v.3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16.x
node-version: 20.x
- name: Install dependencies
run: yarn
- name: Run build and analyze head bundle sizes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check_for_broken_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Node.js 16.x
- name: Setup Node.js 20
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
with:
node-version: 16.x
node-version: 20.x
- name: Install Dependencies
run: yarn
- name: Run Link Checker
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/check_for_console_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,27 @@ on:
types: [opened, synchronize]
permissions:
contents: read
<<<<<<< HEAD
=======
id-token: write
>>>>>>> console-error-pr-check
jobs:
CheckConsoleErrors:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
<<<<<<< HEAD
- name: Setup Node.js 16.x
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 https://github.com/actions/setup-node/commit/e33196f7422957bea03ed53f6fbb155025ffc7b8
with:
node-version: 16.x
=======
- name: Setup Node.js 20.x
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 https://github.com/actions/setup-node/commit/e33196f7422957bea03ed53f6fbb155025ffc7b8
with:
node-version: 20.x
>>>>>>> console-error-pr-check
- name: Install Dependencies
run: yarn
- name: Run Build
Expand All @@ -23,11 +34,19 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096
- name: Run Server
run: |
<<<<<<< HEAD
python -m http.server 3000 -d ${{ vars.BUILD_DIR }} &
sleep 5
- name: Run Console Errors
id: consoleErrors
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
=======
node ./node_modules/.bin/serve client/www/next-build --no-request-logging &
sleep 5
- name: Run Console Errors
id: consoleErrors
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 https://github.com/actions/github-script/commit/60a0d83039c74a4aee543508d2ffcb1c3799cdea
>>>>>>> console-error-pr-check
with:
result-encoding: string
script: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check_for_new_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
- name: Get count of added files
uses: actions/[email protected].0
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
id: set-added-files-count
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -25,7 +25,7 @@ jobs:
run: yarn add [email protected] -W # help verify CODEOWNERS
- name: Check file against CODEOWNERS
if: ${{ steps.set-added-files-count.outputs.result > 0 }}
uses: actions/[email protected].0
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
env:
CURRENT_BRANCH: ${{ github.head_ref }}
CURRENT_REPO: ${{ github.repository }}
Expand Down
Loading

0 comments on commit 728f895

Please sign in to comment.