Skip to content

Migrate remaining schema consumers to useGraphSchema and styled atoms #1728

@kmcginnes

Description

@kmcginnes

Description

After the Cytoscape layer (#1725, #1726) and styling panels (#1727) are migrated, the remaining consumers of mergedConfigurationSelector and useConfiguration() need to switch to useGraphSchema() and the new styled type atoms.

Remaining consumers include: DataExplorer, SearchSidebar, SchemaGraph, EntitiesFilter, ConnectionDetail, ExportGraphButton, UserPrefixes, and the main GraphExplorer layout.

Preferred Solution

  • Components that need schema data (type names, attributes) use useGraphSchema()
  • Components that need styled type info use styledVertexTypeAtom(type) / styledEdgeTypeAtom(type)
  • Components that need preference data directly continue using vertexPreferenceByTypeAtom(type) / edgePreferenceByTypeAtom(type)
  • Migrate incrementally — each module can be its own commit

Related Issues


Important

If you are interested in working on this issue, please leave a comment.

Tip

Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformanceIssues relating to performanceschemaIssues related to the schema definition or synchronizationtech debtIssues, typically tasks, that are mainly about cleaning up code that is problematic in some way

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions