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

Add dynamic content to Autocomplete #13402

Closed
1 of 2 tasks
jackbemi opened this issue May 20, 2024 · 3 comments
Closed
1 of 2 tasks

Add dynamic content to Autocomplete #13402

jackbemi opened this issue May 20, 2024 · 3 comments
Labels
feature-request Request a new feature GraphQL Related to GraphQL API issues

Comments

@jackbemi
Copy link

jackbemi commented May 20, 2024

Is this related to a new or existing framework?

I use react, but would be nice if it worked on any.

Is this related to a new or existing API?

Existing API: Autocomplete form field.

Is this related to another service?

Would require a DynamoDB query

Describe the feature you'd like to request

get dropdown list values dynamically from a dynamoDB table

Describe the solution you'd like

When a user opens a page with a dynamic autocomplete field, it queries dynamo to retieve dropdown values.

Describe alternatives you've considered

I have considered either using a build script to get the values from the table and add them into the page before deploying the static content.

To update the values dynamically, I think I can figure out a way to have the frontend query an API which checks the 'approved values per field' table and updates the dropdown list in the frontend, but manually editing bundled js components would be a pain.

Additional context

I'd be happy to make a contribution, but would need some advice on where to start as I have not yet read the amplify-js source. I'm also not sure how this would impact the amplify studio.

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@jackbemi jackbemi added the pending-triage Issue is pending triage label May 20, 2024
@chrisbonifacio chrisbonifacio added the feature-request Request a new feature label May 20, 2024
@cwomack cwomack added GraphQL Related to GraphQL API issues and removed pending-triage Issue is pending triage labels May 21, 2024
@cwomack
Copy link
Member

cwomack commented May 24, 2024

Hey, @jackbemi 👋. We appreciate you opening this feature request and will review this with our team internally. For some additional context, can you clarify if this is specific to the GraphQL category or Amplify Studio? And is this on a v5 app that you're using Amplify Studio on, or v6? Any additional clarity would be appreciated so we can understand this feature request a little better. Thanks!

@jackbemi
Copy link
Author

jackbemi commented May 29, 2024

I'm using Gen 1 v6, although I'm hoping to make some time to upgrade to Gen 2 soon.
I would love it if this feature was available in the Amplify Studio related issue where I could just select a dynamo table as a source for the dropdown options in an autocomplete or a similar select-from-options type input field.
as a P2, it would also be awesome if I could use this with the new partial pre-rendering techniques to initiate the dynamo query as soon as the page loads instead of waiting for the client to render the input box that needs the dynamic content.

@chrisbonifacio
Copy link
Member

Closing this in favor of the feature request opened on the amplify-studio repo:

aws-amplify/amplify-studio#1108

@chrisbonifacio chrisbonifacio closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature GraphQL Related to GraphQL API issues
Projects
None yet
Development

No branches or pull requests

3 participants