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

Create a button to autofill submission with details from the google places API #1035

Open
3 tasks
NabbeunNabi opened this issue Feb 12, 2025 · 0 comments
Open
3 tasks
Labels
code quality enhancement New feature or request moderation panel pair programming This is a ticket that is good to pair with someone on

Comments

@NabbeunNabi
Copy link
Contributor

Problem

We have the functionality implemented on the backend to autofill submissions with information from the google places API. This is to help moderators as we grow have less work to do. We need a button on the ModEditSubmissionForm.vue That allows for this API call in our server to be triggered. This button should only be enabled if it has not been updated before.

Success

A button is implemented with a translatable string to autofill a user submission using the provided google maps url. The button is only enabled if the key seen here is not truthy.

Requirements

  • API call is implemented with the button.
  • The text is in a translatable string
  • The button is only enabled when the value for autofillPlaceFromSubmissionUrl is falsy (not truthy)

Implementation notes

You will want to use this API call type which can be found here

You can make the mutation request by running the backend locally and going to the local API at http://127.0.0.1:4000/

It might be difficult to test if it is working due to not having an API key for the google places API. We will have to find a way to test that.

@NabbeunNabi NabbeunNabi added code quality enhancement New feature or request moderation panel pair programming This is a ticket that is good to pair with someone on labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality enhancement New feature or request moderation panel pair programming This is a ticket that is good to pair with someone on
Projects
None yet
Development

No branches or pull requests

1 participant