argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.68k stars 5.39k forks source link

WebUI - don't close the "new application" editor when clicking outside of it #20285

Open mhazan01 opened 1 week ago

mhazan01 commented 1 week ago

Summary

When you have the new app panel open to edit the said app and you click outside of that panel, it closes the editor without saving.

Motivation

when creating a new app through the webui

Proposal

don't close the editor panel or ask for confirmation before closing and discarding changes ?

2003Aditya commented 1 day ago

@mhazan01 @saumeya What if we create a temporary save state that stores the new app form for a specific time period, allowing the user to make changes or complete it later?

saumeya commented 4 hours ago

This is definitely a good problem to solve as it would improve experience, Yes @2003Aditya that would be the approach, to persist the form data for sometime in the local storage. I was also looking at this library if it could be of any use - https://www.npmjs.com/package/react-hook-form-persist