As a developer , the current code creates issues if we are trying to implement a new thing . For ex - when there are any UI based changes , since there are alot of unnecessary divs and sections , it becomes difficult as it hinders the whole layout . Similarly , in backend , there are issues because of useEffect being rendered too many times .
As a user as well, this creates issue in functioning of the website - takes alot of time to load etc .
Therefore , the whole code needs to refactored .
Requirements
the code base needs to be reviewed properly for identifying refactoring opportunities in nbnw website and editor portal (backend)
identify common elements that can be pulled over in common package
identify common technical issues
Note: Smithy model for both nbnw website and editor portal will be created by Sarvesh sir , APIs to be followed up according to that .
Description
As a developer , the current code creates issues if we are trying to implement a new thing . For ex - when there are any UI based changes , since there are alot of unnecessary divs and sections , it becomes difficult as it hinders the whole layout . Similarly , in backend , there are issues because of useEffect being rendered too many times . As a user as well, this creates issue in functioning of the website - takes alot of time to load etc . Therefore , the whole code needs to refactored .
Requirements
Note: Smithy model for both nbnw website and editor portal will be created by Sarvesh sir , APIs to be followed up according to that .
You can refer to https://github.com/nbnworg/docs/blob/main/development/learning/codingPractices.md and try to find common issues , inconsistent file structuring , inconsistent variable names etc and work on fixing that .
Acceptance
Components involved
nbnw-react-frontend, common package , nbnw-editor-final