-
Notifications
You must be signed in to change notification settings - Fork 370
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: Finish organizing components #9488
refactor: Finish organizing components #9488
Conversation
core
folderThere 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 for the clean up and organization! 🎉 🧹 Didn't notice anything amiss in this diff or Cloud.
|
||
/** | ||
* Not to be confused with `<CircleProgress />`. | ||
* @todo Consolidate these two 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.
++ to consolidation. Can we get a ticket into the backlog for this, if we don't have one already?
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.
Created M3-6962
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.
looks good! 🎉
type CombinedProps = Props; | ||
|
||
const FinalCrumbPrefix: React.FC<CombinedProps> = (props) => { | ||
export const FinalCrumbPrefix = (props: Props) => { |
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.
do we still need the React.memo here or is this component small enough that it doesn't really affect it too much? Same with CookieWarning.tsx
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 because this component is rarely rendered, no memoization is fine here. It probably was an over optimization.
@@ -1,6 +1,5 @@ | |||
import { makeStyles } from '@mui/styles'; | |||
import * as React from 'react'; | |||
import { compose } from 'recompose'; |
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.
(not part of this ticket at all so feel free to ignore) worth getting rid of themakeStyles from '@mui/styles'
from this file and use the tss codemod or styled api? (or putting up a backlog ticket for refactoring this component's styles)
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.
Created M3-6963
import { TextField, TextFieldProps } from 'src/components/TextField'; | ||
import { Typography } from 'src/components/Typography'; | ||
import ClickAwayListener from 'src/components/core/ClickAwayListener'; |
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.
same comment as FinalCrumbPrefix.tsx
-- feel free to ignore
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.
Created M3-6964
Looks good on my end. Thanks for taking on this task and improving the repo's quality. |
* finish deprecating the `core` folder * storybook story improvments * Added changeset: Finish deprecating the `core` folder and clean up components * clean up `LandingHeader` * clean up some default exports and `recompose` usages * fix unit tests * remove extra default exports --------- Co-authored-by: Banks Nussman <[email protected]>
* finish deprecating the `core` folder * storybook story improvments * Added changeset: Finish deprecating the `core` folder and clean up components * clean up `LandingHeader` * clean up some default exports and `recompose` usages * fix unit tests * remove extra default exports --------- Co-authored-by: Banks Nussman <[email protected]>
Description 📝
src/components/core
folder to bring consistency to how we consume components 🎉 📁src/components/[name]
as the single source of truth 🥳Preview 📷
Before 😵💫
After 🧼
How to test 🧪
Important
There shouldn't be much manual testing needed. This PR mostly just updates imports and file names.