-
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] Deangularize graph app controller #106587
[Graph] Deangularize graph app controller #106587
Conversation
@elasticmachine merge upstream |
…e-angular-from-control-panel # Conflicts: # x-pack/plugins/graph/public/app.js
@elasticmachine merge upstream |
…e-angular-from-control-panel
…e-angular-from-control-panel # Conflicts: # x-pack/plugins/graph/public/types/workspace_state.ts
@elasticmachine merge upstream |
@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.
Clicking on New workspace now leads to the Graph main index page rather than creating a new workspace ❌ - blocker?
Can still reproduce this one.
There are also some design regressions:
-
when configuring the initial data source for the graph, the scroll bar appears now (only in Safari). FF and Chrome are ok. (probably blocker?)
-
The "quick selection"s button pills are more "compact" compared to the previous implementation (no blocker)
x-pack/plugins/graph/public/components/control_panel/control_panel.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/graph/public/components/settings/settings.test.tsx
Outdated
Show resolved
Hide resolved
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.
Left few minor nitpick comments, but generally ok with the content. 👍
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @dmitriynj |
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.
@@ -21,6 +21,7 @@ | |||
*/ | |||
|
|||
.gphNoUserSelect { | |||
padding-right: $euiSizeXS; |
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 see this adds a bit of padding to the
node labels, but it's not clear what problem this addresses. Out of curiosity, was there a particular situation that led to this addition?
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 guess it was mistakenly leaved and can be removed in a follow up PR.
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.
Minor CSS considerations.
We could do a larger style pass in the future.
@@ -24,6 +24,10 @@ | |||
padding: $euiSizeXS; | |||
border-radius: $euiBorderRadius; | |||
margin-bottom: $euiSizeXS; | |||
|
|||
& > span { |
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.
As a general practice, we tend to not target elements directly using a plain element selector. Instead, we prefer to target a class which in this case seems possible via .kuiIcon
(class on the span).
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.
Thank you, let's fix it in follow up PR.
* [Graph] deaungularize control panel * [Graph] move main graph directive to react * [Graph] refactoring * [Graph] remove redundant memoization, update import * [Graph] fix settings menu, clean up the code * [Graph] fix graph settings * [Graph] code refactoring, fixing control panel render issues * [Graph] fix small mistake * [Graph] rename components * [Graph] fix imports * [Graph] fix graph search and inspect panel * [Graph] remove redundant types * [Graph] fix problem with selection list * [Graph] fix functional test which uses selection list * [Graph] fix unit tests, update types * [Graph] fix types * [Discover] fix url queries * [Graph] fix types * [Graph] add react router, remove angular stuff * [Graph] fix styles * [Graph] fix i18n * [Graph] fix navigation to a new workspace creation * [Graph] fix issues from comments * [Graph] add suggested changed * Update x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.tsx Co-authored-by: Marco Liberati <[email protected]> * [Graph] remove brace lib from imports * [Graph] fix url navigation between workspaces, fix types * [Graph] refactoring, fixing url issue * [Graph] update graph dependencies * [Graph] add comments * [Graph] fix types * [Graph] fix new button, fix control panel styles * [Graph] apply suggestions Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Marco Liberati <[email protected]>
* [Graph] deaungularize control panel * [Graph] move main graph directive to react * [Graph] refactoring * [Graph] remove redundant memoization, update import * [Graph] fix settings menu, clean up the code * [Graph] fix graph settings * [Graph] code refactoring, fixing control panel render issues * [Graph] fix small mistake * [Graph] rename components * [Graph] fix imports * [Graph] fix graph search and inspect panel * [Graph] remove redundant types * [Graph] fix problem with selection list * [Graph] fix functional test which uses selection list * [Graph] fix unit tests, update types * [Graph] fix types * [Discover] fix url queries * [Graph] fix types * [Graph] add react router, remove angular stuff * [Graph] fix styles * [Graph] fix i18n * [Graph] fix navigation to a new workspace creation * [Graph] fix issues from comments * [Graph] add suggested changed * Update x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.tsx Co-authored-by: Marco Liberati <[email protected]> * [Graph] remove brace lib from imports * [Graph] fix url navigation between workspaces, fix types * [Graph] refactoring, fixing url issue * [Graph] update graph dependencies * [Graph] add comments * [Graph] fix types * [Graph] fix new button, fix control panel styles * [Graph] apply suggestions Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Marco Liberati <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Marco Liberati <[email protected]>
Part of #91128
Summary
Implementation notes
workspace
object stored in the reactref
worksapce
, react render should be forced. It's done via updatingrenderCounter
and providing it to components which needs update.asSyncedObservable
still needed, since some of theworkspace
internals should be provided to mounted<Settings />
overlay. It should be removed after migrating thouseworksapce
stuff to reduxTesting notes
query
param