railsdevs.com icon indicating copy to clipboard operation
railsdevs.com copied to clipboard

Lookbook

Open faqndo97 opened this issue 2 years ago ā€¢ 7 comments

Lookbook integration. Resolves #624

Pull request checklist

  • [ ] My code contains tests covering the code I modified
  • [ ] I linted and tested the project with bin/check
  • [ ] I added significant changes and product updates to the changelog

Screen Shot 2022-09-03 at 7 25 56 PM

faqndo97 avatar Sep 03 '22 18:09 faqndo97

@joemasilotti little update here, I couldn't advance much last week, I'll continue with this today.

faqndo97 avatar Sep 13 '22 00:09 faqndo97

Sounds great ā€“ thanks for the update! Excited to see what's next. :)

joemasilotti avatar Sep 13 '22 02:09 joemasilotti

What is pending here? Need some help @faqndo97 ? I've seen your branch and is pretty cool. I want to get this feature merged, because it's really cool to work with components.

KarlHeitmann avatar Sep 17 '22 01:09 KarlHeitmann

@KarlHeitmann thanks for asking, Iā€™m planning to finish last details in the upcoming days and open the PR to review it.

faqndo97 avatar Sep 18 '22 17:09 faqndo97

@joemasilotti this is ready for the first formal code review when you can šŸ™ŒšŸ¾

faqndo97 avatar Sep 28 '22 05:09 faqndo97

Thanks for your patience on this ā€“ I just got back from The Rails SaaS Conference and finally have time to dive in.

I pulled down the code and did a quick visual review of the components. They are looking awesome!

A few questions/suggestions:

  1. The small components look odd when viewed alone. I think we need our default layout to add a bit of padding to give them some room to breath.
  2. Let's use sentence case for all the parameters ("Title" instead of "title" and "Some title" instead of "Some Title").
  3. The larger components (forms + tables) could also use some padding and probably a max width. Right now they look a little odd stretched out to fill the entire screen.
  4. I'm not sure how I feel about having versions of the same component that don't look visually (e.g. the id field for List). I'm thinking we might want to only show the differences for visual components and let the developer discover the remainder of the options themselves.
  5. Let's use the name of the component in the component's default copy. For example, in the form container we can use "Form container" for the title and describe when/how to use it in the description. I think that will show a better idea of how it looks with more realistic copy.

I haven't dug into the code just yet but wanted to give you some feedback first.

Outside of this, are there any more components that need to be added or are these all of them?

joemasilotti avatar Oct 10 '22 23:10 joemasilotti

Hey again @faqndo97. Do you still have appetite to get this over the finish line? I'm currently working through a redesign for the marketing pages of RailsDevs. And I'd love to use Lookbook to show off the new colors and components.

Let me know! And no pressure if not ā€“Ā I'm happy to take over. There is already a solid base and I don't think I would have much more to do.

joemasilotti avatar Oct 21 '22 16:10 joemasilotti

Hey @faqndo97! I haven't heard from you in over a month so I'm going to take over this PR. If anything changes let me know.

joemasilotti avatar Oct 30 '22 14:10 joemasilotti

@joemasilotti Sorry for the big delay on this, my life have been a mess and with bunch of changes since my last commit. Can I help you to wrap this up?

faqndo97 avatar Dec 12 '22 20:12 faqndo97

No need to apologize. I clearly didn't make any progress either. šŸ˜†

Yes, please! I would love some help getting this over the finish line.

joemasilotti avatar Dec 12 '22 21:12 joemasilotti

Hey @faqndo97, do you still have appetite to get this over the finish line?

No worries if not! But let me know this week so I can assign it to someone else or finish it myself.

joemasilotti avatar Feb 02 '23 13:02 joemasilotti

Hey guys!

@faqndo97 need some help there? I've fixed the issues @joemasilotti mentioned tonight I may have some time to research and answer the last question here

KarlHeitmann avatar Feb 10 '23 20:02 KarlHeitmann

A heads up that Lookbook v2 was just announced. So we will probably also want to upgrade to that for this PR. šŸ«¤

@faqndo97 are you still interested in this PR? If not, let's chat if we can pass it of to @KarlHeitmann.

joemasilotti avatar Feb 13 '23 12:02 joemasilotti

@joemasilotti Thanks for asking! I can tackle the review comments and update lookbook version this weekend if you're interested. Let me know

faqndo97 avatar Feb 14 '23 02:02 faqndo97

That'd be great, thank you!

joemasilotti avatar Feb 14 '23 04:02 joemasilotti

@joemasilotti FYI today tomorrow I'll continue working on this.

faqndo97 avatar Feb 20 '23 10:02 faqndo97

@joemasilotti Remaining items:

I'm not sure how I feel about having versions of the same component that don't look visually (e.g. the id field for List). I'm thinking we might want to only show the differences for visual components and let the developer discover the remainder of the options themselves.

Which ones do you suggest to remove? I feel them useful except Basic Link for example that are literally the same with more params. They can be merged into the one with more params. The same can apply for List with item. Apart from that IDK which others are redundant. Do you have other suggestions?

Let's use the name of the component in the component's default copy. For example, in the form container we can use "Form container" for the title and describe when/how to use it in the description. I think that will show a better idea of how it looks with more realistic copy.

About this not all components have a clear place to put the component name, for example the table component. We can use this one maybe https://lookbook.build/guide/previews/grouping/#grouping-all-examples or use the notes section with a title being the component name and the description digging deeper on the component usage. What do you think?

A heads up that Lookbook v2 was just announced. So we will probably also want to upgrade to that for this PR. šŸ«¤

The current stable version is 1.5.3 and V2 is in beta, do you still want to use the beta version here?

faqndo97 avatar Feb 22 '23 00:02 faqndo97

Ignore my comment for elements that don't have a place for text to appear.

And judging by the minimal code change requirements outlined in the docs I vote we push for v2.

joemasilotti avatar Feb 26 '23 18:02 joemasilotti

@joemasilotti Ok, I'll update to the new version until Tuesday so we can wrap this PR this week!

faqndo97 avatar Feb 27 '23 02:02 faqndo97

Excellent, thank you!

joemasilotti avatar Feb 27 '23 02:02 joemasilotti

Hey @faqndo97 and @KarlHeitmann! Do either/both of you have appetite to get this over the finish line?

RailsDevs is getting a makeover soonish and I'd love to have Lookbook in place before then if possible.

joemasilotti avatar Mar 24 '23 21:03 joemasilotti

Hey @joemasilotti Unfortunately, until May I will be quite busy as I am changing jobs. However, the theme of the components and the lookbook gem interest me greatly. I look forward to contributing to this as soon as I have more free time.

KarlHeitmann avatar Mar 29 '23 14:03 KarlHeitmann

Hey @faqndo97, I'm doing a bit of spring cleaning on the repo and closing out old PRs. I still would love to see this integrated but I want to wait for the redesign, first.

joemasilotti avatar Jun 05 '23 12:06 joemasilotti