Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Refactor/add to cart #809

Merged
merged 25 commits into from
Sep 29, 2020
Merged

Refactor/add to cart #809

merged 25 commits into from
Sep 29, 2020

Conversation

krzysztofwolski
Copy link
Member

@krzysztofwolski krzysztofwolski commented Jul 13, 2020

I want to merge this change because...

  • wanted to move more components to @next
  • remove duplicated component names
  • after clicking add to basket display cart overlay to avoid confusion if the product was really added to the cart
  • improve test selectors for product details page
  • add updated Plop code generator and readme instructions

Pull Request Checklist

  1. All visible strings are translated with proper context.
  2. All data-formatting is locale-aware (dates, numbers, and so on).
  3. The changes are tested.
  4. The code is documented (docstrings, project documentation).
  5. Changes are mentioned in the changelog.

Test Environment Config

API_URI=https://master.staging.saleor.rocks/graphql/

@github-actions github-actions bot temporarily deployed to refactor-add-to-cart July 13, 2020 18:38 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart July 14, 2020 11:41 Inactive
@stale
Copy link

stale bot commented Sep 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added stale and removed stale labels Sep 12, 2020
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 22, 2020 16:09 Inactive
@github-actions github-actions bot had a problem deploying to storybook refactor-add-to-cart September 22, 2020 16:09 Failure
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 22, 2020 16:28 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 22, 2020 16:28 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 22, 2020 16:34 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 22, 2020 16:34 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 23, 2020 10:09 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 23, 2020 10:09 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 23, 2020 11:50 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 23, 2020 11:50 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 23, 2020 15:28 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 23, 2020 15:28 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 23, 2020 15:44 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 23, 2020 15:44 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 24, 2020 08:21 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 24, 2020 08:21 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 24, 2020 11:46 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 24, 2020 11:46 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 24, 2020 12:01 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 24, 2020 12:01 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 28, 2020 10:59 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 28, 2020 10:59 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 28, 2020 13:09 Inactive
@github-actions github-actions bot temporarily deployed to refactor-add-to-cart September 28, 2020 13:21 Inactive
@github-actions github-actions bot temporarily deployed to storybook refactor-add-to-cart September 28, 2020 13:21 Inactive
@krzysztofwolski krzysztofwolski marked this pull request as ready for review September 28, 2020 13:33
@krzysztofwolski
Copy link
Member Author

I recommend trying out test env to see if all working as intended ✌️

package.json Outdated Show resolved Hide resolved
plop-templates/Component/stories.tsx.hbs Outdated Show resolved Hide resolved
src/@next/components/molecules/AddToCartButton/stories.tsx Outdated Show resolved Hide resolved
src/views/Product/View.tsx Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
storiesOf("@components/{{ componentType }}/{{pascalCase name}}", module)
.addParameters({ component: {{pascalCase name}} })
.addDecorator(story => (
<IntlProvider locale="en">story()</IntlProvider>
Copy link
Contributor

Choose a reason for hiding this comment

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

As IntlProvider is always added as decorator, I think it is better to add it just in one place in .storybook/OutLineDecorator.jsx, so this decoration addition would be completely removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Its outside of the scope of this PR, editing existing PRs would be needed. Created Issue: https://app.clickup.com/t/2549495/SALEOR-1194

@orzechdev orzechdev self-requested a review September 29, 2020 12:10
@dominik-zeglen dominik-zeglen merged commit a88e88a into master Sep 29, 2020
@dominik-zeglen dominik-zeglen deleted the refactor/add-to-cart branch September 29, 2020 13:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants