Closed bksnelson closed 1 week ago
BudgetPLCollection.js:
JS-03: The spread operator can be used for updateData on line 48 instead of using the const.
JS-05: Arrow functions can be used for subscribeBudgetPL on line 93 and subscribeBudgetPLAdmin on line 104.
Footer.jsx:
Design-01/08: The different sections of the footer could be refactored into a separate const and then just mapped for each column in Footer to avoid repetition.
REACT-01: On top of refactoring, the column layout and props could be set up in a subcomponent and then just called into the Footer component.
BudgetPLCollection.js
The define
, update
, and removeIt
functions should incorporate error handling.
Footer.jsx
Each column section of the footer element contains duplicated code, the hyperlink tags and the line break tags, that should be restructured.
BudgetPLCollection.js
L145: REACT-03: Should this instead be a default export with the same name?
Footer.jsx
ESLINT-02: Should add an ID for future TestCafe
BudgetPLCollection.js: Use arrow functions where appropriate, such as in subscribeBudgetPL and subscribeBudgetPLAdmin, and consider adding error handling to define, update, and removeIt for better robustness.
Footer.jsx: Refactor repeated column elements into a separate constant and map them to each footer column to enhance readability and keep the code DRY.
BudgetPLCollection.js:
Footer.jsx:
BudgetPLCollection.js Publication method could be split based on role. More roles will be added, making the method larger than needed. But would require changing base collection.
Footer.jsx Some additional padding on y axis could be added for container. L12
New Issues:
define
, update
and removeIt
in BudgetPLCollection.js
Overview
Please pay attention too:
Review Branch
review-8
Files to review
Checklists
Due date
Monday, 11/4/2024
For more information
The review process is documented at: http://courses.ics.hawaii.edu/ics414s21/morea/review/reading-idpm-review.html