
Embed custom navigation launch
Showing off how nice the embed navigation can experience for more custom use cases plus some discussion of custom filters outside the iframe.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Uh, I think that's me. Apologies if I have to mute myself for like a couple seconds. The plague has fallen my house, so I'm still battling that over here at a park manor. Um, cool. So, my demo, uh, more embed stuff. Uh, a couple weeks ago, we introduced the concept of inbound embed events. Um basically the idea of embed events coming from the parent page and funneling into or getting passed into the um iframe uh using a post message.
Uh we had a navigate event or we had introduced a navigate event which allows you to navigate uh the iframe from one page to another programmatically. And now we have we as of yesterday we have a filter event. So you can pass in a filter search param and uh to uh embed a dashboard and then programmatically change the filter.
So, I have a couple buttons here that correspond to my different status values on my dashboard and to this dashboard filter. I'm going to press shipped and what do you know? We went ahead and uh filtered by ship and then cool. I want to do complete too. Great. Awesome. Um yeah, so that's kind of the core of it.
Uh one other thing I did want to show is that these filters or this uh embed event is additive. So if I wanted to go ahead and say alter this to be only one year instead of the default two years on the separate created app filter um pressing one of these buttons that passes in specifically an order item status filter event um embed event doesn't affect this uh filter.
So obviously if I had a separate filter for created at uh I can override this value but we'll do our best to maintain uh every filter event that wasn't explicitly passed in um to the event or in the event payload. And uh just a quick preview from the dev perspective. Obviously uh for any customers watching this our plan is to get docs on this as soon as possible.
Um but for now just going to give you a sneak preview. Uh actually really similar to the filter search param parameter that we use for embed login URLs. Uh you're going to just go ahead and just take off the uh the filter URL search params that are generated when you're playing around in a dashboard in Omni and then just plop them in uh obviously parameterizing anything you want to parameterize like status in this case uh and then pass them into the uh uh into the iframe using a post message and you're off to the races.
So yeah, can I just add one thing to that, Elliot, which is um just to be super clear for any customers listening, this is not causing a like reload of the page or like a regeneration of an embed iframe under the hood. It's uh preserving everything in real time and just updating the filters. So it's extremely fast.
Is it Nate just to clarify too fair to say this is now like the gold standard for folks that want to pass filters from external rather than having a button that would regenerate a whole new link with that filter search pram as part of it? Elliot, do you feel good answering that? Yeah, I mean I would say that this is probably the uh probably the way to do it now, so to speak.
Um it's going to be smoother because it's not going to force a frame reload. Uh the other thing to note is like um Elliot I I don't know if in your example you like hardcoded those values for filters. The other way if customers want to do that dynamically is to hit the query API to get like the filter suggestion lists and stuff if they need um to go build a custom filter in their app and the way Elliot was talking about.
Totally that would make sense. I hardcoded those values so like completed and canceled and stuff but uh obviously using the AP the power of uh the API as Cory's been working on to uh generate uh you know parameterized values uh that would probably be the best way to do it to get your whole app sort of running uh outside of the iframe.
So there's one other detail um that I I actually don't know the answer to. Maybe you do, Elliot, but I'm not trying to put you on the spot, but it's um the obvious like nice UX that I think a lot of customers will desire is the ability to have a filter on the dashboard, but not have it be visually present.
Um so that they can have their own sort of like filter UX in their own uh part of the page. So I think we just need to follow up and make sure that we can like visually hide the filters. I wouldn't imagine that's uh I mean I I imagine it's very possible to do. So, oh, Ariel, go ahead.
We can already do that on the dashboard. You can just hide a filter. Or not. Yeah. Okay, sweet. Pretty sure it definitely if they're still present, uh, but hidden the way Elliot built this should just work. Um, but that was the the only thought I had that I didn't have an answer to.