-
Notifications
You must be signed in to change notification settings - Fork 55
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
Service map updates #2230
Service map updates #2230
Conversation
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
public/components/trace_analytics/components/common/plots/service_map.tsx
Show resolved
Hide resolved
public/components/trace_analytics/components/common/plots/service_map.tsx
Show resolved
Hide resolved
public/components/trace_analytics/components/common/plots/service_map.tsx
Outdated
Show resolved
Hide resolved
|
||
// Enlarge the focused node and reset others | ||
const updatedNodes = items.graph.nodes.map((node) => | ||
node.label === service ? { ...node, size: 30 } : { ...node, size: 15 } |
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.
just wondering, is there some global or environmental variable that can be used for the size here to get rid of the magic numbers?
public/components/trace_analytics/components/common/plots/service_map.tsx
Show resolved
Hide resolved
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Still looking at the code. Just a question in the service flyout when users focus on a node, does the flyout details, other red metrics graphs also change to show the details of this particular node? |
Signed-off-by: Adam Tackett <[email protected]>
Adjusted to hide the focus while in the service fly-out. Ideally the user is utilizing the fly-out for a quick overview, and using the main page to investigate. Adjusted the functionality of the main search to allow user to quickly investigate deeper into connected nodes by clicking on them to filter (showcased in first video of description 'Filter Focus:'). |
@@ -18,7 +18,7 @@ import { ServiceNodeDetails } from '../../../../../../common/types/trace_analyti | |||
interface ServiceMapNodeDetailsProps { | |||
selectedNodeDetails: ServiceNodeDetails | null; | |||
setSelectedNodeDetails: React.Dispatch<React.SetStateAction<ServiceNodeDetails | null>>; | |||
addServiceFilter: (selectedServiceName: string) => void; | |||
addServiceFilter: (selectedServiceName: string | null) => void; |
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.
are we expecting to have a null passed in for addServiceFilter?
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.
No, added in the null check to handle switching between custom and data prepper to clear selections and prevent existing bugs where the page would fail to render.
@@ -209,8 +209,11 @@ export const TEST_SERVICE_MAP_GRAPH = { | |||
label: 'order', | |||
size: 15, | |||
title: 'order\n\n Average duration: 90.1ms \n Error rate: 4.17% \n Request rate: 48', | |||
borderWidth: 0, | |||
color: 'rgba(158, 134, 192, 1)', | |||
borderWidth: 3, |
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.
question: are these changes being signed off from UX/product?
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.
Synched offline for sign off.
* adjusting service table and focus search Signed-off-by: Adam Tackett <[email protected]> * revert starting zoom to default behavior Signed-off-by: Adam Tackett <[email protected]> * add reset button, and enlarge focused node Signed-off-by: Adam Tackett <[email protected]> * adjust filter options, so only available are shown in flyout Signed-off-by: Adam Tackett <[email protected]> * handle empty items Signed-off-by: Adam Tackett <[email protected]> * loading state, borders, no movement, focus Signed-off-by: Adam Tackett <[email protected]> * refresh on filter cleared Signed-off-by: Adam Tackett <[email protected]> * update focus functionality to set filter, bug fixes Signed-off-by: Adam Tackett <[email protected]> * handle clearing focus Signed-off-by: Adam Tackett <[email protected]> * hide focus in the flyout Signed-off-by: Adam Tackett <[email protected]> --------- Signed-off-by: Adam Tackett <[email protected]> Signed-off-by: Adam Tackett <[email protected]> Co-authored-by: Adam Tackett <[email protected]> (cherry picked from commit fdebf79) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* adjusting service table and focus search * revert starting zoom to default behavior * add reset button, and enlarge focused node * adjust filter options, so only available are shown in flyout * handle empty items * loading state, borders, no movement, focus * refresh on filter cleared * update focus functionality to set filter, bug fixes * handle clearing focus * hide focus in the flyout --------- (cherry picked from commit fdebf79) Signed-off-by: Adam Tackett <[email protected]> Signed-off-by: Adam Tackett <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Adam Tackett <[email protected]>
Description
Update the service table functionality
Filter Focus:
Screen.Recording.2024-11-08.at.11.52.59.AM.mov
Zoom constraints:
Screen.Recording.2024-11-08.at.11.53.34.AM.mov
Dynamic filter:
Testing with 300 nodes:
Testing Dense Nodes
Service flyout:
Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.