FE: Add editing latest version warning to edit page

What does this MR do and why?

This introduces a warning to the user that they are editing the latest version of an item when they click "edit" on a version that has an update available. This is to avoid semantic version issues and the user to create a duplicate of the version they wish to edit first instead.

Screenshots or screen recordings

image

How to set up and validate locally

  1. Create a new agent or flow and enable it in the project
  2. Navigate to the EDIT page. You should not see a warning.
  3. Make an edit to the agent or flow and save it.
  4. Navigate to the EDIT page again. You should see a warning at the top.
  5. Clicking the link in the warning alert should route you to the /duplicate page with the agent or flow your project is currently pinned to.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #578590 (closed)

Edited by Angus Ryer

Merge request reports

Loading