
More drafts preview
Luke gives us another demo of the soon-to-release drafts workflow.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Doos to Chris for chasing that it's been a bane of my existence any Liv for a while yeah I I'll uh I should have given a shout out earlier but it's my shout out now H cool I'm gon I can demo um with the caveat that I've have never merged five branches together to pull this off so I'm not sure how it's going to go but I just Slamm together a bunch of inant work so it'll be fine um so drafts is uh approaching GA real quickly now um and we're sort of doing some final polish classes as well as nailing down some interaction behaviors that we wanted to solve for um so um real quickly we've just tweaked a few of the where a
few things are this is most of this is not or some of this is not merged quite yet um so you could actually see your list of archive drafts over here now we moved it down here um I also am playing with moving the version history um up into here so you don't we don't really keep it hanging around we need to look at that much um and then what are those numbers on the right so like 140 the one the six like what are those what's that what are the numbers on the right of the version history uh number of changes in this in this draft so we need to yeah sort of get a sens of scale of that particular change so um
and then we did some design changes in sort of how we would treat this bar up here when you're looking at a previous version um as well as um a draft close so D old drafts now have this other color just to kind of follow apart uh we also adjusted a little bit how this looks and options up here um and if I go ahead and edit a draft you'll see that we actually see our current draft in here um when I'm in here if I come out of here I'll still see it parked up there and can kind of jump around more easily um so that's sort of the ux Polish one of little piece was uh I'm gonna actually jump to this guy
um the workbook changes look a little different now so before we would put the date or the time of the change and now we're putting what changed up on top but move the date below um so just polishing a little bit to look a little different um so that's one set of changes so then um one of the things we wanted to do is we see people get themselves in trouble a lot today um by following let's say old links so I'm GNA I have to do a little bit of hacking to make this work because this version of the code really wants to stop me from getting myself in trouble but I can do it I believe if I grab one of these LS
um open another window here and I'm going to just take some chunk off oops that's not gonna work gosh so good at resisting me um here go to here I kind of have to hack my way in here because it's actually hard to get to these now but let's say I had an old tab or an old link to an old version of this document if I jump in here um you'll notice it didn't actually take me to that view of it it actually automatically took me to the latest version so if I follow an Old Link it's going to slam me forward um every time um so you can't get into old versions unless you explicitly have this drawer open then it'll let you
look at that so it's kind of a safety feature to keep people from looking at old versions without knowing it should have thrown a toast um telling me hey you're on old version I pulled you forward um that was because and with drafts it's a little better behaved uh this wow I have way too much stuff bit sorry um so with drafts um this will do the same thing basically where it'll keep things stable so that's one piece the other piece that goes on here is that historically um with drafts we've had an issue and I am struggling to find a good example of this because we're doing things right now um if I have an old copy of this okay I have to just
go beat myself up so hold on a second here um I going to grab this guy and then go over here and I'm gonna make a change to it like we'll just do this and we go this way so now I've made a change if we go look at history you can see then we can see the chart type got changed if I take that copy of the link I had before and jump to it it's going to say right up here you an Olde old version I pulled you forward so it's much harder to end up following Old Link um what you'll also see is if I happen to have two tabs open or like some of our fun customers you know five tabs
of the same workbook and I change it so usually going to be hidden from me I do this and I change it notice this is actually going to pull itself forward automatically so down um and then background changes happen so if I go down here and say everyone is watching we'll notice that actually updated in the background so we actually keep the document same across tabs um and across users so if one of somebody else on else were on the planet was attached they would also get pulled forward automatically so um that's sort of the fundamental change the other piece we did or that's in here is if I try to if I'm looking at old version I try to make a change we'll actually
notice that you tried to make a change and stop you and make you go to the latest version before you start making your changes so a lot of things to prevent people from like accidentally overriding each other and keeping in sync and all kinds of things so um the automatic pull forward stuff is going to be behind the future flag for a little bit because it's got a couple of new pieces to it that I don't exactly know how they're going to scale and I want to see them I want to walk scale them up slowly not all at once um but the overriding prevention stuff is ready almost ready to ship as well as some of the UI updates so that should all be
in early next week so yeah um I think that's it for drafts my is there an indicator that someone's editing the workbook while you're looking at it because I could imagine it changing out from underneath you while you're looking at it would be pretty disruptive uh so there is not yet but there will be once we bring that real time changing on it's actually I have the data we just to keep the scope small we're not doing it yet but we want to do a presence type Behavior like what Google Docs does where you can see Jared's here or Luke is here in two other tabs um so yes I know I know all that I'm just not showing it yet because we want to
kind of bring it in slowly um but yeah we definitely the presence is kind of critical because now you have this Dynamic document you kind of want to know um that you're going to get dragged forward if somebody else is there um so that's something we'll probably follow with pretty quickly main thing there is that uh again while I don't have huge scalability concerns I would like to bring it in slowly so we don't like blow out something funky um under the hood what we're doing what I'm doing is it's using a reddis key for each document um and Pub sub doing Pub sub to the reddis key that's being rebroadcast via server sent events um so basically when you open a document up you
get subscribed events for that document and if the document changes we update a reddis key and then publish that we have to do the redis key because we have multiple remix servers and we need to be able to share the state across those servers so those two moving Parts while not inherently scary are new scaling directions for us that we need to kind of like ease ourselves into um the other thing you may have seen is there's some new notification tricks we're doing so I did land this week stuff so you can now P push TOS from inside the browser so before you only push toasts server side you could now push them server or client side and you can push them to different locations
and other stuff um if you want to use that your stuff let me know and I can walk you through it because I have not particularly docked it much yet I'm just using it for myself but um yeah done a bunch of work around the toast infrastructure to make that more elegant um a later goal is actually to hook it to the same uh Tech I'm using the same infrastructure I'm using for documents subscription so I can actually push you toast from the server dynamically um so we could do things like your delivery just failed and actually push that to you every all your tabs rather than just s an email if you're logged in like that so yeah quick question um I was actually
curious what it looks like like you had the two tabs open with like a workbook and a workbook what does it look like if you have the workbook and a dashboard open and you're making changes to the workbook you would catch me on that so we're not currently dashboards for that's a piece of work we're going to do shortly um basically dashboards will do the same thing so it will be smart enough to know if the change matters or not basically generally speaking changes in dashboards don't matter to workbooks but changes in workbooks matter to dashboards that makes sense um although if it was like a hidden tab it might not matter so um little bit of work to do there for now we're probably
going to pretty aggressively just keep pushing you forward we may see a change on either side um I want to get to the place where we get more new want and don't like just reload your page on you when you um are hanging out um so yeah lots lots to kind of learn there um we're not great about versioning dashboards or we don't have a particularly static idea of a dashboard version so that's what they I need to work on um and to be frank less critical for draft stuff so we'll pick that up a little bit later so yeah if if you're viewing um the published version and somebody just publishes do we pull for that you get updated or is that I'm not
doing it yet mainly because I was dealing with Collision Collision overwriting but it would be really trivial to implement that so um what it will do is like okay so there's didn't wait too much time um there's two things that we do get out of it um there's a cycle that the browser does where when you load the page I will check if you're looking at an old version of pul you forward um if you are using Chrome which 92% of our users are um and your tab goes idle I don't if anybody's noticed but like some just see a tab a little like dotted Circle when Tabs go idle they will automatically re reload themselves when you open the back up which means they'll
get pulled forward so we should see a lot less cases of people looking at an old copy of a dashboard or a document because this thing kind of self refresh um well sorry workbook um dashboard that part should be pretty easy to pull in and that'll help people not looking at like old stuff quite as often um so yeah