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
[ML] Moves import buttons in file data visualizer #159722
[ML] Moves import buttons in file data visualizer #159722
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -67,6 +74,19 @@ export const ResultsView: FC<Props> = ({ | |||
<EuiSpacer size="m" /> | |||
|
|||
<EuiFlexGroup gutterSize="s" alignItems="center"> | |||
<EuiFlexItem grow={false}> |
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.
The bottom bar used to have a 'Cancel' button on it which took you back to the entry point of the file data viz. Now the only way to go back and import another file (before importing) is to use the breadcrumbs or hit the browser back button. What do you think about adding a 'Select a different file' type button into here?
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.
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.
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.
Tested and LGTM.
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
fileUpload={this.props.fileUpload} | ||
getAdditionalLinks={this.props.getAdditionalLinks} | ||
capabilities={this.props.capabilities} | ||
mode={MODE.IMPORT} |
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.
❓ shall we pass the mode
variable instead of the constant?
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.
Updated in 5e16356
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.
@jgowdyelastic Excited to see movement on this! Just a few small comments really:
Is there a background behind the content here? I know we had one in the mockup, but for this first iteration, I don't think it's needed with the page setup as it is.
I can imagine there could be confusion between 'Back' and 'Cancel' within this context. What about changing 'Cancel' to Cancel upload
so it's clearer? When 'Cancel' was next to 'Import' in the bottom bar it made sense as is. But with this move, might be better to add that extra clarification.
I think that's it for this first step. I'd be happy to revisit the mockups and work through some feedback that way for future iterations if it helps.
@mdefazio I hadn't noticed that the background color behind the file name on the import page is a different to the previous page. vs I'll fix that title in this PR. |
Agreed! Didn't mean to imply we should change the whole background—just that it could be removed so it matches the rest of the page. Thank you! |
Sorry, the screenshot in the PR description was out of date, the |
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.
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Relates to #112285
Removes the black bar at the bottom of the app which housed the import and cancel buttons.
Rather than having a button called "Change import settings" I've left this as the "Back" button. "Change import settings" isn't really a correct description of the page the button returns you to. Something like "Rerun analysis of the already selected file" would be accurate, but that is too long for a button.
@mdefazio Does this look ok? Any other suggestions? Note, I'd like to keep this PR small, the main aim was just to remove the black bar at the bottom of the page and change the name of the Cancel button after the import has already run.