-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Graph] Save modal #44261
[Graph] Save modal #44261
Conversation
💔 Build Failed |
retest |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
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.
Platform changes LGTM
src/legacy/ui/public/saved_objects/show_saved_object_save_modal.tsx
Outdated
Show resolved
Hide resolved
src/legacy/ui/public/saved_objects/show_saved_object_save_modal.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed |
💚 Build Succeeded |
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 added a couple of comments.
While testing, I noticed that when the popup enters the duplicate name mode, it changes size. This makes it look like an entirely different popup. However, when you go and change the name - the popup is resized again, back to the smaller size.
I would like to suggest enforcing the popup size, or at least the popup width. I think it should improve UX.
src/legacy/ui/public/saved_objects/show_saved_object_save_modal.tsx
Outdated
Show resolved
Hide resolved
src/plugins/kibana_react/public/saved_objects/saved_object_save_modal.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/graph/public/components/graph_save_modal.tsx
Outdated
Show resolved
Hide resolved
I had that in first, but reverted because it's how the modals work in current master everywhere: I can put it back in if you want. |
@flash1293 I would add it back and let @elastic/kibana-design decide. :) |
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 once green
💔 Build Failed |
|
||
return ( | ||
<EuiOverlayMask> | ||
<form onSubmit={this.onFormSubmit}> | ||
<EuiModal | ||
data-test-subj="savedObjectSaveModal" | ||
className="dshSaveModal" | ||
className="saveModal" |
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.
This className needs a prefix to be less specific and match BEM naming conventions. Since this is a Kibana global component I'd call it
className="saveModal" | |
className="kbnSavedObjectSaveModal" |
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.
Good suggestion, I renamed it
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.
Thx!
💚 Build Succeeded |
* create graph listing page * clean up app folder * remove inline loading menu * also add badge to workspace route * fix tests * fix graph spaces functional test * generate documentation for new breadcrumb property * fix test subject names * remove unused translations * start implementing save modal flow for Graph * fix spaces functional test * wip save modal * wip save modal * add and style save modal * add placeholder to description field * disable dirty check on breadcrumb navigation and fix delete function * improve onClick typing on breadcrumb * fix newline error and use new types in dashboard app controller * fix translation errors * fix i18n translation for real * code review * fix i18n phrases * remove fragments * remove unnecessary max-width and add commentary * move to async syntax * clean up implementation * use description instead of title * fix snapshot * adress review comments and set width for all save modals * fix bug and improve typing * fix classname
…ete-for-distance_feature * 'master' of github.com:elastic/kibana: (89 commits) Replace TSVB timeseries charts with elastic-charts (elastic#33558) [TSVB][Top N aggregation] Unable to deal with negative values (elastic#43581) [alerting] Adds Action Type configuration support and whitelisting (elastic#44483) FTR: fix WebDriver Actions calls (elastic#44605) [Code] add NodeRepositoriesService to watch new repositories on local node (elastic#44677) [skip-ci][Maps] Improve Maps intro page (elastic#44721) [Maps] Update titles and descriptions for data sources (elastic#44833) Types + Extract Integration Util (elastic#44433) Downgrade log level from info to debug for cases when we cannot handle authentication attempt. (elastic#44933) [Reporting] Remove Chome stdout/stderr observables, Add Browser Logger observable (elastic#44359) Update Jest script to output coverage (elastic#44447) [ftr] support --kibana-install-dir flag (elastic#44552) [WATCHER] Allow user to set a threshold value of 0 (elastic#44810) Remove injectI18n in dashboard plugin. (elastic#44580) [Graph] Save modal (elastic#44261) Use external script for the OIDC Implicit flow handler page. (elastic#44866) disable router prefixing with pluginId (elastic#44855) [SIEM] Fix bug on url + inspect functionality on hosts/hostDetails page (elastic#44671) [ML] File data viz limiting uploaded doc chunk size (elastic#44768) [code] Append go env variable 'GOCACHE' to go lsp spawn command. (elastic#44864) ...
…plate * 'master' of github.com:elastic/kibana: (91 commits) [APM] Make number of x ticks responsive to the plot width (elastic#44870) [ML] Single metric viewer: Fix top nav refresh behaviour. (elastic#44860) Replace TSVB timeseries charts with elastic-charts (elastic#33558) [TSVB][Top N aggregation] Unable to deal with negative values (elastic#43581) [alerting] Adds Action Type configuration support and whitelisting (elastic#44483) FTR: fix WebDriver Actions calls (elastic#44605) [Code] add NodeRepositoriesService to watch new repositories on local node (elastic#44677) [skip-ci][Maps] Improve Maps intro page (elastic#44721) [Maps] Update titles and descriptions for data sources (elastic#44833) Types + Extract Integration Util (elastic#44433) Downgrade log level from info to debug for cases when we cannot handle authentication attempt. (elastic#44933) [Reporting] Remove Chome stdout/stderr observables, Add Browser Logger observable (elastic#44359) Update Jest script to output coverage (elastic#44447) [ftr] support --kibana-install-dir flag (elastic#44552) [WATCHER] Allow user to set a threshold value of 0 (elastic#44810) Remove injectI18n in dashboard plugin. (elastic#44580) [Graph] Save modal (elastic#44261) Use external script for the OIDC Implicit flow handler page. (elastic#44866) disable router prefixing with pluginId (elastic#44855) [SIEM] Fix bug on url + inspect functionality on hosts/hostDetails page (elastic#44671) ...
Summary
This PR removes the current inline-save menu from Graph and switches to a save modal as used in Visualize and Discover.
Old:
New:
Depends on #44068
Platform team
This also includes TS-ifying
show_saved_object_save_modal.tsx
App arch team
This PR slightly extends the saved object save modal to have different labels for the action button for ordinary saving ("Save") or for saving an object with the same name as another already existing object ("Confirm save"). Additionally a small bug was fixed that caused the wrong button label to show in the duplicate title warning message if a custom label is used.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers