-
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
[frontend]Implement pathbrowser in storage browser with improvements #3445
Conversation
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.
Nice work, see comments. I think we need some more work on especially the styles and the tests.
...ps/storageBrowser/StorageBrowserPage/StorageBrowserTabContents/StorageBrowserTabContent.scss
Outdated
Show resolved
Hide resolved
...pps/storageBrowser/StorageBrowserPage/StorageBrowserTabContents/StorageBrowserTabContent.tsx
Outdated
Show resolved
Hide resolved
...ps/storageBrowser/StorageBrowserPage/StorageBrowserTabContents/StorageBrowserTabContent.scss
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/FileChooserModal/FileChooserModal.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/OverflowingItem.scss
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.test.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/Breadcrumb.scss
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/OverflowingItem.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/OverflowingItem.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/OverflowingItem.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.scss
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.scss
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/PathBrowser.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/Breadcrumb/Breadcrumb.scss
Outdated
Show resolved
Hide resolved
display: flex; | ||
margin-top: vars.$fluidx-spacing-xxs; | ||
|
||
.hue-storage-browser__filePath { |
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.
we are repeating .hue-storage-browser
in every class name. even though it is nested. we can just name the class as filePath
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've named it in accordance to BEM
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 need to nest these classes in .hue-storage-browser-tabContent
?
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 work. Some minor fixes but then you can merge :-)
display: flex; | ||
margin-top: vars.$fluidx-spacing-xxs; | ||
|
||
.hue-storage-browser__filePath { |
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 need to nest these classes in .hue-storage-browser-tabContent
?
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/Breadcrumb/Breadcrumb.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileChooser/PathBrowser/Breadcrumb/Breadcrumb.tsx
Show resolved
Hide resolved
...src/desktop/js/reactComponents/FileChooser/PathBrowser/DropdownMenuItem/DropdownMenuItem.tsx
Outdated
Show resolved
Hide resolved
<div | ||
className="hue-path-browser__file-system-icon" | ||
data-testid={`${testId}__file-system-icon`} | ||
> | ||
{icons[extractFileSystem(breadcrumbs[0].label)]} | ||
</div> | ||
) : ( | ||
<></> | ||
)} | ||
<div className="hue-path-browser__breadcrumbs" data-testid={`${testId}-breadcrumb`}> | ||
{breadcrumbs.length <= 3 ? ( |
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.
nit: same here, you can use: breadcrumbs.length <= 3 && (
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 believe that the ternary operator is more apt here as breadcrumbs.length <= 3 will render only the breadcrumbs else breadcrumbs with dropdown is rendered
a10050b
to
a206d3f
Compare
What changes were proposed in this pull request?
How was this patch tested?
Please review Hue Contributing Guide before opening a pull request.