Skip to content

Conversation

@kmcginnes
Copy link
Collaborator

Description

Fixes an issue where the auto open details on selection would conflict with the user's desire to show a specific sidebar panel (in this case, the expand panel).

The solution involved adding a new hook to manage the selection state and send all selection changes to it. I then added an option to skip the side effects (auto open details). This allows me to change the selection without running the auto open details side effect.

I also did a minor cleanup to remove some unnecessary abstractions around mapping the selected nodes/edges and out of focus nodes/edges to cytoscape compatible forms. This logic was moved in to GraphViewer where it is needed, rather than in a shared module.

Validation

  • Tested with all context menus
  • Tested table row selection
  • Tested graph selection
  • Tested out of focus nodes/edges

Related Issues

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0
    license.
  • I have run pnpm checks to ensure code compiles and meets standards.
  • I have run pnpm test to check if all tests are passing.
  • I have covered new added functionality with unit tests if necessary.
  • I have added an entry in the Changelog.md.

@kmcginnes kmcginnes marked this pull request as ready for review October 29, 2025 23:35
const entityId = data[Number(rowIndex)].id;
setSelectedNodesIds(new Set([entityId]));
setSelectedEdgesIds(new Set([]));
console.log("Changing selection from NodesTabular");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customization dialog does not show on first attempt

2 participants