This release significantly enhances the scenario management features by providing users with a clearer understanding of the consequences of deleting scenario steps and offering more control during scenario creation. It also includes internal refactorings to improve data consistency and simplify the codebase related to scenario data handling.
Highlights
- Scenario Step Deletion Impact Analysis: A new API endpoint and service function have been introduced to analyze the potential impact of deleting a scenario step. This analysis identifies mutations that would be lost and any entities or relationships created in the step that are referenced by subsequent steps, which would become orphaned.
- Enhanced Scenario Deletion UI: The user interface now leverages the deletion impact analysis to display warnings in the scenario deletion confirmation dialog. Users are informed about lost mutations and orphaned dependencies before confirming a deletion, preventing accidental data loss.
- Automatic Step Renumbering: Upon deletion of a scenario step, the remaining steps within the chain are automatically renumbered to maintain sequential order, ensuring consistency in scenario flow.
- Optional First Step Title for Scenarios: When creating a new scenario, users can now provide an optional custom title for the first step. If left blank, the first step's title will default to the scenario's name.
- Refactored JointOwnershipView Data Sourcing: The data sourcing logic within the
JointOwnershipViewcomponent has been simplified. In scenario mode, the Zustand store now acts as the sole source of truth for entities and relationships, streamlining data management and removing complex re-stamping logic.