PRJ – 9

Friday 14/08: 8AM – 1:00PM

My plan for today was to finish working on printing multiple sheets at once. I cleaned up the UI to make sure it looked tidy and worked as intended. I did some small refactorings and tidied up the code in preperation for a pull request before doing some more tests to ensure it worked properly. Of course I found out that it wasn’t working properly, firstly each product has a saved initial location for the product image on the sheet, this gets set when you last print the product. This is done through sliders on the UI where you can drag X and Y co ordinates as well as the image scale to your liking, this then gets saved when you print with the idea it will be faster next time you print because you don’t have to set the image location.

When I load the list of products for printing from the Redux store and create a print preview, I am not setting the X, Y and scale values. The fix for this was to pass the initial X, Y and scale values as props to the component which creates the print previews. Unfortunately I found another issue which I could not fix, meaning I couldn’t submit the pull request today, of course this isn’t a problem but I was expecting to finish it. I found that when you press the print button for the sheet you want to print it chooses the last sheet in the array instead of the one you choose to print. I feel like I tested this earlier in the week and it was working so I believe I must be overlooking something. Hopefully someone else can spot it quickly.

Once I finish this PR I will be working on moving an existing applications backend API from C# to a JavaScript API which is using GraphQL.

Leave a comment

Design a site like this with WordPress.com
Get started