“Reset to Latest Snapshot” Button Hidden on Duplicate Workflow Name
Related to: https://github.com/OpenFn/lightning/issues/3783
Description
While testing the above issue, I noticed an additional UI bug.
When attempting to save a workflow using a name that already exists (i.e., a duplicate name), the “Reset to Latest Snapshot” button becomes hidden or is not displayed correctly.
Steps to Reproduce
- Open any workflow.
- Edit the workflow name.
- Enter a name that already exists.
- Attempt to save.
- Observe the visibility of the “Reset to Latest Snapshot” button.
Expected Behavior
The “Reset to Latest Snapshot” button should remain visible and properly positioned, regardless of validation errors or duplicate-name warnings.
Actual Behavior
The button becomes hidden or visually misplaced when the duplicate name error appears.
@mercy-ship-it I couldn't replicate this. Could you send a loom ?
@elias-ba , https://www.loom.com/share/29cb1a75948141d6b923851afdd5f815