-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate "Orders > Shopping Carts" page #31934
Migrate "Orders > Shopping Carts" page #31934
Conversation
b46a275
to
3c9e720
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work, I added some comments, that shouldn't take too much time.
Also this PR is missing tests (behats for command handlers and ideally some integration tests for CartController grid action)
Thanks for your review @zuk3975! |
39a9245
to
c8c1459
Compare
I work now on testing ;) |
76fdd80
to
2f70429
Compare
src/PrestaShopBundle/Resources/config/services/core/form/choice_provider.yml
Show resolved
Hide resolved
src/PrestaShopBundle/Resources/config/services/core/grid/accessibility_checker.yml
Outdated
Show resolved
Hide resolved
src/Core/Grid/Action/Row/AccessibilityChecker/DeleteCartAccessibilityChecker.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Resources/config/services/core/domain/cart.yml
Outdated
Show resolved
Hide resolved
7eeaa13
to
ca58fc9
Compare
src/PrestaShopBundle/Resources/config/services/core/domain/cart.yml
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Resources/config/services/core/grid/doctrine_query_builder.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just this one https://github.com/PrestaShop/PrestaShop/pull/31934/files#r1192088594
(sorry for noticing late) and its ok for me ✔️
the other one (https://github.com/PrestaShop/PrestaShop/pull/31934/files#r1192094627) could be improved in dedicated PR, not blocking
5e0bc4b
to
9593650
Compare
src/Core/Domain/Cart/CartStatus.php
Outdated
/** | ||
* Cart status | ||
*/ | ||
class CartStatus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be an enum
/** | ||
* Class CartStatusesChoiceProvider is responsible for providing cart status choices in cart grid filters. | ||
*/ | ||
final class CartStatusesChoiceProvider implements FormChoiceProviderInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know there is a discussion about FormChoiceProvider being relevant for simple use case like this, I think this one could simply be inside a form type. WDYT ?
ping @jolelievre
- Add alignement system in column - Add `badge_type_field` to use column in grid to select badge type directly and no only color (like `color_field` for instance)
- Use DI instead of `Context` - Add purple color - Create kpi_row factory for Carts page kpi
- Add index action page - Add solo/bulk delete actions - Add export into csv
Add cart JS grid query grid
fix repository
- Add new column for display & search status - Fix AbandonedCartKpi to go directly into abandoned cart fix grid improvement
9593650
to
098103a
Compare
098103a
to
62c14da
Compare
Might fix this issue #31385. Check it as a bonus on the QA, not a blocker for QA :) |
Can I close my PR? Stuck since a lot of time. |
No, you must keep it open UNTIL THE END OF TIMES! |
make admin-new-theme
!First, active
Carts index
feature flag, and then navigate into Orders -> Carts page.You can filter data, delete not already ordered carts one by one or by bulk actions.
Multistore mode is supported, and in that case we add Shop column into grid (only for all / group context).
Warning:
For now new Kpi use legacy to retrieve data in all already migrated pages!