
Front end dev tooling with Storybook (internal)
* New internal tools to speed up and improve quality for our front-end development experience.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
My demo is uh focused, but it is in service of a really exciting feature called Abby dashboards. You might have heard of it. Um so what I've been working on and Luke started this effort is uh this fun tool called Storybook which allows us to is Yeah. Are they seeing my screen? Yeah. Yeah, we got Um, so Storybook allows us to take parts of our UI and, um, just play with them in in isolation, uh, and not only just develop and make sure everything looks good, uh, but also potentially test them, which is really powerful because it allows us to move quickly and make changes without fear of breaking them.
Um, and this will help us app dashboards because we're going to try to build most of it in isolation. Um that'll and having uh regression testing in place will help us do that quickly. Um so Luke got storybook up and running which is fun in and of itself. We've only so far we've only got the stack component which doesn't look like much but it's super common throughout our application.
It allows us to easily and quickly lay stuff out in a bunch of different ways. Um so what I was working on and I'll show you my editor. Um, so I've got storybook running in in one terminal and then I've got another terminal and um, say I'm, you know, messing around in this component stack and, you know, accidentally delete a super important line.
But before I commit it, I want to go ahead and run my um, tests. So I've got this new test command yarn test UI visual, which should give me some good signal. Oh, maybe not that. Not that one. You more important line. Okay. So, I've got a bunch of diffs generated. Um, and I can open any of them to see what I've actually broken here.
Okay, I see some red. That's sort of helpful, but then I can go back to my story book. Oh, and that I remember there was gaps in between. So, yeah, I've broken the gap here. So, definitely want to undo that. Um, but say I actually was like in the stories. So this this is the file that controls what goes up into storybook using stack.
So I'm like I actually wanted to like have two items shown there. Um and now we see two items here. And I do also have to uh run story or run the storybook test for that because what it's what it's taking snapshots is of those stories. So that will affect the the snapshots as well. And so I see, okay, yes, I got a diff there.
I pretty much know what happened. So what I can just do is say that was intentional. So add an update at the end of my command. And then I've got a updated image here, which is what I wanted. and then say I've completely deleted a story there. Run it again without the update. I should get some warning like, "Oh, did you mean to delete the story?"
Um, found one obsolete baseline component. So, it's like, and then I can run update again to delete that baseline or I could be like, "Oops, I did not mean to delete that story." And put it back. And that is going to be really useful for us to develop UI quickly.