-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Admin] Add orders/index
component with order list table
#5347
Conversation
orders/index
component with order list tableorders/index
component with order list table
628ea04
to
9faded0
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.
Thanks, @rainerdema! Great job! I only left some comments.
admin/app/components/solidus_admin/orders/index/component.html.erb
Outdated
Show resolved
Hide resolved
9faded0
to
daa5758
Compare
daa5758
to
cd41eca
Compare
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.
cd41eca
to
57bd09c
Compare
ce806b7
to
37cad8e
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.
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.
37cad8e
to
c88ce36
Compare
Summary
This PR introduces a new
orders/index
component that is structured similarly to the existingproducts/index
component.Only show complete orders
filterAdmin.Add.orders.index.component.with.order.list.table_2.mov
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: