Repository navigation
Draw types missing from the schema with their stored style and default icon - #2695
Merged
Merged
Conversation
…1779) Blank nodes carry the synthetic LABELS.MISSING_TYPE, which never appears in the schema. Asserts useGraphStyles still emits a node[type=...] entry for it with the default icon, matching the details-panel fallback. Runs under jsdom: happy-dom's DOMParser/DOMPurify interop drops the svg root during sanitize, so svg icon resolution can never complete there. Relates to #1779; ports the coverage asked for on #1781 to the current icon-registry pipeline.
Layer: 1-unknown-type-styles
This was referenced Dec 2, 2026
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.
Based on #1781 by @P-r-e-m-i-u-m and #2202 by @hdp01.
Summary
The Graph View canvas drew any node or edge whose type wasn't in the synced schema with the app defaults and no icon, while the details panel showed that type's saved style and the default icon.
User-facing: Nodes and edges whose type isn't in the schema now look the same on the canvas as in the details panel: your saved style, and the default icon for nodes. Blank nodes keep the default icon and style.
The canvas style cache now resolves every drawn type through the same style atoms the details panel reads, so the schema gate and its subscription go away:
Evidence
Before:
draws a type missing from the schema without an iconpinnedbackground-image: none.After: these tests fail on
mainand pass here:draws a type missing from the schema with the default iconstyles a vertex type missing from the schema with its stored stylestyles an edge type missing from the schema with its stored styleBoth contributors' blank-node tests run under jsdom in
useGraphStyles.icons.test.tsx.Verified live: agent-tested in Chrome and Safari against a local Gremlin Server. A
robotnode styled as a red star and abuildsedge styled green at 5px kept those styles and the node's default icon after the schema refresh dropped both types.Merge Danger
Door: two-way. No stored data changes, so reverting brings back the old look.
Impact: canvas styling. See Upgrade Notes.
Upgrade Notes
Related
🤖 Written by an AI agent on my behalf.