Skip to content

feat: add Badge base component#2730

Merged
dkacper merged 20 commits intov2-developfrom
feat/badge
Jun 1, 2023
Merged

feat: add Badge base component#2730
dkacper merged 20 commits intov2-developfrom
feat/badge

Conversation

@dkacper
Copy link
Copy Markdown
Contributor

@dkacper dkacper commented May 19, 2023

Related issue

Closes SFUI2-638

Scope of work

What's done:

  • Badge component implemented in both React and Vue
  • All blocks implemented
  • Docs page with examples, playground, and API table
  • tests

Screenshots of visual changes

Zrzut ekranu 2023-05-26 o 12 37 26 Zrzut ekranu 2023-05-26 o 12 37 30

Checklist

  • Self code-reviewed
  • Changes documented
  • Semantic HTML
  • SSR-friendly
  • Caching friendly
  • a11y for WCAG 2.0 AA
  • examples created
  • blocks created
  • cypress tests created

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 26, 2023

🦋 Changeset detected

Latest commit: d745129

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@storefront-ui/react Minor
@storefront-ui/vue Minor
@storefront-ui/shared Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aniamusial aniamusial marked this pull request as ready for review May 26, 2023 10:40
Comment thread packages/sfui/frameworks/react/components/SfIcons/SfIconAddShoppingCart.tsx Outdated
Comment thread apps/docs/components/components/badge.md
Comment thread packages/sfui/frameworks/vue/components/SfBadge/SfBadge.vue Outdated
Copy link
Copy Markdown
Contributor

@Szymon-dziewonski Szymon-dziewonski left a comment

Choose a reason for hiding this comment

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

Please do not forget add changeset to your PR
here's draft of how to do it https://vsf.atlassian.net/wiki/spaces/SFUI/pages/147750931/Continuous+delivery+pipeline+draft

rest is looking good, great job @aniamusial and @dkacper

Comment thread apps/docs/components/components/badge.md Outdated
Comment thread packages/sfui/shared/types/index.ts Outdated
@@ -0,0 +1,32 @@
<template>
<div class="flex gap-3">
<SfButton class="relative" square variant="tertiary">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should add relative to SfButton, wdyt ? cc: @FRSgit

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, we could - but that would be a breaking change, so let's do it separately on v3.0.0 branch

Comment thread apps/preview/nuxt/pages/examples/SfBadge.vue Outdated
Comment thread apps/preview/next/pages/examples/SfBadge.tsx Outdated
@sonarqubecloud
Copy link
Copy Markdown

[storefront-ui-react] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

80.0% 80.0% Coverage
0.0% 0.0% Duplication

@sonarqubecloud
Copy link
Copy Markdown

[storefront-ui-vue] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Copy Markdown
Contributor Author

@dkacper dkacper left a comment

Choose a reason for hiding this comment

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

LGTM after all the changes by @aniamusial. I'm happy to approve this PR. Let's merge the badge. ⭐

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.

4 participants