Repository navigation
feat(graph): add toolbar menu, image export, and node pod phase resolution - #921
Merged
Merged
Conversation
…ution - Add architecture graph toolbar with fit-to-view, SVG/PNG export, and deletion retention slider - Resolve pods under nodes from pod phase timelines in backend architecture graph builder - Provide fallback resolution for containers and conditions when manifests are unavailable - Add comprehensive unit tests and storybook stories for toolbar and layout components
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 28, 2026 02:30
Contributor
There was a problem hiding this comment.
Code Review
This pull request enhances the backend architecture graph builder to resolve pod phases, node placements, and container/condition fallbacks from child timelines when manifests are incomplete. On the frontend, it introduces a graph toolbar with a resource retention slider, fit-to-view controls, and improved SVG/PNG export capabilities. The reviewer identified a critical logic bug in the backend fallback loop that prematurely terminates container/condition processing, recommended filtering allowed timelines earlier to prevent inconsistent pod updates, and suggested optimizing the PNG export utility by using object URLs instead of encoding large SVG strings as data URIs.
…RL export - Capture fallbackContainers and fallbackConditions before loop to preserve multiple containers and conditions - Clarify design rationale for allowedTimelines filtering on podPhaseMap merge - Use exportSvgToBlob and URL.createObjectURL in exportSvgToPngBlob and revoke in onload/onerror
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a toolbar menu to the architecture graph view with fit-to-view, SVG/PNG export, and a deleted resource retention slider. Also improves backend architecture graph building by resolving pods under nodes from
PodPhasetimelines when manifests lack node names or are metadata-only.Key Changes
pkg/server/workbench/architecturegraph):PodPhasetimelines (core/v1/node/cluster-scope/<nodeName>/<namespace>/<podName>[<uid>]).PodPhasetimelines under a node.reader == nil).isPodPhaseHealthy()).web/src/app/graph/,web/src/app/pages/graph/):GraphToolbarComponentwith:GraphLayoutComponent&GraphToolbarComponent).GraphToolbarComponent,GraphLayoutComponent,GraphRoot,GraphDownloadService,svg-export-util, andtime-format-util.Builderincluding synthetic pods, nil manifest fallback, and pod phase parsing.GraphToolbarComponentandGraphLayoutComponent.Testing
make test-gomake test-webmake lint-gomake lint-webmake build-webmake build-storybookmake pre-commit