
Dashboard linking inside the iFrame
New functionality to create links between embedded dashboards *inside* the iframe. No more tearing down and rebuilding iframes, just super fast linking to make navigation feel 100% native
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
OK. So, now the most interesting part. Um, a few of our clients, um, are trying to implement the idea of navigation inside the dashboard or embedded content , and what they're doing is quite interesting. they use markdown visualization as a kind of hack, and Richard, probably a month or two ago, added the ability for markdown visualization to send a special event to which you can add an arbitrary amount of data.
So some clients create markdown visualizations. They trigger an event with the ID of the dashboard they want to direct the user to. And then, in their iframe—in the outer frame, in the host frame—they intercept this event, generate a completely new embed URL, and redirect the user there, which is actually very clever. But the user experience is quite mediocre because they essentially have to delete the old iframe and create a new one, which causes the end user to see constant flickering and the loading time is quite long because all the resources need to be requested to render our app.
So I thought about it and quickly put together a little demo that essentially creates a new markdown tag and allows people to specifically point to different content elements that they want to allow users to navigate seamlessly to. Giving credit where it's due. This builds on a lot of Richard's work, as well as a very successful implementation that Elliott provided a few months ago to provide links between the built-in dashboards, keeping it all within our security framework and ensuring that everything works as we intended and authorization is not accidentally compromised.
So, I'll demonstrate this first in an unauthorized state to prove that we're doing everything right. Here I have a dashboard, I generate a URL, copy it, and then I hope the demo gods are on my side. Steeply. So, I'm here, and I have this markdown, these links. I'll click on one and an error should occur. Boom. OK.
Here we clearly say, "Hey, you didn't specify that you're allowed to link to other content." So let's try again, but this time we'll open access. We will add this to the public link. I'm copying this. OK. And now these links, if the gods are on my side again, should work. In this case, we simply use Remix's routing functionality.
So, there's no need to reload the page or delete and recreate anything. You simply get to navigate as seamlessly and quickly as you would when working in a regular application. Hooray. We could provide some markdown code, for example, for different tab styles, so people can quickly copy and paste it. That's pretty cool. Yes. I guess I can show you one more thing, um...if I come back here— it's as simple as possible for the end user.
It's just a tag in the embed link and a "two" attribute that indicates the content they want to link to. Is this some kind of predecessor to tabs? Like, if there's a built-in interface for Oh, apparently, tabs —it's all within one control panel, and these are separate panels, but they still load at the same time. Yes. So I think it's kind of a half-step, or depending on how you look at it, we need a product specification for tabs and panels, but tabs and panels can be a way to organize a large workbook.
Yes. And this is a way to create links between workbooks and content in Omni. Class. Thank you. Yes. And do these content paths accept filter parameters, like filtering query parameters and all that? Yes, they can. Perfectly. I mean, to be clear: this isn't in the release yet, it's locally on my computer, but it will definitely be possible to do it.