Skip to content

💻 [UI] Warn users if mock parameters are not saved #181

@neel1996

Description

@neel1996

Summary

While creating a new mock or editing an existing mock, the user is required to explicitly save dynamic fields such as query params, request body, request headers and response headers.

The form submission is not blocked even if these dynamic fields are not saved which could lead to rework.

Scope of the issue

  • To display a warning to the user, if the dynamic fields are updated but not saved
  • Compare the current state with the global state to check whether the fields have been updated. If the fields are updated, then display an inline warning to inform the user to save those changes
  • Disable the submit button if there are pending changes to be saved
  • Display a warning on the right side of the mock form with the list of changes made by the user

Impacted area

  • UI
  • Backend

Supporting artifacts

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions