-
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
[NP] Move saved object modal into new platform #56383
[NP] Move saved object modal into new platform #56383
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
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. Can you add a dev doc section about the updated paths to import those?
@elasticmachine merge upstream |
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 overall LGTM.
Added a couple of structural comments.
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.
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 <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
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 <[email protected]>
…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 <[email protected]> * 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 <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
…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 <[email protected]> * 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 <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Maryia Lapata <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
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.tsx
was removed;src/plugins/kibana_react/public/saved_objects
andsrc/legacy/ui/public/saved_objects/show_saved_object_save_modal.tsx
were moved into new pluginsrc/plgins/saved_objects
.Dev Docs
SavedObjectSaveModal
,showSaveModal
andSaveResult
fromui/saved_objects
, andSavedObjectFinderUi
,SavedObjectMetaData
andOnSaveProps
fromsrc/plugins/kibana_react/public
were moved to a new pluginsrc/plugins/saved_objects
.Also now
showSaveModal
requires the second argument -I18nContext
: