Skip to content
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

[Admin] Add orders/index component with order list table #5347

Merged
merged 4 commits into from
Aug 24, 2023

Conversation

rainerdema
Copy link
Contributor

@rainerdema rainerdema commented Aug 14, 2023

Summary

This PR introduces a new orders/index component that is structured similarly to the existing products/index component.

  • Order List:
    • Displays a list of orders with attributes such as order number, email, total amount, and shipping and billing addresses.
    • Enable a search across order number, shipment number, billing address name, email, and promotion code value.
    • Add Only show complete orders filter
Admin.Add.orders.index.component.with.order.list.table_2.mov
Screenshot 2023-08-23 at 19 07 50 Screenshot 2023-08-23 at 19 07 57

Screenshot 2023-08-24 at 15 31 18

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@rainerdema rainerdema self-assigned this Aug 14, 2023
@rainerdema rainerdema changed the title Add orders/index component with order list table [Admin] Add orders/index component with order list table Aug 14, 2023
@rainerdema rainerdema marked this pull request as ready for review August 22, 2023 14:16
@rainerdema rainerdema requested a review from a team as a code owner August 22, 2023 14:16
Copy link
Contributor

@waiting-for-dev waiting-for-dev left a comment

Choose a reason for hiding this comment

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

Thanks, @rainerdema! Great job! I only left some comments.

@rainerdema rainerdema marked this pull request as draft August 23, 2023 14:08
This new component includes an order list that is similar to the existing
order list but features different columns to represent orders.
Changes include:
- Addition of new filter in `filters` method in the orders index component,
  now includes an additional filter for 'only_show_complete_orders'.

Please note that this is a special case of filters in the context of
transitioning from the old to the new orders index page.
This change ensures that the feature set between the old and new orders index
page remains consistent until we introduce the new filter component.
@rainerdema rainerdema marked this pull request as ready for review August 23, 2023 17:09
Copy link
Contributor

@waiting-for-dev waiting-for-dev left a comment

Choose a reason for hiding this comment

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

Cool, @rainerdema! Left a couple of non-blocking comments. Leaving to you the call about the feedback component.

Extracted the feedback button into its own component for reuse across
multiple pages.
This reduces duplication, and allows for easier maintenance in case we
want to update or modify the feedback button in the future.

```
bin/rails generate solidus_admin:component feedback button_component
```
- Introduced a 'fade_row_proc' parameter to the table component to determine
if rows should be faded or not based on a condition.
- Updated YARD documentation for the `SolidusAdmin::UI::Table::Component` class
to include the new attribute.
@rainerdema rainerdema merged commit b3958c7 into solidusio:nebulab/admin Aug 24, 2023
2 checks passed
@rainerdema rainerdema deleted the admin/rainerd/orders-list branch August 24, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants