-
Notifications
You must be signed in to change notification settings - Fork 1
First step on refactoring code structure #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
So, I can't really reply to the questions unless you give me clear enough examples. Here's one folder structure that could work: This folder contains everything regarding the analysis feature, but you do need to hook up the app router with the |
|
Regarding what subfolders you have in A good starting point for the file structure in the analysis feature folder: If you need multiple components and it starts to look messy, create a |
|
|
|
Hello @marcusradell! I've started the first phase by creating the feature analysis folder without deleting the previous structure. |


As per wha we discussed, I feel this would be the first step. Then I would create the sections inside the app folder (code duplication and making the containers folder redundant). Due to being more than one, for me it would make sense to allocate them a specific folder inside analysis. Is this correct?
After I would eliminate the redundancy. My question after our conversation is what would be considered the "feature": the router for the analysis that contains the page, or would it be at app level? From my point of view I would see the route itself as a representation of said feature, allocating it the necessary information.