Repository navigation
Conversation
Layer: 1-remove-merge-configuration
…ecks Layer: 1-remove-merge-configuration
Layer: 1-remove-merge-configuration
Layer: 1-remove-merge-configuration
Layer: 1-remove-merge-configuration
Layer: 1-remove-merge-configuration
Layer: 1-remove-merge-configuration
This branch has not been deployed
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
Every page that only wanted the active connection's name still read it through
useConfiguration(), which rebuilt and re-sorted every schema type (about 10k on a large schema) whenever the schema or the saved connection changed.User-facing: The Exported Connection File is smaller. Each node and edge type now carries only its schema fields, without the app's default style values. Nothing else changes.
Each reader now goes to the state it needs:
mergeConfiguration,mergedConfigurationSelector,useConfiguration,MergedConfiguration,ConfigurationContextProps, and the unused array-keyeduseVertexTypeConfigs/useEdgeTypeConfigsfamilies are gone.ConnectionDetailandCreateConnectiontake aSavedConnection. Edit mode applies the connection defaults itself, so saving an unchanged stored connection still keeps its schema.GLOSSARY.mdand the user-preferences ADR no longer describe a merge.Evidence
Before: renaming a connection or switching to it rebuilt every schema type, and the exported file repeated the default color, shape, and icon fields on every type.
After: new tests pin the behavior that moved:
A new golden fixture,
connection-file-export-golden-schema-types.txt, pins the new export shape, and the existing fixtures still import.Verified live: agent-tested in Chrome and Safari against a local dev server.
Merge Danger
Door: two-way
Impact: export-format
Files exported before and after this change import in this build and in every release back to v1.0.0. Older builds apply their own defaults to a type without style fields, so a re-imported file looks the same.
Upgrade Notes
Related
🤖 Written by an AI agent on my behalf.