[Feature request] Conditional Admin link extension

There is this tutorial covering how to conditionally hide Admin action extension and Admin block extension. (Hide action and block extensions)

I tried using the same “[extensions.targeting.should_render]” configuration on the shopify.extension.toml file for the Admin link extension, and got this error :

│  App configuration is not valid                                              │
│  Validation errors in                                                        │
│  extensions/demo-extension/shopify.extension.toml:                           │
│                                                                              │
│  • [targeting.0]: must NOT have additional properties    

I would appreciate if we can use conditional for Admin link extension as well, since Admin action and Admin block extensions have it. The use case being my app might have different plans, and some features are only available on higher plans , which I would like to make the link not visible to merchants on lower plan.

Hey @soulchild :waving_hand: - I’ll look into this to see if it’s something on the roadmap, but even if it isn’t I’m definitely happy to put through a feature request for you on this and I’ll loop back here when I have more to share.

Appreciate you bringing this up - definitely would be helpful for sure given your use case. :slight_smile:

Hey again @soulchild - was able to look into this a bit more quickly than anticipated. I can confirm that right now it’s not on the roadmap, but I’ll set up that feature request for you on my end.

Let me know if I can help out further at all!

Thank you! Hope to see this feature being implemented soon

1 Like