Skip to content

Fix: Added Unlink option to Circular Dependency warning dialog (#7)#8

Open
ventura0121 wants to merge 1 commit intosmartqubit:masterfrom
ventura0121:fix-circular-dependency-ui
Open

Fix: Added Unlink option to Circular Dependency warning dialog (#7)#8
ventura0121 wants to merge 1 commit intosmartqubit:masterfrom
ventura0121:fix-circular-dependency-ui

Conversation

@ventura0121
Copy link

Description
This pull request addresses a usability "trap" within the Gantt chart and dependency management logic (ref: Issue #7). Currently, when a user creates a circular dependency, the system displays a static error message that lacks an immediate resolution path, forcing the user to manually hunt for and delete the link.

Changes
Actionable Dialog: Modified the GanttInteractor and DependencyDialog error handling blocks to replace the standard Alert with a JOptionPane choice dialog.

Escape Hatch: Added an "Unlink Tasks" option that allows the user to immediately revert the invalid dependency from within the warning dialog.

Code Integrity: Followed existing Java Swing patterns and naming conventions to ensure the UI remains consistent with the legacy codebase.

Impact
This improvement follows UX best practices by providing "user control and freedom" (Heuristic #3). For construction project managers dealing with complex, multi-thousand-row schedules, this small change prevents workflow disruption and reduces the risk of accidental data corruption in the schedule logic.

Fixes: #7

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.

Usability: User trapped in circular dependency loop with inconsistent recovery options

1 participant