-
Notifications
You must be signed in to change notification settings - Fork 970
refactor - move homepage components in preparation implementation of configurable widgets. #2041
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
Conversation
Signed-off-by: Ben Dye <[email protected]>
… page widgets to new folder Signed-off-by: Ben Dye <[email protected]>
Signed-off-by: Ben Dye <[email protected]>
Signed-off-by: Ben Dye <[email protected]>
Signed-off-by: Ben Dye <[email protected]> Updates for linter Signed-off-by: Ben Dye <[email protected]> Changes caused by linter issues. Didn't need the lifecycle methods because the component will re-render automatically when setState is called to update the searchTerm. Removed the corresponding test. Signed-off-by: Ben Dye <[email protected]> Linter fixes for eslint / betterer Signed-off-by: Ben Dye <[email protected]>
Signed-off-by: Ben Dye <[email protected]>
Signed-off-by: Ben Dye <[email protected]>
Signed-off-by: Ben Dye <[email protected]>
frontend/amundsen_application/static/js/features/BadgeList/index.tsx
Outdated
Show resolved
Hide resolved
...static/js/features/Widgets/SearchBar/InlineSearchResults/SearchItemList/SearchItem/index.tsx
Outdated
Show resolved
Hide resolved
// ignore eslint rule about unused imports | ||
import SearchItem from '../SearchItem'; // eslint-disable-line |
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 are actually not using this at all.
What you have in line 28 is called the same way, but it could be called in any other way.
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.
Yep you were right--I updated it.
frontend/amundsen_application/static/js/features/Widgets/Tags/index.tsx
Outdated
Show resolved
Hide resolved
@@ -6,6 +6,10 @@ | |||
.home-page { | |||
.home-element-container { | |||
margin-top: $spacer-4 * 2; | |||
|
|||
&:first-child { | |||
margin-top: 0px; |
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.
margin-top: 0px; | |
margin-top: 0; |
frontend/amundsen_application/static/js/pages/HomePage/index.spec.tsx
Outdated
Show resolved
Hide resolved
… from props Signed-off-by: Ben Dye <[email protected]>
Signed-off-by: Ben Dye <[email protected]>
# This is the 1st commit message: Cleanups, eslint fixes, and update directory structure Signed-off-by: Ben Dye <[email protected]> # This is the commit message #2: Update directory structure Signed-off-by: Ben Dye <[email protected]>
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.
LGTM
Summary of Changes
Put SearchBar into same div as other home page components, and move all those components into a new features/Widgets folder.
Tests
Updated tests to reflect the refactoring, and to resolve linting errors that were flagged as a result of the refactoring.
Documentation
None
CheckList
Make sure you have checked all steps below to ensure a timely review.