Team-Half-and-Half / spirebooks

MIT License
0 stars 0 forks source link

Review 6: ProjectionGraph.jsx and ManageProjections.jsx #126

Closed beydlern closed 3 weeks ago

beydlern commented 3 weeks ago

Overview

Please pay attention too:

Review Branch

review-6

Files to review

Checklists

Due date

Monday, 10/21/2024

For more information

The review process is documented at: http://courses.ics.hawaii.edu/ics414s21/morea/review/reading-idpm-review.html

beydlern commented 3 weeks ago

ProjectionGraph.jsx

ManageProjections.jsx

XavierBurt commented 3 weeks ago

ProjectionGraph.jsx

I think on Line 11 {selectedChart.name} should be inside of a p tag so that we can give it a className for bootstrap or an id tag and style it how we want.

ManageProjections.jsx

Needs some more comments

It looks like the "delete" button on line 50 doesn't have any functionality, but I'm assuming we're planning on adding it later. I'm just saying it because I need more things to say about this file

caspascual commented 3 weeks ago

ProjectionGraph.jsx

ESLINT-02: Should probably start adding IDs for when we eventually make testcafes

ManageProjections.jsx

ESLINT-02: Should probably start adding IDs for when we eventually make testcafes

L17-59: Design-05: Some simple comments stating/separating what each part is would make it easier to identify each part.

samallari commented 3 weeks ago

ProjectionGraph.jsx:

ManageProjections.jsx:

jsapolu99 commented 3 weeks ago

ProjectionGraph.jsx

ManageProjections.jsx -L50 (Design-01): The delete button does not yet have any functionality. This may need to be addressed by adding a TODO comment explaining that deletion logic should be implemented here in the future.

PaytonHAH commented 3 weeks ago

ProjectionGraph.jsx

ManageProjections.jsx

t-tirabassi commented 3 weeks ago

ProjectionGraph.jsx:

Design 01/08: The props id, name, data and then name, actual, edited, amt are repeated and could instead be refactored into two constants such as selectedChart and chartData for reusability.

ManageProjections.jsx:

JS-04: Line 20 could be destructured for readability, particularly currentUser?.profile?.companyName || 'Company Name' could be made into a constant for the profile and a constant for the companyName in case the page is expanded upon.

REACT-01: The table itself could be made into its own component for reusability and/or to simply make the code more concise.

PaytonHAH commented 3 weeks ago

Review Summary

Issues

ProjectionGraph.jsx:

  1. Add testcafe id's
  2. Refactor proptypes to reduce duplication

ManageProjections.jsx

  1. Add comments for better readability (Low Priority)
  2. Add testcafe id's
  3. Delete button functionality (Already an issue in #124)
  4. Possibly make table into separate component