Skip to content

Commit

Permalink
docs: Add Release Notes for December (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinamenezes authored Dec 21, 2021
1 parent fe5354d commit d1dc866
Show file tree
Hide file tree
Showing 6 changed files with 220 additions and 33 deletions.
203 changes: 203 additions & 0 deletions docs/blog/2021-12-22-faststore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
---
title: December, 2021
description: FastStore Release Notes
tags: [faststore]
hide_table_of_contents: false
---

# December 2021

## General

- 🎉 **New FastStore Documentation Portal**. - [#1061](https://github.com/vtex/faststore/pull/1061)

The first iteration of the FastStore Documentation Portal is now available at [https://faststore.dev](https://faststore.dev). Send feedback and open documentation requests via [GitHub issues](https://github.com/vtex/faststore/issues/new/choose). *Bear in mind that this is still a work in progress.*

<!--truncate-->

## FastStore UI

### Label

- 🎉 **New [Label](/reference/ui/atoms/label) component.** - [#1001](https://github.com/vtex/faststore/pull/1001)
Use the `Label` component to identify text fields, checkboxes, radio buttons, and drop-down menus.

```tsx live
<Label>-20%</Label>
```

### Alert

- 🎉 **New [Alert](/reference/ui/molecules/alert) component.** - [#1020](https://github.com/vtex/faststore/pull/1020)
Use the `Alert` component to display short messages related to the behavior of a system, feature or page.

```tsx live
function Component() {
const styles = {
warning: {
backgroundColor: '#fff2d4',
color: "#eea236",
borderRadius: "0.5rem",
padding: "1rem"
},
}
return (
<Alert style={styles.warning}>
<React.Fragment key=".0">
<Icon component={<Warning />} />
<span>
This is an example of how you can use the Alert component along with icons!
</span>
</React.Fragment>
</Alert>
)
}
```

### PaymentMethods

- 🎉 **New [`PaymentMethods`](/reference/ui/molecules/PaymentMethods) component.** - [#1020](https://github.com/vtex/faststore/pull/1020)
Use the `PaymentMethods` component to display the logos of the available payment options in a store.

```tsx live
function Component() {
const VisaCard = () => (
<img
alt= "Visa logo"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Visa_Inc._logo.svg/2560px-Visa_Inc._logo.svg.png"
/>
)
const MasterCard = () => (
<img
alt= "Mastercard logo"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Mastercard-logo.svg/1544px-Mastercard-logo.svg.png"
/>
)
const AmericanExpressCard = () => (
<img
alt= "American express logo"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/American_Express_logo_%282018%29.svg/1200px-American_Express_logo_%282018%29.svg.png"
/>
)
const MaestroCard = () => (
<img
alt= "Maestro logo"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/4/4d/Maestro_logo.png"
/>
)
const EloCard = () => (
<img
alt= "Elo logo"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Elo_card_association_logo_-_black_text.svg/1024px-Elo_card_association_logo_-_black_text.svg.png"
/>
)
const HiperCard = () => (
<img
alt= "Hipercard logo"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Hipercard_logo.svg/2000px-Hipercard_logo.svg.png"
/>
)
const PayPal = () => (
<img
alt= "PayPal brand"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/PayPal_logo.svg/2560px-PayPal_logo.svg.png"
/>
)
const DinersClub = () => (
<img
alt= "Diners club logo"
width = { 50}
height = { 50}
src = "https://upload.wikimedia.org/wikipedia/commons/a/a6/Diners_Club_Logo3.svg"
/>
)
return (
<PaymentMethods title= "Payment Methods" >
<VisaCard />
<MasterCard />
<MaestroCard />
<AmericanExpressCard />
<HiperCard />
<EloCard />
<DinersClub />
<PayPal />
</PaymentMethods>
)
}
```

### RadioGroup

- 🎉 **New [`RadioGroup`](/reference/ui/molecules/RadioGroup) component.** - [#1033](https://github.com/vtex/faststore/pull/1033)
Use the `RadioGroup` component to allow users to select a single option from a list of two or more mutually exclusive options.

```tsx live
function Component () {
const [option, setOption] = useState('radio-1')
return (
<RadioGroup
name="radio-group"
selectedValue={option}
onChange={(v) => setOption(v.currentTarget.value)}
>
<RadioOption value="radio-1" label="Radio 1">
<span>Radio 1</span>
</RadioOption>
<RadioOption value="radio-2" label="Radio 2">
<span>Radio 2</span>
</RadioOption>
</RadioGroup>
)
}
```


### Contributing

-**Improved [FastStore UI Storybook](https://faststoreui.netlify.app/) with web accessibility checks for components.** - [#1036](https://github.com/vtex/faststore/pull/1036)

[FastStore UI Storybook](https://faststoreui.netlify.app/) now has a new tab called `Accessibility` that helps developers test components' compliance with web accessibility standards.

-**Enhanced process to create components in the FastStore UI.** - [#1039](https://github.com/vtex/faststore/pull/1039)

If you are developing new components for the FastStore UI, just run `yarn generate-ui-component` in the [FastStore project](https://github.com/vtex/faststore), give a name to your component and answer which component type you are developing to automatically create all the basic files your component will need.

![Contributing](/img/releases/yarn-generate.gif)

*For more information, please refer to our [Contribution guide](https://github.com/vtex/faststore/blob/master/CONTRIBUTING.MD#creating-components-on-the-faststoreui).*

## FastStore API

### VTEX Platform

- 🐛 **Fix SKU unavailability issue.** - [#1014](https://github.com/vtex/faststore/pull/1014)

The checkout process is no longer interrupted when an SKU has sellers that are not available on the current sales channel.

- 🐛 **Fix facets selection.** - [#1026](https://github.com/vtex/faststore/pull/1026)

Faceted search now accepts multiple selection.
16 changes: 8 additions & 8 deletions docs/docs/reference/ui/molecules/PaymentMethods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Component() {
alt= "Visa logo"
width = { 50}
height = { 50}
src = "https://seeklogo.com/images/V/visa-logo-BDDD51C62D-seeklogo.com.png"
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Visa_Inc._logo.svg/2560px-Visa_Inc._logo.svg.png"
/>
)

Expand All @@ -37,16 +37,16 @@ function Component() {
alt= "American express logo"
width = { 50}
height = { 50}
src = "https://seeklogo.com/images/A/american-express-logo-EDF87C04A0-seeklogo.com.png"
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/American_Express_logo_%282018%29.svg/1200px-American_Express_logo_%282018%29.svg.png"
/>
)

const MaestroCard = () => (
<img
alt= "American express logo"
alt= "Maestro logo"
width = { 50}
height = { 50}
src = "https://seeklogo.com/images/M/Maestro-logo-BF4E5E7686-seeklogo.com.png"
src = "https://upload.wikimedia.org/wikipedia/commons/4/4d/Maestro_logo.png"
/>
)

Expand All @@ -55,7 +55,7 @@ function Component() {
alt= "Elo logo"
width = { 50}
height = { 50}
src = "https://seeklogo.com/images/E/elo-logo-9F0CF48D54-seeklogo.com.png"
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/da/Elo_card_association_logo_-_black_text.svg/1024px-Elo_card_association_logo_-_black_text.svg.png"
/>
)

Expand All @@ -64,7 +64,7 @@ function Component() {
alt= "Hipercard logo"
width = { 50}
height = { 50}
src = "https://seeklogo.com/images/H/Hipercard-logo-139D91D263-seeklogo.com.png"
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Hipercard_logo.svg/2000px-Hipercard_logo.svg.png"
/>
)

Expand All @@ -73,7 +73,7 @@ function Component() {
alt= "PayPal brand"
width = { 50}
height = { 50}
src = "https://seeklogo.com/images/P/paypal-logo-484B6FE744-seeklogo.com.png"
src = "https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/PayPal_logo.svg/2560px-PayPal_logo.svg.png"
/>
)

Expand All @@ -82,7 +82,7 @@ function Component() {
alt= "Diners club logo"
width = { 50}
height = { 50}
src = "https://seeklogo.com/images/D/Diners_Club_International-logo-EF50D35BE8-seeklogo.com.png"
src = "https://upload.wikimedia.org/wikipedia/commons/a/a6/Diners_Club_Logo3.svg"
/>
)

Expand Down
7 changes: 0 additions & 7 deletions docs/src/components/LatestUpdates/LatestUpdates.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@ const LatestUpdates = () => {
.join("/")}/${item.fileName.split("-").slice(3).join("-")}`} >
<div className={styles.changelogTitle}>
<h4>{item.title}</h4>
{item.product === "FastStore" && (
<p className={styles.faststore}>{item.product}</p>
)}
{item.product === "WebOps" && (
<p className={styles.webops}>{item.product}</p>
)}
</div>

<p className={styles.descriptionChangelog}>
{item.description}
</p>
Expand Down
14 changes: 3 additions & 11 deletions docs/src/components/LatestUpdates/LatestUpdates.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,9 @@
font-weight: 600;
}

.changelogTitle p {
@apply inline-block px-2 rounded-full align-middle uppercase tracking-widest;
font-size: 10px;
}

.faststore {
@apply bg-seriousBlack text-white;
}

.webops {
@apply bg-rebelPink text-white;
.changelogList li:first-child h4::after {
content: "NEW";
@apply px-2 py-1 rounded-md uppercase tracking-widest bg-green-50 text-green-500 text-xs ml-2;
}

.descriptionChangelog {
Expand Down
13 changes: 6 additions & 7 deletions docs/static/data/releases.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[

{
"title": "December",
"product": "FastStore",
"fileName": "2021-12-22-faststore",
"description": "New FastStore Documentation Portal and enhanced contributing processes for FastStore UI. Also, new components are now available in the FastStore UI."
},
{
"title": "November",
"product": "FastStore",
Expand All @@ -11,11 +16,5 @@
"product": "FastStore",
"fileName": "2021-10-08-faststore",
"description": "We've created a new plugin to source products and collections into the Gatsby's GraphQL layer! Also, you can now send and receive custom events via the Analytics module."
},
{
"title": "September",
"product": "FastStore",
"fileName": "2021-09-01-faststore",
"description": "FastStore UI was reduced to 10kb! We've also enabled the analytics layer to be fully integrated with Google Analytics 4. "
}
]
Binary file added docs/static/img/releases/yarn-generate.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1dc866

Please sign in to comment.