Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script and action to check for certain console errors #5966

Closed
wants to merge 267 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
31f7f06
Updated wording and small edits
heatheramz Sep 25, 2023
676ffe7
docs (js): Copyedited Set up Amplify Auth guide
hibler13 Sep 25, 2023
b9348c8
additional clarifications
nadetastic Sep 26, 2023
b9b71ba
Copyedit of Auth guide for sign-in, sign-up, and sign-out
hibler13 Sep 26, 2023
1a7efbd
Merge branch 'main' into src/pages/lib/auth/emailpassword/q/platform
hibler13 Sep 26, 2023
9325019
additional clarifications
nadetastic Sep 26, 2023
f704ee0
additional changes
nadetastic Sep 26, 2023
9a3791f
additional changes
nadetastic Sep 26, 2023
8f0aa4a
Merge pull request #5940 from nadetastic/JTBD-Auth-MFA
nadetastic Sep 26, 2023
94b9f14
Merge pull request #5941 from nadetastic/JTBD-Auth-ManageUserSession
nadetastic Sep 26, 2023
2217584
add pr version of link checker script
Sep 27, 2023
3eea134
Updated authenticator callout for react native
heatheramz Sep 27, 2023
f8a6123
Updating directory title
heatheramz Sep 27, 2023
06768e3
Removed comment
hibler13 Sep 27, 2023
c1e5e9c
Updates to delete user guide
heatheramz Sep 27, 2023
89ca492
Minor update to note testing
heatheramz Sep 27, 2023
5150e8a
Merge branch 'main' into src/pages/lib/auth/getting-started/q/platform
katiegoines Sep 27, 2023
4d09693
Removed comment markers
hibler13 Sep 27, 2023
e1e5994
convert server to use serve instead of next-start
Sep 28, 2023
ca1f516
add static server for testing
Sep 28, 2023
b69702a
update broken link for pr script
Sep 28, 2023
986e09e
first round of changes
nadetastic Sep 29, 2023
936e98f
update link checker script, add dev mode and pr link checker
Sep 29, 2023
51024b5
update link script
Sep 29, 2023
3bad97d
remove unused code
Sep 29, 2023
2774f49
Merge branch 'main' into update-link-script
jacoblogan Oct 3, 2023
7af0471
final changes
nadetastic Oct 4, 2023
4198e45
Merge pull request #5964 from nadetastic/JTBD-Auth-Social-SignIn
nadetastic Oct 4, 2023
d477acf
latest changes
nadetastic Oct 4, 2023
26c421a
Merge pull request #5965 from nadetastic/JTBD-Auth-ManageProfile
nadetastic Oct 4, 2023
91d2416
initial changes
nadetastic Oct 4, 2023
da6f332
add axios timeout
Oct 5, 2023
3f808a7
merge main
Oct 5, 2023
dea4470
script and action to check for certain console errors
Oct 5, 2023
da37125
update workflow name
Oct 5, 2023
ece255a
add serve package
Oct 5, 2023
7681f8f
remove unused command
Oct 5, 2023
bfb517d
add localhost default
Oct 5, 2023
36341ce
final changes
nadetastic Oct 5, 2023
06dd5b3
Merge pull request #5968 from nadetastic/JTBD-Auth-Password
nadetastic Oct 5, 2023
0697042
Updating directory name
heatheramz Oct 5, 2023
287e73d
final changes
nadetastic Oct 5, 2023
b056916
Merge pull request #5969 from nadetastic/JTBD-Auth-Delete-User
nadetastic Oct 5, 2023
16ff4fd
Staging for auth events content
heatheramz Oct 6, 2023
874f474
Merge branch 'main' into update-link-script
jacoblogan Oct 6, 2023
76eb5c6
remove choose filter filtering
Oct 8, 2023
e5f5a8c
Merge branch 'update-link-script' of github.com:aws-amplify/docs into…
Oct 8, 2023
4b6607f
update console error script
Oct 8, 2023
377a32b
log error messages
Oct 8, 2023
5fdbe66
Merge branch 'main' into console-error-script
jacoblogan Oct 8, 2023
4db2f8a
update links
Oct 9, 2023
a233126
correct directory.mjs entry add react-native lib-v1 base page
Oct 9, 2023
d271e79
Merge branch 'main' into update-links
jacoblogan Oct 9, 2023
aa63907
Update overview.mdx
renebrandel Oct 9, 2023
4a90dee
update script to exclude known errors and run against all pages on th…
Oct 9, 2023
c17f870
remove permissions
Oct 9, 2023
93f44af
Merge pull request #5985 from aws-amplify/renebrandel-patch-2
jacoblogan Oct 10, 2023
8e9b41b
Merge branch 'main' into update-links
jacoblogan Oct 10, 2023
ce998d7
Merge pull request #5984 from aws-amplify/update-links
jacoblogan Oct 10, 2023
8d5303e
Merge branch 'main' into update-link-script
jacoblogan Oct 10, 2023
01c0c71
update pathmap default
Oct 10, 2023
fd578d6
Merge branch 'update-link-script' of github.com:aws-amplify/docs into…
Oct 10, 2023
4281cc7
GH action to check bundlesize of PR (#5986)
katiegoines Oct 10, 2023
1f277c7
adding needed index files
Oct 10, 2023
6ac9bc8
update-link-script
Oct 10, 2023
7f577d0
Update csp (#5987)
timngyn Oct 10, 2023
f1801bd
Merge branch 'main' into update-link-script
timngyn Oct 10, 2023
37d957d
Merge pull request #5950 from aws-amplify/update-link-script
jacoblogan Oct 10, 2023
d1395c4
update index script
Oct 10, 2023
4907da6
update write script
Oct 11, 2023
4757a54
add missing index files
Oct 11, 2023
86b2f9c
final RN changes
nadetastic Oct 11, 2023
6891be7
Merge pull request #5997 from nadetastic/JTBD-Auth-Social-SignIn
nadetastic Oct 11, 2023
62f74e7
revert ssg revert
Oct 11, 2023
6893c17
Merge branch 'revert-revert-ssg' into new-ssg
Oct 11, 2023
f56a526
add static generation to new js docs
Oct 11, 2023
e4f438a
add static paths to page
Oct 11, 2023
bcd27c6
remove unlinked and unbuilt pages
Oct 11, 2023
f87b72c
adding highlight for CDK support on main page
renebrandel Oct 11, 2023
97cab46
Merge pull request #6001 from aws-amplify/renbran/cdk-highlight
renebrandel Oct 11, 2023
ac33e77
update pages to match filters and generate the same index files as main
Oct 11, 2023
383b840
Added What's New Banner
renebrandel Oct 11, 2023
f333b57
Merge branch 'main' into renbran/home-banner
renebrandel Oct 11, 2023
f1cfefa
addressed based on Janaina's feedback
renebrandel Oct 11, 2023
5bec31d
Merge pull request #6002 from aws-amplify/renbran/home-banner
renebrandel Oct 11, 2023
8d75c7b
merge main
Oct 11, 2023
4264a4a
Update data-modeling.mdx
renebrandel Oct 12, 2023
b035474
Merge pull request #6004 from aws-amplify/renebrandel-patch-2
renebrandel Oct 12, 2023
78afcf1
update table in fragment to resolve hydration issue
Oct 12, 2023
0e7bd37
render contribute getting started text in spans
Oct 13, 2023
35cdd61
Removed inline comment and minor edits
heatheramz Oct 13, 2023
fc6e043
update branch with main
heatheramz Oct 13, 2023
1f74849
chore(flutter): remove null safety references (#5998)
haverchuck Oct 13, 2023
2bb4fc9
Removed mkdwn comments and minor edits and links
heatheramz Oct 13, 2023
30e9765
Update branch from main
heatheramz Oct 13, 2023
62bf209
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 13, 2023
5534ba6
Merge password and user profile branches
heatheramz Oct 13, 2023
1254abc
Updated directory
heatheramz Oct 13, 2023
d56a530
Update versions.ts
gpanshu Oct 13, 2023
094cab6
Merge pull request #6012 from aws-amplify/update-android-version-2.14.0
gpanshu Oct 16, 2023
19d2842
Updates for manage user profiles per comments
heatheramz Oct 16, 2023
c8c313f
Updated password mgmt per comments
heatheramz Oct 16, 2023
97c16c2
Removed mrkdwn comment and minor edits
heatheramz Oct 16, 2023
52557cf
update branch from main
heatheramz Oct 16, 2023
777d8c6
Update-project-setup (#6007)
Oct 16, 2023
bd67307
Merge branch 'main' into src/pages/lib/auth/emailpassword/q/platform
katiegoines Oct 16, 2023
df5a705
Merge branch 'main' into src/pages/lib/auth/getting-started/q/platform
katiegoines Oct 16, 2023
e00fd83
chore(deps): bump @aws-amplify/amplify-cli-core from 4.2.7 to 4.2.10 …
dependabot[bot] Oct 16, 2023
eb67339
Removed mkdwn comments and small edits
heatheramz Oct 16, 2023
16fecde
update branch from main
heatheramz Oct 16, 2023
f393a22
Add custom analytics event for the "What's New" banner (#6006)
timngyn Oct 16, 2023
7dff916
Updated with react-native links
heatheramz Oct 16, 2023
eeb89d2
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 16, 2023
32c0b6a
update home page to update page context
Oct 16, 2023
cc836cb
Removed mkdwn comment and minor edit
heatheramz Oct 16, 2023
a67bcd8
Merge branch 'main' into src/pages/lib/auth/getting-started/q/platform
katiegoines Oct 16, 2023
fc8d54f
Merge branch 'main' into src/pages/lib/auth/emailpassword/q/platform
katiegoines Oct 16, 2023
a8b2284
update branch from main
heatheramz Oct 16, 2023
7163466
Update directory
heatheramz Oct 16, 2023
b35d9e3
Updating directory
heatheramz Oct 16, 2023
2f09a6c
Fixing directory
heatheramz Oct 16, 2023
1aba20e
Fix directory update
heatheramz Oct 16, 2023
484b57c
Update directory
heatheramz Oct 16, 2023
b64fab4
fix: updating @babel/traverse (#6025)
katiegoines Oct 16, 2023
1c87119
update base lib, sdk, and guides pages
Oct 16, 2023
7e6b71b
final changes
nadetastic Oct 17, 2023
83b98ee
Merge pull request #6026 from nadetastic/JTBD-Auth-Events
nadetastic Oct 17, 2023
2ca08ed
update next/previous styles
Oct 17, 2023
f884da2
Merge branch 'main' into src/pages/lib/auth/emailpassword/q/platform
hibler13 Oct 17, 2023
b6ab9ec
Removed mkdwn and minor edits
heatheramz Oct 17, 2023
b73c5b6
update branch from main
heatheramz Oct 17, 2023
4bb012b
Merge pull request #5939 from aws-amplify/src/pages/lib/auth/emailpas…
hibler13 Oct 17, 2023
558c85b
Amplify Android API Relational Models (#6020)
tylerjroach Oct 17, 2023
768a5d3
Update CODEOWNERS to exclude documentation team from all files (#6030)
timngyn Oct 17, 2023
f6e218d
chore: update auth docs now that cdk tokens are supported for adminRo…
alharris-at Oct 17, 2023
8434660
Update src/pages/cli/graphql/authorization-rules.mdx
renebrandel Oct 17, 2023
44bedf4
fix: update example naming
alharris-at Oct 17, 2023
b3ac743
Merge pull request #6032 from aws-amplify/update-cdk-docs
renebrandel Oct 17, 2023
234aa84
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 17, 2023
2a6495f
Revert "Update CODEOWNERS to exclude documentation team from all file…
timngyn Oct 18, 2023
acb85c7
merge main
Oct 18, 2023
26855a3
update new page to include ssg required exports
Oct 18, 2023
b34fec6
update sample amplifyconfiguration json file (#5874)
phantumcode Oct 18, 2023
5218b04
Merge branch 'main' into new-ssg
jacoblogan Oct 18, 2023
3cae4eb
add choose your filter page
Oct 18, 2023
8058e56
filter out all but android (#6036)
katiegoines Oct 18, 2023
34ab237
Merge branch 'main' into new-ssg
jacoblogan Oct 18, 2023
0714652
Merge pull request #5999 from aws-amplify/new-ssg
jacoblogan Oct 18, 2023
d02ca1a
Update Amplify Android Version
tylerjroach Oct 18, 2023
dabe5db
Merge pull request #6038 from aws-amplify/tylerjroach-patch-2
tylerjroach Oct 19, 2023
f8aab85
fix: Fix CDK types in overview
palpatim Oct 20, 2023
b2dee8a
Merge pull request #6049 from aws-amplify/palpatim.fix.cdk-types
renebrandel Oct 20, 2023
8c236a1
chore(Auth): add singedIn and signedOut Hub events in v6 (#6048)
kvramyasri7 Oct 23, 2023
f39de14
chore: update 'guest' to `guest` (#5981)
kvramyasri7 Oct 23, 2023
9367ad6
update algolia index function to remove INTEGRATION_FILTER_OPTIONS fr…
Oct 23, 2023
7444783
Update src/pages/lib/auth/manageusers/q/platform/[platform].mdx
Oct 23, 2023
b6e1ee3
Update src/pages/lib/auth/manageusers/q/platform/[platform].mdx
Oct 23, 2023
945d726
Update src/pages/lib/auth/password_management/q/platform/[platform].mdx
Oct 23, 2023
493ef81
Update src/pages/lib/auth/password_management/q/platform/[platform].mdx
Oct 23, 2023
c4e58cd
Update src/pages/lib/auth/manageusers/q/platform/[platform].mdx
Oct 23, 2023
643a2fe
Merge pull request #6060 from aws-amplify/algolia-index
jacoblogan Oct 23, 2023
e1c2315
Apply suggestions for password title update
heatheramz Oct 24, 2023
20fe3be
Update recap based on review
heatheramz Oct 24, 2023
2a08357
Update meta content in headers
heatheramz Oct 25, 2023
0da8ce8
Updating with main
heatheramz Oct 25, 2023
ea4520b
Change instance of my to your
heatheramz Oct 25, 2023
a3a7816
Merge branch 'main' into src/pages/lib/auth/getting-started/q/platform
hibler13 Oct 25, 2023
b3f50c5
Merge pull request #5936 from hibler13/src/pages/lib/auth/getting-sta…
hibler13 Oct 25, 2023
e15cfad
Merge branch 'main' into JTBD-Auth-Password
kvramyasri7 Oct 25, 2023
8d2b977
Adding 4 guides and updating directory
heatheramz Oct 25, 2023
89ca3de
Updating directory entry for password_management
heatheramz Oct 25, 2023
baee81a
Updating from feedback and adding react-native
heatheramz Oct 25, 2023
2776cf0
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 25, 2023
2825fc4
Adding index page for new page
heatheramz Oct 25, 2023
fc47a79
Updating per feedback
heatheramz Oct 25, 2023
51d0dad
update branch with main
heatheramz Oct 25, 2023
1f08818
Merge pull request #6010 from aws-amplify/JTBD-Auth-Password
heatheramz Oct 25, 2023
0011c4a
update the choose a filter component to try and pull filters from dir…
Oct 25, 2023
d3e82f7
Punctuation edits
heatheramz Oct 25, 2023
cc72dbf
don't parse BlockSwitchers for headers
Oct 25, 2023
3b490af
Removing comments, minor edits, added react-native
heatheramz Oct 25, 2023
1b1e9fa
update branch with main
heatheramz Oct 25, 2023
d318380
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 25, 2023
8927143
Merge branch 'main' into choose-a-filter-filters
jacoblogan Oct 25, 2023
d0c4049
Merge branch 'main' into toc-filtering
jacoblogan Oct 25, 2023
b738d46
Updating header and feedback
heatheramz Oct 26, 2023
2a9faab
Remove SSR link
heatheramz Oct 26, 2023
2e8a7f7
formatting
Oct 26, 2023
8c83cdb
Set isExternal to true for whats new banner (#6077)
timngyn Oct 26, 2023
85d562e
Merge branch 'main' into toc-filtering
timngyn Oct 26, 2023
068263d
Merge branch 'main' into choose-a-filter-filters
jacoblogan Oct 26, 2023
8ae91b0
Merge pull request #6074 from aws-amplify/choose-a-filter-filters
jacoblogan Oct 26, 2023
c1f35f7
Merge branch 'main' into toc-filtering
jacoblogan Oct 26, 2023
9bb34fd
Merge pull request #6076 from aws-amplify/toc-filtering
jacoblogan Oct 26, 2023
7313cb2
add debugging line to ampliy.yml
Oct 27, 2023
72c1b0d
Merge pull request #6093 from aws-amplify/hosting-debug
jacoblogan Oct 27, 2023
db0db53
Update next config (#6095)
timngyn Oct 27, 2023
cc1d8b7
applied "connect" changes
renebrandel Oct 30, 2023
931a5c2
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 30, 2023
f57e683
Updated per feedback
heatheramz Oct 30, 2023
1156362
update branch with main
heatheramz Oct 30, 2023
ce665f9
Merge pull request #6073 from aws-amplify/JTBD-Data-Connect-CRUD-Subs…
heatheramz Oct 30, 2023
2f9d4c0
Release Amplify Android 2.14.2, also reference AppSync SDK v3.4.0 whi…
tjleing Oct 30, 2023
fe29e26
updating branch from main
heatheramz Oct 30, 2023
c99a803
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 30, 2023
bc1f5cb
Merge branch 'main' of https://github.com/aws-amplify/docs into JTBD-…
heatheramz Oct 30, 2023
23b4519
Update src/pages/lib/auth/manage-session/q/platform/[platform].mdx
cwomack Oct 30, 2023
661ad0c
Update src/pages/lib/auth/mfa/q/platform/[platform].mdx
cwomack Oct 30, 2023
90b048a
Merge branch 'main' into JTBD-Auth-MFA
heatheramz Oct 30, 2023
3aad8c4
Merge branch 'main' into JTBD-Auth-Delete-User
heatheramz Oct 30, 2023
be158a0
gen ai guide
aspittel Oct 30, 2023
de4c487
Merge pull request #6022 from aws-amplify/JTBD-Auth-MFA
heatheramz Oct 30, 2023
4e8ac00
Merge branch 'main' into JTBD-Auth-Social-SignIn
heatheramz Oct 30, 2023
c0a7569
Merge pull request #6029 from aws-amplify/JTBD-Auth-Social-SignIn
heatheramz Oct 30, 2023
bbe2d9a
Merge branch 'main' into JTBD-Auth-Events
heatheramz Oct 30, 2023
5fc3582
Merge pull request #6080 from aws-amplify/JTBD-Auth-Events
heatheramz Oct 31, 2023
6f05067
Merge branch 'main' into JTBD-Auth-ManageUserSession
heatheramz Oct 31, 2023
23dd203
Merge branch 'main' into JTBD-Auth-Delete-User
israx Oct 31, 2023
20ff0ed
fix spelling
aspittel Oct 31, 2023
7e7b83c
Adding redirects tracking file and update README (#6082)
katiegoines Oct 31, 2023
a472406
Merge branch 'main' into JTBD-Auth-Delete-User
timngyn Oct 31, 2023
93e530b
Merge branch 'main' into JTBD-Auth-ManageUserSession
timngyn Oct 31, 2023
40da11d
Merge pull request #6018 from aws-amplify/JTBD-Auth-ManageUserSession
sowmya-kota07 Oct 31, 2023
9523f85
Merge branch 'main' into JTBD-Auth-Delete-User
heatheramz Oct 31, 2023
e6fe081
Merge pull request #6024 from aws-amplify/JTBD-Auth-Delete-User
heatheramz Oct 31, 2023
b507ab9
add standalone how amplify works page (#6051)
katiegoines Oct 31, 2023
c69806e
feat: remove docs team approval for spelling changes using codeowners
sowmya-kota07 Oct 31, 2023
23789f8
chore: update readme for cspell check
sowmya-kota07 Oct 31, 2023
e326d8d
Merge pull request #6141 from aws-amplify/cspell_permissions
sowmya-kota07 Nov 1, 2023
a076247
Revert "Chore: Update codeowners file to exclude documentation team f…
reesscot Nov 1, 2023
f198f28
Merge pull request #6146 from aws-amplify/revert-6141-cspell_permissions
reesscot Nov 1, 2023
651fc7b
chore: update codeowner for console
sowmya-kota07 Nov 1, 2023
21ff4ed
Merge pull request #6147 from aws-amplify/code-owner
sowmya-kota07 Nov 1, 2023
30a1796
fix(flutter/analytics): temporarily remove broken url (#6177)
haverchuck Nov 2, 2023
243f249
Update how-amplify-works.mdx
renebrandel Nov 3, 2023
16e343f
Update how-amplify-works.mdx
renebrandel Nov 3, 2023
045eaa2
Merge pull request #6186 from aws-amplify/renebrandel-patch-4
renebrandel Nov 3, 2023
6d73943
fix: <svg> attribute height: Expected length, unset error
sowmya-kota07 Nov 6, 2023
c0782d2
update lock file
Nov 6, 2023
6a7e3fa
update lock file to console-error-script branch
Nov 6, 2023
19c984e
Merge pull request #6215 from aws-amplify/consoleErrors
jacoblogan Nov 6, 2023
4810f3f
fix: <svg> attribute height: Expected length, unset.
sowmya-kota07 Nov 6, 2023
62f97e8
Merge pull request #6216 from aws-amplify/svg-fix
sowmya-kota07 Nov 6, 2023
8eb0ffa
fix: add alternate property for images to fix the server responded wi…
sowmya-kota07 Nov 6, 2023
eed2dd4
Merge pull request #6220 from aws-amplify/404-server
sowmya-kota07 Nov 7, 2023
460578b
Merge branch 'main' into main
jpilomia Nov 9, 2023
20d1805
Merge pull request #6117 from aspittel/main
jpilomia Nov 9, 2023
6a4eddc
Update versions.ts
gpanshu Nov 9, 2023
ebacdcc
Merge pull request #6282 from aws-amplify/gpanshu-patch-1
gpanshu Nov 10, 2023
b26f250
Merge branch 'main' into console-error-script
jacoblogan Nov 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/src/**/cli/ @josefaidt @aws-amplify/documentation-team

#Studio
/src/pages/console/ @wrpeck @aws-amplify/documentation-team
/src/pages/console/ @dbanksdesign @aws-amplify/documentation-team

#Analytics
/src/**/**/analytics @abdallahshaban557 @aws-amplify/documentation-team
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/check_bundle_size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Check Bundle Size
on:
pull_request:
branches: [main]
jobs:
checkBundleSizeChange:
permissions:
pull-requests: read
name: Check whether PR increases bundle size more than 5%
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
ref: main
- name: Setup Node.js 16.x
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16.x
- name: Install dependencies
run: yarn
- name: Run build and analyze base bundle sizes
env:
CURRENT_BRANCH: ${{ github.base_ref }}
CURRENT_REPO: ${{ github.repository }}
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
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
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js 16.x
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v.3.8.1 https://github.com/actions/setup-node/commit/5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: 16.x
- name: Install dependencies
run: yarn
- name: Run build and analyze head bundle sizes
env:
CURRENT_BRANCH: ${{ github.head_ref }}
CURRENT_REPO: ${{ github.repository }}
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
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
id: compare-bundles
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { compareBundles } = require('./.github/workflows/scripts/check_bundle_size.js');
const baseBundles = ${{ steps.base-bundle-sizes.outputs.result }}
const headBundles = ${{ steps.head-bundle-sizes.outputs.result }}
return await compareBundles(baseBundles, headBundles)
- name: Fail if bundle size growth exceeds 5% on any of the selected pages
if: ${{ steps.compare-bundles.outputs.result > 0 }}
run: exit 1
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 @@ -24,8 +24,8 @@ jobs:
with:
result-encoding: string
script: |
const { checkLinks } = require('./tasks/link-checker.js');
return await checkLinks();
const { checkProdLinks } = require('./tasks/link-checker.js');
return await checkProdLinks();
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
with:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/check_for_console_errors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CheckConsoleErrors
on:
pull_request:
branches: [main]
types: [opened, synchronize]
permissions:
contents: read
id-token: write
jobs:
CheckConsoleErrors:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
- 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: Install Dependencies
run: yarn
- name: Run Build
run: yarn build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Run Server
run: |
node ./node_modules/.bin/serve client/www/next-build --no-request-logging &
sleep 5
- name: Run Console Errors
id: consoleErrors
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
with:
result-encoding: string
script: |
const { consoleErrors } = require('./tasks/console-errors.js');
return await consoleErrors();
- name: Fail if console errors have been found
if: ${{ steps.consoleErrors.outputs.result }}
run: exit 1
36 changes: 36 additions & 0 deletions .github/workflows/check_pr_for_broken_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CheckPRLinks
on:
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
CheckPRLinks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 https://github.com/actions/checkout/commit/f43a0e5ff2bd294095638e18286ca9a3d1956744
- 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: Install Dependencies
run: yarn
- name: Run Build
run: yarn build
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Run Server
run: |
node ./node_modules/.bin/serve client/www/next-build --no-request-logging &
sleep 5
- name: Run Link Checker
id: checkLinks
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 https://github.com/actions/github-script/commit/d7906e4ad0b1822421a7e6a35d5ca353c962f410
with:
result-encoding: string
script: |
const { checkDevLinks } = require('./tasks/link-checker.js');
return await checkDevLinks();
- name: Fail if broken links have been found
if: ${{ steps.checkLinks.outputs.result }}
run: exit 1
47 changes: 47 additions & 0 deletions .github/workflows/scripts/check_bundle_size.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module.exports = {
checkBundleSize: () => {
const fs = require('fs');
const jsonString = fs.readFileSync('.github/analyze/bundles.json');
const data = JSON.parse(jsonString);
const pagesToCheck = [
'/',
'/cli/start/install',
'/lib/auth/getting-started/q/platform/[platform]',
'/start',
'/cli'
];
const bundleSizes = [];
data.pages.filter((page) => {
if (pagesToCheck.includes(page.label)) {
bundleSizes.push({
page: page.label,
gzipSize: page.gzipSize,
parsedSize: page.parsedSize,
statSize: page.statSize,
totalGzipSize: page.totalGzipSize,
totalParsedSize: page.totalParsedSize,
totalStatSize: page.totalStatSize
});
}
});
return bundleSizes;
},

compareBundles: (baseBundles, headBundles) => {
const fails = [];
baseBundles.forEach((basePage) => {
headBundles.forEach((headPage) => {
if (
basePage.page == headPage.page &&
basePage.parsedSize * 1.05 < headPage.parsedSize
) {
fails.push(basePage.page);
}
});
});
console.log(
`The bundle size of ${fails} increased by more than 5% with this PR`
);
return fails.length;
}
};
60 changes: 33 additions & 27 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@

1. [Fork this repo](/fork) and `git clone` it.
2. In your terminal, navigate to the repo from where it was just cloned. This should be located at the `/docs` directory.
2. From your command line, run `yarn && yarn dev`.
3. <http://localhost:3000/> should open automatically.
3. From your command line, run `yarn && yarn dev`.
4. <http://localhost:3000/> should open automatically.

## How to contribute

We welcome contributions to the documentation site! Here's how to do it:

1. Follow our [styleguide](https://github.com/aws-amplify/docs/blob/main/STYLEGUIDE.md), especially if writing longer pieces.
2. Verify your changes locally.
2. Verify your changes locally.
3. Make a PR to our `main` branch.
1. Please include any [issues](https://github.com/aws-amplify/docs/issues) your PR addresses.
2. If any files have been deleted with your PR, please indicate that `redirects are needed` in your PR description and/or add the `redirects-needed` label.
1. Please include any [issues](https://github.com/aws-amplify/docs/issues) your PR addresses.
2. If any files have been deleted with your PR, please add the redirects required to [`redirects.json`](https://github.com/aws-amplify/docs/blob/main/redirects.json) and ensure that the `redirects-needed` label has been added.
- Please see the [Amplify Hosting user guide](https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html) for guidance on values and ordering.
- Please note that there is a manual step for the Docs Engineering team to complete before the redirects are live.

**What's next?** After your PR is reviewed and all tests pass, it will be merged and the branch will be deleted.

Expand All @@ -48,50 +50,51 @@ IMPORTANT: Every page has to have a `title` and `description` meta field.
The markdown body is parsed as [MDX](https://mdxjs.com/) and can include any valid HTML or JSX.

### Fragments

To incorporate new platform-specific content within a page, please use [Inline Filters](https://github.com/aws-amplify/docs/blob/main/Readme.md#inline-filters).

When editing content that hasn't been migrated, you may see the following pattern:

```jsx
import js from "/src/fragments/lib/datastore/js/conflict.mdx";
import js from '/src/fragments/lib/datastore/js/conflict.mdx';

<Fragments fragments={{js: js}} />;
<Fragments fragments={{ js: js }} />;
```

This pattern incorporates fragment files into a page and conditionally renders content based off selected platform added as a condition to the `Fragments` tag.

This fragment would exist in: `pages/src/fragments/lib/datastore/js/conflict.mdx`

### Inline Filters
### Inline Filters

We are incorporating the use of `<InlineFilters>` to add platform-specific content within the context of one page rather than in fragments. These filters allow you to still specify content by platform and they reference platforms using the same naming convention as our fragments. You can enclose your platform-specific content by updating the opening tag:

````md
```md
<InlineFilter filters={["js", "react-native", "android", "ios", "flutter"]}>

</InlineFilter>
````
```

If you are updating content on a page, please note any inline filter tags which may be indicating a specific platform as you make your edits.

### Accordion
### Accordion

`Accordion` This single-use accordion hides peripheral content until the reader selects to expand the section. This helps you keep your pages focused on the need-to-know information upfront, while also providing readers an option to dive deeper when they choose. These accordions can provide peripheral content such as additional context for beginners, advanced deep dives for those who want to off-road, and troubleshooting guidance for errors users may encounter.

Here is an example of its usage:

````md
```md
<Accordion title='Review recommended accordion usage' headingLevel='4' eyebrow='Learn more'>

- Title – Make your title descriptive to help readers know what the accordion contains before they click.
- Heading Level – Keep the heading level consistent with your page hierarchy.
- Eyebrow – Update this text to reflect the purpose of the accordion. We recommend:
- Learn more – used to add additional context that is not needed upfront but is useful for users to review when they choose.
- Troubleshooting – used when adding details to troubleshoot specific errors within context.
- Walkthrough – used when adding a step-by-step example for those who need more direct guidance.
- Learn more – used to add additional context that is not needed upfront but is useful for users to review when they choose.
- Troubleshooting – used when adding details to troubleshoot specific errors within context.
- Walkthrough – used when adding a step-by-step example for those who need more direct guidance.

</Accordion>
````
```

### Tab-switchable Blocks

Expand All @@ -103,15 +106,15 @@ Here is an example of its usage:
<Block name="JavaScript">

```js
const a = "a";
const a = 'a';
```

</Block>

<Block name="TypeScript">

```ts
const a: "a" = "a";
const a: 'a' = 'a';
```

</Block>
Expand All @@ -130,23 +133,26 @@ let mut a = String::from("a");
## Debug client-side code with browser developer tools

### Prerequisites
- [React Dev Tools](https://reactjs.org/tutorial/tutorial.html#developer-tools)
- [Chrome](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
- [Firefox](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/)

- [React Dev Tools](https://reactjs.org/tutorial/tutorial.html#developer-tools)
- [Chrome](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
- [Firefox](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/)

### To debug

1. Set up the repo and run it with the `dev` script mentioned above in the "Getting Started" section.
2. On your localhost page, go to the page with the React component you want to debug and open up the developer tools.
3. To know which source file to breakpoint on, we need to find the name of the component first.
- Open up the dev tools and use the react dev tools to find the component. Do this by using the "Select an element on the page to inspect it" tool under the "Components" tab.

- Search for the variable/component name inside the source code to find the file you want to debug.
- Open up the dev tools and use the react dev tools to find the component. Do this by using the "Select an element on the page to inspect it" tool under the "Components" tab.

- Search for the variable/component name inside the source code to find the file you want to debug.

- Place the breakpoint inside the file under the "Sources" tab in the browser's dev tools.
- Note that since the Amplify Docs site is built with nextjs, file paths will start with "`webpack://_N_E/./`"

- Place the breakpoint inside the file under the "Sources" tab in the browser's dev tools.
- Note that since the Amplify Docs site is built with nextjs, file paths will start with "`webpack://_N_E/./`"
4. Refresh your localhost site and the breakpoint should hit in the browser's dev tools. You should be able to debug the code.

Another way to find which file you want to debug is to search for strings/paragraphs seen in Amplify docs site. Search for the strings in your code editor and you'll find that they will be in a `.mdx` file. You should see the components that are being rendered and be able to find the file name you want to debug.


More info on debugging can be found here: https://nextjs.org/docs/advanced-features/debugging
1 change: 1 addition & 0 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ frontend:
build:
commands:
- echo "BUILD_ENV=$BUILD_ENV" >> .env.custom
- node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'
- NODE_ENV=production yarn build:release
- if [ "${AWS_BRANCH}" = "main" ]; then node tasks/build-algolia-search.mjs; fi
artifacts:
Expand Down
4 changes: 3 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,9 @@
"cloudwatchlogs",
"userids",
"xmark",
"refreshable"
"refreshable",
"querytransfers",
"generatemodelsforlazyloadandcustomselectionset"
],
"flagWords": ["hte", "full-stack", "Full-stack", "Full-Stack", "sudo"],
"patterns": [
Expand Down
2 changes: 1 addition & 1 deletion customHttp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ customHeaders:
- key: 'X-Content-Type-Options'
value: 'nosniff'
- key: 'Content-Security-Policy'
value: "upgrade-insecure-requests; default-src 'none'; prefetch-src 'self'; style-src 'self' 'unsafe-inline' *.shortbread.aws.dev; font-src 'self'; frame-src 'self' https://www.youtube-nocookie.com https://aws.demdex.net https://dpm.demdex.net; connect-src 'self' *.shortbread.aws.dev https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/ https://d2c.aws.amazon.com https://vs.aws.amazon.com https://*.algolia.net https://*.algolianet.com *.amazonaws.com https://aws.amazon.com/ https://d2c-alpha.dse.marketing.aws.a2z.com https://aws-mktg-csds-alpha.integ.amazon.com/ https://alpha.d2c.marketing.aws.dev/ https://aa0.awsstatic.com/; img-src 'self' https://img.shields.io https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/ https://alpha.d2c.marketing.aws.dev/ https://aa0.awsstatic.com/; media-src 'self'; script-src 'self' *.shortbread.aws.dev https://a0.awsstatic.com/ https://aa0.awsstatic.com/ https://alpha.d2c.marketing.aws.dev/ https://d2c.aws.amazon.com/;"
value: "upgrade-insecure-requests; default-src 'none'; style-src 'self' 'unsafe-inline' *.shortbread.aws.dev; font-src 'self'; frame-src 'self' https://www.youtube-nocookie.com https://aws.demdex.net https://dpm.demdex.net; connect-src 'self' *.shortbread.aws.dev https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/ https://d2c.aws.amazon.com https://vs.aws.amazon.com https://*.algolia.net https://*.algolianet.com *.amazonaws.com https://aws.amazon.com/ https://d2c-alpha.dse.marketing.aws.a2z.com https://aws-mktg-csds-alpha.integ.amazon.com/ https://alpha.d2c.marketing.aws.dev/ https://aa0.awsstatic.com/; img-src 'self' https://img.shields.io https://amazonwebservices.d2.sc.omtrdc.net https://aws.demdex.net https://dpm.demdex.net https://cm.everesttech.net https://a0.awsstatic.com/ https://alpha.d2c.marketing.aws.dev/ https://aa0.awsstatic.com/; media-src 'self'; script-src 'self' *.shortbread.aws.dev https://a0.awsstatic.com/ https://aa0.awsstatic.com/ https://alpha.d2c.marketing.aws.dev/ https://d2c.aws.amazon.com/;"
# CSP also set in _document.tsx meta tag
Loading
Loading