hotwax / import Goto Github PK
View Code? Open in Web Editor NEWHotWax Import App
Home Page: https://import.hotwax.io/
License: Apache License 2.0
HotWax Import App
Home Page: https://import.hotwax.io/
License: Apache License 2.0
When changing the current uploaded file, the mappings selected remains as is and then clicking review button will break the app flow, as the mappings were selected as per the previous file and current file might not have those colunms.
When changing the file, all the values should reset to default.
When deselecting a single product from a group of products, all the products in that group gets deselected
Deselecting a single product from the parents group should only deselect that product and virtual product.
There is no way to verify whether the mapping has been saved or not. When the user clicks on the save button multiple times multiple mapppings with same name are created and stored.
When the user clicks on save button, after the save action mapping name input should be set empty as this will disable the save mapping button, it will restrict the user from saving the same mapping multiple time.
It will display multiple mappings with the same name.
Currently, when creating a new mapping we are generating a random id for passing the same in the request, as the in
parameter in the service is required.
But in current scenario as well, we are using the id returned from the api (which is an auto generated id) and we are using the same to identify the mappings.
Need to remove the code for generating the id, once the id param will become optional
Purchase order data is not cleared on logout.
Missing Products Modal helps users to correct missing/wrong product SKU codes. User can select one SKU code at a time, the selected SKU code would appear in the input box letting user edit or rewrite the SKU code. Once done, user can update the SKU code. Once the user press the Update button, API will take the input and also fetch the product SKU code from the product information database. Following, there will be two results scenarios:
When we upload a file for the second time & click on upload button to upload a new file, instead of uploading a file if we click on cancel button, it gives errors.
On clicking "Cancel" button second time, it should give any error
If the user switches to another page, like the settings page, while reviewing their PO, when they return to the upload screen they land on the file upload screen which is disorienting.
There should be a pop up that warns the user that if they switch to another screen while reviewing their PO, that their changes will be lost and they'll have to restart.
Missing Products Modal helps users to correct missing/wrong product SKU codes. User can select one SKU code at a time, the selected SKU code would appear in the input box letting user edit or rewrite the SKU code. Once done, user can update the SKU code. Once the user press the Update button, API will take the input and also fetch the product SKU code from the product information database. Following, there will be two results scenarios:
Currently the import app can only accept POs with single PoId.
Add support for multiple POs
Sample csv :
DM12234_SUMPO111111 (1).csv
Steps to navigate to Purchase Order Details page
Login into application
OMS: dev-apps
Username: aaron.wagner
password: Aaron@123
Upload the below CSV:
DM12234_SUMPO111111.csv
Open action menu for individual records, actions should cursor as pointer
If we have some saved mapping, and file is not uploaded, we can still select a mapping which does not have any effect.
User should not be able to select a mapping before uploading a file.
When clickin Go to oms
or any other external link then those links open in the same tab. Also when changing the date format the sample does not update.
When user uploads a CSV with an invalid date time format we need a streamlined way of helping them correct their data.
Clicking on the chip with an invalid date time should open a modal where the user can configure the format they want to use and see why their input is invalid.
When uploading a purchase order, an alert is displayed.
The alert should not be displayed when uploading purchase order, it should navigate directly to PO page.
Select deselect not working on PO detail page and missing skus not displaying in completed section on updating
As described at https://app.clickup.com/t/2h1ax9r :
While uploading a purchase order through Import App, the apply button is repeating the functionality.
For example: I tried uploading a purchase order with 20 quantity and added a buffer of 2 and clicked on "Apply", the quantity was reduced to 18. Then, I clicked on "Apply" again and the quantity reduced to 16 without any changes made in the conditions.
Same thing happened with buffer days.
Expected working of the button: if clicked on apply for the second time, it should not apply the conditions again.
Clicking on view logs opens the link in the same tab which means the user loses their import app.
Open the logs link in a new tab.
Once uploaded the inventory count will be set to the values in CSV.
Here is the format for CSV
facilityId | externalFacilityId | productId | idType | idValue | availableQty | locationSeqId | comments
In case the user is on PO detail page and token expires, instead of directly navigating the user to login page it displays an alert.
If the token is expired, the user should be redirected to login page without any alert.
If the CSV that was uploaded has one facility ID, the drop down should pre-populate with the uploaded facility.
If the uploaded CSV has multiple facilities then the selector should show "Multiple"
When logout/login then having errors in console related to reading undefined/null
.
There should not be any error in any case.
When clicking on reset action for an item and if the item is not selected then it automatically gets selected
On reset action the item should not get selected.
With node 16, the build fails due to eslint version mismatch in dependencies
This is fixed in Job Manager:
hotwax/job-manager#327
When applying any mapping, the selected mapping name should not be set to Create new mapping input field.
This could be confusing if we are allowed to update the currently selected mapping.
It should only reflect in drop down.
When we apply order buffer, in case any of the item has quantity less than order buffer, the quantity becomes negative after applying changes.
Possible fixes:
Apply buffer on items whose quantity is greater than the order buffer value and display a toast that says couldn't apply order buffer on some of the items and deselect those items and display their skus in either toast or modal.
Apply buffer on items whose quantity is greater than the order buffer value and display the rest of the items in red color
Find out the minimum quantity of items in the csv and set it as the maximum value of order buffer.
Module Warning (from ./node_modules/eslint-loader/index.js):
/Users/shantanubangar/Desktop/Hotwax Commerce/import/src/components/Image.vue
42:33 warning 'error' is defined but never used @typescript-eslint/no-unused-vars
Module Warning (from ./node_modules/eslint-loader/index.js):
/Users/shantanubangar/Desktop/Hotwax Commerce/import/src/store/modules/order/actions.ts
6:8 warning 'router' is defined but never used @typescript-eslint/no-unused-vars
Module Warning (from ./node_modules/eslint-loader/index.js):
/Users/shantanubangar/Desktop/Hotwax Commerce/import/src/store/modules/user/actions.ts
88:25 warning 'state' is defined but never used @typescript-eslint/no-unused-vars
Module Warning (from ./node_modules/eslint-loader/index.js):
/Users/shantanubangar/Desktop/Hotwax Commerce/import/src/views/OrderDetail.vue
276:23 warning 'response' is assigned a value but never used @typescript-eslint/no-unused-vars
Module Warning (from ./node_modules/eslint-loader/index.js):
/Users/shantanubangar/Desktop/Hotwax Commerce/import/src/views/PurchaseOrder.vue
65:107 warning 'IonNote' is defined but never used @typescript-eslint/no-unused-vars
When clicking on revert on a style, the ordered qty is not reverted to what was uploaded. Rather it seems like its changed to what the first item has.
It should change back to what was initially uploaded
Upload PO, adjust qty with buffer and click reset.
Warning:
Not found 'Map all fields' key in 'en' locale messages.
https://github.com/hotwax/import/pull/114/files#diff-67b6dfeb3964c5aec1aeca52a3ea39e33be0901f88fa7fad8990bb7763b31fdbR145
Check for all other instances and fix them
If order buffer is greater than or equal to the quantity of any item, then we display a toast the states the quantity of items is set to 1.
and also a default toast that says changes have been applied successfully.
One toast overlaps over the another.
Currently, we store field mappings in localstorage, use APIs to store it at backend.
APIs:
createDataManagerMapping
Parameters:
mappingPrefId (optional)
mappingPrefValue
mappingPrefTypeEnumId
fromDate
thruDate
updateDataManagerMapping
Parameters:
mappingPrefId (optional)
mappingPrefValue
mappingPrefTypeEnumId
fromDate
thruDate
deleteDataManagerMapping
Parameters:
mappingPrefId
After uploading a file it's not immediately obvious if the file uploaded and what the name of the file was.
The file name should be closer to the upload button so the user can see it if they're about to re-upload a file. It should also be bold so it stands out on the page.
When uploading a file we are storing the file content's in a variable which is an array of object, and when accessing that variable we are always accessing 0th index of it to use the file's content which will be difficult to handle. So when storing the file content in the variable we can save the 0th
index so everytime when accessing it, we don't need to explicitly define the index.
In areAllFieldsSelected
method we are using every
method to check for un-selected values when mapping, but we can simply use some
method and revert its logic.
If we don not upload a file and enter some mapping name & save it, it saves in the mapping list, which is not useful.
SAVE MAPPING button should save mapping only if
Steps to navigate to perform review action
Currently, user is navigated to Purchase Order details page
Review button should be disabled till file is not uploaded and all fields are not selected
Steps to reproduce:
[vuex] unknown action type: user/clearOrderList
There is a Search.vue
file that is not used anymore, and thus increasing the build size of the app.
Some of the static text is not added in translation file, thus giving warnings related to translation not found.
There should not be any warning on console for static text
Some of the missing text are:
Also check for any other missing text.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.