-
Notifications
You must be signed in to change notification settings - Fork 119
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
refactor: updated order details totals section styling #988
refactor: updated order details totals section styling #988
Conversation
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.
Build fails at your branch after css changes. Something is wrong with parsing new styles. Please, verify that build pass yarn build
. You can check issue details in PR build checks.
- One small comment to remove field from the request.
@@ -6,8 +6,10 @@ export default gql` | |||
orders(currentPage: $currentPage, filter: $filter, pageSize: $pageSize) { | |||
items { | |||
order_number | |||
number | |||
id | |||
created_at |
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.
You can remove created_at
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.
@bartoszherba I caught the style error and fixed it. I also noticed that the new SingleOrder.vue component was created and already made all the new changes to this component.
f6ca603
to
1bb118c
Compare
@@ -43,7 +43,7 @@ | |||
v-for="order in orders" | |||
:key="order.order_number" | |||
> | |||
<SfTableData>{{ order.order_number }}</SfTableData> | |||
<SfTableData>{{ orderGetters.getId(order) }}</SfTableData> |
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.
Please, revert that. We are trying to get rid of getters whenever it is possible to reduce the bundle size, especially if getter does not introduce any intermediate logic but is a pure object prop accessor like in this case.
@@ -52,7 +52,7 @@ | |||
<SfTableData class="orders__view orders__element--right"> | |||
<SfLink | |||
data-cy="order-history-btn_view" | |||
:link="localeRoute({ name: 'customer-single-order', params: { orderId: order.order_number } })" | |||
:link="localeRoute({ name: 'customer-single-order', params: { orderId: orderGetters.getId(order) } })" |
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.
Same here, as in comment above.
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.
@bartoszherba Thank you for the info. Reverted these changes to the previous state
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.
Last changes.
This was re-added because of getters in #988 but was later removed during code review. I'll update the getters aswell so nobody is confused
Description
Updated styles for order details section
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: