Skip to content

Conversation

@jacomyal
Copy link

@jacomyal jacomyal commented Nov 10, 2025

Description

This PR depends on PR #554. It should only be merged once #554 is merged as well.

This PR adds a new block in the "Edit" side panel, to allow controlling the isCollapsed state of the nodes.
This form displays:

  • a list of all nodes, with their name and a checkbox to toggle their isCollapsed state
  • a text input to filter the nodes list
  • a global checkbox to toggle all filtered nodes at once

Issues

Checklist

  • This PR contains a description of the changes I'm making
  • I've read the Contribution Guidelines
  • I've added tests for changes or features I've introduced
  • I documented any high-level concepts I'm introducing in documentation/
  • CI is currently green and this is ready for review

Copy link
Contributor

@louisgreiner louisgreiner left a comment

Choose a reason for hiding this comment

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

Looks very nice and the search bar is really good.

I wonder if we could ask user's confirmation when checking the box for all the nodes at once? This component already exists in the application I think, we can reuse it.

PS: you should make your PR into mrd/new-nodes-management-system I think, we use this as feature branch

jacomyal added a commit that referenced this pull request Nov 13, 2025
This commit handles various feedbacks from reviewers on PR:
#613

Details:
- Fixes some FR translations
- Renames "visible nodes" as "matching nodes"
- Caches the matching nodes array
- Adds a confirmation modal when clicking the global checkbox
@jacomyal jacomyal changed the base branch from main to mrd/new-nodes-management-system November 13, 2025 11:56
@jacomyal jacomyal marked this pull request as ready for review November 14, 2025 13:49
@jacomyal jacomyal requested a review from aiAdrian as a code owner November 14, 2025 13:49
Copy link
Contributor

@louisgreiner louisgreiner left a comment

Choose a reason for hiding this comment

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

Looks good to me, except these few comments 👍

Math-R pushed a commit that referenced this pull request Nov 27, 2025
This commit handles various feedbacks from reviewers on PR:
#613

Details:
- Fixes some FR translations
- Renames "visible nodes" as "matching nodes"
- Caches the matching nodes array
- Adds a confirmation modal when clicking the global checkbox
louisgreiner pushed a commit that referenced this pull request Dec 4, 2025
This commit handles various feedbacks from reviewers on PR:
#613

Details:
- Fixes some FR translations
- Renames "visible nodes" as "matching nodes"
- Caches the matching nodes array
- Adds a confirmation modal when clicking the global checkbox
jacomyal added a commit that referenced this pull request Dec 5, 2025
This commit handles various feedbacks from reviewers on PR:
#613

Details:
- Fixes some FR translations
- Renames "visible nodes" as "matching nodes"
- Caches the matching nodes array
- Adds a confirmation modal when clicking the global checkbox
jacomyal added a commit that referenced this pull request Dec 5, 2025
This commit handles various feedbacks from reviewers on PR:
#613

Details:
- Fixes some EN translation
- Fixes onClickGlobalCheckbox final apply process
- Makes component no longer standalone, to fit other components declaration
- Adds more space between name and short name columns
@jacomyal jacomyal force-pushed the ajy/global-nodes-management branch from dcfaea2 to 91f53ba Compare December 5, 2025 09:31
@louisgreiner
Copy link
Contributor

Many thanks for the last changes, this looks very good to me now :)

This commit addresses issue:
OpenRailAssociation/osrd#13292

Details:
- Adds new component GlobalNodesManagementComponent in app/view/editor-edit-tools-view-component
- The new component controls the isCollapsed state of the nodes
- Adds EN and FR translations for the new component
- Adds the new component to the existing EditorEditToolsViewComponent panel
@jacomyal jacomyal force-pushed the ajy/global-nodes-management branch from 91f53ba to 1873eec Compare December 5, 2025 10:44
@jacomyal jacomyal merged commit 6ac86fd into mrd/new-nodes-management-system Dec 5, 2025
6 checks passed
@jacomyal jacomyal deleted the ajy/global-nodes-management branch December 5, 2025 10:48
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.

5 participants