[NP] Move saved object modal into new platform#56383
[NP] Move saved object modal into new platform#56383maryia-lapata merged 23 commits intoelastic:masterfrom
Conversation
# Conflicts: # src/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_app_controller.tsx
| import { useKibana } from '../context'; | ||
|
|
||
| // TODO the typings for EuiListGroup are incorrect - maxWidth is missing. This can be removed when the types are adjusted | ||
| const FixedEuiListGroup = (EuiListGroup as any) as React.FunctionComponent< |
There was a problem hiding this comment.
EuiListGroup already contains maxWidth, so, I think, we can remove the wrapper FixedEuiListGroup.
| @@ -0,0 +1 @@ | |||
| @import './save_modal'; | |||
There was a problem hiding this comment.
@flash1293 I don't see that the styles from src/plugins/saved_objects are imported automatically. Maybe do you know how I can load them?
There was a problem hiding this comment.
@flash1293 Should be able to help with adding this file to the SASS compiler, but currently this line is wrong. There is no save_modal.scss file in this folder. The import needs to point to the index file within that folder instead.
| @import './save_modal'; | |
| @import './save_modal/index'; |
There was a problem hiding this comment.
@cchaos Nice catch! thanks.
Since styles can't move to the new platform at the moment, I left its import in ui/saved_objects for now.
flash1293
left a comment
There was a problem hiding this comment.
LGTM once green. Can you add a dev doc section about the updated paths to import those?
|
@elasticmachine merge upstream |
lizozom
left a comment
There was a problem hiding this comment.
Tested and overall LGTM.
Added a couple of structural comments.
crob611
left a comment
There was a problem hiding this comment.
Canvas changes look good 👍 Nice work on this
# Conflicts: # src/legacy/core_plugins/visualizations/public/np_ready/public/wizard/search_selection/search_selection.tsx
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* Move saved object modal into new platform * Fix TS * Revert "Fix TS" This reverts commit f2f9f5e. * Revert "Move saved object modal into new platform" This reverts commit d0f0ea6. # Conflicts: # src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js * Move save_object_save_modal * Move show_saved_object_save_modal.tsx * Move save_object_finder.tsx * Remove unused export * Pass I18nContext to showSaveModal * Update i18n ids * Fix map save * Refactoring * Load styles * Revert importing styles * Update snapshot * Update snapshot * Structural refactoring * Fix path Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
* Move saved object modal into new platform * Fix TS * Revert "Fix TS" This reverts commit f2f9f5e. * Revert "Move saved object modal into new platform" This reverts commit d0f0ea6. # Conflicts: # src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js * Move save_object_save_modal * Move show_saved_object_save_modal.tsx * Move save_object_finder.tsx * Remove unused export * Pass I18nContext to showSaveModal * Update i18n ids * Fix map save * Refactoring * Load styles * Revert importing styles * Update snapshot * Update snapshot * Structural refactoring * Fix path Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…56428) * [Add panel flyout] Moving create new to the top of SavedObjectFinder * [Add panel flyout] Moving create new to the top of SavedObjectFinder * Fixing failing unit test * Readd missing test * [NP] Move saved object modal into new platform (#56383) * Move saved object modal into new platform * Fix TS * Revert "Fix TS" This reverts commit f2f9f5e. * Revert "Move saved object modal into new platform" This reverts commit d0f0ea6. # Conflicts: # src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js * Move save_object_save_modal * Move show_saved_object_save_modal.tsx * Move save_object_finder.tsx * Remove unused export * Pass I18nContext to showSaveModal * Update i18n ids * Fix map save * Refactoring * Load styles * Revert importing styles * Update snapshot * Update snapshot * Structural refactoring * Fix path Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> * Applying PR comments Removing faulty rebase imports Fixing unresolved conflict Removing faulty merge files Removing faulty import Readd accidentally added file * Removing unnecessary eslint-ignore Co-authored-by: Maryia Lapata <mary.lopato@gmail.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…56428) (#57360) * [Add panel flyout] Moving create new to the top of SavedObjectFinder * [Add panel flyout] Moving create new to the top of SavedObjectFinder * Fixing failing unit test * Readd missing test * [NP] Move saved object modal into new platform (#56383) * Move saved object modal into new platform * Fix TS * Revert "Fix TS" This reverts commit f2f9f5e. * Revert "Move saved object modal into new platform" This reverts commit d0f0ea6. # Conflicts: # src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js * Move save_object_save_modal * Move show_saved_object_save_modal.tsx * Move save_object_finder.tsx * Remove unused export * Pass I18nContext to showSaveModal * Update i18n ids * Fix map save * Refactoring * Load styles * Revert importing styles * Update snapshot * Update snapshot * Structural refactoring * Fix path Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> * Applying PR comments Removing faulty rebase imports Fixing unresolved conflict Removing faulty merge files Removing faulty import Readd accidentally added file * Removing unnecessary eslint-ignore Co-authored-by: Maryia Lapata <mary.lopato@gmail.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Maryia Lapata <mary.lopato@gmail.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fixes #55423.
The functionality around the save modal for saved objects was moved into a new NP plugin
saved_objects:src/legacy/ui/public/saved_objects/components/saved_object_save_modal.tsxwas removed;src/plugins/kibana_react/public/saved_objectsandsrc/legacy/ui/public/saved_objects/show_saved_object_save_modal.tsxwere moved into new pluginsrc/plgins/saved_objects.Dev Docs
SavedObjectSaveModal,showSaveModalandSaveResultfromui/saved_objects, andSavedObjectFinderUi,SavedObjectMetaDataandOnSavePropsfromsrc/plugins/kibana_react/publicwere moved to a new pluginsrc/plugins/saved_objects.Also now
showSaveModalrequires the second argument -I18nContext: