Open Sydnee-You opened 2 weeks ago
DisplayAudBalSheet.jsx
DE-01 lines 104 to 521 look pretty similar. Could maybe make a separate component just for that layout.
ImageCarousel.jsx
DE-03 on lines 26, 36, 48 (can't resolve directory images and cannot resolve a specific file),
DE-07: Ensure code is DRY - There is some repetition with the inline style css code like padding top and height. Maybe it could be moved to the style css file to removed some of the repetition. DE-06: Ensure code is readable - The code is readable with no dead code or errors.
DE-07: Ensure code is DRY - There is some repetition with the inline style css code (like background color, border color, width). Maybe it could be moved to the style css file to removed some of the repetition. DE-06: Ensure code is readable - The rest of the code is very readable with no errors.
DisplayAudBalSheet.jsx
padding-top
and height
are repeated in multiple places. Consider moving these styles to an external CSS file to reduce redundancy. ImageCarousel.jsx
background-color
, border-color
, and width
, could be extracted into a CSS file to eliminate duplication. DisplayAudBalSheet.jsx
JS-06 (ln 44): Inline styling for Row components should be moved to CSS or SCSS files for a cleaner separation of concerns.
JS-07 (ln 539): The submit function for the
DisplayAudBalSheet.jsx: There are repeated CSS styles that could be moved to CSS file to keep code DRY. Code is readable and there's no deeply nested conditionals.
ImageCarousel.jsx: Images need to be replaced since the page is updated. There's repeated CSS styles that could be refactored and reused in the CSS file.
DisplayAudBalSheet.jsx
L101-downwards: DE-06, Avoid inline styles, move them to the CSS file to maintain readability
L107,L112, L117, and similar lines: DE-07, Use mapping functions and reduce redundancy.
ImageCarousel.jsx L19, 28, 38, 82, and those similar: DE-06, Avoid inline styles and make code readable. Move to CSS file
Overview
The focus for this code review will be centered around the DisplayAudBalSheet.jsx and ImageCarousel.jsx page.
Please pay attention too:
Review Branch
review-9
Files to review
Checklists
Due date
11/11/24
For more information
The review process is documented at: http://courses.ics.hawaii.edu/ics414s21/morea/review/reading-idpm-review.html