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

Implemeted Static UI for displaying parsed csv and Implemented logic … #5

Closed
wants to merge 9 commits into from

Conversation

disha1202
Copy link
Contributor

…to map parsed Csv and implemented order state(#22c8vf8)

.filters {
grid-area: filters;
}
.list-item{
Copy link
Contributor

Choose a reason for hiding this comment

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

this is ok for now but add a note that this code needs to be updated to use universal list item class

@@ -0,0 +1,6 @@
export default interface OrderState {
order: {
Copy link
Contributor

@adityasharma7 adityasharma7 Feb 28, 2022

Choose a reason for hiding this comment

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

I think we should have state like this

list: {
        items: [],
        original: []
      },

import RootState from "../../RootState";

const getters: GetterTree<OrderState, RootState> = {
getCsv(state){
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
getCsv(state){
getOrdeItems(state){

import * as types from './mutation-types'

const actions: ActionTree<OrderState, RootState> = {
uploadCsv({commit}, payload){
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
uploadCsv({commit}, payload){
updateOrderList({commit}, payload){

@@ -0,0 +1,2 @@
export const SN_ORDER = 'order'
export const UPLOAD_CSV = SN_ORDER + '/UPLOAD_CSV'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export const UPLOAD_CSV = SN_ORDER + '/UPLOAD_CSV'
export const ORDER_LIST_UPDATED = SN_ORDER + '/LIST_UPDATED'

@@ -32,6 +33,12 @@ const routes: Array<RouteRecordRaw> = [
component: PurchaseOrder,
beforeEnter: authGuard
},
{
path: '/purchase-order-detail',
name: 'Purchase Order Detail',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: 'Purchase Order Detail',
name: 'PurchaseOrderDetail',

const actions: ActionTree<RootState, RootState> = {}
const actions: ActionTree<RootState, RootState> = {

}
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove these unwanted changes.


const actions: ActionTree<OrderState, RootState> = {
uploadCsv({commit}, payload){
commit(types.UPLOAD_CSV, payload );
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
commit(types.UPLOAD_CSV, payload );
commit(types.UPLOAD_CSV, payload);

}
},
[types.PRODUCT_ADD_TO_CACHED_MULTIPLE] (state, payload) {
// TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can remove these TODO.

<ion-select-option>Backorder</ion-select-option>
</ion-select>
</ion-item>
<ion-button expand="block" fill="outline">Apply</ion-button>
Copy link
Contributor

Choose a reason for hiding this comment

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

Internationalize text.

import { IonPage, IonHeader, IonToolbar, IonBackButton, IonTitle, IonContent, IonSearchbar, IonItem, IonThumbnail, IonLabel, IonInput, IonChip, IonIcon, IonButton, IonCheckbox, IonSelect, IonSelectOption } from '@ionic/vue'
import { ellipsisVerticalOutline, sendOutline } from 'ionicons/icons'
export default defineComponent({
components: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change indentation to 2 spaces.

@adityasharma7
Copy link
Contributor

Changes merged with #8. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants