-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implemented functionality for find order page ( #1wn444v ) #4
Conversation
src/components/OrderCard.vue
Outdated
@@ -0,0 +1,115 @@ | |||
<template> | |||
<div class="order-header"> |
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.
Improve indentation
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.
Improved Sir
src/components/OrderCard.vue
Outdated
IonNote, | ||
OpenItemCard, | ||
}, | ||
props: ['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.
Improve indentation
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.
Improved sir
src/router/index.ts
Outdated
// name: 'ProductInventory', | ||
// component: ProductInventory, | ||
// beforeEnter: authGuard | ||
// }, |
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.
Remove this if not needed.
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.
Removed Sir
…e to get image url, size and color of product(#1wn444v)
… do not need to delete package-log.json again and again (#1wn444v)
…o that i do not need to delete package-log.json again and again (#1wn444v)" This reverts commit f1d38a7.
…ing method and shipping from (#1wn444)
IonThumbnail, | ||
IonTitle, | ||
IonToolbar, | ||
IonSelectOption, |
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.
Arrange the component import alphabetically
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.
Arranged Sir
src/main.ts
Outdated
@@ -57,7 +57,7 @@ app.config.globalProperties.$filters = { | |||
externalId = externalIdentificationSplit[1] ? externalIdentificationSplit[1] : ''; | |||
} | |||
return externalId; | |||
}, | |||
}, |
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.
Remove this unwanted change
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.
Removed Sir.
@@ -40,12 +40,48 @@ const actions: ActionTree<ProductState, RootState> = { | |||
// Remove added loader only when new query and not the infinite scroll | |||
if (payload.viewIndex === 0) emitter.emit("dismissLoader"); | |||
} catch(error){ | |||
console.log(error) |
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.
Why we have removed this console statement?
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.
Aditya sharma Sir instructed me to remove all console.log from code before making PR.
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.
But this console statement is not added by you and it's used to display the error message
products: { | ||
list: any; | ||
total: number; | ||
} | ||
productsInformation: any; |
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 think this state is not needed.
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.
Sir according to me this statement is removed in recent commits please check those
src/store/modules/order/actions.ts
Outdated
|
||
// Add Product information in cache | ||
|
||
async getProductInformation(context, { orders }){ |
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.
Remove duplicate declaration of the same function. You have defined the getProductInformation
here in the order action and also in the product action.
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.
Okay sir will update
src/store/modules/product/index.ts
Outdated
products: { | ||
list: {}, | ||
total: 0 | ||
} | ||
}, | ||
productsInformation: {} |
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.
Remove the productsInformation
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.
Already removed Sir
}, | ||
[types.PRODUCT_ADD_TO_CACHED_MULTIPLE] (state, payload) { | ||
// TODO | ||
if (payload.products) { |
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.
Improve indentation
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.
Improved sir
} | ||
}, | ||
[types.PRODUCT_ADD_TO_CACHED_MULTIPLE] (state, payload) { | ||
// TODO |
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.
Why here a TODO statement?
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.
Removed Sir
src/views/Orders.vue
Outdated
}, | ||
|
||
methods: { | ||
async getOrders(vSize, vIndex){ |
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.
Make vSize
and vIndex
optional.
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.
Okey sir
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.
Sir made them optional
src/views/Orders.vue
Outdated
|
||
}, | ||
mounted() { | ||
this.getOrders(10, 0); |
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.
We won't pass the view size and view index from the mounted hook
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.
Okay, Sir
…order and made getOrder function's parameters optional (#1wn444v)
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.
Remove package-lock.json file changes.
This pull request can not be accessed by me for making further changes so this is why I am closing this pull request. |
Added instructions for using SDK
Implemented functionality in find order page, I have used findOrder and searchProduct endpoint there and integrated all necessary functionalities but did not get some properties there.