Because of the public holiday, this week is relatively short. This week, I finished the customer page and began work on the main page. The customer page made use of each api, and the apis worked well in the customer page. The customer page can now retrieve customer data, update customer information, add new customer information, and even delete customer information. When I presented the page to Mr. Peter, he advised me to include a prompt page that displays the success or failure status of the update when changes have been made. However, because the industrial training period is coming to an end, he just provided me the code for the prompt status on the next day. He even gave me some helpful functions. Now I am free from worrying about the useEffect issue because the getStatus will be updated immediately after the change is made.
Aside from that, the backend team had finished a new API. I should use this new api called to create a new page to keep track of all orders. However, I encountered difficulties because the order api contains a large number of elements that must be used. I was concerned that I would not be able to complete the job by the end of the internship because it was less than a month. Furthermore, as December and January have many public holidays, particularly Christmas and New Year’s Day, I have less time to develop the main page. Nonetheless, I will do my best to use this API and hope that the functions of creating, updating, and deleting orders function properly.
The order API is used not just on the list page, but also on the main page. The order should be created on the main page, and the order list page will display all of the orders created. In the coming week, I will attempt to construct an order and display it on a distinct page.
