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

fix: type error for Breadcrumbs component #6813

Closed
wants to merge 81 commits into from

Conversation

katiegoines
Copy link
Contributor

Description of changes:

platform is currently typed as required for the Breadcrumbs primitive but is potentially undefined (in the case of Gen2 or the Contribute page)

Related GitHub issue #, if available:

Instructions

If this PR should not be merged upon approval for any reason, please submit as a DRAFT

Which product(s) are affected by this PR (if applicable)?

  • amplify-cli
  • amplify-ui
  • amplify-studio
  • amplify-hosting
  • amplify-libraries

Which platform(s) are affected by this PR (if applicable)?

  • JS
  • Swift
  • Android
  • Flutter
  • React Native

Please add the product(s)/platform(s) affected to the PR title

Checks

  • Does this PR conform to the styleguide?

  • Does this PR include filetypes other than markdown or images? Please add or update unit tests accordingly.

  • 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?

    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

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@katiegoines katiegoines requested a review from a team as a code owner January 22, 2024 18:39
timngyn and others added 9 commits January 22, 2024 12:31
* Add tests for usePathWithoutHash

* Add test to check that url is not modified if it doesn't have a hashmark
#6802)

* simple unit test to ensure that the ProtectedAccountMessage is on the Admin UI start page

* add test to ensure protected messaging hasn't changed

* add comments to ProtectedAccountMessage component

---------

Co-authored-by: Jacob Logan <lognjc@amazon.com>
* feat: add details to In-App Messaging migration guide

* Update src/pages/[platform]/build-a-backend/more-features/in-app-messaging/in-app-messaging-migration-guide/index.mdx

Co-authored-by: ManojNB <manojnb95@gmail.com>

* Update wording on message comment

* Populate identifyUser properties for guide

---------

Co-authored-by: ManojNB <manojnb95@gmail.com>
hbuchel
hbuchel previously approved these changes Jan 23, 2024
cshfang and others added 18 commits January 23, 2024 14:52
* feat: add details to Push Notifications migration guide

* Populate identifyUser properties for guide
* Update banner on prev BACB

* Update wording
* Add tests for useTabKeyDetection

* Add comment for helper function and add test for null ref.current
…6794)

* Add module name mapper for 'src/directory'

* Add tests for useRouteFinder

* Update workflow to generate the json files

* Update import paths with new module name mapper

* Rename typo, tests -> test

* Co-locate hook for version switcher and rename useRouteFinder to useVersionSwitcher

* Fix typo

* Simplify logic for useVersionSwitcherPath

* Add comment for hook
* Add tests for getCustomStaticPath

* Clean up to use only platform array
* fix: update gen2 quickstart guide

* update alt text
* Add module name mapper for 'src/directory'

* Add tests for useRouteFinder

* Update workflow to generate the json files

* Update import paths with new module name mapper

* Rename typo, tests -> test

* Add tests for getChildPageNodes

* Remove outdated test
* Add module name mapper for 'src/directory'

* Add tests for useRouteFinder

* Update workflow to generate the json files

* Update import paths with new module name mapper

* Rename typo, tests -> test

* Add tests for findDirectoryNode
…mum watchOS version (#6833)

* chore(swift): update minimum xcode version for all platforms and minimum watchOS version

* Address review comments
renebrandel and others added 14 commits February 9, 2024 12:43
* Update index.mdx

* Update index.mdx
* Preload s_code

* Use prefetch for analytics scripts

* Try preload
* Handle links with specified platform and add tests

* Refactor out href logic into hook

* Fix typo

* Remove uncessary comment

* Revert "Refactor out href logic into hook"

This reverts commit 9bb57f7.

* Typo

* Update jest setup to mock router context

* Add comment for doMock

* Remove commented out lines
…m provider with CDK construct (#6902)

* Update index.mdx

* possessive apos

---------

Co-authored-by: Chris Bonifacio <christopher.bonifacio@gmail.com>
* fix storage upload docs
* fix: size of AWS logo in footer and aria-label

* remove aria-hidden on logo
* wip - iterate on simplification of "build a backend" section

* iterate on defineData section

* move backend.ts to callout last in the build a backend section

* add note for data resource file

* update auth section of build a backend

* Properly cite Amplify (Gen 2)

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* remove file path in code block

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* end sentence with period

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* clarification on note

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* clarify default comments and code were shortened

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* remove code path since in accordion header

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* remove file path comment

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* Update wording for callout

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* add title to js block

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* add title to js codeblock

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* update step 3 header

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* remove codepath from block

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* clarify there is one step to complete

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* update step 2 header

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* add abbreviated comments to auth rule snippet

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* add comment abbreviation to code block

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>

* remove externalProviders from code sample

* update to use code highlights instead of diff

* Update src/fragments/gen2/quickstart/build-a-backend.mdx

---------

Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>
Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com>
* fix: add domainPrefix to example of social provider

* Update src/pages/gen2/build-a-backend/auth/add-social-provider/index.mdx

Co-authored-by: josef <josef.aidt@gmail.com>

---------

Co-authored-by: josef <josef.aidt@gmail.com>
* add route

* add vite + react guide

* Update src/pages/gen2/start/quickstart/vite-react-app/index.mdx

Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com>

* Update src/pages/gen2/start/quickstart/vite-react-app/index.mdx

* Update src/pages/gen2/start/quickstart/vite-react-app/index.mdx

---------

Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com>
…onfigureAmplify(); (#6904)

- fix: add WidgetsFlutterBinding.ensureInitialized(); before await _configureAmplify();
@github-actions github-actions bot added deleted-assets Indicate that a PR has changes with deleted assets redirects-needed Redirects need to be created for deleted pages labels Feb 15, 2024
Copy link

mergify bot commented Feb 15, 2024

@katiegoines, since a file was deleted from the src/pages and/or src/fragments directories, redirects might need to be set up so these previous pages do not 404. If redirects are needed, please answer these questions for each redirect that is needed:

  • What is the source address of the redirect? (Where are you trying to redirect from?)

  • What is the target address of the redirect? (Where are you trying to redirect to?)

  • Type of redirect? 301 - permanent redirect or 302 - temporary redirect? (More info on Amplify Hosting redirects here: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html)

Copy link

mergify bot commented Feb 15, 2024

⚠️ The sha of the head commit of this PR conflicts with #6912. Mergify cannot evaluate rules on this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deleted-assets Indicate that a PR has changes with deleted assets redirects-needed Redirects need to be created for deleted pages
Projects
None yet
Development

Successfully merging this pull request may close these issues.