-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Enabled by #538 (also read this to get full context / mock-ups)
Description
The above issue changed the data model and enabled to deal with collapsible nodes, using the "Global node display management" interface. This issue intends to create the following interface: "Train node display management". This new interface will be in the trainrun edition menu on the right side of the application and allows to see all the nodes of a trainrun's path and remove them, set or unset stops on existing or not existing nodes.
The issue can be split in two phases:
- Allow to visualize the intermediate stops (= expanded nodes + collapsed nodes)
- Enable to add a new stop, delete an existing one, set a connection as a new stop and set the display of a node on a trainrun's path (= expanded or collapsed)
Mock-ups
UX (@thibautsailly):
- Remove the update for all nodes
Train Node Display Management:

Acceptance Criteria
Visualization (phase 1):
- A new section named "Nodes / Noeuds" is available in the right-side trainrun edition menu (accessible by double-clicking on a trainrun)
- All the nodes from the trainrun's path are listed (stops and non-stops, and expanded or collapsed nodes)
- For each node, the "Expanded / Développé" column allows to collapse or expand the node using a checkbox. On top of the column, a checkbox allows to set / unset this value for all nodes at once. (This functionality is already implement in the Global Nodes Management Interface and should behave the same)
- For each node, the "Stop / Arrêt" column allows to set a stop or a non-stop at the node using a checkbox. For the first and last node, the checkboxes are disabled. On top of the column, a checkbox allows to set / unset this value for all nodes at once. These checkboxes are disabled during the first phase.
- For each node, the "Nodes / Noeuds" column displays the short name and the full name of the node.
Edition (phase 2):
- For each node, the "Stop / Arrêt" column allows to set a stop or a non-stop at the node using a checkbox. On top of the column, a checkbox allows to set / unset this value for all nodes at once.
- Between two rows (and before the first node and last node), a "+" button allows to create a new node and insert it in the trainrun's path.
- At creation, this node is expanded (Expanded column), is a stop (Stop column).
- The short name and full name are empty, and a combo box (same as labels input) appears in the Node column.
- When user writes in this combo box, already existing nodes that match either the full name or short name are suggested. If the user chooses one of these nodes, the new stop refers to the selected node.
- User can still keep the field empty and the node will have no names.
- At the end of a row, a "-" button allows to remove the node from the trainrun's path.
- In the trainrun section edition tab (double-clicking on a trainrun, section tab), user can add or delete stops. If user press "-" but no nodes with no names are still in the list of trainrun's path nodes, then the operation is canceled and a warning message tells the user to remove it from the Train Node Display Management interface.
Implementation Plan
- todo
Metadata
Metadata
Assignees
Labels
No labels