Skip to content

feat: add Button component#5783

Merged
ovflowd merged 27 commits into
nodejs:mainfrom
umairraza96:feat/button
Sep 28, 2023
Merged

feat: add Button component#5783
ovflowd merged 27 commits into
nodejs:mainfrom
umairraza96:feat/button

Conversation

@umairraza96
Copy link
Copy Markdown
Contributor

Description

Add new dependency for storybook for pseudo states

Write stories for 24 button states

Validation

Related Issues

Addresses #5758

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npx turbo lint to ensure the code follows the style guide. And run npx turbo lint:fix to fix the style errors if necessary.
  • I have run npx turbo format to ensure the code follows the style guide.
  • I have run npx turbo test to check if all tests are passing.
  • I've covered new added functionality with unit tests if necessary.

@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2023 2:33pm

@umairraza96 umairraza96 changed the title feat: add button component feat: add Button component Sep 11, 2023
@rodion-arr rodion-arr linked an issue Sep 11, 2023 that may be closed by this pull request
@rodion-arr rodion-arr added the github_actions:pull-request Trigger Pull Request Checks label Sep 11, 2023
@github-actions github-actions Bot removed the github_actions:pull-request Trigger Pull Request Checks label Sep 11, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 11, 2023

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 92%
90.24% (185/205) 75% (30/40) 86.66% (39/45)

Unit Test Report

Tests Skipped Failures Errors Time
14 0 💤 0 ❌ 0 🔥 3.328s ⏱️

Comment thread components/Common/Button/index.stories.tsx Outdated
Comment thread components/Common/Button/index.stories.tsx
Comment thread .storybook/main.ts Outdated
Comment thread components/Common/Button/index.module.scss Outdated
Comment thread components/Common/Button/index.module.scss Outdated
Comment thread components/Common/Button/index.stories.tsx
Comment thread components/Common/Button/index.stories.tsx Outdated
umairraza96 and others added 2 commits September 18, 2023 13:41
Add new dependency for storybook for pseudo states

Write stories for 24 button states
Co-authored-by: Claudio W <cwunder@gnome.org>
Signed-off-by: Umair Raza <52033975+umairraza96@users.noreply.github.com>
remove `storybook-addon-pseudo-states` dependency
Signed-off-by: Claudio W <cwunder@gnome.org>
Comment thread types/button.ts Outdated
Comment thread components/Common/Button/index.tsx Outdated
@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Sep 18, 2023
@github-actions github-actions Bot removed the github_actions:pull-request Trigger Pull Request Checks label Sep 18, 2023
@ovflowd
Copy link
Copy Markdown
Member

ovflowd commented Sep 26, 2023

Hey @umairraza96 the PostCSS changes got merged. I guess you can rebase and do the following:

  • update your mixin to use the @define-mixin API from postcss-mixins (and update the @include to be @mixin) (also they don't use () on both definition and usage)
  • replace the plain Hex Colors on your styles with the Talwind theme() call

@targos
Copy link
Copy Markdown
Member

targos commented Sep 28, 2023

What kind of review do you need from releaser?

@ovflowd
Copy link
Copy Markdown
Member

ovflowd commented Sep 28, 2023

I think that @umairraza96 messed up their rebase.

And now it is containing files that are owned by releasers (aka release blog posts)

This PR became a big mess...

@umairraza96
Copy link
Copy Markdown
Contributor Author

umairraza96 commented Sep 28, 2023

I think that @umairraza96 messed up their rebase.

And now it is containing files that are owned by releasers (aka release blog posts)

This PR became a big mess...

I will try to fix it. Using
git reset --hard main and then try to do things again hope it helps

@ovflowd
Copy link
Copy Markdown
Member

ovflowd commented Sep 28, 2023

I think that @umairraza96 messed up their rebase.
And now it is containing files that are owned by releasers (aka release blog posts)
This PR became a big mess...

I will try to fix it. Using git reset --hard main and then try to do things again hope it helps

You need to keep in mind that your fork main branch is not the same as the upstream main branch. The source of this mess is probably that you tried to rebase based on your fork's main.

I recommend syncing your fork through GitHub UI or manual pull on your main from upstream's main.

@umairraza96
Copy link
Copy Markdown
Contributor Author

I think that @umairraza96 messed up their rebase.
And now it is containing files that are owned by releasers (aka release blog posts)
This PR became a big mess...

I will try to fix it. Using git reset --hard main and then try to do things again hope it helps

You need to keep in mind that your fork main branch is not the same as the upstream main branch. The source of this mess is probably that you tried to rebase based on your fork's main.

I recommend syncing your fork through GitHub UI or manual pull on your main from upstream's main.

Exactly that was the issue, figured it out.

@targos targos removed the request for review from a team September 28, 2023 13:53
@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Sep 28, 2023
@github-actions github-actions Bot removed the github_actions:pull-request Trigger Pull Request Checks label Sep 28, 2023
Copy link
Copy Markdown
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

I've pushed a quick fix (accidentally you created a index.scss) and added the variant stories.

LGTM! Thank you soooooo much for your contribution, @umairraza96! Superb work, and thank you for the continuous effort here, even after all the extensive reviews 🙇

@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Sep 28, 2023
@ovflowd ovflowd enabled auto-merge September 28, 2023 14:33
@github-actions github-actions Bot removed the github_actions:pull-request Trigger Pull Request Checks label Sep 28, 2023
@ovflowd ovflowd added this pull request to the merge queue Sep 28, 2023
Merged via the queue into nodejs:main with commit a3546ce Sep 28, 2023
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.

Create Button component

7 participants