Gadget Developers

GD

Gadget Developers

Build SAAS apps alongside thousands of other Gadget developers. Get help, and offer help to others in the community.

Join

Feedback on best practises to create a contact page

Hey guys! I am just looking for some tips, one of the requierments to get approved for shopify listing is to have easy access for merchants to contact you for support. I was thinking of creating a contact form in the app. I am wondering if anyone here built a contact form with node mailer or anything similar? I have seen a lot of apps use live chat, is that better than a contact form?...

Shopify fileCreateMutation with Blob url as source

Hi all, I have a Polaris drag and drop / add image element on my jsx page. I am saving the bloburl and filename as params. When a customer clicks the button to add, it passes the information and triggers a create.js function in where I want to create the image in Shopify via a fileCreateMutation. However when using the bloburl as the source, shopify sees it (off course) as an html element, while the filename for the image will be in a png format. ...

Issue with taskId Missing from params in Custom Action

I created a custom action called updateRank in shopifyCustomer. The params received by this action are specified as follows: export const params = { taskId: { type: "string" }, };...

How to optimize request time?

I touched 75% request time today with 8 days left in my billing cycle. Is there a way to optimize request time because I am pretty sure the $40/100 hour additional would render my app not profitable enough.

GGT_APP_CRASH: GGT_UNKNOWN: connect ECONNREFUSED 10.128.0.49:443

Why our app is getting such error? Users cannot do any updates in our app

Sentry in background actions

I've got some errors that have been thrown in background actions, which I am catching with Sentry — do background actions have awareness of what DSN they are sending to? We only seem to have captured exceptions that have occurred in CRUD actions

Is there a way to validate environment variables?

So in my org we have like 7 different environments in the same project. Each team member has their own environment so we don't step on each others toes. The problem is... we want to be able to keep each of our ENVs in sync with production. Is there a way to do some sort of env lint?
Also is there a way to move an env var from one environment to the others?...

Understanding daily data storage

Why is my daily data storage fluctuating so much? Doesn't it reflect the data stored at that day and shouldn't it therefor be pretty stable, slowly creeping up over time (like the last days of December?) E.g. I'm curious to understand what happened e.g. on Dec 2 or Dec 3? Or caused fluctuations throughout November? ...
No description

Error calling Shopify API within global actions

I am calling global actions to use the Shopify API and it doesnt work, I followed everything as it is from the guide: https://docs.gadget.dev/guides/plugins/shopify/frontends#calling-shopify-within-actions but yet it wont work, someone please help mej diagnose the problem....

API routes stoppped working

I had some API routes I'd setup that were working on Friday. Then I started working on some web components today and the API routes that were previously working are now responding as if they are web routes: https://flow-extensions--development.gadget.app/api/send-abandoned-email I stashed the changes I was workign on in a branch and reverted back to the code that was working on Friday but the url is still responding this way. I also did an app restart....
No description

Building a custom configuration page for a Flow Action

Any guidance on wiring this up to Gadget's app bridge? It's been a little while since I was last messing around with the app bridge, but last I recall it was a bit of a nightmare. Is this version of the app bridge referenced in Flow's docs compatible with the gadget app bridge? https://shopify.dev/docs/apps/build/flow/actions/build-config-ui...

How to use graphql on the front end

I have currently set up a route as follows: ``` import { RouteHandler } from "gadget-server"; const route: RouteHandler = async ({ request, reply, connections, logger }) => {...

How can you make a gadget app forkable?

I've seen some apps that support sent me where it can be forked. I'm thinking of creating a demo app to give others access to and wondering if I can do that?

TraceID before sending HTTP response

I know it's possible to see the x-trace-id on the response header. But is it possible to grab this trace ID in the route function and print it on .send()? scenario is for example I have to throw error response. Route schema validation has the traceId on the response body by default though.
No description

Problems with Shopify sync

Hi guys, I recently migrated my app from using the shopifyProductImages model (which is deprecated) to the productMedia and shopifyFile models instead. About a week before migrating, I deployed the app with these models enabled so the scheduled Shopify sync could take care of syncing all the data from the stores before I started to actually use them. To my surprise, after I launched the new version I noticed that many stores didn't have all the data synced....
No description

Two Shopify apps on a single Gadget APP?

I see that on the "plugins -> Shopify" section I can add multiple credentials. Does that mean that I can have multiple ShopifyApps using a single GadgetApp? If so, what happens if a single store tries tries to install both of my shopify apps? Will Gadget consider each installation as a different store?...

App connection is going to different account

Hey so I have played around a bit now and have a lot of test/learning apps in my gadget account. Now that I feel like I have a good grip on things, I created a new gadget account with a fresh start, connected to an email I will use for the app and the shopify partner store etc. Now when I am trying to run
yarn generate extenstion
yarn generate extenstion
command and try to connect it to the existing app I have created in my gadget account, I am only seeing the apps on my previous account, not the fresh one I have created. I have tried running ggt logout, and login to the new account, but it does not help. I still see the app list of my old account...

how to use shopify graphql api on checkout ui extensions

i am working on the checkout ui extension that targets order status and thank you page. I want to make authenticated calls like for instance editing an irder using graphql. How do I do it using Shopify Grphql API