@@ -268,36 +268,58 @@ JS AMAZONA
268268 2 . create api for getMyOrders
269269 3 . show orders in profile screen
270270 4 . style orders
271- 32 . Admin Products
272- 1 . create Admin Order menu in header
273- 2 . create ProductListScreen.js
274- 3 . show products with edit and delete button
275- 4 . show create product button
276- 5 . implement create product backend
277- 6 . redirect user to edit product screen
278- 33 . Edit Product
271+ 32 . Admin Dashboard UI
272+ 1 . Header.js
273+ 2 . if user is admin show Dashboard
274+ 3 . create DashboardScreen
275+ 4 . create DashboardMenu
276+ 5 . Style dashboard
277+ 33 . Admin Products UI
279278 1 . create ProductListScreen.js
280- 2 . load product data from backend
281- 3 . handle form submit
282- 4 . save product in backend
283- 34 . Delete Product
279+ 2 . show products with edit and delete button
280+ 3 . show create product button
281+ 34 . Create Product
282+ 1 . create product model
283+ 2 . implement create product route
284+ 3 . create product function in api.js
285+ 4 . call create product function in ProductListScreen
286+ 5 . redirect to edit product
287+ 35 . Edit Product
288+ 1 . update parseUrlRequest to get action
289+ 2 . create ProductEditScreen.js
290+ 3 . load product data from backend
291+ 4 . handle form submit
292+ 5 . save product in backend
293+ 36 . Delete Product
284294 1 . update ProductListScreen.js
285295 2 . handle delete button
286296 3 . rerender after deletion
287- 35 . Admin Orders
297+ 37 . Admin Orders
288298 1 . create Admin Order menu in header
289299 2 . create AdminOrder.js
290300 3 . load orders from backend
291301 4 . list them in the screen
292302 5 . show delete and edit button
293303 6 . redirect to order details on edit action
294- 36 . Edit Order
304+ 38 . Edit Order
295305 1 . if order is payed show deliver button for admin
296306 2 . handle click on deliver button
297307 3 . set state to delivered
298- 37 . Delete Order
308+ 39 . Delete Order
299309 1 . update OrderListScreen.js
300310 2 . handle delete button
301311 3 . rerender after deletion
302- 38 . Publish heroku
312+ 40 . Show Summary Report in Dashboard
313+ 1 . create summary section
314+ 2 . style summary
315+ 3 . create summary backend
316+ 4 . create getSummary in api.js
317+ 5 . load data in dashboard screen
318+ 6 . show 3 boxes for Users, Orders and Sales
319+ 41 . Show Chart in Dashboard
320+ 1 . import chartist
321+ 2 . add chartist css to index.html
322+ 3 . create linear chart for daily sales
323+ 4 . create pie chart for product categories
324+ 42 . Publish heroku
303325 1 . publish steps
0 commit comments