Skip to content
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

Merged
merged 39 commits into from
Sep 5, 2019
Merged

[Graph] Save modal #44261

merged 39 commits into from
Sep 5, 2019

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Aug 28, 2019

Summary

This PR removes the current inline-save menu from Graph and switches to a save modal as used in Visualize and Discover.

Old:
Screenshot 2019-08-28 at 16 35 29

New:
Screenshot 2019-08-28 at 16 27 30

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 strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@flash1293 flash1293 added the Feature:Graph Graph application feature label Aug 28, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@spalger
Copy link
Contributor

spalger commented Aug 28, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@flash1293 flash1293 changed the title [Graph] Implement save modal [Graph] Save modal Aug 29, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@joshdover joshdover left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Platform changes LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@lizozom lizozom left a 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.

@flash1293
Copy link
Contributor Author

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.

I had that in first, but reverted because it's how the modals work in current master everywhere:

Before clicking save:
Screenshot 2019-09-05 at 15 13 15

After clicking save:
Screenshot 2019-09-05 at 15 13 19

I can put it back in if you want.

@lizozom
Copy link
Contributor

lizozom commented Sep 5, 2019

@flash1293 I would add it back and let @elastic/kibana-design decide. :)

@flash1293
Copy link
Contributor Author

Put in a fixed with for all save modals, this is how they look in various apps:

Maps:
Screenshot 2019-09-05 at 15 38 24

Dashboard:
Screenshot 2019-09-05 at 15 38 02

Graph:
Screenshot 2019-09-05 at 15 37 33

Copy link
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once green

@elasticmachine
Copy link
Contributor

💔 Build Failed


return (
<EuiOverlayMask>
<form onSubmit={this.onFormSubmit}>
<EuiModal
data-test-subj="savedObjectSaveModal"
className="dshSaveModal"
className="saveModal"
Copy link
Contributor

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

Suggested change
className="saveModal"
className="kbnSavedObjectSaveModal"

Copy link
Contributor Author

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@flash1293 flash1293 merged commit f080218 into elastic:master Sep 5, 2019
@flash1293 flash1293 deleted the graph/savemodal branch September 5, 2019 17:39
flash1293 added a commit to flash1293/kibana that referenced this pull request Sep 5, 2019
* 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
flash1293 added a commit that referenced this pull request Sep 6, 2019
jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 6, 2019
…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)
  ...
jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 6, 2019
…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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Graph Graph application feature release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants