-
Notifications
You must be signed in to change notification settings - Fork 14
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
Refactor React components directory structure #2037
Conversation
c184539
to
0f23efd
Compare
8e4de99
to
91132c6
Compare
91132c6
to
ba96331
Compare
import { ClusterInfoBox } from '@components/ClusterDetails'; | ||
import HostInfoBox from '@components/HostDetails/HostInfoBox'; | ||
import { ClusterInfoBox } from '@pages/ClusterDetails'; | ||
import HostInfoBox from '@pages/HostSettingsPage/HostInfoBox'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see here we borrow HostInfoBox
from HostSettingsPage
; going by our new structure, shouldn't we move HostInfoBox
into the commmon/
directory then?
(Though this may not be for this PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(similar for ClusterInfoBox
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're right @jamie-suse but I wouldn't follow through that in this PR 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see there also opportunities to refactor some places, but i would not mind to split it up in a follow up pr :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved like suggested 👍
ba96331
to
dd825e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't follow through actual individual component refactoring through this PR but at the moment the state looks good.
@CDimonaco I would leave to you the final call about this 👍
dd825e0
to
3ffa1a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff @EMaksy, I think this is a step in the right direction
7538d51
to
b23a8a9
Compare
c41e108
to
68cd052
Compare
Description
This PR implements directory restructuring based on ADR 009. It separates the components directory into 'common' and 'pages,' enhancing code organization. The change ensures better reuse of common components across multiple pages.
Result after the refactor: