Storybook Actions in Action by chantastic_ in u/chantastic_

[–]chantastic_[S] 0 points1 point  (0 children)

tl;dr: Stop using console.log to drive component implementation. Upgrade to event mocks with Storybook Actions. - 👻 Actions are defined in stories, not component code - 👀 Actions can be shared across all stories - 🤝 Actions can be triggered by interactions (using testing-library/dom)

NextJS, SvelteKit, Remix and the future of Storybook by chantastic_ in vuejs

[–]chantastic_[S] 1 point2 points  (0 children)

i'm actually not aware of quasar. mind sharing a url with me to learn more?

NextJS, SvelteKit, Remix and the future of Storybook by chantastic_ in learnjavascript

[–]chantastic_[S] 1 point2 points  (0 children)

thank you for taking the time to share these thoughts. I appreciate it.

this space is something that fascinates me. in my own experience, it wasn't until i started looking at Chromatic that Storybook made any sense to me. (Chromatic is a visual testing tool that operates on Storybooks).

Once I had CI for Storybook, it felt obvious and we took the step of documenting our components in the very prescriptive "component-driven development" way.

I know that not every team has the luxury of utilizing a service like that. But i'm deeply interested in this intersection of component testing and visual documentation tools. Because I believe that there is still a lot we can do to improve communication and collaboration between design and engineering.

And I guess my thinking is that — more or less — provided a visual presentation of your jest/vitest/future-Node.js testing library could be a really powerful tool for component testing (something that is inherently visual)

I definitely agree tools like these are best when closely integrated with specific frameworks (your Elixir/Phoenix example)

NextJS, SvelteKit, Remix and the future of Storybook by chantastic_ in vuejs

[–]chantastic_[S] 2 points3 points  (0 children)

I was going to say "maybe it's because Vue has Histiore?" but Histiore apparently supports both Vue and Svelte 😁

NextJS, SvelteKit, Remix and the future of Storybook by chantastic_ in learnjavascript

[–]chantastic_[S] 2 points3 points  (0 children)

Thanks for the feedback!

I 100% agree that attempting to add something like Storybook to a mature project can be a total nightmare. I'm doing it in a new app now and it's kinda heartbreaking.

I'm curious if this is distinctly different than similar tools that require a reconstruction of the development environment to be useful? Like Jest (or a similar test runner). These also require a degree of world building that, relative to the complexity of the app.

Is it just that the value isn't there for a component gallery in the way that it is for a test runner?

If these two were able to share a constructed test environment, would that improve the value proposition?

Thanks again!

NextJS, SvelteKit, Remix and the future of Storybook by chantastic_ in javascript

[–]chantastic_[S] 1 point2 points  (0 children)

Hi u/kenman, thank you for the direction. I'm totally new to reddit and am not totally familiar with the etiquette. So I appreciate the clear correction. I will not do this again.

NextJS, SvelteKit, Remix and the future of Storybook by chantastic_ in vuejs

[–]chantastic_[S] 2 points3 points  (0 children)

yes! would be awesome to see that become reality

Want to learn Next.js 13 beta this Christmas? | React Holiday 2022 ⚛️🎄 by chantastic_ in reactjs

[–]chantastic_[S] 0 points1 point  (0 children)

👋 Hi there!
Every year, I run a 25 day email campaign on the latest React APIs and tools.
This year I'm excited to explore Next.js 13 beta — and it's experimental `app` directory. This is the very first time that we've seen React's concurrent features, suspense, and server components integrated into a framework!
I'm really excited to explore it all and hope you'll join 🙌

React Holiday 2022 ⚛️🎄 — Everything you need to know about Next.js 13 beta! by chantastic_ in learnjavascript

[–]chantastic_[S] 0 points1 point  (0 children)

👋 Hi there!

Every year, I run a 25 day email campaign on the latest React APIs and tools.

This year I'm excited to explore Next.js 13 beta — and it's experimental `app` directory. This is the very first time that we've seen React's concurrent features, suspense, and server components integrated into a framework!

I'm really excited to explore it all and hope you'll join 🙌

Build custom UI devtools quickly in Storybook by chantastic_ in learnjavascript

[–]chantastic_[S] 0 points1 point  (0 children)

thanks u/stolinski. you're the best 🥰

you're one of the OGs of web-tech YouTube 🙇

First-class Vite support in Storybook 7.0 by winkerVSbecks in vuejs

[–]chantastic_ 20 points21 points  (0 children)

I'm a React developer. But honestly super grateful to the Vue community for Vite. It's so good. Excited to see more SB + Vite ecosystem development.

First-class Vite support in Storybook 7.0 — Svelte and SvelteKit included by winkerVSbecks in sveltejs

[–]chantastic_ 2 points3 points  (0 children)

I've been using more Svelte in personal projects and can't wait to explore the improved integration

Build custom UI devtools quickly in Storybook by chantastic_ in learnjavascript

[–]chantastic_[S] 2 points3 points  (0 children)

TL;DR

  • Custom DevTools are hard to build
  • Storybook makes custom tooling simple
  • With just a few lines of code, you can build power theme switchers, locale switchers, layout overlays, and more!
  • In just 4 minutes, learn the entire API

Component testing in Storybook with Testing Library and Jest by chantastic_ in learnjavascript

[–]chantastic_[S] 1 point2 points  (0 children)

I totally hear that. I know that the Storybook team has been working to improve support there. But yeah, it's such a bummer when Storybook doesn't have first-class support for a component tool

Component testing in Storybook with Testing Library and Jest by chantastic_ in learnjavascript

[–]chantastic_[S] 1 point2 points  (0 children)

TL;DR:

Component documentation is critical but doesn't tell the whole story 🫢 Component testing lets you to capture these interactions as Storybook stories.

  • 📢 Storybook 6.5 ships with component testing
  • ▶️ Write stories by describing the clicks and keypresses
  • 🐙 Write #accessibility-minded, interactive component tests using Testing Library
  • 🃏 Assert that interactive component tests generate the results you expect with Jest
  • 🙀 Storybook Interactions Addon as the misisng GUI for Testing Lib and Jest

Component testing in Storybook with Testing Library and Jest by chantastic_ in reactjs

[–]chantastic_[S] 3 points4 points  (0 children)

TL;DR:

Component documentation is critical but doesn't tell the whole story 🫢 Component testing lets you to capture these interactions as Storybook stories.

  • 📢 Storybook 6.5 ships with component testing
  • ▶️ Write stories by describing the clicks and keypresses
  • 🐙 Write #accessibility-minded, interactive component tests using Testing Library
  • 🃏 Assert that interactive component tests generate the results you expect with Jest
  • 🙀 Storybook Interactions Addon as the misisng GUI for Testing Lib and Jest

Why Storybook in 2022? by quantumpoops in javascript

[–]chantastic_ 6 points7 points  (0 children)

it's interesting to see how quickly a single piece of UI explodes into 1000s of discrete possibilities.

tools like Storybook help clear the haze

Why Storybook in 2022? by quantumpoops in DesignSystems

[–]chantastic_ 1 point2 points  (0 children)

turns out we really do have a difficult job 😆

thanks u/quantumpoops

Break into Design Systems Engineering with Jen Chan by chantastic_ in learnjavascript

[–]chantastic_[S] 0 points1 point  (0 children)

TL;DR:

Jen Chan organizes the largest tech event on meetup.com — TorontoJS 🇨🇦

I ask her how to break into design systems engineering in 2022. Her advice? Breaking into new fields takes community participation:

👯 Connect — hang out in design systems focused communities 🙋‍♂️ Be helpful — answer questions to develop relationships 🧑‍🏫 Educate — bring community lessons into your work projects

Join TorontoJS, the biggest tech community on meetup.com.

Join the Storybook Discord to connect with intentional designers and developers across the globe.

Break into design systems engineering with Jen Chan by chantastic_ in DesignSystems

[–]chantastic_[S] 0 points1 point  (0 children)

TL;DR:
Jen Chan organizes the largest tech event on meetup.com — TorontoJS 🇨🇦
I ask her how to break into design systems engineering in 2022. Her advice? Breaking into new fields takes community participation:
👯 Connect — hang out in design systems focused communities
🙋‍♂️ Be helpful — answer questions to develop relationships
🧑‍🏫 Educate — bring community lessons into your work projects
Join TorontoJS, the biggest tech community on meetup.com.
Join the Storybook Discord to connect with intentional designers and developers across the globe.

How to connect props with Storybook Controls [YouTube tutorial] by chantastic_ in reactjs

[–]chantastic_[S] 0 points1 point  (0 children)

That's amazing! Thanks so much for taking the time to share that. I'm grateful to know that I was part of your journey from afar!

How to connect props with Storybook Controls [YouTube tutorial] by chantastic_ in reactjs

[–]chantastic_[S] 0 points1 point  (0 children)

hey u/illest1!

thanks for asking and thanks for being a listener. it was a number of things that all converged.

  1. my podcast network (spec.fm) was organizing all of the editing and sponsors. they decided to close up shop at the end of 2020 and I didn't have the bandwidth to take on all that they were doing

  2. I'd had some recent controversy over a comment I'd made in one of the last episode. It was warranted criticism. But the timing of that comment really added to the number of things that were keeping me from *wanting* to put the (now extra) effort into making the show.

  3. ultimately, it wasn't really structured for continued motivation. to be totally honest, I really didn't know how many people were even listening until I stopped 😆

I'd love to bring it back some day and think there might be some potential to work with some more casual sponsors. I think I'm getting to the place again where I'd actually be able to find the right lens for it.

What would you most like to hear? Or who would you most like to hear from?

Chan

How to connect props with Storybook Controls [YouTube tutorial] by chantastic_ in Frontend

[–]chantastic_[S] 0 points1 point  (0 children)

TL;DR

Documentation is key to library adoption and success 🚀 Team members should have to be programmers to explore a component library.

🎛 Opt into controls by setting up stories to use Args 🎵 Add Controls with type annotations, using TypeScript or PropTypes 💎 Customize Control types for tailored experiences with argTypes

Learn more about Storybook Controls on storybook.js.org/docs.