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

Is there anyway to see previous / new values in an update action?

I am updating a value from a UI but would like to check the old value vs new value in the update.js action, is this possible please? I can do this in a global action before firing the update but would be cool if there was some native functionality. Thanks...

Using live: true ,but cant Realtime queries

use this code , when a new record in database, it cant realtime queries the new record ``` const [{ data: taskRecord, fetching, error: fetchError }, reexecuteQuery] = useFindFirst(api.workTask, { live: true, filter: {...

Would using the realtime live feature work for human handoff for chatbot?

I am creating a chatbot using vercel AI SDK. I store the conversation inside of a data model. When the user wants to talk to a human the ai agent triggers a tool. This will set the conversation status to pending. On our Shopify app we will display these conversations so the client can answer them. I am wondering if we could use the live feature for both the frontend and backend? (shopify theme extension). So when the client sends a message in the shopify app, it will add to the message field in the conversation field. Then because of the live feature, that would show up for the user in frontend. Because the live feature is using websockets right? Again not an expert here! Appreciate any advice 🙏...

Error notifications

Is it possible to setup email notifications for errors? Ideally with some batching logic.

bulk cancel background action

If I enter a search term in the background action list, and click cancel all, will it cancel the search results, or all (even the ones not returned in the search results)?

How to Trigger Shopify Web Pixel for Custom Add to Cart Button in JavaScript?

I’ve added a custom "Add to Cart" button using JavaScript instead of Liquid, but I noticed that Shopify's Web Pixel tracking is not capturing the event when this button is clicked. However, the default Shopify "Add to Cart" button is working fine and triggers the Web Pixel event properly. I’ve identified two possible approaches to solve this issue: 1️⃣ Manually trigger the event so that the Web Pixel function can track my custom button click just like Shopify’s default button....

Aggregate reports

I want to run aggregate reports based on custom fields that I added on the Shopify order made a model. Examples are like sum of orders based on a custom field, sum of returns. What’s the best way to do that while still giving the merchant the ability to control to adjust different filters?

Theme app extension

I have an app with theme app extension, just wanted to ask if it can have multiple liquid files one for each feature and likewise multiple js and css assets?

Database Timeout only in some scenarios

Hi guys. I have an user trying to perform an action in bulk for 3000 images but we get a database timeout every single time. The strange thing is that I'm using the exact same settings but on a 7000 images task and it works normally....
No description

Shopify API version mismatch

How do you fix this? I've getting this error. I already changed it in the partners dashboard the but still encountering this erro. Thanks
No description

Login as Merchant to debug UX issues

Having the ability to login as a merchant to debug UX issues isolated to the Shopify App becomes very important to fix bugs. When I worked at Meta, we had the ability to do that for certain customers if they gave permission to debug their accounts. How are folks achieving this today using Gadget?...

Gelly returning null

Why would gelly return 0 if 1 of all have 0 or null? even though all besides that one have greater then 0. ``` field on bulkOrder { sum(cast(bulkOrderRecipients.totalTax, type: "Number"))...

Reached variant limit errors retrying a lot

I'm trying to figure out why so much usage is being generated when these errors are being hit. I would have expected the retries to happen with exponential backoff and that much less usage would be occurring since it would be spending most of the time waiting for the next retry - but it was running pretty close to 24 hours/day. I have since disabled the sync job and cleared the queue. https://rapapp.gadget.app/edit/development/queues/job-aReCc797o-FefrRYXPCf8...
No description

Getting issue with app frontend of [plugin:vite:import-analysis] Missing "./auto/polaris" specifier

Don't quite understand why I am getting this error... "@gadgetinc/react": "^0.19.0",...

Backups / snapshots of model data

What's the best way to go about storing backups / snapshots of data from all models? Maybe something like a rolling daily snapshot for the last 7 days...

client regeneration not including new global actions

I added a few new global actions, and no mateter how many times I regenrerate the react client, it won't allow me to call the new global actions, only ones proir to today!
No description

How to sync Gadget Production Deploy synced with Frontend deploy

We use Gadget for backend of a theme app extension. We deploy the front end and backend separately with 2 separate commands. This causes the issue that for a very brief period of time, the codebases are not aligned. How are other folks solving this problem successfully?...

Customizing Shopify App Installation Error Page

When a user tries to install our app in their Shopify store and encounters an unknown error, Shopify displays a generic error page (like 404) asking them to contact the developers. Is there a way to customize this error message to provide more specific guidance or support links? If so, how can we implement it?

Customer account extension

I have a custom model, that I want cusomters to only be able to view ones related to their id (record belongs to a s shopify customer), but the shop merchant/admin should be able to view all records beloning to their shop (every record also belongs to a shopifyShop). What should the tenacy look like? https://docs.gadget.dev/guides/plugins/shopify/customer-account-ui-extensions#adding-a-tenancy-filter...