Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save and reload form #653

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open

Save and reload form #653

wants to merge 8 commits into from

Conversation

henrychoy
Copy link
Collaborator

@henrychoy henrychoy commented Oct 8, 2024

  • When navigating away from an edit form, a popup should warn the user that their modifications will be lost (unless the user made no changes or hit cancel)

  • When navigating away from a create form, the data should be preserved for the remainder of the current session, so when the user navigates back, they have the option of reloading or discarding their un-saved values.

  • Job forms are temporarily saved in a experiment context, meaning that a saved job form for Experiment A have no effect on the job forms for experiment B. Similarly, plugin files are saved in a plugin context.

  • If a saved form contains resource selections (entrypoints, queues, plugins) that have since been deleted, those values will not be re-loaded into the form.

@henrychoy henrychoy self-assigned this Oct 8, 2024
@henrychoy henrychoy linked an issue Oct 8, 2024 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@keithmanville keithmanville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When navigating away from the create form, it warns me that I will lose my data. I hit confirm. When I navigate back it offers to fill in my previous inputs.

I think we should drop the warning when navigating away since my inputs are recoverable.

I was testing this for experiments

@henrychoy
Copy link
Collaborator Author

When navigating away from the create form, it warns me that I will lose my data. I hit confirm. When I navigate back it offers to fill in my previous inputs.

I think we should drop the warning when navigating away since my inputs are recoverable.

I was testing this for experiments

@keithmanville ok just pushed the change. When leaving a create form, it will temp save and leave without warning the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve experience for interrupted editing in GUI
2 participants