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

Android AppSync Extension Library Documentation Improvements #8217

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tylerjroach
Copy link
Member

@tylerjroach tylerjroach commented Jan 24, 2025

Description of changes:

Restructured the Android AppSync extension library for usage with Amplify Data or AppSync directly

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.

tylerjroach and others added 2 commits January 24, 2025 14:28
…xtensions/index.mdx

Co-authored-by: Matt Creaser <mattcreaser@gmail.com>
@tylerjroach
Copy link
Member Author

PR comments addressed

@tylerjroach tylerjroach enabled auto-merge (squash) January 24, 2025 21:39
@@ -223,15 +203,145 @@ val authorizer = IamAuthorizer {
//highlight-end
```

</Block>

<Block name="Without Amplify">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hesitate with putting prose like this inside the block switcher for a few reasons:

  1. it makes linking to specific content difficult
  2. nesting headings messes with the document structure -- do they render okay in the TOC?
  3. since there are multiple instances of the blockswitcher and they do not sync on the page it can make reading this doc "without amplify" a bit tedious

We can modify the component to fix 3, but I have concerns with 2 if the heading structure is different between the two blocks


### Manual
1. Navigate to the **Queries** tab in your API on the [AWS AppSync console](https://console.aws.amazon.com/appsync/home). Here, you can test queries, mutations, and subscriptions in the GraphQL playground.
2. Enter your GraphQL operation (query, mutation, or subscription) in the editor and click **Run** to execute it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Enter your GraphQL operation (query, mutation, or subscription) in the editor and click **Run** to execute it.
2. Enter your GraphQL operation (query, mutation, or subscription) in the editor and select **Run** to execute it.

nit "click" -> "select"
https://github.com/aws-amplify/docs/blob/main/STYLEGUIDE.md#15-use-carets-to-help-users-navigate-menus-use-select-instead-of-click

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants