-
Notifications
You must be signed in to change notification settings - Fork 2
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: split out ui file #3865
Conversation
Removed vultr server and associated DNS entries |
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.
Great little refactor, love to see it!
A few comments on co-locating the Editor modal components 👍
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 this should move to /src/ui/editor/
to be located alongside other Editor modal components.
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.
Thanks, that makes sense! I think I've got a few holes in my understanding of the context around these groupings so that's helpful to have that framing :)
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.
As above, this should go in /src/ui/editor
.
The intention here would be for src/@planx/components
to be the graph components. There's a tricky language thing here where these are the lego building blocks of the graph, but the word "component" in the lego block sense clashes with "component" in the web framework sense.
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 wonder if it would make sense to rename one of the folders to graphComponents
in that case? 🤔
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.
Just discussed in dev call - let's stick with /components
for now 👍
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.
Maybe /shared/types.tsx
would be more appropriate here?
Sorry for the long diff - most of these are file import changes.
Summary of main changes:
The
ui.tsx
file seemed very random - filled with shared components such asMoreInformation
, miscellaneous shared types (e.g.PublicProps
) and the long icons mapping constant.shared/icons
,shared/types.tsx
and moved the components into their own files, which are under/src/ui/editor
.types.tsx
fromChecklist.tsx