Zendesk Sell "top_bar" location leads to console error
I generated a new app using:
zcli apps:new
and simply changed the location in the manifest.json to:
"location": {
"sell": {
"top_bar": {
"url": "assets/iframe.html"
}
}
},
The rest of the code is the given boilerplate Hello World.
When navigating to the Sell app and adding ?zcli_apps=true, nothing appears in the top bar. Instead, I get the following error in the browser's console:
When changing the "top_bar" location to "dealer_card", the Hello World app appears in the dealer card location of Zendesk Sell without any errors.
When changing "sell" for "support" and opening Zendesk Support, the app appears in the top bar without any errors.
The "top_bar" location is shown as a valid location in the documentation
Am I missing something? Can anyone else reproduce this error? Is this a bug on Zendesk's end?
Thanks in advance for any given help.
-
Hey, Rémi!
I've been able to replicate the issue on my end. I've asked the product team to take a look at this in more detail and will let you know when I have more information. As a workaround, the zat server command results in the app loading correctly so you can use that for testing if you have zat configured.
Thanks for bringing this to our attention and if you have any questions feel free to reach out!
Tipene
-
Alright, thank you Tipene, looking forward to a fix. I will try the workaround in the meantime.
All the best. -
Good day Rémi,
I hope you are doing well today!
I ran a test as we speak and can confirm that I'm now able to render the Sell "top_bar" app from ZCLI with the following manifest declaration :
"location": {
"sell": {
"top_bar": {
"url": "assets/iframe.html"
}
}
}See below : with ?zcli_apps=true appended to the URL in Sell as per > Testing your Zendesk app locally.
So, please give it a go and feel free to let us know if the issue remains on your end.
I updated our ongoing support ticket as well.
Hope this clarifies it! Have a great rest oy your day!
Best regards,
Please sign in to leave a comment.
3 Comments