
Ridiculously fast embedded dashboards
Ridiculously fast embedded dashboard tabbing. Why doesn't all embedded content work this way?
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
divide into two small ones. This one might seem old , but technically it was on Friday. Uh, I've been working hard to make a way to manage our CSRF session without saving state. So the point here is that , um, this is all over, right? This dashboard is built into this external, like a little app that I wrote.
And the point is , if you want to, um, although, you know, maybe you don't want to for some reason, but if you want to in the background, you can load the dashboards. So now the effect is that when you switch tabs in the outer frame, hmm, it seems like everything loads instantly. Hmm, unlike before, it would flicker and, um , load the dashboard, and you would see this loading status.
And another cool thing, hmm, it implicitly stores all the filter values. Uh, it's also, you know, as you might have noticed, if I change this and it disappears, um, it's still running in the background. So, it's a pretty interesting scheme, hmm, just want to be careful that people don't load, say, 10,000 dashboards in the background. So, that's one thing.
So cool. And then, the other one is still a little bit under development, hmm, but it's a built-in single sign-on session that I, hmm, run locally , and I intentionally made it so that the cookies expire, hmm, pretty quickly. Because we've had feedback from a few customers, like they come in on Monday morning and get into this confusing state where there seem to be errors, and our current hypothesis is that their sessions are expiring, so they need to refresh the external page that Omni is embedded on.
But they don't know that. So the idea is to take some action and you'll be redirected to this page, which is not our 404 page and definitely not our login page. Ignore this. This is simply loaded from the template I am using. But the idea is that it's just going to give you some clear, super clear clues that , um, obviously the development language is not going to be Gandalf's language.
This will be something like a nice notification that you probably need to refresh the page. The idea is that you refresh the page and you're back in the app. Uh, and then I have two that I'm not going to show, but, uh , we've gotten some customer feedback from, uh, some of the people who are building. Uh, where they tried to come up with a signature for embedding on their own.
And in one of them, we just, uh, relaxed some of the requirements for, uh , the structure of the signature line. Uh, some libraries, like the Python libraries in particular, really want to add padding to certain encoded values that are completely optional, but we, uh, just don't make it optional on our end. So we made it optional to loosen compatibility .
And then, uh, there was another problem with how some languages serialize JSON into completely valid JSON, but, uh, it essentially adds spaces in certain places, which made it impossible for us to validate the signature strings coming in . So we've loosened it up a little bit now. So, any place in the signature line where we expect JSON, uh, if it's well- formed JSON, we, uh , count it, not reject it.
Oh, hello. Uh, one more thing I forgot. Uh, I should have done this earlier during the thanksgiving, but, uh , I just wanted to say thank you, not for anything specific, but for people like Katie and Brian. Well, a lot of their work never really reaches anything that's necessarily demonstrable, but obviously they do incredibly critical things to make the app work and to make all the features that we can build on top of it shiny and fun to show off, so a huge thank you to them.