Skip to content

Conversation

hengxian-jiang
Copy link
Collaborator

…t of the base node

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

The PR improves the user experience when adding nodes to an analysis flow by implementing positioning relative to the selected base node and ensuring proper visual feedback through node deselection.

Key changes include:

  • Enhanced node positioning logic to place new nodes relative to the base node where the add action originated
  • Added node deselection functionality to clear visual state before adding new nodes
  • Reorganized imports for better code organization

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

(n) => n.id === addNodeTypeDialog.selectedNodeId
);
if (baseNode) {
const newX = baseNode.position.x - (450 + defaultPosition.gapX);
Copy link
Preview

Copilot AI Sep 1, 2025

Choose a reason for hiding this comment

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

The magic number 450 should be extracted into a named constant or configuration value to improve code maintainability and make the positioning logic more transparent.

Copilot uses AI. Check for mistakes.

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.

2 participants