Make the dashboard into a seperate folder within frontend/src #602

Closed
opened 2026-04-28 07:23:58 +00:00 by b24johka · 14 comments
Collaborator

The dashboard was implemented as a component which is wrong, the components folder is supposed to consist be reusable frontend components.(dropdowns and toggle buttons is perfect example). Right now dashboard is being broken out causing the components folder to be bloated with dashboard specific elements.

EDIT: The decision has been made to hold the implementation until the temporary merge branch, i will note the developer about trying to prepare as much as possible in order to make the change as smoothly as possible.

The dashboard was implemented as a **component** which is wrong, the components folder is supposed to consist be reusable frontend components.**(dropdowns and toggle buttons is perfect example).** Right now dashboard is being broken out causing the components folder to be bloated with dashboard specific elements. EDIT: The decision has been made to hold the implementation until the temporary merge branch, i will note the developer about trying to prepare as much as possible in order to make the change as smoothly as possible.
Collaborator

Might be a good idea to do this during merge

Might be a good idea to do this during merge
Author
Collaborator

You mean afterwards?

You mean afterwards?
Collaborator

During, when we fix inevitable issues in the temp branch

During, when we fix inevitable issues in the temp branch
Author
Collaborator

Alright! i think this is a good idea.

Alright! i think this is a good idea.
Collaborator

Work in progress

Work in progress
Collaborator

Perhaps a review before "implementing" the file-system? @b24johka @a24vinla

Perhaps a review before "implementing" the file-system? @b24johka @a24vinla
Author
Collaborator

The main index file in the frontend should probably not be moved. its the starting point for the whole front end module. The major concern with having multiple index files is if they're heavily nested they can interfere with each other. I can only find 2 index files in the frontend directory, where would the third be located?

Other than that i think all of the changes are reasonable, the diagram is showing which files are being moved from the current system. are we gonna make one more diagram showing how the system after the change should look?

The main index file in the frontend should probably not be moved. its the starting point for the whole front end module. The major concern with having multiple index files is if they're heavily nested they can interfere with each other. I can only find 2 index files in the frontend directory, where would the third be located? Other than that i think all of the changes are reasonable, the diagram is showing which files are being moved from the current system. are we gonna make one more diagram showing how the system after the change should look?
Collaborator

My bad for not being clear, there is no main index file, my suggestion is to combine the 3 existing to have an main index within the frontend folder that specify all file paths (imports).

My bad for not being clear, there is no main index file, my suggestion is to combine the 3 existing to have an main index within the frontend folder that specify all file paths (imports).
Collaborator

@b24johka wrote in #602 (comment):

The main index file in the frontend should probably not be moved. its the starting point for the whole front end module. The major concern with having multiple index files is if they're heavily nested they can interfere with each other. I can only find 2 index files in the frontend directory, where would the third be located?

Other than that i think all of the changes are reasonable, the diagram is showing which files are being moved from the current system. are we gonna make one more diagram showing how the system after the change should look?

One under src, one under features, one under pages and last under components. The one under src do have some rendering which we could keep as it is.

@b24johka wrote in https://git.webug.se/Andras/BoundlessFlowCampus2K/issues/602#issuecomment-6261: > The main index file in the frontend should probably not be moved. its the starting point for the whole front end module. The major concern with having multiple index files is if they're heavily nested they can interfere with each other. I can only find 2 index files in the frontend directory, where would the third be located? > > Other than that i think all of the changes are reasonable, the diagram is showing which files are being moved from the current system. are we gonna make one more diagram showing how the system after the change should look? One under src, one under features, one under pages and last under components. The one under src do have some rendering which we could keep as it is.
Collaborator

I think this is a good idea! Seems incorrect to have multiple index files when we could combine them instead!

I think this is a good idea! Seems incorrect to have multiple index files when we could combine them instead!
Collaborator

Should I start to make the folders missing so that we can arrange files after merge or do we need to add something? @b24johka @a24vinla

Should I start to make the folders missing so that we can arrange files after merge or do we need to add something? @b24johka @a24vinla
Collaborator

Implementation is done, no "big" index file made and a pull-request has been made.

Implementation is done, no "big" index file made and a [pull-request](https://git.webug.se/Andras/BoundlessFlowCampus2K/pulls/645) has been made.
b24erika added reference 602-new-file-structure 2026-04-29 11:07:59 +00:00
Owner

Good instinct to do this type of refactoring between / inside merge.

Once the code is more stable and we start deploying this type of refactoring may be very complicated.

Good instinct to do this type of refactoring between / inside merge. Once the code is more stable and we start deploying this type of refactoring may be very complicated.
Collaborator

PR #645 is closed and merged will close this aswell

PR #645 is closed and merged will close this aswell
Sign in to join this conversation.
No milestone
No project
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#602
No description provided.