Skip to content

refactoring Library.jsx into more manageable smaller components#229

Open
gbowne1 wants to merge 2 commits intomasterfrom
refactor-library-component
Open

refactoring Library.jsx into more manageable smaller components#229
gbowne1 wants to merge 2 commits intomasterfrom
refactor-library-component

Conversation

@gbowne1
Copy link
Owner

@gbowne1 gbowne1 commented Feb 2, 2025

I have made the Library.jsx smaller by refactoring it into several components and some new hooks.

This will need more testing and possibly some tweaks to it for it to work properly.

But, I feel like this is the way forward with the Library.jsx component being overly large and not that maintainable as it was over 1k lines of code.

@gbowne1 gbowne1 added enhancement New feature or request frontend Work on Frontend code-review This is ready for code review labels Feb 2, 2025
@gbowne1 gbowne1 added this to the Frontend milestone Feb 2, 2025
@gbowne1 gbowne1 self-assigned this Feb 2, 2025
@gbowne1 gbowne1 linked an issue Feb 2, 2025 that may be closed by this pull request
Copy link
Collaborator

@BlackBond06 BlackBond06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gbowne1 thank you for the opportunity to review your pr. Looking at the Library component, your pr has significantly reduced the amount of code into smaller sub-components, which is useful. But, the code did not compile for testing because the following files were missing or have not been created yet:

  1. Modal folder containing AddBookModal, ReviewModal, ReadReviewModal, and LibraryAddModal files.
  2. AddBookButton, NotificationSnackbar, and BookTableRow jsx files
    There were also prop-types entries missing prop validation. This is a really good foundation, but requires additional help to make it functional.

@gbowne1
Copy link
Owner Author

gbowne1 commented Feb 26, 2025

@BlackBond06

Yes. I established this PR without those files so that the initial refactoring could be made easier than having to go through the layers and pull out code for everything.

I would suggest merging this asis and then adding whats needed now that the hard work is done making Library.jsx a light weight file.

@gbowne1 gbowne1 closed this May 16, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in CodeBooker May 16, 2025
@gbowne1 gbowne1 deleted the refactor-library-component branch May 16, 2025 08:47
@gbowne1 gbowne1 restored the refactor-library-component branch December 18, 2025 16:02
@gbowne1 gbowne1 reopened this Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-review This is ready for code review enhancement New feature or request frontend Work on Frontend

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[TODO] Make Library.jsx into separate more manageable components

2 participants