Workbook drafts preview

Luke Bowerman · Friday Demos · September 6, 2024 · 10:21

A first look at the new saving and editing workflow for workbooks. This is a full rebuild of the editing workflow that underpins content as code as well as simpler deployment of complex…

Try it yourselfThe full week on docsdashboardsworkbook

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. I guess I can start. I forgot to do that. Um, there's a very new code here, so if it explodes, uh, that'll be oops. Um, I have a lot of them. So, uh, this is an early demonstration of the draft workflow. So, uh, I made one little hack on top of the current code, so if it explodes here when I'm selecting things, yeah, it will do that.

  2. This is normal. We will ignore this. Um, it's just because I broke something. But basically, you can choose any saved document, for example, to publish a demo version. If I can write, I can't. Um, and I just see a new menu item here to enable publishing. This is by function flag. Um , if you do that, and it just says this , that would probably be a little more explanatory.

  3. Um, this screen will only be for the testing phase. Once we change that, it's just going to be on by default, but, uh , you turn on publishing and you notice that the UI changes a little bit. Uh, if I go here, um, I can't, um, change the document. So, it's in what we call read-only mode. Uh, the message "this" is probably kind of inappropriate, but also, probably, yes, too much.

  4. Er, the field list is hidden. In fact, nothing can be changed. Uh, you could run it if there was a genuine request here. You can copy it if you want. Uh, and you noticed there's this new button here. She is talking about a new draft. If I had a hyphen for that, it would be a hyphen for two.

  5. If I click on new draft, I get this bright pink bar that tells me I'm now in a draft. Uh, and I'm actually going back to the published version , but before I do that, I'm going to go and change this. This is my mistake, which I just fixed. And go do some things. I can go and rename it.

  6. Draft. So, we'll notice that all these things change normally. If I bring up the story here, that's fine. You'll notice that I'm not in edit mode, but it's collecting changes in the version history because there's no edit mode for drafts. You are just in a draft . Um, I can add a toolbar if I want. That's all.

  7. Um, and I can go back to the published version here. This is what anyone else would see if they came to this. You notice that he is acting like a jerk, lying, and showing changes that he shouldn't be showing. Oh, oops. I don't know why he does this. Oh, that's it. Sorry. Yes, beta version. Um, so basically it just has to be in its old state.

  8. He didn't return properly. Um, so I still see that there is a draft attached. I can go back to the draft. Um, uh, he just doesn't want to keep his status, right? Um, I don't know why he's doing this to me. But, in any case, you can see that the name stuck. So that's kind of the main evidence here that we're switching back and forth .

  9. I can reject it and it doesn't go back to the original version. So, uh, we'll do it again . Now, if you try to publish, a message appears saying that publishing is disabled. It will probably be turned on later today when I solve these, uh, problems. Problems with edit mode. So, we're trying to suppress the edit mode.

  10. Uh, so you don't need him anymore. It is still manifesting. So I'm going to struggle with this a little bit more. But the basic workflow is there. Uh, you can also save the draft as. You can throw it away and make a completely new version if you want to work on it . Uh, you can certainly reject the draft itself.

  11. Uh, and in the near future you'll be able to see discarded drafts. So if you reject here, uh, in the story, we'll actually show you the rejected drafts here. You can restore a discarded draft if you need to. Uh, yes. This is an early beta version of the demo post. We should launch it on site early next week so we can experiment.

  12. So, yes. We actually turned on the publication . For now, it will be one document at a time. You simply publish, register one document. And if you suddenly decide you hate using it or it's broken, you can always just copy it. And this duplicate here or duplicate here has been cancelled for publication. So, you noticed that publishing is not enabled in this copy .

  13. So if you're attaching a document, you can do that. Another important detail is that for the initial version we will not support scheduling. So, uh, you can't enable publishing for a document that has schedules. And if you have publishing enabled, you can't add schedules. Uh, it's going to be a short-term solution, but we're only doing it to limit the scope because dealing with schedules when you need to replace a document through the publishing process is, uh, a little daunting.

  14. Er, a draft is a complete copy of a document. So, you can change the model as you please, and it won't affect the published version of the document at all. Another caveat is that we will work with branches as much as possible in a branch, but the document is not actually aware of the branch. A richer version will also appear quite soon , and once we receive it, we will submit the first draft to GA.

  15. Yes. Does this essentially work if it duplicates the document under the hood? Yes. Does this mean that if you copy and paste a previous version of the URL you were in a draft of and navigate to it, you will end up in the draft, but in the old draft version? So, we make it so that when you reject or publish a draft, we actually delete it.

  16. So if you get there, we'll ask, "Hey, this is an old draft." Do you want to restore it? We have some things we need to do about this, but mostly we want you to avoid getting stuck in drafts after they've been published or rejected. And we'll probably give you a stream of questions like, "Do you want to restore this one?"

  17. But because we want to make them a little more…Well, we found that people who go beyond the previous versions get really confused. We're going to make this much clearer. The exact UX will be determined later, because that's Jerry's problem. Um, I...I did that. But , um, but yeah, we're going to polish it up so that, essentially, if you share a draft , and the other thing...

  18. One thing, I think : if I share a link to a draft with you, and you do n't have editing rights, it 'll just say, "You can't go here." You will be redirected to the published version and will see a small banner saying that you have been rejected or denied access. I think we need to decide how we want to handle both rejected and published drafts.

  19. I think with the published drafts we can just forward the latest version and say you visited the old version. Here is a link to view it if you want. Hmm, with the drafts discarded, it will be later. Hmm, I think in general our approach would probably be : you can't look at it , but you can make a copy and make changes outside of the document.

  20. So, um, there are some small tweaks to these workflows, but as we experiment with it , I hope it becomes pretty obvious how it should work and we can refine it. It's also very easy to do anything there. Hmm, through all the copy mechanisms so we can experiment with it and decide what we think is right. That's a good question.

  21. We will track the current draft version. Yes, we will always know which version is published and we will not just automatically overwrite it. You will have to go through this publishing process. Good. Let us know. So, yes. Um, yeah, and the great thing is that since we can trivially discard and restore drafts, you can always just say, "Hey, I want to restore this for a second, look at it and think, ah, never mind," and throw it back.

  22. Um, because really all you're doing is you're only allowed to have one active draft at a time. But it's trivial - just switch who is the active draft. Yes. This is very cool. Um, I have a question, and maybe you answered it. So, it seems like the edit mode has been deprecated in favor of this new draft mode.

  23. Um, what's going on with the research? Can you still go into that handy research mode, or are we also getting rid of it in favor of ... so you're essentially, like a draft, combining the two. So you can just run away, create a draft, experiment with it, and just throw it away. And that would be a kind of research.

  24. Or you can say something like, "Hey, I want to keep this." So you just save it as and just save it as an analysis or another document. So the goal is to supposedly get rid of the idea of ​​different modes , like editing and research, because we've discovered that's just how people are? As opposed to just being like, “Okay, you’re a draft, so when you look at the published version, it’s read-only .” You can't touch her.

  25. If you want to change it, you open a draft , tinker with it. If you want to keep it, save it somewhere. If you want to publish it, publish it." So, that's kind of a plan. Also, I don't...I just said that you can still have, for example, workbooks that are not part of the content system. Yes. Yes.

  26. That's all in this mode, the prerequisite is that it is a named { slash} saved piece of content. You can still create temporary , such as workbooks , new analysis whenever you want. Yes. Yes, this only affects what we probably call named content , such as saved content . Yes. And there's one active draft for each piece of content, right?

  27. So, if two people are editing a draft of a document at the same time, they can collaborate with each other. Yes, that's still how we do it. Branches will add more than one draft, but I introduce conflicts. So, you know, yeah, that's why we have it in the branch because I don't want to go that far into it .

  28. But yes, branches actually allow you to have more than one draft, but with some caveats. Yes, technology still allows, for example, if two people are working on a draft at the same time, they can collaborate with each other. I'd like to spend some time improving this script, and I think with drafts it'll be a lot easier because it won't be like I'm looking at reviewing drafts, or am I looking at editing a draft ?

  29. This is just a draft. And if you can touch it and change it, and we can synchronize those changes across many clients in the future, that's what I think people really want us to do. Yes. Cool . For me, that's all.