Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@machikoyasuda
Copy link
Contributor

@machikoyasuda machikoyasuda commented Aug 13, 2019

User stories

  • A user should be able to click Filter by File and see a card with an Import CSV button, and text.
  • A user should be able to click X and close the card.
  • A user should be able to upload a CSV file, and see the returned products.
  • A user should be able to see an InlineAlert reporting what number of products were found and not found.
  • A user should be able to see the total number of products found, and total number of products selected.
  • A user should be able to see an InlineAlert with an error if no products were found. The table should then show all products again.

Changes

  • Upgrades dropzone to v10, to React Hooks

Solution

  • - Add Filter by File button to Actions dropdown, with i18n'd copy.
  • - Add a Quick Edit Card
  • - Add X to the card to close the card
  • - Add a Catalyst button with the Upload option
  • - The Create Product button should disappear when the Card is there.
  • - The table should show All Products with the number of products
  • - When products are selected, show the number of selected products

Components

From Reaction: Action dropdown

This component is in Reaction, not Catalyst yet.
This dropdown is composed of Material-UI Buttons and Catalyst ConfirmDialogs.

  • Hover color is wrong.
  • "Actions" should show up after you've opened it
  • "Actions" should change color, remove border and hide the arrow once you've clicked it

Screen Shot 2019-08-12 at 9 43 08 PM

Screen Shot 2019-08-12 at 9 42 46 PM

Screen Shot 2019-08-12 at 9 42 50 PM

From Reaction x MUI: Quick Edit Card

This component is in Reaction, not Catalyst yet.
This component is composed of Material-UI Card, CardHeader, CardContent w. Reaction styling.

Screen Shot 2019-08-12 at 9 43 34 PM

Screen Shot 2019-08-13 at 10 02 33 AM

From Catalyst: Chips

Once Chips are updated in Catalyst, they'll be updated in this ticket w/ correct styles.

Testing

  1. Test a user filters products w 1 file
  2. Test a user filters products w multiple files
  3. Test a user filters products and none are found
  4. Test a user filters products and some are found, but not all
  5. Test a user filters products and selects/deselects some of them

Machiko Yasuda and others added 26 commits August 13, 2019 14:57
Signed-off-by: Christopher Shepherd <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Christopher Shepherd <[email protected]>
… filtered product list

Signed-off-by: Christopher Shepherd <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
@machikoyasuda machikoyasuda changed the base branch from master to develop August 13, 2019 22:14
Christopher Shepherd and others added 3 commits August 13, 2019 19:12
Signed-off-by: Christopher Shepherd <[email protected]>
Signed-off-by: Christopher Shepherd <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Christopher Shepherd added 2 commits August 13, 2019 19:58
Signed-off-by: Christopher Shepherd <[email protected]>
…tioncommerce/reaction into machiko-christopher-combined-branch
Machiko Yasuda and others added 3 commits August 13, 2019 18:01
Copy link
Member

@mikemurray mikemurray left a comment

Choose a reason for hiding this comment

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

If no products are found, the table disappears making it impossible to clear the filters:

image

@machikoyasuda machikoyasuda changed the title Machiko christopher combined branch Part I: An admin user can filter products by uploaded CSV Aug 15, 2019
Copy link
Member

@mikemurray mikemurray left a comment

Choose a reason for hiding this comment

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

👍

@mikemurray mikemurray merged commit 4c07c52 into develop Aug 15, 2019
@mikemurray mikemurray deleted the machiko-christopher-combined-branch branch August 15, 2019 00:51
@kieckhafer kieckhafer mentioned this pull request Aug 28, 2019
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.

3 participants