Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: [M3-7098] - Create Stack component #9830

Merged

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Oct 23, 2023

Description 📝

  • Adds Stack to our "component library"

Changes 🔄

  • Adds abstraction to Stack component

Preview 📷

Screenshot 2023-10-23 at 4 30 32 PM

How to test 🧪

Storybook

  • Run yarn storybook
  • Check the Stack story for styling, functionality, and spelling

Cloud Manager

  • Check Cloud Manager in general for UI regressions

As an Author I have considered 🤔

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@bnussman-akamai bnussman-akamai self-assigned this Oct 23, 2023
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner October 23, 2023 20:47
@bnussman-akamai bnussman-akamai requested review from dwiley-akamai and carrillo-erik and removed request for a team October 23, 2023 20:47
title: 'Components/Spacer',
};

export default meta;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. This component is opinionated about layout composition. Increasing its usage means adding empty divs everywhere for building very basic layouts, which can be achieved with a simple flexbox space-between container (and occasional grouping of children). Not a fan of adding empty markup everywhere for this purpose. It also could make responsive development less intuitive.

I thought you were already complaining about too many divs 😆 ! What is your reasoning?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just appreciate the convenience of it but I can see that side of things too.

My main complaint is Cloud Manager's overuse of MUI Grid.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main complaint is Cloud Manager's overuse of MUI Grid.

While I agree, I don't think this solves it. Besides Grid has responsive handling baked in, this component will need some customisation and extra sx with breakpoints to achieve the same. All that being said it would be nice to have a session on layout composition and spend more time discussing when and where to use what.

Copy link
Member Author

@bnussman-akamai bnussman-akamai Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this solves it

Agree with this

@bnussman-akamai bnussman-akamai changed the title refactor: [M3-7098] - Create Stack and Spacer components refactor: [M3-7098] - Create Stack component Oct 24, 2023
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still need to test it in Storybook some more but I noticed a couple of typos

packages/manager/src/components/Stack.stories.tsx Outdated Show resolved Hide resolved
packages/manager/src/components/Stack.tsx Outdated Show resolved Hide resolved
bnussman and others added 3 commits October 24, 2023 17:39
Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
@carrillo-erik
Copy link
Contributor

I did not observe any visual defects with these changes. Running Storybook locally worked as expected. I think this component is a great addition to our component library.

Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! nice addition.

Put an item to discuss layout composition with the team and will include this one as well

@bnussman-akamai bnussman-akamai merged commit 71c8d6d into linode:develop Oct 25, 2023
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants