Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/vtex/affiliates into FIX-va…
Browse files Browse the repository at this point in the history
…lidator-loading

Merge Adjustments
  • Loading branch information
GabrielBarross committed Aug 10, 2022
2 parents 9537e31 + f0766b3 commit d76ef77
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.57.1] - 2022-08-09

### Fixed

- Fixed block structure
## [0.57.0] - 2022-08-09

### Added

- Component `ProfileModal` added
- Hook `UseDisclosure` added
- Some messages added to the StoreMessage utils
## [0.56.1] - 2022-08-08

### Changed

- Status filters values to match the status enum

## [0.56.0] - 2022-07-27

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "affiliates",
"vendor": "vtex",
"version": "0.56.0",
"version": "0.57.1",
"title": "Affiliates",
"description": "App that adds support for affiliates on IO stores",
"mustUpdateAt": "2018-01-04",
"categories": [],
"dependencies": {
"vtex.affiliates-order-form-spy": "0.x",
"vtex.affiliates-commission-service": "1.x",
"vtex.affiliates-commission-service": "2.x",
"vtex.store": "2.x",
"vtex.rich-text": "0.x",
"vtex.flex-layout": "0.x",
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
"lint": "tsc --noEmit --pretty",
"test": "vtex-test-tools test --collectCoverage"
},
"version": "0.56.0"
"version": "0.57.1"
}
6 changes: 3 additions & 3 deletions react/AffiliateProfileTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ function AffiliateProfileTable() {
label: intl.formatMessage(storeMessages.affiliatesTableIsApprovedTextAny),
},
{
value: 'ongoing',
value: 'ONGOING',
label: intl.formatMessage(storeMessages.onGoingTitle),
},
{
value: 'cancel',
value: 'CANCEL',
label: intl.formatMessage(storeMessages.cancelledTitle),
},
{
value: 'invoiced',
value: 'INVOICED',
label: intl.formatMessage(storeMessages.invoicedTitle),
},
]
Expand Down
12 changes: 6 additions & 6 deletions react/components/admin/dashboard/AffiliateOrdersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,22 +410,22 @@ const AffiliateOrdersTable: FC = () => {
value={statusFilter}
onChange={handleSelectChange}
>
<option value="any">
<option value="">
{intl.formatMessage(messages.affiliatesTableIsApprovedTextAny)}
</option>
<option value="order-created">
<option value="ORDER_CREATED">
{intl.formatMessage(messages.orderStatusCreatedLabel)}
</option>
<option value="payment-approved">
<option value="PAYMENT_APPROVED">
{intl.formatMessage(messages.orderStatusPaidLabel)}
</option>
<option value="payment-pending">
<option value="PAYMENT_PENDING">
{intl.formatMessage(messages.orderStatusPendingLabel)}
</option>
<option value="invoiced">
<option value="INVOICED">
{intl.formatMessage(messages.orderStatusInvoicedLabel)}
</option>
<option value="cancel">
<option value="CANCEL">
{intl.formatMessage(messages.orderStatusCancelLabel)}
</option>
</Select>
Expand Down
6 changes: 3 additions & 3 deletions react/components/store/ProfileModal/ProfileModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Modal, ActionMenu, IconOptionsDots } from 'vtex.styleguide'
import { Modal, ActionMenu, IconOptionsDots, Spinner } from 'vtex.styleguide'
import { useQuery } from 'react-apollo'
import type { QueryAffiliateOrderArgs } from 'vtex.affiliates-commission-service'
import { useIntl } from 'react-intl'
Expand Down Expand Up @@ -57,7 +57,7 @@ function ProfileModal(props: Props) {
aria-describedby="modal-order-details"
>
{loading ? (
<></>
<Spinner />
) : (
<>
<header className="mb-3">
Expand Down Expand Up @@ -104,7 +104,7 @@ function ProfileModal(props: Props) {
</strong>
{intl.formatNumber(
data?.affiliateOrder?.orderTotal
? data?.affiliateOrder?.orderTotal *
? data.affiliateOrder.orderTotal *
(item.commission / 100)
: 0,
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import type { FC } from 'react'
import React, { useCallback } from 'react'
import { useIntl } from 'react-intl'
Expand Down
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vtex.affiliates",
"version": "0.56.0",
"version": "0.57.1",
"scripts": {
"test": "vtex-test-tools test --collectCoverage"
},
Expand Down

0 comments on commit d76ef77

Please sign in to comment.