ui: surface live identity + drift legend in inspect panel - #20
Merged
Merged
Conversation
Picking an env showed every node blue with values unchanged, so it wasn't
obvious the overlay was live. Two gaps:
- The inspect panel only read node.attrs, dropping the live state chant merges
onto managed nodes (physicalId, ownership are top-level IRNode fields). Now the
panel has an "identity / live / declared" split: live shows the observed
physical id + ownership; pending nodes say so explicitly (no live state because
not provisioned). Declared $ref values render as "→ target.attr" instead of raw
{"$ref":…} JSON.
- Added a drift summary to the meta line (N managed · N foreign · N pending) and a
colour legend, both shown only in overlay mode — so "everything's blue" reads as
"17 pending" (nothing deployed yet).
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.
Picking an env turned every node blue with values unchanged, so it wasn't obvious the overlay was live. Two gaps, both addressed:
1. The inspect panel dropped the live state
chant's source-anchored overlay merges the observed identity onto managed nodes —
physicalId(real cloud resource id) andownership— as top-levelIRNodefields (graph-ir.tssourceOverlayGraphs). The panel only readnode.attrs, so it never showed them.Now the panel splits identity / live / declared:
physical id+ownershipfor managed nodes; pending nodes say "not provisioned yet — no live state" explicitly.$refcross-resource refs render as→ target.attrinstead of raw{"$ref":…}JSON (the "static infra refs").2. The drift wasn't summarised
Added to the meta line (overlay mode only):
N managed · N foreign · N pending, plus a colour legend. So "everything's blue" now reads as "17 pending" — i.e. nothing is deployed in that env yet, which is why there's no live state to show.Why the example looks all-pending
example/has nothing provisioned inprod, so every declared resource is pending (blue) by definition. Live identity appears on managed (green) nodes once resources exist. Verified live:example/prod →0 managed · 0 foreign · 17 pending.node --checkclean; 32 tests pass.