Bug: issues with configuring app embeds in theme editor sidebar

I have encountered an issue where attempts at using the accordion within the online store editor to view settings for one app embed will cause settings for all other app embeds that share the same block name to become visible.

As I’m working on something that isn’t yet released, I’ve anonymised the app names however I’ll do my best to explain the issue in as much detail as possible.

Bug report

In order to replicate this, you will need at least two theme app extensions, each of which share a block name. In the above screenshots, I have the following entries:

App name App ID Block name
Test app 802b0ca526fb47dbaf954581249ceaeb testapp
Test app #2 18588cdad5e6496d96be807f9078e54c main
Snowfall 6eb82b021df544919444705fa99ee9bf main
Forms 4f9f6772986151b160e59ae5d34ba8dd forms

When attempting to view the settings for either “Test app” or “Forms”, the URL in the browser changes to:

https://admin.shopify.com/store/[name]/themes/[theme]/editor?context=apps&appEmbed=4f9f6772986151b160e59ae5d34ba8dd%2Fforms

And as expected, only one accordion item is expanded.

When attempting to view the settings for either “Test app #2” or “Snowfall”, the URL in the browser changes to:

https://admin.shopify.com/store/[name]/themes/[theme]/editor?context=apps&appEmbed=18588cdad5e6496d96be807f9078e54c%2Fmain

And the settings for both “Test app #2” and “Snowfall” become visible.

Attempts at closing either of the expanded accordion items will result in both of them becoming closed.

This has also been tested by a colleague with a collection of other public apps, and this caused issues where the name app-embed was shared between them.

This therefore suggests to me that it is the name of the block, irrespective of which theme app extension that owns it which is being used to control the state of the accordion.

There is nothing in the documentation that suggests that blocks should be uniquely named across the Shopify ecosystem which therefore suggests that this is a UI bug.

I hope I’ve given enough information to assist with debugging this issue.

Hi @strawberry

Is this happening across all themes?

Hi, this is happening on different stores, owned by different dev accounts. I haven’t had the opportunity to test this on different themes however I believe the theme that my colleague used when he originally encountered this issue was not the same theme that I was using.

@Liam-Shopify I’ve just this second created a new theme, and added three apps to it, two with the same block name (naturally belonging to different apps)

So I guess yes, it does affect different themes.

Thanks for providing these details - flagging this with the relevant team now.

Hi @Liam-Shopify - do you know if there is an update to this? :slight_smile:

Hi - unfortunately I don’t have an update but it is on the teams radar to address asap.